Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3.10 — ≤ is a preorder, M ≤ min(M) ≤ M, and M, M′ are ≤-equivalent iff min(M) = min(M′)

Proved
BiAbduction.Footprint.lemma_3_10

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

abductionp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1separation-logic

Let ≤\le≤ be the spatial preorder M≤M′  ⟺  M′⊨M∗trueM \le M' \iff M' \models M * \mathsf{true}M≤M′⟺M′⊨M∗true on predicates (sets of stack–heap pairs with finite heaps), and let min⁡\minmin be the minimal-state operator of Definition 3.9. Then:

  1. ≤\le≤ is a preorder (reflexive and transitive);
  2. for every predicate MMM, M≤min⁡(M)M \le \min(M)M≤min(M) and min⁡(M)≤M\min(M) \le Mmin(M)≤M;
  3. for all predicates M,M′M, M'M,M′,
(M≤M′ and M′≤M)  ⟺  min⁡(M)=min⁡(M′).\big(M \le M' \text{ and } M' \le M\big) \iff \min(M) = \min(M').(M≤M′ and M′≤M)⟺min(M)=min(M′).

The lemma shows that min⁡\minmin picks a canonical representative of each ≤\le≤-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
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me