All proofs
Project-declaredLean 4.32.1 · null

State init Heap self

Iris.HeapLang.State.initHeap_self

Plain-language statement

Writing back a cell's current contents leaves the state unchanged.

Exact Lean statement

theorem State.initHeap_self {σ : State} {l : Loc} {v : Option Val}
    (h : PartialMap.get? (M := HeapF) σ.heap l = some v) : σ.initHeap l 1 v = σ

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem State.initHeap_self {σ : State} {l : Loc} {v : Option Val}    (h : PartialMap.get? (M := HeapF) σ.heap l = some v) : σ.initHeap l 1 v = σ := by  have hl : l + (0 : Int) = l := by    cases l    simp only [HAdd.hAdd, Loc.mk.injEq]    grind  have hins : Std.insert (M := HeapF) σ.heap l v = σ.heap := by    refine Std.LawfulPartialMap.equiv_iff_eq.mp fun k => ?_    rw [Std.LawfulPartialMap.get?_insert]    split    · next heq => exact heq ▸ h.symm    · rfl  simp only [State.initHeap, Int.toNat_one, List.range_one, List.foldl_cons, List.foldl_nil,    Int.cast_ofNat_Int, hl, hins]
Project
Iris-Lean
License
Apache-2.0
Commit
37f53e0ac065
Source
Iris/Iris/HeapLang/Semantics.lean:190-203

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

Project-declaredLean 4.32.1

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.

separation logicprogram logicsemantics

Source project: Iris-Lean

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.1

Inj on of nodup map

FromMathlib.inj_on_of_nodup_map

Plain-language statement

NB. Copied from Mathlib

separation logicprogram logicsemantics

Source project: Iris-Lean

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.1

Big Op L hom weak

Iris.Algebra.BigOpL.bigOpL_hom_weak

Plain-language statement

Weak monoid homomorphisms distribute over non-empty big ops.

separation logicprogram logicsemantics

Source project: Iris-Lean

Person-level attribution pending.

View proof record