Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.25 — the ≾-minimal solution of Δ ∗ D ⊨ H is a computable disjunction of symbolic heaps

Proved
BiAbduction.Systematic.theorem_3_25

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

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

Consider the abduction question (5) of the Points-to Instantiation,

Δ∗D⊨H,\Delta*D\models H,Δ∗D⊨H,

where Δ=Π∧L1↦R1∗⋯∗Ln↦Rn\Delta=\Pi\wedge L_1\mapsto R_1*\dots*L_n\mapsto R_nΔ=Π∧L1​↦R1​∗⋯∗Ln​↦Rn​ is a quantifier-free symbolic heap and H=∃X⃗.Π′∧Σ′H=\exists\vec X.\Pi'\wedge\Sigma'H=∃X.Π′∧Σ′ a symbolic heap. There is an algorithm which, given Δ\DeltaΔ and HHH, returns a disjunction DDD of symbolic heaps that is the minimal solution w.r.t. ≾\precsim≾: Δ∗D⊨H\Delta*D\models HΔ∗D⊨H, and D≾MD\precsim MD≾M for every predicate MMM (arbitrary set of states) with Δ∗M⊨H\Delta*M\models HΔ∗M⊨H.

This is the paper's main result on the systematic algorithm: the best abductive solution, which semantically is min⁡(Δ− ⁣ ⁣∗H)\min(\Delta\mathbin{-\!\!*}H)min(Δ−∗H), can be expressed in the language of symbolic heaps and computed.

Formalization Note "Effectively computed with an algorithm" is Computable₂ f for a single function f : LHS → SH → Disj, with Mathlib's standard Primcodable encodings of lists, pairs, sums, booleans and naturals. The competitors MMM range over all predicates, not only over disjunctions. No bound-variable convention is assumed: renaming the bound variables of HHH does not change its denotation, so the statement covers the page's case.

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

/-- Theorem 3.25 (p. 34), Minimal Solution Algorithm. The minimal solution w.r.t. `≾` of the
abduction question `Δ ∗ D ⊨ H` (5) is expressible as a disjunction `D` of symbolic heaps, which is
computed from `(Δ, H)` by an algorithm. -/
theorem theorem_3_25 :
    ∃ f : LHS → SH → Disj, Computable₂ f ∧
      ∀ (Δ : LHS) (H : SH), IsLeastSolution (lhsDen Δ) (shDen H) (disjDen (f Δ H)) := by sorry

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