Heyting algebras #
This file defines Heyting, co-Heyting and bi-Heyting algebras.
A Heyting algebra is a bounded distributive lattice with an implication operation ⇨
such that
a ≤ b ⇨ c ↔ a ⊓ b ≤ c
. It also comes with a pseudo-complement ᶜ
, such that aᶜ = a ⇨ ⊥
.
Co-Heyting algebras are dual to Heyting algebras. They have a difference \
and a negation ¬
such that a \ b ≤ c ↔ a ≤ b ⊔ c
and ¬a = ⊤ \ a
.
Bi-Heyting algebras are Heyting algebras that are also co-Heyting algebras.
From a logic standpoint, Heyting algebras precisely model intuitionistic logic, whereas boolean algebras model classical logic.
Heyting algebras are the order theoretic equivalent of cartesian-closed categories.
Main declarations #
GeneralizedHeytingAlgebra
: Heyting algebra without a top element (nor negation).GeneralizedCoheytingAlgebra
: Co-Heyting algebra without a bottom element (nor complement).HeytingAlgebra
: Heyting algebra.CoheytingAlgebra
: Co-Heyting algebra.BiheytingAlgebra
: bi-Heyting algebra.
References #
- [Francis Borceux, Handbook of Categorical Algebra III][borceux-vol3]
Tags #
Heyting, Brouwer, algebra, implication, negation, intuitionistic
Notation #
A generalized Heyting algebra is a lattice with an additional binary operation ⇨
called
Heyting implication such that a ⇨
is right adjoint to a ⊓
.
This generalizes HeytingAlgebra
by not requiring a bottom element.
- sup : α → α → α
- le : α → α → Prop
- lt : α → α → Prop
- le_refl : ∀ (a : α), a ≤ a
- inf : α → α → α
- top : α
- himp : α → α → α
a ⇨
is right adjoint toa ⊓
Instances
A generalized co-Heyting algebra is a lattice with an additional binary
difference operation \
such that \ a
is right adjoint to ⊔ a
.
This generalizes CoheytingAlgebra
by not requiring a top element.
- sup : α → α → α
- le : α → α → Prop
- lt : α → α → Prop
- le_refl : ∀ (a : α), a ≤ a
- inf : α → α → α
- bot : α
- sdiff : α → α → α
\ a
is right adjoint to⊔ a
Instances
A Heyting algebra is a bounded lattice with an additional binary operation ⇨
called Heyting
implication such that a ⇨
is right adjoint to a ⊓
.
- sup : α → α → α
- le : α → α → Prop
- lt : α → α → Prop
- le_refl : ∀ (a : α), a ≤ a
- inf : α → α → α
- top : α
- himp : α → α → α
- bot : α
- compl : α → α
a ⇨
is right adjoint toa ⊓
Instances
A co-Heyting algebra is a bounded lattice with an additional binary difference operation \
such that \ a
is right adjoint to ⊔ a
.
- sup : α → α → α
- le : α → α → Prop
- lt : α → α → Prop
- le_refl : ∀ (a : α), a ≤ a
- inf : α → α → α
- bot : α
- sdiff : α → α → α
- top : α
- hnot : α → α
⊤ \ a
is¬a
Instances
Equations
- HeytingAlgebra.toBoundedOrder = BoundedOrder.mk
Equations
- CoheytingAlgebra.toBoundedOrder = let __src := inst; BoundedOrder.mk
Equations
- BiheytingAlgebra.toCoheytingAlgebra = let __src := inst; CoheytingAlgebra.mk ⋯
Construct a Heyting algebra from the lattice structure and Heyting implication alone.
Equations
- HeytingAlgebra.ofHImp himp le_himp_iff = let __src := inst✝; let __src_1 := inst; HeytingAlgebra.mk ⋯
Instances For
Construct a Heyting algebra from the lattice structure and complement operator alone.
Equations
- HeytingAlgebra.ofCompl compl le_himp_iff = HeytingAlgebra.mk ⋯
Instances For
Construct a co-Heyting algebra from the lattice structure and the difference alone.
Equations
- CoheytingAlgebra.ofSDiff sdiff sdiff_le_iff = let __src := inst✝; let __src_1 := inst; CoheytingAlgebra.mk ⋯
Instances For
Construct a co-Heyting algebra from the difference and Heyting negation alone.
Equations
- CoheytingAlgebra.ofHNot hnot sdiff_le_iff = CoheytingAlgebra.mk ⋯
Instances For
The deduction theorem in the Heyting algebra model of intuitionistic logic: an implication holds iff the conclusion follows from the hypothesis.
See himp_le
for a stronger version in Boolean algebras.
Equations
- GeneralizedHeytingAlgebra.toDistribLattice = DistribLattice.ofInfSupLe ⋯
Equations
- instGeneralizedCoheytingAlgebraOrderDual = let __src := OrderDual.instLattice α; let __src_1 := OrderDual.instOrderBot α; GeneralizedCoheytingAlgebra.mk ⋯
Equations
- Prod.instGeneralizedHeytingAlgebra = let __src := Prod.instLattice α β; let __src_1 := Prod.instOrderTop α β; let __src_2 := Prod.instHImp α β; GeneralizedHeytingAlgebra.mk ⋯
Equations
- Pi.instGeneralizedHeytingAlgebra = let __src := Pi.instLattice; let __src_1 := Pi.instOrderTop; GeneralizedHeytingAlgebra.mk ⋯
Alias of sdiff_sup_self
.
Alias of sup_sdiff_self
.
See le_sdiff
for a stronger version in generalised Boolean algebras.
Equations
- GeneralizedCoheytingAlgebra.toDistribLattice = let __src := inst; DistribLattice.mk ⋯
Equations
- instGeneralizedHeytingAlgebraOrderDual = let __src := OrderDual.instLattice α; let __src_1 := OrderDual.instOrderTop α; GeneralizedHeytingAlgebra.mk ⋯
Equations
- Prod.instGeneralizedCoheytingAlgebra = let __src := Prod.instLattice α β; let __src_1 := Prod.instOrderBot α β; let __src_2 := Prod.instSDiff α β; GeneralizedCoheytingAlgebra.mk ⋯
Equations
- Pi.instGeneralizedCoheytingAlgebra = let __src := Pi.instLattice; let __src_1 := Pi.instOrderBot; GeneralizedCoheytingAlgebra.mk ⋯
Alias of the reverse direction of le_compl_iff_disjoint_right
.
Alias of the reverse direction of le_compl_iff_disjoint_left
.
Alias of le_compl_comm
.
Alias of the forward direction of le_compl_comm
.
Equations
- instCoheytingAlgebraOrderDual = let __src := OrderDual.instLattice α; let __src_1 := OrderDual.instBoundedOrder α; CoheytingAlgebra.mk ⋯
Equations
- Prod.instHeytingAlgebra = let __src := Prod.instGeneralizedHeytingAlgebra; let __src_1 := Prod.instBoundedOrder α β; let __src_2 := Prod.instHasCompl α β; HeytingAlgebra.mk ⋯
Equations
- Pi.instHeytingAlgebra = let __src := Pi.instOrderBot; let __src_1 := Pi.instGeneralizedHeytingAlgebra; HeytingAlgebra.mk ⋯
Equations
- CoheytingAlgebra.toDistribLattice = let __src := inst; DistribLattice.mk ⋯
Alias of the reverse direction of hnot_le_iff_codisjoint_right
.
Alias of the reverse direction of hnot_le_iff_codisjoint_left
.
Equations
- instHeytingAlgebraOrderDual = let __src := OrderDual.instLattice α; let __src_1 := OrderDual.instBoundedOrder α; HeytingAlgebra.mk ⋯
Equations
- One or more equations did not get rendered due to their size.
Equations
- Pi.instCoheytingAlgebra = let __src := Pi.instOrderTop; let __src_1 := Pi.instGeneralizedCoheytingAlgebra; CoheytingAlgebra.mk ⋯
Propositions form a Heyting algebra with implication as Heyting implication and negation as complement.
Equations
- Prop.instHeytingAlgebra = let __src := Prop.instDistribLattice; let __src_1 := Prop.instBoundedOrder; HeytingAlgebra.mk Prop.instHeytingAlgebra.proof_2
A bounded linear order is a bi-Heyting algebra by setting
a ⇨ b = ⊤
ifa ≤ b
anda ⇨ b = b
otherwise.a \ b = ⊥
ifa ≤ b
anda \ b = a
otherwise.
Equations
- LinearOrder.toBiheytingAlgebra = let __src := LinearOrder.toLattice; let __src_1 := inst; BiheytingAlgebra.mk ⋯ ⋯
Instances For
Pullback a GeneralizedHeytingAlgebra
along an injection.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Pullback a GeneralizedCoheytingAlgebra
along an injection.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Pullback a HeytingAlgebra
along an injection.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Pullback a CoheytingAlgebra
along an injection.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Pullback a BiheytingAlgebra
along an injection.
Equations
- One or more equations did not get rendered due to their size.