PLA assignment merges variable and pronoun assignments via sum type.
.inl iaccesses variable i.inr iaccesses pronoun i
Equations
Instances For
Variable dref: projection at.inl i
Equations
- Semantics.Dynamic.PLA.varDref i g = g (Sum.inl i)
Instances For
Pronoun dref: projection at.inr i
Equations
- Semantics.Dynamic.PLA.pronDref i g = g (Sum.inr i)
Instances For
Interpret a PLA term as a Dynamic Ty2 dref.
Equations
Instances For
Convert PLAPoss to merged assignment.
Equations
Instances For
Convert merged assignment to PLAPoss.
Equations
Instances For
Functional update for merged assignments (only affects variables)
Equations
Instances For
Evaluate a term given a merged assignment
Equations
Instances For
Translate a PLA formula to a Dynamic Ty2 condition.
This captures when a merged assignment satisfies the formula. Note: PLA existentials check for EXISTENCE of a witness, but don't actually extend the assignment (eliminative semantics).
Equations
- One or more equations did not get rendered due to their size.
- Semantics.Dynamic.PLA.formulaToCondition M (∼φ) = fun (g : Semantics.Dynamic.PLA.MergedAssignment E) => ¬Semantics.Dynamic.PLA.formulaToCondition M φ g
Instances For
Translate a PLA formula to a Dynamic Ty2 DRS.
PLA updates are eliminative (they only filter, never extend assignments). This means every PLA formula translates to a TEST in Dynamic Ty2.
Instances For
Atom translation: predicate applied to evaluated terms
Negation translation: test of negated condition
Conjunction translation: test of conjoined conditions
Existential translation: test for existence of witness
Split a merged assignment into variable and witness components
Equations
- Semantics.Dynamic.PLA.splitAssignment g = (fun (i : Semantics.Dynamic.PLA.VarIdx) => g (Sum.inl i), fun (i : Semantics.Dynamic.PLA.PronIdx) => g (Sum.inr i))
Instances For
Term evaluation agrees with PLA semantics
extend and Assignment.update align on the variable component
extend doesn't affect the pronoun component
Formula condition agrees with PLA satisfaction
PLA formula semantics corresponds to Dynamic Ty2 DRS.
A merged assignment g satisfies the DRS iff the split assignment satisfies the original PLA formula.