Disjoint insert left iff
Iris.Std.LawfulPartialMap.disjoint_insert_left_iff
Plain-language statement
Disjointness of insert m₁ i x and m₂ decomposes into freshness of i in m₂ and the disjointness of m₁ and m₂.
Exact Lean statement
theorem disjoint_insert_left_iff {m₁ m₂ : M V} {i : K} {x : V} (hi : get? m₁ i = none) :
insert m₁ i x ##ₘ m₂ ↔ get? m₂ i = none ∧ m₁ ##ₘ m₂Formal artifact
Lean source
theorem disjoint_insert_left_iff {m₁ m₂ : M V} {i : K} {x : V} (hi : get? m₁ i = none) : insert m₁ i x ##ₘ m₂ ↔ get? m₂ i = none ∧ m₁ ##ₘ m₂ := by refine ⟨fun hd => ⟨?_, fun k ⟨hs1, hs2⟩ => ?_⟩, fun ⟨h1, h2⟩ => disjoint_insert_left h1 h2⟩ · rcases h : get? m₂ i with _ | _ · rfl · exact absurd (hd i ⟨by simp [get?_insert_eq rfl], by simp [h]⟩) id · by_cases hik : i = k · subst hik; simp [hi] at hs1 · exact hd k ⟨by simp [get?_insert_ne hik, hs1], hs2⟩- Project
- Iris-Lean
- License
- Apache-2.0
- Commit
- 37f53e0ac065
- Source
- Iris/Iris/Std/PartialMap.lean:572-580
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.