§3.4.4 — quantifier removal for pure formulae: ∃X.Π is equivalent to a computable Π′ without X
ProvedBiAbduction.Systematic.pure_qecomputabilityp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1quantifier-eliminationseparation-logic
There is an algorithm that, given a variable and a pure formula (a conjunction of equalities and disequalities between variables and constants), returns a pure formula in which does not occur such that
This quantifier removal is what allows subtraction of symbolic heaps with quantifiers to be expressed again as a disjunction of symbolic heaps.
Formalization Note Pure formulae are read with an unconstrained heap (). The equivalence uses that there are infinitely many values (here all naturals). "Algorithm" is Computable₂ for Mathlib's standard encodings.
Preamble
import Mathlib import Definitions.Def_BiAbduction_Systematic_Syntax
Formal statement
namespace BiAbduction.Systematic
/-- §3.4.4, quantifier removal for pure formulae (p. 33): for every variable `X` and pure formula
`Π`, the formula `∃X. Π` is equivalent to a pure formula `Π'` in which `X` does not occur, and
`Π'` is computed from `(X, Π)` by an algorithm. -/
theorem pure_qe :
∃ qe : ℕ → List PureAtom → List PureAtom, Computable₂ qe ∧
∀ (X : ℕ) (pi : List PureAtom),
X ∉ pureVars (qe X pi) ∧ exQ X (pureDen pi) = pureDen (qe X pi) := by sorry
end BiAbduction.Systematic
Source
Calcagno, Distefano, O'Hearn, Yang, Compositional Shape Analysis by means of Bi-Abduction, J. ACM (2011), p. 33, §3.4.4, Quantifier-removal for pure formulae
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.