Plain-language statement
Initialize genHeapGS with explicit ghost names. The names of the heap and the meta-data tables are exposed in the conclusion.
Exact Lean statement
@[rocq_alias gen_heap_init_names]
theorem genHeap_init_names [DecidableEq L] [genHeapPreS L V GF H] (σ : H V) :
⊢ |==> ∃ γh γm : GName,
genHeapInterp (G := (⟨γh, γm⟩ : genHeapGS L V GF H)) σ ∗
([∗map] l ↦ v ∈ σ,
pointsTo (G := (⟨γh, γm⟩ : genHeapGS L V GF H)) l (.own 1) v) ∗
([∗map] l ↦ _v ∈ σ,
metaToken (G := (⟨γh, γm⟩ : genHeapGS L V GF H)) l ⊤)Formal artifact
Lean source
@[rocq_alias gen_heap_init_names]theorem genHeap_init_names [DecidableEq L] [genHeapPreS L V GF H] (σ : H V) : ⊢ |==> ∃ γh γm : GName, genHeapInterp (G := (⟨γh, γm⟩ : genHeapGS L V GF H)) σ ∗ ([∗map] l ↦ v ∈ σ, pointsTo (G := (⟨γh, γm⟩ : genHeapGS L V GF H)) l (.own 1) v) ∗ ([∗map] l ↦ _v ∈ σ, metaToken (G := (⟨γh, γm⟩ : genHeapGS L V GF H)) l ⊤) := by imod (ghost_map_alloc_empty (K := L) (V := V)) with ⟨%γh, Hh⟩ imod (ghost_map_alloc_empty (K := L) (V := GName)) with ⟨%γm, Hm⟩ letI G : genHeapGS L V GF H := ⟨γh, γm⟩ ihave Hinterp0 : genHeapInterp (G := G) ∅ $$ [Hh Hm] · unfold genHeapInterp iexists (∅ : H GName) isplitr · ipureintro intro k hk simp [dom, LawfulPartialMap.get?_empty] at hk iframe Hh Hm imod genHeap_alloc_big σ ∅ (LawfulPartialMap.disjoint_empty_right _) $$ Hinterp0 with ⟨Hinterp, Hpts, Htok⟩ imodintro iexists γh, γm iframe Hpts Htok iapply genHeapInterp_eqv (equiv_iff_eq.mpr LawfulPartialMap.union_empty_right) $$ Hinterp- Project
- Iris-Lean
- License
- Apache-2.0
- Commit
- 37f53e0ac065
- Source
- Iris/Iris/BI/Lib/GenHeap.lean:450-474
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Co Pset Raw eq
CoPset.coPsetRaw_eq
Plain-language statement
Two CoPsetRaw trees are equal if they have the same membership function and both are well-formed.
Source project: Iris-Lean
Person-level attribution pending.
Inj on of nodup map
FromMathlib.inj_on_of_nodup_map
Plain-language statement
NB. Copied from Mathlib
Source project: Iris-Lean
Person-level attribution pending.
Big Op L hom weak
Iris.Algebra.BigOpL.bigOpL_hom_weak
Plain-language statement
Weak monoid homomorphisms distribute over non-empty big ops.
Source project: Iris-Lean
Person-level attribution pending.