All proofs
Project-declaredLean 4.32.1 · null

Chain option some

Iris.chain_option_some

Plain-language statement

If a chain of Option is ever some, it is the lift a chain by some.

Exact Lean statement

theorem chain_option_some [OFE V] {c : Chain (Option V)} (H : c n = some v) :
    ∃ c' : Chain V, c = Chain.map ⟨some, OFE.Option.some.ne⟩ c'

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem chain_option_some [OFE V] {c : Chain (Option V)} (H : c n = some v) :     c' : Chain V, c = Chain.map some, OFE.Option.some.ne c' := by  have HVc (k) :  v', c k = some v' := by    rcases h : c.chain k with (_|v')    · simp [chain_none_const h] at H    · exists v'  let c' : Chain V :=    fun n => Classical.choose <| HVc n,     by       intro n i Hni       have HR := c.cauchy Hni       rw [Classical.choose_spec (HVc n), Classical.choose_spec (HVc i)] at HR       exact HR   exists c'  rcases hcc : c with cc, Hcc  simp only [Chain.map, Chain.mk.injEq]  refine funext (fun i => ?_)  simp only [c']  have Hchoose := Classical.choose_spec (HVc i)  rw [ Hchoose]  simp [hcc]
Project
Iris-Lean
License
Apache-2.0
Commit
37f53e0ac065
Source
Iris/Iris/Algebra/OFE.lean:994-1014

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