Lemma 3.18 — termination: for all Δ, H some Δ ∗ [D] ▷ H is derivable, found by a terminating search
ProvedBiAbduction.Systematic.lemma_3_18abductioncomputabilityp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1separation-logic
There is an algorithm which, given any quantifier-free left-hand side and any symbolic heap of the Points-to Instantiation, returns a disjunction such that
is derivable with the rules of Figure 2. In particular such a exists for every and , 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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.