Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3.19 — a solution derived in the Figure 2 system is ≤c-below every solution

Proved
BiAbduction.Systematic.lemma_3_19

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

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

Let Δ\DeltaΔ be a quantifier-free left-hand side and HHH a symbolic heap of the Points-to Instantiation, with no variable bound in HHH occurring in Δ\DeltaΔ. If Δ∗[D]▹H\Delta*[D]\triangleright HΔ∗[D]▹H is derivable and FFF is an arbitrary predicate (set of states) with Δ∗F⊨H\Delta*F\models HΔ∗F⊨H, then

D≤cF,D\le_c F,D≤c​F,

where ≤c\le_c≤c​ is the compatible preorder relative to the same Δ\DeltaΔ: (F∧Elsewhere(Δ))⊨(D∧Elsewhere(Δ))∗true(F\wedge\mathrm{Elsewhere}(\Delta))\models (D\wedge\mathrm{Elsewhere}(\Delta))*\mathsf{true}(F∧Elsewhere(Δ))⊨(D∧Elsewhere(Δ))∗true.

With the soundness of Figure 2 this says that every derivable DDD is a minimal solution w.r.t. ≤c\le_c≤c​, the first phase of the systematic algorithm.

Preamble
import Mathlib
import Definitions.Def_BiAbduction_Systematic_Rules
Formal statement
namespace BiAbduction.Systematic

/-- Lemma 3.19 (p. 29). If `Δ ∗ [D] ▷ H` is derivable and `Δ ∗ F ⊨ H` for a predicate `F`, then
`D ≤c F` (the `≤c` relative to the same `Δ`). -/
theorem lemma_3_19 (Δ : LHS) (D : Disj) (H : SH) (hconv : Conv Δ H)
    (hder : Derives Δ D H) (F : Pred) (hF : IsSolution (lhsDen Δ) (shDen H) F) :
    CompatLe (lhsDen Δ) (disjDen D) F := by sorry

end BiAbduction.Systematic
Source
Calcagno, Distefano, O'Hearn, Yang, Compositional Shape Analysis by means of Bi-Abduction, J. ACM (2011), p. 29, Lemma 3.19
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