Weakest Precondition Calculus #
@cite{muskens-1996}
§III.6 (pp. 172–175): The weakest precondition calculus provides a
compositional algorithm for extracting first-order truth conditions
from DRS meanings. Given a DRS D and a postcondition χ,
wp D χ characterizes the input states from which D can
transition to a state satisfying χ.
Compositional Rules #
| Rule | Theorem | Paper ref |
|---|---|---|
wp [C] χ = C ∧ χ | wp_test | WP_{[]} |
wp (D₁ ⨟ D₂) χ = wp D₁ (wp D₂ χ) | wp_seq | WP_{;} |
wp [u] χ = ∃e, χ(extend i u e) | wp_randomAssign | WP_{[]} (∃ clause) |
wp D ⊤ = closure D | wp_true_eq_closure | Proposition 2 |
Key Results #
- Proposition 2:
wp(K, ⊤) = ∃j K(i)(j)(truth = existential closure) - Proposition 3: DRT entailment = entailment of truth conditions
- Corollary: DPL entailment = validity of dynamic implication
Weakest precondition of DRS D with postcondition χ.
wp D χ i holds iff there exists an output state j such that
D transitions from i to j and χ holds at j.
Instances For
WP of a test: wp [C] χ = C ∧ χ.
A test checks C and passes the state through unchanged.
WP of sequencing: wp (D₁ ⨟ D₂) χ = wp D₁ (wp D₂ χ).
Corresponds to WP_{;} (p. 173): the postcondition threads through.
WP of random assignment: wp [u] χ = ∃e, χ(extend i u e).
Introducing a discourse referent existentially quantifies over values. Corresponds to the ∃ clause in WP_{[]} (p. 173).
WP of existential DRS: wp (∃u. D) χ = ∃e, wp D χ (extend i u e).
Proposition 2 (@cite{muskens-1996}, p. 175):
wp(K, ⊤) is equivalent to ∃j K(i)(j) — the existential closure.
In the semantic formulation, this is definitional.
DRT entailment (@cite{muskens-1996}, p. 175):
K₁,...,Kₙ ⊨_DRT K iff for every state i, if all premises
are true at i, then the conclusion is true at i.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Proposition 3 (@cite{muskens-1996}, p. 175):
DRT entailment reduces to entailment of truth conditions.
K₁,...,Kₙ ⊨_DRT K iff wp(K₁, ⊤),...,wp(Kₙ, ⊤) entail wp(K, ⊤).
DPL-style entailment: every output of D₁ can be extended by D₂.
Equations
Instances For
Corollary (@cite{muskens-1996}, p. 175):
DPL entailment = validity of dynamic implication.
K₁,...,Kₙ ⊨_DPL K iff ⊢ tr((K₁;...;Kₙ) ⇒ K).
TR of negation: tr(not K) = ¬wp(K, ⊤).
The truth of ¬D at state i is the negation of D's satisfiability.
Corresponds to TR_{not} (p. 173).
TR of disjunction: tr(K₁ or K₂) = wp(K₁, ⊤) ∨ wp(K₂, ⊤).
Corresponds to TR_{or} (p. 173). The existential distributes over disjunction.
TR of implication: tr(K₁ ⇒ K₂) = ¬wp(K₁, ¬wp(K₂, ⊤)).
Dynamic implication = no way to satisfy antecedent without satisfying consequent. Corresponds to TR_{⇒} (p. 173).
A DRS is semantically proper if its truth condition is uniform across input states: satisfiability doesn't depend on the input assignment.
This is the semantic counterpart of @cite{muskens-1996}'s syntactic
notion of properness (§III.5, p. 171): a DRS with no free discourse
referents. Proposition 1 (p. 174) connects the two: K is proper iff
wp(K, ⊤) is a closed formula.
Equations
Instances For
Proper DRSes have state-independent weakest preconditions.