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.BoolAlg

58 declarations. Mathlib docs · Source

theorem BoolAlg.of.inj E1 #

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

def BoolAlg.Hom.ctorIdx E1 #

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

theorem HeytingHom.mk.congr_simp E1 #

∀ {α : Type u_6} {β : Type u_7} [inst : HeytingAlgebra α] [inst_1 : HeytingAlgebra β]
  (toLatticeHom toLatticeHom_1 : LatticeHom α β) (e_toLatticeHom : toLatticeHom = toLatticeHom_1)
  (map_bot' : toLatticeHom.toFun ⊥ = ⊥)
  (map_himp' : ∀ (a b : α), toLatticeHom.toFun (a ⇨ b) = toLatticeHom.toFun a ⇨ toLatticeHom.toFun b),
  { toLatticeHom := toLatticeHom, map_bot' := map_bot', map_himp' := map_himp' } =
    { toLatticeHom := toLatticeHom_1, map_bot' := ⋯, map_himp' := ⋯ }

theorem BoolAlg.of.injEq E0 #

∀ (carrier : Type u_1) [str : BooleanAlgebra carrier] (carrier_1 : Type u_1) (str_1 : BooleanAlgebra carrier_1),
  (↧carrier = ↧carrier_1) = (carrier = carrier_1 ∧ str ≍ str_1)

def BoolAlg.ctorIdx E1 #

BoolAlg → ℕ

structure BoolAlg E1 #

Type (u_1 + 1)

The category of Boolean algebras.

ctor BoolAlg.of E0 #

(carrier : Type u_1) → [str : BooleanAlgebra carrier] → BoolAlg

Construct a bundled BoolAlg from the underlying type and typeclass.

abbrev BoolAlg.carrier E1 #

BoolAlg → Type u_1

The underlying Boolean algebra.

instance BoolAlg.str E0 #

(self : BoolAlg) → BooleanAlgebra ↑self

def BoolAlg.delabOf E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prints BoolAlg.of X as ↧X.

instance BoolAlg.instCoeSortType E0 #

CoeSort BoolAlg (Type u_1)

structure BoolAlg.Hom E1 #

BoolAlg → BoolAlg → Type u

The type of morphisms in BoolAlg R.

theorem BoolAlg.Hom.ext_iff E0 #

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

theorem BoolAlg.Hom.ext E1 #

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

abbrev BoolAlg.Hom.hom' E1 #

{X Y : BoolAlg} → X.Hom Y → BoundedLatticeHom ↑X ↑Y

The underlying BoundedLatticeHom.

instance BoolAlg.instCategory E0 #

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

instance BoolAlg.instConcreteCategoryBoundedLatticeHomCarrier E0 #

CategoryTheory.ConcreteCategory BoolAlg fun x1 x2 ↦ BoundedLatticeHom ↑x1 ↑x2

abbrev BoolAlg.Hom.hom E1 #

{X Y : BoolAlg} → X.Hom Y → BoundedLatticeHom ↑X ↑Y

Turn a morphism in BoolAlg back into a BoundedLatticeHom.

abbrev BoolAlg.ofHom E1 #

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

Typecheck a BoundedLatticeHom as a morphism in BoolAlg.

def BoolAlg.Hom.Simps.hom E1 #

(X Y : BoolAlg) → X.Hom Y → BoundedLatticeHom ↑X ↑Y

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

theorem BoolAlg.coe_id E0 #

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

theorem BoolAlg.coe_comp E0 #

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

theorem BoolAlg.forget_map E0 #

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

theorem BoolAlg.ext_iff E0 #

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

theorem BoolAlg.ext E1 #

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

theorem BoolAlg.coe_of E0 #

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

theorem BoolAlg.hom_id E0 #

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

theorem BoolAlg.id_apply E0 #

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

theorem BoolAlg.hom_comp E0 #

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

theorem BoolAlg.comp_apply E0 #

∀ {X Y Z : BoolAlg} (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 BoolAlg.hom_ext_iff E0 #

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

theorem BoolAlg.hom_ext E1 #

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

theorem BoolAlg.hom_ofHom E0 #

∀ {X Y : Type u} [inst : BooleanAlgebra X] [inst_1 : BooleanAlgebra Y] (f : BoundedLatticeHom X Y),
  BoolAlg.Hom.hom (BoolAlg.ofHom f) = f

theorem BoolAlg.ofHom_hom E0 #

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

theorem BoolAlg.ofHom_id E0 #

∀ {X : Type u} [inst : BooleanAlgebra X], BoolAlg.ofHom (BoundedLatticeHom.id X) = CategoryTheory.CategoryStruct.id ↧X

theorem BoolAlg.ofHom_comp E0 #

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

theorem BoolAlg.ofHom_apply E0 #

∀ {X Y : Type u} [inst : BooleanAlgebra X] [inst_1 : BooleanAlgebra Y] (f : BoundedLatticeHom X Y) (x : X),
  (CategoryTheory.ConcreteCategory.hom (BoolAlg.ofHom f)) x = f x

theorem BoolAlg.inv_hom_apply E0 #

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

theorem BoolAlg.hom_inv_apply E0 #

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

instance BoolAlg.instInhabited E0 #

Inhabited BoolAlg

def BoolAlg.toBddDistLat E1 #

BoolAlg → BddDistLat

Turn a BoolAlg into a BddDistLat by forgetting its complement operation.

theorem BoolAlg.coe_toBddDistLat E0 #

∀ (X : BoolAlg), ↑X.toBddDistLat.toDistLat = ↑X

instance BoolAlg.hasForgetToBddDistLat E0 #

CategoryTheory.HasForget₂ BoolAlg BddDistLat

instance BoolAlg.hasForgetToHeytAlg E0 #

CategoryTheory.HasForget₂ BoolAlg HeytAlg

theorem BoolAlg.hasForgetToHeytAlg_forget₂_map E0 #

∀ {X Y : BoolAlg} (f : X ⟶ Y),
  CategoryTheory.HasForget₂.forget₂.map f =
    HeytAlg.ofHom { toFun := ⇑(BoolAlg.Hom.hom f), map_sup' := ⋯, map_inf' := ⋯, map_bot' := ⋯, map_himp' := ⋯ }

theorem BoolAlg.hasForgetToHeytAlg_forget₂_obj_coe E0 #

∀ (X : BoolAlg), ↑(CategoryTheory.HasForget₂.forget₂.obj X) = ↑X

def BoolAlg.Iso.mk E1 #

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

Constructs an equivalence between Boolean algebras from an order isomorphism between them.

theorem BoolAlg.Iso.mk_hom E0 #

∀ {α β : BoolAlg} (e : ↑α ≃o ↑β),
  (BoolAlg.Iso.mk e).hom =
    BoolAlg.ofHom
      (have __src := { toFun := ⇑e, map_sup' := ⋯, map_inf' := ⋯ };
      { toFun := ⇑e, map_sup' := ⋯, map_inf' := ⋯, map_top' := ⋯, map_bot' := ⋯ })

theorem BoolAlg.Iso.mk_inv E0 #

∀ {α β : BoolAlg} (e : ↑α ≃o ↑β),
  (BoolAlg.Iso.mk e).inv =
    BoolAlg.ofHom
      (have __src := { toFun := ⇑e.symm, map_sup' := ⋯, map_inf' := ⋯ };
      { toFun := ⇑e.symm, map_sup' := ⋯, map_inf' := ⋯, map_top' := ⋯, map_bot' := ⋯ })

def BoolAlg.dual E1 #

CategoryTheory.Functor BoolAlg BoolAlg

OrderDual as a functor.

theorem BoolAlg.dual_map E0 #

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

def BoolAlg.dualEquiv E1 #

BoolAlg ≌ BoolAlg

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

theorem BoolAlg.dualEquiv_functor E0 #

BoolAlg.dualEquiv.functor = BoolAlg.dual

theorem BoolAlg.dualEquiv_inverse E0 #

BoolAlg.dualEquiv.inverse = BoolAlg.dual

theorem boolAlg_dual_comp_forget_to_bddDistLat E1 #

BoolAlg.dual.comp (CategoryTheory.forget₂ BoolAlg BddDistLat) =
  (CategoryTheory.forget₂ BoolAlg BddDistLat).comp BddDistLat.dual

def typeToBoolAlgOp E1 #

CategoryTheory.Functor (Type u) BoolAlgᵒᵖ

The powerset functor. Set as a contravariant functor.

theorem typeToBoolAlgOp_map E0 #

∀ {X Y : Type u} (f : X ⟶ Y),
  typeToBoolAlgOp.map f =
    (BoolAlg.ofHom
        (have __src :=
          { toFun := ⇑(CompleteLatticeHom.setPreimage ⇑(CategoryTheory.ConcreteCategory.hom f)), map_sup' := ⋯,
            map_inf' := ⋯ };
        { toFun := ⇑(CompleteLatticeHom.setPreimage ⇑(CategoryTheory.ConcreteCategory.hom f)), map_sup' := ⋯,
          map_inf' := ⋯, map_top' := ⋯, map_bot' := ⋯ })).op

theorem typeToBoolAlgOp_obj E0 #

∀ (X : Type u), typeToBoolAlgOp.obj X = Opposite.op ↧(Set X)