Documentation

ExistentialRules.ChaseSequence.Nontermination.RepeatableUnblockability

Repeatable Unblockability #

Here we define a generic notion of RepeatableUnblockability that can be instatiated with specific notions later. This is similar to how the ObsoloscenceCondition captures SkolemObsolescence and RestrictedObsoloscence at the same time. The difference in the specific conditions is a key difference of RPC and DRPC.

@[reducible, inline]
abbrev OverapproximationFunction (sig : Signature) [DecidableEq sig.P] [DecidableEq sig.C] [DecidableEq sig.V] :
Type (max (max (max (max (max (max (max (max (max (max (max u_3 u_2) u_1) u_3) u_2) u_1) u_3) u_2) u_1) u_3) u_2) u_1)

This is the function signature that our specific unblockability overapproximations will follow.

Equations
Instances For

    A trigger is unblockable with respect to a specific overapproximation function if it is deterministic Datalog or if it is not obsolete for the overapproxmiation.

    Equations
    Instances For

      This rather involved condition makes sure that a trigger can be repeated in the sense that applying a reversible constant mapping after the substitution yields a trigger that is unblockable, given that the original trigger was also unblockable. This is the condition proven in Lemma 4 in the [GC23a] paper.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        structure RepeatableUnblockability {sig : Signature} [DecidableEq sig.P] [DecidableEq sig.C] [DecidableEq sig.V] [Inhabited sig.C] (obs : ObsolescenceCondition sig) :
        Type (max (max u_1 u_2) u_3)

        A RepeatableUnblockability condition is an overapproximation function for that we know that the function result adheres to is_rpc_overapproximation and for that the trigger_unblockable property holds for each trigger.

        Instances For

          We lift the OverapproximationFunction.trigger_unblockable property to RepeatableUnblockability in the obvious way.

          Equations
          Instances For
            theorem RepeatableUnblockability.rsUnblockable_of_equiv_of_trigger_unblockable {sig : Signature} [DecidableEq sig.P] [DecidableEq sig.C] [DecidableEq sig.V] [Inhabited sig.C] {obs : ObsolescenceCondition sig} (obs_propagates : obs.propagates_under_term_mapping_of_no_fresh_term_occurs) {unblk : RepeatableUnblockability obs} {rs : RuleSet sig} {hc : HeadChoice sig} (hc_consistent : hc.consistent_for_equivalent_triggers) (trg : RTrigger { cond := obs.cond, monotone := ⋯ } rs) :
            unblk.trigger_unblockable rs hc trg.val → ∀ (trg' : RTrigger { cond := obs.cond, monotone := ⋯ } rs), trg.equiv trg' → Trigger.rsUnblockable rs hc trg'.val

            If RepeatableUnblockability.trigger_unblockable holds for a trigger, then Trigger.rsUnblockable follows for each equivalent trigger. This is due to the RepeatableUnblockability.rpc_overapprox condition and follows mainly from RTrigger.rsUnblockable_of_equiv_trigger_not_obsolete_for_overapproximation.

            theorem RepeatableUnblockability.rsUnblockable_of_trigger_unblockable {sig : Signature} [DecidableEq sig.P] [DecidableEq sig.C] [DecidableEq sig.V] [Inhabited sig.C] {obs : ObsolescenceCondition sig} (obs_propagates : obs.propagates_under_term_mapping_of_no_fresh_term_occurs) {unblk : RepeatableUnblockability obs} {rs : RuleSet sig} {hc : HeadChoice sig} (hc_consistent : hc.consistent_for_equivalent_triggers) (trg : RTrigger { cond := obs.cond, monotone := ⋯ } rs) :
            unblk.trigger_unblockable rs hc trg.val → Trigger.rsUnblockable rs hc trg.val

            As a special case of the above theorem, we obtain that RepeatableUnblockability.trigger_unblockable implies Trigger.rsUnblockable for the same trigger.

            theorem RepeatableUnblockability.not_unblockable_of_hc_exis_of_frontier_only_constants {sig : Signature} [DecidableEq sig.P] [DecidableEq sig.C] [DecidableEq sig.V] [Inhabited sig.C] {unblk : RepeatableUnblockability (RestrictedObsolescence sig)} {rs : RuleSet sig} {hc : HeadChoice sig} (rs_finite : CustomBasicDatastructures.Set.finite rs) (rs_non_empty_heads : ∀ (r : Rule sig), r ∈ rs → r.head ≠ []) (hc_consistent : hc.consistent_for_equivalent_triggers) (trg : RTrigger { cond := (RestrictedObsolescence sig).cond, monotone := ⋯ } rs) (hc_exis : trg.val.rule.existential_vars_for_head_disjunct ↑(hc trg.val.toPreTrigger) ⋯ ≠ []) (frontier_only_constants : ∀ (t : GroundTerm sig), t ∈ trg.val.mapped_frontier → ∃ (c : sig.C), t = GroundTerm.const c) :
            ¬unblk.trigger_unblockable rs hc trg.val

            As for general unblockability, if a trigger features at least one existentially quantified variable and only constants as frontier terms, then it cannot be unblockable. This follows directly from Trigger.not_rsUnblockable_of_hc_exis_of_frontier_only_constants and the contraposition of rsUnblockable_of_trigger_unblockable.