§3.4.4 — subtraction with quantifiers: (∃X⃗.Δ) − (∃Y⃗.Δ′) is a computable disjunction of symbolic heaps
ProvedBiAbduction.Systematic.sub_quantifiedThere is an algorithm that, given two symbolic heaps and of the Points-to Instantiation, where the spatial part of contains no conjunct ( may contain one), returns a disjunction of symbolic heaps with
This is the binary subtraction on which the computation of via Lemma 3.23(6) rests.
Formalization Note The page computes the result in the form under , after an α-renaming that makes the bound variables fresh; the statement records only the semantic content (a disjunction of symbolic heaps with the same meaning) and holds without any assumption on the bound variables, since renaming them does not change the denotations. The minuend is -free, as in the page's quantifier-free subtraction; without that restriction the claim is false ( contains every state in which is unallocated, which no disjunction of symbolic heaps describes). The subtrahend may carry , since ; this is the case the minimization of needs. "Algorithm" is Computable₂ for Mathlib's standard encodings.
import Mathlib import Definitions.Def_BiAbduction_Systematic_Syntax
namespace BiAbduction.Systematic
/-- §3.4.4, subtraction with quantifiers (pp. 33–34): for symbolic heaps `∃X⃗.Δ` and `∃Y⃗.Δ'`,
the first of whose spatial part contains no `true`, the subtraction `(∃X⃗.Δ) − (∃Y⃗.Δ')` is a
disjunction of symbolic heaps computed by an algorithm. -/
theorem sub_quantified :
∃ subSH : SH → SH → Disj, Computable₂ subSH ∧
∀ H H' : SH, H.2.2.2 = false →
disjDen (subSH H H') = subP (shDen H) (shDen H') := by sorry
end BiAbduction.Systematic
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.