Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3.20 — Incompat(Δ) and ¬Elsewhere(Δ) are semantically equivalent

Proved
BiAbduction.Systematic.lemma_3_20

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

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

For every quantifier-free left-hand side Δ=(⋀iAi)∧(∗jEj↦Ej′)\Delta=\big(\bigwedge_i A_i\big)\wedge\big(\ast_j E_j\mapsto E'_j\big)Δ=(⋀i​Ai​)∧(∗j​Ej​↦Ej′​) of the Points-to Instantiation, the disjunction Incompat(Δ)\mathrm{Incompat}(\Delta)Incompat(Δ) denotes exactly the incompatible solutions:

[ ⁣[Incompat(Δ)] ⁣]=¬ Elsewhere(Δ).[\![\mathrm{Incompat}(\Delta)]\!]=\neg\,\mathrm{Elsewhere}(\Delta).[[Incompat(Δ)]]=¬Elsewhere(Δ).

That is, a state satisfies Incompat(Δ)\mathrm{Incompat}(\Delta)Incompat(Δ) iff no heap separate from its heap satisfies Δ\DeltaΔ with the same stack.

This is the second phase of the systematic algorithm: the incompatible solutions are expressible as a disjunction of symbolic heaps.

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

/-- Lemma 3.20 (p. 32). `Incompat(Δ)` and `¬Elsewhere(Δ)` are semantically equivalent. -/
theorem lemma_3_20 (Δ : LHS) :
    disjDen (incompat Δ) = (Elsewhere (lhsDen Δ))ᶜ := by sorry

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