The areas / V04. Order and lattices
Mathlib.Order.Booleanisation
53 declarations. Mathlib docs · Source
Adding complements to a generalized Boolean algebra
This file embeds any generalized Boolean algebra into a Boolean algebra.
This concretely proves that any equation holding true in the theory of Boolean algebras that does
not reference ᶜ also holds true in the theory of generalized Boolean algebras. Put another way,
one does not need the existence of complements to prove something which does not talk about
complements.
Main declarations
Booleanisation: Boolean algebra containing a given generalised Boolean algebra as a sublattice.Booleanisation.liftLatticeHom: Boolean algebra containing a given generalised Boolean algebra as a sublattice.
TODO
If mathlib ever acquires GenBoolAlg, the category of generalised Boolean algebras, then one could
show that Booleanisation is the free functor from GenBoolAlg to BoolAlg.
def Booleanisation E3 #
Type u_2 → Type u_2
Boolean algebra containing a given generalised Boolean algebra α as a sublattice.
This should be thought of as made of a copy of α (representing elements of α) living under
another copy of α (representing complements of elements of α).
instance Booleanisation.instDecidableEq E0 #
{α : Type u_1} → [DecidableEq α] → DecidableEq (Booleanisation α)
def Booleanisation.lift E1 #
{α : Type u_1} → α → Booleanisation α
The natural inclusion a ↦ a from a generalized Boolean algebra to its generated Boolean
algebra.
def Booleanisation.comp E1 #
{α : Type u_1} → α → Booleanisation α
The inclusion a ↦ aᶜ from a generalized Boolean algebra to its generated Boolean algebra.
instance Booleanisation.instCompl E0 #
{α : Type u_1} → Compl (Booleanisation α)
The complement operator on Booleanisation α sends a to aᶜ and aᶜ to a, for a : α.
theorem Booleanisation.compl_lift E0 #
∀ {α : Type u_1} (a : α), (Booleanisation.lift a)ᶜ = Booleanisation.comp a
theorem Booleanisation.compl_comp E0 #
∀ {α : Type u_1} (a : α), (Booleanisation.comp a)ᶜ = Booleanisation.lift a
inductive Booleanisation.LE E1 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → Booleanisation α → Booleanisation α → Prop
The order on Booleanisation α is as follows: For a b : α,
a ≤ biffa ≤ binαa ≤ bᶜiffaandbare disjoint inαaᶜ ≤ bᶜiffb ≤ ainα¬ aᶜ ≤ b
ctor Booleanisation.LE.lift E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α},
a ≤ b → (Booleanisation.lift a).LE (Booleanisation.lift b)
ctor Booleanisation.LE.comp E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α},
a ≤ b → (Booleanisation.comp b).LE (Booleanisation.comp a)
ctor Booleanisation.LE.sep E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α},
Disjoint a b → (Booleanisation.lift a).LE (Booleanisation.comp b)
inductive Booleanisation.LT E1 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → Booleanisation α → Booleanisation α → Prop
The order on Booleanisation α is as follows: For a b : α,
a < biffa < binαa < bᶜiffaandbare disjoint inαaᶜ < bᶜiffb < ainα¬ aᶜ < b
ctor Booleanisation.LT.lift E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α},
a < b → (Booleanisation.lift a).LT (Booleanisation.lift b)
ctor Booleanisation.LT.comp E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α},
a < b → (Booleanisation.comp b).LT (Booleanisation.comp a)
ctor Booleanisation.LT.sep E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α},
Disjoint a b → (Booleanisation.lift a).LT (Booleanisation.comp b)
instance Booleanisation.instLE E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → LE (Booleanisation α)
The order on Booleanisation α is as follows: For a b : α,
a ≤ biffa ≤ binαa ≤ bᶜiffaandbare disjoint inαaᶜ ≤ bᶜiffb ≤ ainα¬ aᶜ ≤ b
instance Booleanisation.instLT E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → LT (Booleanisation α)
The order on Booleanisation α is as follows: For a b : α,
a < biffa < binαa < bᶜiffaandbare disjoint inαaᶜ < bᶜiffb < ainα¬ aᶜ < b
instance Booleanisation.instSup E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → Max (Booleanisation α)
The supremum on Booleanisation α is as follows: For a b : α,
a ⊔ bisa ⊔ ba ⊔ bᶜis(b \ a)ᶜaᶜ ⊔ bis(a \ b)ᶜaᶜ ⊔ bᶜis(a ⊓ b)ᶜ
instance Booleanisation.instInf E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → Min (Booleanisation α)
The infimum on Booleanisation α is as follows: For a b : α,
a ⊓ bisa ⊓ ba ⊓ bᶜisa \ baᶜ ⊓ bisb \ aaᶜ ⊓ bᶜis(a ⊔ b)ᶜ
instance Booleanisation.instBot E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → Bot (Booleanisation α)
The bottom element of Booleanisation α is the bottom element of α.
instance Booleanisation.instTop E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → Top (Booleanisation α)
The top element of Booleanisation α is the complement of the bottom element of α.
instance Booleanisation.instSDiff E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → SDiff (Booleanisation α)
The difference operator on Booleanisation α is as follows: For a b : α,
a \ bisa \ ba \ bᶜisa ⊓ baᶜ \ bis(a ⊔ b)ᶜaᶜ \ bᶜisb \ a
theorem Booleanisation.lift_le_lift E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α}, Booleanisation.lift a ≤ Booleanisation.lift b ↔ a ≤ b
theorem Booleanisation.comp_le_comp E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α}, Booleanisation.comp a ≤ Booleanisation.comp b ↔ b ≤ a
theorem Booleanisation.lift_le_comp E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α},
Booleanisation.lift a ≤ Booleanisation.comp b ↔ Disjoint a b
theorem Booleanisation.not_comp_le_lift E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α}, ¬Booleanisation.comp a ≤ Booleanisation.lift b
theorem Booleanisation.lift_lt_lift E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α}, Booleanisation.lift a < Booleanisation.lift b ↔ a < b
theorem Booleanisation.comp_lt_comp E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α}, Booleanisation.comp a < Booleanisation.comp b ↔ b < a
theorem Booleanisation.lift_lt_comp E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α},
Booleanisation.lift a < Booleanisation.comp b ↔ Disjoint a b
theorem Booleanisation.not_comp_lt_lift E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {a b : α}, ¬Booleanisation.comp a < Booleanisation.lift b
theorem Booleanisation.lift_sup_lift E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (a b : α),
Booleanisation.lift a ⊔ Booleanisation.lift b = Booleanisation.lift (a ⊔ b)
theorem Booleanisation.lift_sup_comp E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (a b : α),
Booleanisation.lift a ⊔ Booleanisation.comp b = Booleanisation.comp (b \ a)
theorem Booleanisation.comp_sup_lift E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (a b : α),
Booleanisation.comp a ⊔ Booleanisation.lift b = Booleanisation.comp (a \ b)
theorem Booleanisation.comp_sup_comp E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (a b : α),
Booleanisation.comp a ⊔ Booleanisation.comp b = Booleanisation.comp (a ⊓ b)
theorem Booleanisation.lift_inf_lift E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (a b : α),
Booleanisation.lift a ⊓ Booleanisation.lift b = Booleanisation.lift (a ⊓ b)
theorem Booleanisation.lift_inf_comp E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (a b : α),
Booleanisation.lift a ⊓ Booleanisation.comp b = Booleanisation.lift (a \ b)
theorem Booleanisation.comp_inf_lift E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (a b : α),
Booleanisation.comp a ⊓ Booleanisation.lift b = Booleanisation.lift (b \ a)
theorem Booleanisation.comp_inf_comp E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (a b : α),
Booleanisation.comp a ⊓ Booleanisation.comp b = Booleanisation.comp (a ⊔ b)
theorem Booleanisation.lift_bot E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α], Booleanisation.lift ⊥ = ⊥
theorem Booleanisation.comp_bot E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α], Booleanisation.comp ⊥ = ⊤
theorem Booleanisation.lift_sdiff_lift E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (a b : α),
Booleanisation.lift a \ Booleanisation.lift b = Booleanisation.lift (a \ b)
theorem Booleanisation.lift_sdiff_comp E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (a b : α),
Booleanisation.lift a \ Booleanisation.comp b = Booleanisation.lift (a ⊓ b)
theorem Booleanisation.comp_sdiff_lift E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (a b : α),
Booleanisation.comp a \ Booleanisation.lift b = Booleanisation.comp (a ⊔ b)
theorem Booleanisation.comp_sdiff_comp E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (a b : α),
Booleanisation.comp a \ Booleanisation.comp b = Booleanisation.lift (b \ a)
instance Booleanisation.instPreorder E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → Preorder (Booleanisation α)
instance Booleanisation.instPartialOrder E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → PartialOrder (Booleanisation α)
instance Booleanisation.instSemilatticeSup E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → SemilatticeSup (Booleanisation α)
instance Booleanisation.instSemilatticeInf E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → SemilatticeInf (Booleanisation α)
instance Booleanisation.instDistribLattice E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → DistribLattice (Booleanisation α)
instance Booleanisation.instBoundedOrder E0 #
{α : Type u_1} → [inst : GeneralizedBooleanAlgebra α] → BoundedOrder (Booleanisation α)
instance Booleanisation.instBooleanAlgebra E0 #
{α : Type u_1} → [GeneralizedBooleanAlgebra α] → BooleanAlgebra (Booleanisation α)
def Booleanisation.liftLatticeHom E3 #
{α : Type u_1} → [inst : GeneralizedBooleanAlgebra α] → LatticeHom α (Booleanisation α)
The embedding from a generalised Boolean algebra to its generated Boolean algebra.
theorem Booleanisation.liftLatticeHom_injective E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α], Function.Injective ⇑Booleanisation.liftLatticeHom