Lemma 3.10 — ≤ is a preorder, M ≤ min(M) ≤ M, and M, M′ are ≤-equivalent iff min(M) = min(M′)
ProvedBiAbduction.Footprint.lemma_3_10abductionp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1separation-logic
Let be the spatial preorder on predicates (sets of stack–heap pairs with finite heaps), and let be the minimal-state operator of Definition 3.9. Then:
- is a preorder (reflexive and transitive);
- for every predicate , and ;
- for all predicates ,
The lemma shows that picks a canonical representative of each -equivalence class, which is what makes the best abductive solution unique.
Formalization Note Part (1) is stated as reflexivity and transitivity of SpatialLe over all predicates. Finiteness of heaps is built into the heap type.
Preamble
import Mathlib import Definitions.Def_BiAbduction_Footprint_Semantics
Formal statement
namespace BiAbduction.Footprint
/-- Lemma 3.10 (p. 24), properties of `≤`: (1) `≤` is a preorder (reflexive and transitive);
for any `M, M'`, (2) `M ≤ min(M)` and `min(M) ≤ M`, and (3) `M ≤ M' ∧ M' ≤ M` iff
`min(M) = min(M')`. -/
theorem lemma_3_10 :
((∀ M : Pred, SpatialLe M M) ∧
(∀ M₁ M₂ M₃ : Pred, SpatialLe M₁ M₂ → SpatialLe M₂ M₃ → SpatialLe M₁ M₃)) ∧
∀ M M' : Pred,
(SpatialLe M (minSet M) ∧ SpatialLe (minSet M) M) ∧
((SpatialLe M M' ∧ SpatialLe M' M) ↔ minSet M = minSet M') := by sorry
end BiAbduction.Footprint
Source
Calcagno, Distefano, O'Hearn, Yang, Compositional Shape Analysis by means of Bi-Abduction, J. ACM (2011), p. 24, Lemma 3.10
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.