The areas / V01. The language of Mathlib
Mathlib.Lean.Thunk
9 declarations. Mathlib docs · Source
theorem Thunk.get_pure E0 #
∀ {α : Type u_1} (x : α), (Thunk.pure x).get = x
theorem Thunk.get_mk E0 #
∀ {α : Type u_1} (f : Unit → α), { fn := f }.get = f ()
instance Thunk.instDecidableEq_mathlib E0 #
{α : Type u} → [DecidableEq α] → DecidableEq (Thunk α)
def Thunk.prod E1 #
{α : Type u} → {β : Type v} → Thunk α → Thunk β → Thunk (α × β)
The Cartesian product of two thunks.
theorem Thunk.prod_get_fst E0 #
∀ {α : Type u} {β : Type v} {a : Thunk α} {b : Thunk β}, (a.prod b).get.1 = a.get
theorem Thunk.prod_get_snd E0 #
∀ {α : Type u} {β : Type v} {a : Thunk α} {b : Thunk β}, (a.prod b).get.2 = b.get
def Thunk.add E1 #
{α : Type u} → [Add α] → Thunk α → Thunk α → Thunk α
The sum of two thunks.
instance Thunk.instAdd_mathlib E0 #
{α : Type u} → [Add α] → Add (Thunk α)
theorem Thunk.add_get E0 #
∀ {α : Type u} [inst : Add α] {a b : Thunk α}, (a + b).get = a.get + b.get