Structures · Order
BooleanAlgebra
A Boolean algebra is a bounded distributive lattice with a complement operator ᶜ such that
x ⊓ xᶜ = ⊥ and x ⊔ xᶜ = ⊤. For convenience, it must also provide a set difference operation \
and a Heyting implication ⇨ satisfying x \ y = x ⊓ yᶜ and x ⇨ y = y ⊔ xᶜ.
This is a generalization of (classical) logic of propositions, or the powerset lattice.
Since BoundedOrder, OrderBot, and OrderTop are mixins that require LE
to be present at define-time, the extends mechanism does not work with them.
Instead, we extend using the underlying Bot and Top data typeclasses, and replicate the
order axioms of those classes here. A "forgetful" instance back to BoundedOrder is provided.
- Defined in
- Mathlib.Order.BooleanAlgebra.Defs
- Shape
- One type argument · adds inf_compl_le_bot, top_le_sup_compl, le_top, bot_le, sdiff_eq, himp_eq
Extends6
Extended by1
Forgetful instances
Every BooleanAlgebra is also a
Concrete types that are instances16
- Bool
- Lat.carrier
- LieIdeal
- TopologicalSpace.Clopens
- BoolAlg.carrier
- TopologicalSpace.CompactOpens
- FirstOrder.Language.DefinableSet
- Heyting.Regular
- Booleanisation
- AsBoolAlg
- Subtype
- Prod
- OrderDual
- PUnit
- Set
- Finset
How is a type an instance?
Loading the hierarchy index…
Assumed by339
- compl_compl
- Finset.compls
- compl_surjective
- compl_injective
- isCompl_compl
- BooleanSubalgebra.map
- sdiff_eq
- compl_inj_iff
- BooleanSubalgebra.comap
- BoolAlg.ofHom
- BooleanSubalgebra.closure
- compl_inf
- compl_involutive
- himp_eq
- OrderIso.compl
- compl_eq_comm
- BooleanSubalgebra.subset_closure
- sdiff_compl
- BooleanSubalgebra.toSublattice
- BooleanSubalgebra.bot_mem
- BooleanSubalgebra.supClosed
- BooleanSubalgebra.infClosed
- BooleanSubalgebra.compl_mem
- BooleanSubalgebra.gc_map_comap
- eq_compl_iff_isCompl
- Finset.compls_compls
- BooleanSubalgebra.sdiff_mem
- BooleanSubalgebra.top_mem
- BooleanSubalgebra.inclusion
- compl_le_compl_iff_le
- disjoint_compl_left_iff
- BoundedLatticeHom.asBoolRing
- BooleanSubalgebra.subtype
- sup_compl_eq_top
- FinBoolAlg.of
- compl_eq_bot
- Set.Intersecting.card_le
- compl_sdiff
- Finset.infs_compls_eq_diffs
- BooleanSubalgebra.sup_mem
- eq_compl_comm
- bihimp_assoc
- Disjoint.le_symmDiff_sup_symmDiff_left
- compl_symmDiff_compl
- compl_sdiff_compl
- compl_eq_top
- OrderIso.asBoolAlgAsBoolRing
- compl_le_of_compl_le
- compl_symmDiff
- Finset.compls_nonempty
Ancestors29
- BiheytingAlgebra
- Bot
- CoheytingAlgebra
- Compl
- DistribLattice
- GeneralizedBooleanAlgebra
- GeneralizedCoheytingAlgebra
- GeneralizedHeytingAlgebra
- GradeBoundedOrder
- GradeMaxOrder
- GradeMinOrder
- GradeOrder
- HImp
- HNot
- HeytingAlgebra
- LE
- LT
- Lattice
- Max
- Min
- Nonempty
- OrderBot
- OrderTop
- PartialOrder
- Preorder
- SDiff
- SemilatticeInf
- SemilatticeSup
- Top