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.
This is the function signature that our specific unblockability overapproximations will follow.
Equations
- OverapproximationFunction sig = (RuleSet sig → HeadChoice sig → PreTrigger sig → FactSet sig)
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
- overapprox.trigger_unblockable rs hc trg = (trg.rule.isDatalog = true ∧ trg.rule.isDeterministic = true ∨ ¬obs.cond trg.toPreTrigger (overapprox rs hc trg.toPreTrigger))
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
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.
- overapprox : OverapproximationFunction sig
- rpc_overapprox (rs : RuleSet sig) (hc : HeadChoice sig) (trg : Trigger obs.toLaxObsolescenceCondition) : FactSet.is_rpc_overapproximation rs hc trg (self.overapprox rs hc trg.toPreTrigger)
- repeatable (rs : RuleSet sig) (hc : HeadChoice sig) (trg : Trigger obs.toLaxObsolescenceCondition) : self.overapprox.trigger_repeatable rs hc trg
Instances For
We lift the OverapproximationFunction.trigger_unblockable property to RepeatableUnblockability in the obvious way.
Equations
- unblk.trigger_unblockable rs hc trg = unblk.overapprox.trigger_unblockable rs hc trg
Instances For
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.
As a special case of the above theorem, we obtain that RepeatableUnblockability.trigger_unblockable implies Trigger.rsUnblockable for the same trigger.
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.