The areas / V04. Order and lattices
Mathlib.Order.Fin.Finset
9 declarations. Mathlib docs · Source
def Fin.orderIsoSingleton E1 #
{α : Type u_1} → [inst : Preorder α] → (a : α) → Fin 1 ≃o ↥{a}
This is the order isomorphism from Fin 1 to a finset {a}.
theorem Fin.orderIsoSingleton_apply E0 #
∀ {α : Type u_1} [inst : Preorder α] (a : α) (i : Fin 1), ↑((Fin.orderIsoSingleton a) i) = a
def Fin.orderIsoPair E1 #
{α : Type u_1} → [inst : Preorder α] → [inst_1 : DecidableEq α] → (a b : α) → a < b → Fin 2 ≃o ↥{a, b}
This is the order isomorphism from Fin 2 to a finset {a, b} when a < b.
theorem Fin.orderIsoPair_zero E0 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : DecidableEq α] (a b : α) (hab : a < b),
↑((Fin.orderIsoPair a b hab) 0) = a
theorem Fin.orderIsoPair_one E0 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : DecidableEq α] (a b : α) (hab : a < b),
↑((Fin.orderIsoPair a b hab) 1) = b
def Fin.orderIsoTriple E1 #
{α : Type u_1} → [inst : Preorder α] → [inst_1 : DecidableEq α] → (a b c : α) → a < b → b < c → Fin 3 ≃o ↥{a, b, c}
This is the order isomorphism from Fin 3
to a finset {a, b, c} when a < b and b < c.
theorem Fin.orderIsoTriple_zero E0 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : DecidableEq α] (a b c : α) (hab : a < b) (hbc : b < c),
↑((Fin.orderIsoTriple a b c hab hbc) 0) = a
theorem Fin.orderIsoTriple_one E0 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : DecidableEq α] (a b c : α) (hab : a < b) (hbc : b < c),
↑((Fin.orderIsoTriple a b c hab hbc) 1) = b
theorem Fin.orderIsoTriple_two E0 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : DecidableEq α] (a b c : α) (hab : a < b) (hbc : b < c),
↑((Fin.orderIsoTriple a b c hab hbc) 2) = c