Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3.18 — termination: for all Δ, H some Δ ∗ [D] ▷ H is derivable, found by a terminating search

Proved
BiAbduction.Systematic.lemma_3_18

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

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

There is an algorithm which, given any quantifier-free left-hand side Δ\DeltaΔ and any symbolic heap HHH of the Points-to Instantiation, returns a disjunction DDD such that

Δ∗[D]▹H\Delta*[D]\triangleright HΔ∗[D]▹H

is derivable with the rules of Figure 2. In particular such a DDD exists for every Δ\DeltaΔ and HHH, and the proof search terminates.

Formalization Note "The proof search is terminating" is read as: the search is a total computable function search : LHS → SH → Disj (Mathlib's Computable₂ for the standard encodings of lists, pairs, sums, booleans and naturals) whose output is always derivable.

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

/-- Lemma 3.18 (p. 29). For every `Δ` and `H` some `D` with `Δ ∗ [D] ▷ H` is derivable, and the
proof search terminates: such a `D` is produced by a total computable function. -/
theorem lemma_3_18 :
    ∃ search : LHS → SH → Disj, Computable₂ search ∧
      ∀ (Δ : LHS) (H : SH), Derives Δ (search Δ H) H := 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.18
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