The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V24. Category theory

Mathlib.Order.Category.DistLat

49 declarations. Mathlib docs · Source

theorem DistLat.mk.injEq E0 #

∀ (carrier : Type u_1) [str : DistribLattice carrier] (carrier_1 : Type u_1) (str_1 : DistribLattice carrier_1),
  ({ carrier := carrier, str := str } = { carrier := carrier_1, str := str_1 }) = (carrier = carrier_1 ∧ str ≍ str_1)

def DistLat.ctorIdx E1 #

DistLat → ℕ

def DistLat.Hom.ctorIdx E1 #

{X Y : DistLat} → X.Hom Y → ℕ

theorem DistLat.mk.inj E1 #

∀ {carrier : Type u_1} {str : DistribLattice carrier} {carrier_1 : Type u_1} {str_1 : DistribLattice carrier_1},
  { carrier := carrier, str := str } = { carrier := carrier_1, str := str_1 } → carrier = carrier_1 ∧ str ≍ str_1

structure DistLat E1 #

Type (u_1 + 1)

The category of distributive lattices.

ctor DistLat.mk E0 #

(carrier : Type u_1) → [str : DistribLattice carrier] → DistLat

abbrev DistLat.carrier E1 #

DistLat → Type u_1

The underlying distributive lattice.

instance DistLat.str E0 #

(self : DistLat) → DistribLattice ↑self

instance DistLat.instCoeSortType E0 #

CoeSort DistLat (Type u)

abbrev DistLat.of E1 #

(X : Type u_1) → [DistribLattice X] → DistLat

Construct a bundled DistLat from the underlying type and typeclass.

def DistLat.delabOf E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prints DistLat.of X as ↧X.

structure DistLat.Hom E1 #

DistLat → DistLat → Type u

The type of morphisms in DistLat R.

theorem DistLat.Hom.ext E1 #

∀ {X Y : DistLat} {x y : X.Hom Y}, x.hom' = y.hom' → x = y

theorem DistLat.Hom.ext_iff E0 #

∀ {X Y : DistLat} {x y : X.Hom Y}, x = y ↔ x.hom' = y.hom'

abbrev DistLat.Hom.hom' E1 #

{X Y : DistLat} → X.Hom Y → LatticeHom ↑X ↑Y

The underlying LatticeHom.

instance DistLat.instCategory E0 #

CategoryTheory.Category.{u, u + 1} DistLat

instance DistLat.instConcreteCategoryLatticeHomCarrier E0 #

CategoryTheory.ConcreteCategory DistLat fun x1 x2 ↦ LatticeHom ↑x1 ↑x2

abbrev DistLat.Hom.hom E1 #

{X Y : DistLat} → X.Hom Y → LatticeHom ↑X ↑Y

Turn a morphism in DistLat back into a LatticeHom.

abbrev DistLat.ofHom E1 #

{X Y : Type u} → [inst : DistribLattice X] → [inst_1 : DistribLattice Y] → LatticeHom X Y → (↧X ⟶ ↧Y)

Typecheck a LatticeHom as a morphism in DistLat.

def DistLat.Hom.Simps.hom E1 #

(X Y : DistLat) → X.Hom Y → LatticeHom ↑X ↑Y

Use the ConcreteCategory.hom projection for @[simps] lemmas.

theorem DistLat.coe_id E0 #

∀ {X : DistLat}, ⇑(CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.id X)) = id

theorem DistLat.coe_comp E0 #

∀ {X Y Z : DistLat} {f : X ⟶ Y} {g : Y ⟶ Z},
  ⇑(CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.comp f g)) =
    ⇑(CategoryTheory.ConcreteCategory.hom g) ∘ ⇑(CategoryTheory.ConcreteCategory.hom f)

theorem DistLat.forget_map E0 #

∀ {X Y : DistLat} (f : X ⟶ Y),
  ⇑(CategoryTheory.ConcreteCategory.hom ((CategoryTheory.forget DistLat).map f)) =
    ⇑(CategoryTheory.ConcreteCategory.hom f)

theorem DistLat.ext E1 #

∀ {X Y : DistLat} {f g : X ⟶ Y},
  (∀ (x : ↑X), (CategoryTheory.ConcreteCategory.hom f) x = (CategoryTheory.ConcreteCategory.hom g) x) → f = g

theorem DistLat.ext_iff E0 #

∀ {X Y : DistLat} {f g : X ⟶ Y},
  f = g ↔ ∀ (x : ↑X), (CategoryTheory.ConcreteCategory.hom f) x = (CategoryTheory.ConcreteCategory.hom g) x

theorem DistLat.coe_of E0 #

∀ (X : Type u) [inst : DistribLattice X], ↑↧X = X

theorem DistLat.hom_id E0 #

∀ {X : DistLat}, DistLat.Hom.hom (CategoryTheory.CategoryStruct.id X) = LatticeHom.id ↑X

theorem DistLat.id_apply E0 #

∀ (X : DistLat) (x : ↑X), (CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.id X)) x = x

theorem DistLat.hom_comp E0 #

∀ {X Y Z : DistLat} (f : X ⟶ Y) (g : Y ⟶ Z),
  DistLat.Hom.hom (CategoryTheory.CategoryStruct.comp f g) = (DistLat.Hom.hom g).comp (DistLat.Hom.hom f)

theorem DistLat.comp_apply E0 #

∀ {X Y Z : DistLat} (f : X ⟶ Y) (g : Y ⟶ Z) (x : ↑X),
  (CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.comp f g)) x =
    (CategoryTheory.ConcreteCategory.hom g) ((CategoryTheory.ConcreteCategory.hom f) x)

theorem DistLat.hom_ext_iff E0 #

∀ {X Y : DistLat} {f g : X ⟶ Y}, f = g ↔ DistLat.Hom.hom f = DistLat.Hom.hom g

theorem DistLat.hom_ext E1 #

∀ {X Y : DistLat} {f g : X ⟶ Y}, DistLat.Hom.hom f = DistLat.Hom.hom g → f = g

theorem DistLat.hom_ofHom E0 #

∀ {X Y : Type u} [inst : DistribLattice X] [inst_1 : DistribLattice Y] (f : LatticeHom X Y),
  DistLat.Hom.hom (DistLat.ofHom f) = f

theorem DistLat.ofHom_hom E0 #

∀ {X Y : DistLat} (f : X ⟶ Y), DistLat.ofHom (DistLat.Hom.hom f) = f

theorem DistLat.ofHom_id E0 #

∀ {X : Type u} [inst : DistribLattice X], DistLat.ofHom (LatticeHom.id X) = CategoryTheory.CategoryStruct.id ↧X

theorem DistLat.ofHom_comp E0 #

∀ {X Y Z : Type u} [inst : DistribLattice X] [inst_1 : DistribLattice Y] [inst_2 : DistribLattice Z]
  (f : LatticeHom X Y) (g : LatticeHom Y Z),
  DistLat.ofHom (g.comp f) = CategoryTheory.CategoryStruct.comp (DistLat.ofHom f) (DistLat.ofHom g)

theorem DistLat.ofHom_apply E0 #

∀ {X Y : Type u} [inst : DistribLattice X] [inst_1 : DistribLattice Y] (f : LatticeHom X Y) (x : X),
  (CategoryTheory.ConcreteCategory.hom (DistLat.ofHom f)) x = f x

theorem DistLat.inv_hom_apply E0 #

∀ {X Y : DistLat} (e : X ≅ Y) (x : ↑X),
  (CategoryTheory.ConcreteCategory.hom e.inv) ((CategoryTheory.ConcreteCategory.hom e.hom) x) = x

theorem DistLat.hom_inv_apply E0 #

∀ {X Y : DistLat} (e : X ≅ Y) (s : ↑Y),
  (CategoryTheory.ConcreteCategory.hom e.hom) ((CategoryTheory.ConcreteCategory.hom e.inv) s) = s

instance DistLat.hasForgetToLat E0 #

CategoryTheory.HasForget₂ DistLat Lat

def DistLat.Iso.mk E1 #

{α β : DistLat} → ↑α ≃o ↑β → (α ≅ β)

Constructs an equivalence between distributive lattices from an order isomorphism between them.

theorem DistLat.Iso.mk_inv E0 #

∀ {α β : DistLat} (e : ↑α ≃o ↑β),
  (DistLat.Iso.mk e).inv = DistLat.ofHom { toFun := ⇑e.symm, map_sup' := ⋯, map_inf' := ⋯ }

theorem DistLat.Iso.mk_hom E0 #

∀ {α β : DistLat} (e : ↑α ≃o ↑β), (DistLat.Iso.mk e).hom = DistLat.ofHom { toFun := ⇑e, map_sup' := ⋯, map_inf' := ⋯ }

def DistLat.dual E1 #

CategoryTheory.Functor DistLat DistLat

OrderDual as a functor.

theorem DistLat.dual_map E0 #

∀ {X Y : DistLat} (f : X ⟶ Y), DistLat.dual.map f = DistLat.ofHom (LatticeHom.dual (DistLat.Hom.hom f))

def DistLat.dualEquiv E1 #

DistLat ≌ DistLat

The equivalence between DistLat and itself induced by OrderDual both ways.

theorem DistLat.dualEquiv_functor E0 #

DistLat.dualEquiv.functor = DistLat.dual

theorem DistLat.dualEquiv_inverse E0 #

DistLat.dualEquiv.inverse = DistLat.dual

theorem distLat_dual_comp_forget_to_Lat E1 #

DistLat.dual.comp (CategoryTheory.forget₂ DistLat Lat) = (CategoryTheory.forget₂ DistLat Lat).comp Lat.dual