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 / V04. Order and lattices

Mathlib.Order.Heyting.Basic

283 declarations and 1 deprecated aliases. Mathlib docs · Source

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.

Implementation notes

Aligning the Heyting and Coheyting API with to_dual is kind of awkward, because they are unfortunately quite different. One reason is that the arguments of sup/inf are often swapped in the dual version, which is not compatible with to_dual. We work around this with extensive use of to_dual none.

References

  • [Francis Borceux, Handbook of Categorical Algebra III][borceux-vol3]

Tags

Heyting, Brouwer, algebra, implication, negation, intuitionistic

Notation

In this section, we'll give interpretations of these results in the Heyting algebra model of intuitionistic logic,- where ≤ can be interpreted as "validates", ⇨ as "implies", ⊓ as "and", ⊔ as "or", ⊥ as "false" and ⊤ as "true". Note that we confuse → and ⊢ because those are the same in this logic.

See also Prop.heytingAlgebra.

def GeneralizedCoheytingAlgebra.ctorIdx E1 #

{α : Type u_4} → GeneralizedCoheytingAlgebra α → ℕ

def GeneralizedHeytingAlgebra.ctorIdx E1 #

{α : Type u_4} → GeneralizedHeytingAlgebra α → ℕ

def BiheytingAlgebra.ctorIdx E1 #

{α : Type u_4} → BiheytingAlgebra α → ℕ

def HeytingAlgebra.ctorIdx E1 #

{α : Type u_4} → HeytingAlgebra α → ℕ

def CoheytingAlgebra.ctorIdx E1 #

{α : Type u_4} → CoheytingAlgebra α → ℕ

instance Prod.instSDiff E0 #

{α : Type u_2} → {β : Type u_3} → [SDiff α] → [SDiff β] → SDiff (α × β)

instance Prod.instHImp E0 #

{α : Type u_2} → {β : Type u_3} → [HImp α] → [HImp β] → HImp (α × β)

instance Prod.instHNot E0 #

{α : Type u_2} → {β : Type u_3} → [HNot α] → [HNot β] → HNot (α × β)

instance Prod.instCompl E0 #

{α : Type u_2} → {β : Type u_3} → [Compl α] → [Compl β] → Compl (α × β)

theorem fst_himp E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : HImp α] [inst_1 : HImp β] (a b : α × β), (a ⇨ b).1 = a.1 ⇨ b.1

theorem fst_sdiff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SDiff α] [inst_1 : SDiff β] (a b : α × β), (b \ a).1 = b.1 \ a.1

theorem snd_himp E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : HImp α] [inst_1 : HImp β] (a b : α × β), (a ⇨ b).2 = a.2 ⇨ b.2

theorem snd_sdiff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : SDiff α] [inst_1 : SDiff β] (a b : α × β), (b \ a).2 = b.2 \ a.2

theorem fst_compl E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Compl α] [inst_1 : Compl β] (a : α × β), aᶜ.1 = a.1ᶜ

theorem fst_hnot E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : HNot α] [inst_1 : HNot β] (a : α × β), (¬a).1 = ¬a.1

theorem snd_compl E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Compl α] [inst_1 : Compl β] (a : α × β), aᶜ.2 = a.2ᶜ

theorem snd_hnot E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : HNot α] [inst_1 : HNot β] (a : α × β), (¬a).2 = ¬a.2

class GeneralizedHeytingAlgebra E3 #

Type u_4 → Type u_4

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.

ctor GeneralizedHeytingAlgebra.mk E0 #

{α : Type u_4} →
  [toLattice : Lattice α] →
    [toOrderTop : OrderTop α] → [toHImp : HImp α] → (∀ (a b c : α), a ≤ b ⇨ c ↔ a ⊓ b ≤ c) → GeneralizedHeytingAlgebra α

instance GeneralizedHeytingAlgebra.toHImp E0 #

{α : Type u_4} → [self : GeneralizedHeytingAlgebra α] → HImp α

instance GeneralizedHeytingAlgebra.toOrderTop E0 #

{α : Type u_4} → [self : GeneralizedHeytingAlgebra α] → OrderTop α

instance GeneralizedHeytingAlgebra.toLattice E0 #

{α : Type u_4} → [self : GeneralizedHeytingAlgebra α] → Lattice α

theorem GeneralizedHeytingAlgebra.le_himp_iff E0 #

∀ {α : Type u_4} [self : GeneralizedHeytingAlgebra α] (a b c : α), a ≤ b ⇨ c ↔ a ⊓ b ≤ c

(a ⇨ ·) is right adjoint to (a ⊓ ·)

class GeneralizedCoheytingAlgebra E3 #

Type u_4 → Type u_4

A generalized co-Heyting algebra is a lattice with an additional binary difference operation \ such that (· \ a) is left adjoint to (· ⊔ a).

This generalizes CoheytingAlgebra by not requiring a top element.

instance GeneralizedCoheytingAlgebra.toOrderBot E0 #

{α : Type u_4} → [self : GeneralizedCoheytingAlgebra α] → OrderBot α

instance GeneralizedCoheytingAlgebra.toLattice E0 #

{α : Type u_4} → [self : GeneralizedCoheytingAlgebra α] → Lattice α

ctor GeneralizedCoheytingAlgebra.mk E0 #

{α : Type u_4} →
  [toLattice : Lattice α] →
    [toOrderBot : OrderBot α] →
      [toSDiff : SDiff α] → (∀ (a b c : α), a \ b ≤ c ↔ a ≤ b ⊔ c) → GeneralizedCoheytingAlgebra α

instance GeneralizedCoheytingAlgebra.toSDiff E0 #

{α : Type u_4} → [self : GeneralizedCoheytingAlgebra α] → SDiff α

theorem GeneralizedCoheytingAlgebra.sdiff_le_iff E0 #

∀ {α : Type u_4} [self : GeneralizedCoheytingAlgebra α] (a b c : α), a \ b ≤ c ↔ a ≤ b ⊔ c

(· \ a) is left adjoint to (· ⊔ a)

class HeytingAlgebra E3 #

Type u_4 → Type u_4

A Heyting algebra is a bounded lattice with an additional binary operation ⇨ called Heyting implication such that (a ⇨ ·) is right adjoint to (a ⊓ ·).

ctor HeytingAlgebra.mk E0 #

{α : Type u_4} →
  [toGeneralizedHeytingAlgebra : GeneralizedHeytingAlgebra α] →
    [toOrderBot : OrderBot α] → [toCompl : Compl α] → (∀ (a : α), a ⇨ ⊥ = aᶜ) → HeytingAlgebra α

instance HeytingAlgebra.toGeneralizedHeytingAlgebra E0 #

{α : Type u_4} → [self : HeytingAlgebra α] → GeneralizedHeytingAlgebra α

instance HeytingAlgebra.toOrderBot E0 #

{α : Type u_4} → [self : HeytingAlgebra α] → OrderBot α

instance HeytingAlgebra.toCompl E0 #

{α : Type u_4} → [self : HeytingAlgebra α] → Compl α

theorem HeytingAlgebra.himp_bot E1 #

∀ {α : Type u_4} [self : HeytingAlgebra α] (a : α), a ⇨ ⊥ = aᶜ

aᶜ is defined as a ⇨ ⊥

class CoheytingAlgebra E3 #

Type u_4 → Type u_4

A co-Heyting algebra is a bounded lattice with an additional binary difference operation \ such that (· \ a) is left adjoint to (· ⊔ a).

instance CoheytingAlgebra.toHNot E0 #

{α : Type u_4} → [self : CoheytingAlgebra α] → HNot α

instance CoheytingAlgebra.toOrderTop E0 #

{α : Type u_4} → [self : CoheytingAlgebra α] → OrderTop α

instance CoheytingAlgebra.toGeneralizedCoheytingAlgebra E0 #

{α : Type u_4} → [self : CoheytingAlgebra α] → GeneralizedCoheytingAlgebra α

ctor CoheytingAlgebra.mk E0 #

{α : Type u_4} →
  [toGeneralizedCoheytingAlgebra : GeneralizedCoheytingAlgebra α] →
    [toOrderTop : OrderTop α] → [toHNot : HNot α] → (∀ (a : α), ⊤ \ a = ¬a) → CoheytingAlgebra α

theorem CoheytingAlgebra.top_sdiff E1 #

∀ {α : Type u_4} [self : CoheytingAlgebra α] (a : α), ⊤ \ a = ¬a

⊤ \ a is ¬a

class BiheytingAlgebra E3 #

Type u_4 → Type u_4

A bi-Heyting algebra is a Heyting algebra that is also a co-Heyting algebra.

abbrev BiheytingAlgebra.toSDiff E1 #

{α : Type u_4} → [self : BiheytingAlgebra α] → SDiff α

instance BiheytingAlgebra.toHeytingAlgebra E0 #

{α : Type u_4} → [self : BiheytingAlgebra α] → HeytingAlgebra α

instance BiheytingAlgebra.toCoheytingAlgebra E0 #

{α : Type u_4} → [self : BiheytingAlgebra α] → CoheytingAlgebra α

ctor BiheytingAlgebra.mk E0 #

{α : Type u_4} →
  [toHeytingAlgebra : HeytingAlgebra α] →
    [toSDiff : SDiff α] →
      (∀ (a b c : α), a \ b ≤ c ↔ a ≤ b ⊔ c) → [toHNot : HNot α] → (∀ (a : α), ⊤ \ a = ¬a) → BiheytingAlgebra α

theorem BiheytingAlgebra.top_sdiff E2 #

∀ {α : Type u_4} [self : BiheytingAlgebra α] (a : α), ⊤ \ a = ¬a

⊤ \ a is ¬a

abbrev BiheytingAlgebra.toHNot E1 #

{α : Type u_4} → [self : BiheytingAlgebra α] → HNot α

theorem BiheytingAlgebra.sdiff_le_iff E0 #

∀ {α : Type u_4} [self : BiheytingAlgebra α] (a b c : α), a \ b ≤ c ↔ a ≤ b ⊔ c

(· \ a) is left adjoint to (· ⊔ a)

instance CoheytingAlgebra.toBoundedOrder E0 #

{α : Type u_2} → [inst : CoheytingAlgebra α] → BoundedOrder α

instance HeytingAlgebra.toBoundedOrder E0 #

{α : Type u_2} → [inst : HeytingAlgebra α] → BoundedOrder α

abbrev HeytingAlgebra.ofHImp E1 #

{α : Type u_2} →
  [inst : DistribLattice α] →
    [BoundedOrder α] → (himp : α → α → α) → (∀ (a b c : α), a ≤ himp b c ↔ a ⊓ b ≤ c) → HeytingAlgebra α

Construct a Heyting algebra from the lattice structure and Heyting implication alone.

abbrev HeytingAlgebra.ofCompl E1 #

{α : Type u_2} →
  [inst : DistribLattice α] →
    [BoundedOrder α] → (compl : α → α) → (∀ (a b c : α), a ≤ compl b ⊔ c ↔ a ⊓ b ≤ c) → HeytingAlgebra α

Construct a Heyting algebra from the lattice structure and complement operator alone.

abbrev CoheytingAlgebra.ofSDiff E1 #

{α : Type u_2} →
  [inst : DistribLattice α] →
    [BoundedOrder α] → (sdiff : α → α → α) → (∀ (a b c : α), sdiff a b ≤ c ↔ a ≤ b ⊔ c) → CoheytingAlgebra α

Construct a co-Heyting algebra from the lattice structure and the difference alone.

abbrev CoheytingAlgebra.ofHNot E1 #

{α : Type u_2} →
  [inst : DistribLattice α] →
    [BoundedOrder α] → (hnot : α → α) → (∀ (a b c : α), a ⊓ hnot b ≤ c ↔ a ≤ b ⊔ c) → CoheytingAlgebra α

Construct a co-Heyting algebra from the difference and Heyting negation alone.

theorem sdiff_le_iff E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, a \ b ≤ c ↔ a ≤ b ⊔ c

theorem sdiff_le_iff' E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, a \ b ≤ c ↔ a ≤ c ⊔ b

theorem le_himp_iff E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b c : α}, a ≤ b ⇨ c ↔ a ⊓ b ≤ c

p → q → r ↔ p ∧ q → r

theorem le_himp_iff' E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b c : α}, a ≤ b ⇨ c ↔ b ⊓ a ≤ c

p → q → r ↔ q ∧ p → r

theorem le_himp_comm E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b c : α}, a ≤ b ⇨ c ↔ b ≤ a ⇨ c

p → q → r ↔ q → p → r

theorem sdiff_le_comm E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, c \ b ≤ a ↔ c \ a ≤ b

theorem le_himp E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, a ≤ b ⇨ a

p → q → p

theorem sdiff_le E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, a \ b ≤ a

theorem le_himp_iff_left E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, a ≤ a ⇨ b ↔ a ≤ b

p → p → q ↔ p → q

theorem sdiff_le_iff_left E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, b \ a ≤ a ↔ b ≤ a

theorem himp_self E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a : α}, a ⇨ a = ⊤

p → p

theorem sdiff_self E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a : α}, a \ a = ⊥

theorem himp_inf_le E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, (a ⇨ b) ⊓ a ≤ b

(p → q) ∧ p → q

theorem le_sdiff_sup E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, b ≤ b \ a ⊔ a

theorem inf_himp_le E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, a ⊓ (a ⇨ b) ≤ b

p ∧ (p → q) → q

theorem le_sup_sdiff E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, b ≤ a ⊔ b \ a

theorem inf_himp_self E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] (a b : α), a ⊓ (a ⇨ b) = a ⊓ b

p ∧ (p → q) ↔ p ∧ q

theorem sup_sdiff_self E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] (a b : α), a ⊔ b \ a = a ⊔ b

theorem himp_inf_self E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] (a b : α), (a ⇨ b) ⊓ a = b ⊓ a

(p → q) ∧ p ↔ q ∧ p

theorem sdiff_sup_self E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] (a b : α), b \ a ⊔ a = b ⊔ a

theorem himp_eq_top_iff E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, a ⇨ b = ⊤ ↔ a ≤ b

The deduction theorem in the Heyting algebra model of intuitionistic logic: an implication holds iff the conclusion follows from the hypothesis.

theorem sdiff_eq_bot_iff E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, b \ a = ⊥ ↔ b ≤ a

theorem himp_top E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a : α}, a ⇨ ⊤ = ⊤

p → true

theorem bot_sdiff E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a : α}, ⊥ \ a = ⊥

theorem top_himp E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a : α}, ⊤ ⇨ a = a

true → p ↔ p

theorem sdiff_bot E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a : α}, a \ ⊥ = a

theorem himp_himp E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] (a b c : α), a ⇨ b ⇨ c = a ⊓ b ⇨ c

p → q → r ↔ p ∧ q → r

theorem himp_le_himp_himp_himp E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b c : α}, b ⇨ c ≤ (a ⇨ b) ⇨ a ⇨ c

(q → r) → (p → q) → q → r

theorem himp_inf_himp_inf_le E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b c : α}, (b ⇨ c) ⊓ (a ⇨ b) ⊓ a ≤ c

theorem himp_left_comm E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] (a b c : α), a ⇨ b ⇨ c = b ⇨ a ⇨ c

p → q → r ↔ q → p → r

theorem sdiff_right_comm E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] (c b a : α), (c \ b) \ a = (c \ a) \ b

theorem sdiff_idem E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, (a \ b) \ b = a \ b

theorem himp_idem E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, b ⇨ b ⇨ a = b ⇨ a

theorem himp_inf_distrib E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] (a b c : α), a ⇨ b ⊓ c = (a ⇨ b) ⊓ (a ⇨ c)

theorem sup_sdiff_distrib E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] (b c a : α), (b ⊔ c) \ a = b \ a ⊔ c \ a

theorem sdiff_inf_distrib E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] (b c a : α), c \ (a ⊓ b) = c \ a ⊔ c \ b

theorem sup_himp_distrib E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] (a b c : α), a ⊔ b ⇨ c = (a ⇨ c) ⊓ (b ⇨ c)

theorem sdiff_le_sdiff_right E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, b ≤ a → b \ c ≤ a \ c

theorem himp_le_himp_left E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b c : α}, a ≤ b → c ⇨ a ≤ c ⇨ b

theorem himp_le_himp_right E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b c : α}, a ≤ b → b ⇨ c ≤ a ⇨ c

theorem sdiff_le_sdiff_left E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, b ≤ a → c \ a ≤ c \ b

theorem sdiff_le_sdiff E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c d : α}, d ≤ c → b ≤ a → d \ a ≤ c \ b

theorem himp_le_himp E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b c d : α}, a ≤ b → c ≤ d → b ⇨ c ≤ a ⇨ d

theorem sdiff_inf_self_left E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] (a b : α), a \ (a ⊓ b) = a \ b

theorem sup_himp_self_left E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] (a b : α), a ⊔ b ⇨ a = b ⇨ a

theorem sup_himp_self_right E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] (a b : α), a ⊔ b ⇨ b = a ⇨ b

theorem sdiff_inf_self_right E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] (a b : α), b \ (a ⊓ b) = b \ a

theorem Codisjoint.himp_eq_right E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, Codisjoint a b → b ⇨ a = a

theorem Disjoint.sdiff_eq_left E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, Disjoint a b → a \ b = a

theorem Disjoint.sdiff_eq_right E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, Disjoint a b → b \ a = b

theorem Codisjoint.himp_eq_left E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, Codisjoint a b → a ⇨ b = b

theorem Disjoint.sup_sdiff_cancel_left E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, Disjoint a b → (a ⊔ b) \ a = b

theorem Codisjoint.himp_inf_cancel_left E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, Codisjoint a b → a ⇨ a ⊓ b = b

theorem Codisjoint.himp_inf_cancel_right E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, Codisjoint a b → b ⇨ a ⊓ b = a

theorem Disjoint.sup_sdiff_cancel_right E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, Disjoint a b → (a ⊔ b) \ b = a

theorem Codisjoint.himp_le_of_right_le E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b c : α}, Codisjoint a c → b ≤ a → c ⇨ b ≤ a

See himp_le for a stronger version in Boolean algebras.

theorem Disjoint.le_sdiff_of_le_left E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, Disjoint a c → a ≤ b → a ≤ b \ c

See le_sdiff for a stronger version in generalised Boolean algebras.

theorem le_himp_himp E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, a ≤ (a ⇨ b) ⇨ b

theorem sdiff_sdiff_le E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, b \ (b \ a) ≤ a

theorem sdiff_eq_sdiff_iff E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, a \ b = b \ a ↔ a = b

theorem himp_eq_himp_iff E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, b ⇨ a = a ⇨ b ↔ a = b

theorem sdiff_ne_sdiff_iff E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, a \ b ≠ b \ a ↔ a ≠ b

theorem himp_ne_himp_iff E0 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b : α}, b ⇨ a ≠ a ⇨ b ↔ a ≠ b

theorem himp_triangle E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] (a b c : α), (a ⇨ b) ⊓ (b ⇨ c) ≤ a ⇨ c

theorem himp_inf_himp_cancel E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a b c : α}, b ≤ a → c ≤ b → (a ⇨ b) ⊓ (b ⇨ c) = a ⇨ c

theorem gc_sdiff_sup E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a : α}, GaloisConnection (fun x ↦ x \ a) fun x ↦ a ⊔ x

theorem gc_inf_himp E1 #

∀ {α : Type u_2} [inst : GeneralizedHeytingAlgebra α] {a : α}, GaloisConnection (fun x ↦ a ⊓ x) fun x ↦ a ⇨ x

instance GeneralizedHeytingAlgebra.toDistribLattice E0 #

{α : Type u_2} → [GeneralizedHeytingAlgebra α] → DistribLattice α

instance OrderDual.instGeneralizedCoheytingAlgebra E0 #

{α : Type u_2} → [GeneralizedHeytingAlgebra α] → GeneralizedCoheytingAlgebra αᵒᵈ

instance Prod.instGeneralizedHeytingAlgebra E0 #

{α : Type u_2} →
  {β : Type u_3} → [GeneralizedHeytingAlgebra α] → [GeneralizedHeytingAlgebra β] → GeneralizedHeytingAlgebra (α × β)

instance Pi.instGeneralizedHeytingAlgebra E0 #

{ι : Type u_1} →
  {α : ι → Type u_4} → [(i : ι) → GeneralizedHeytingAlgebra (α i)] → GeneralizedHeytingAlgebra ((i : ι) → α i)

theorem Disjoint.disjoint_sdiff_left E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, Disjoint a b → Disjoint (a \ c) b

theorem Disjoint.disjoint_sdiff_right E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, Disjoint a b → Disjoint a (b \ c)

theorem sup_sdiff_left E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, a ⊔ a \ b = a

theorem sup_sdiff_right E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, a \ b ⊔ a = a

theorem inf_sdiff_left E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, a \ b ⊓ a = a \ b

theorem inf_sdiff_right E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, a ⊓ a \ b = a \ b

theorem sup_sdiff_self_left E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] (a b : α), b \ a ⊔ a = b ⊔ a

Alias of sdiff_sup_self.

theorem sup_sdiff_self_right E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] (a b : α), a ⊔ b \ a = a ⊔ b

Alias of sup_sdiff_self.

theorem sup_sdiff_eq_sup E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, c ≤ a → a ⊔ b \ c = a ⊔ b

theorem sup_sdiff_cancel' E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, a ≤ b → b ≤ c → b ⊔ c \ a = c

theorem sup_sdiff_cancel_right E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, a ≤ b → a ⊔ b \ a = b

theorem sdiff_sup_cancel E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, b ≤ a → a \ b ⊔ b = a

theorem sdiff_left_inj E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, c ≤ a → c ≤ b → (a \ c = b \ c ↔ a = b)

theorem sup_le_of_le_sdiff_left E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, b ≤ c \ a → a ≤ c → a ⊔ b ≤ c

theorem sup_le_of_le_sdiff_right E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, a ≤ c \ b → b ≤ c → a ⊔ b ≤ c

theorem sdiff_sdiff_sdiff_le_sdiff E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, (a \ b) \ (a \ c) ≤ c \ b

theorem le_sup_sdiff_sup_sdiff E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, a ≤ b ⊔ (a \ c ⊔ c \ b)

theorem sdiff_sdiff E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] (a b c : α), (a \ b) \ c = a \ (b ⊔ c)

theorem sdiff_sdiff_left E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, (a \ b) \ c = a \ (b ⊔ c)

theorem sdiff_sdiff_comm E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, (a \ b) \ c = (a \ c) \ b

theorem sdiff_sdiff_self E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, (a \ b) \ a = ⊥

theorem sup_sdiff E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, (a ⊔ b) \ c = a \ c ⊔ b \ c

theorem sup_sdiff_right_self E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, (a ⊔ b) \ b = a \ b

theorem sup_sdiff_left_self E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b : α}, (a ⊔ b) \ a = b \ a

theorem sdiff_inf E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, a \ (b ⊓ c) = a \ b ⊔ a \ c

theorem sdiff_triangle E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] (a b c : α), a \ c ≤ a \ b ⊔ b \ c

theorem sdiff_sup_sdiff_cancel E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, b ≤ a → c ≤ b → a \ b ⊔ b \ c = a \ c

theorem sdiff_sup_sdiff_cancel' E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, a ⊓ c ≤ b → b ≤ a ⊔ c → a \ b ⊔ b \ c = a \ c

a version of sdiff_sup_sdiff_cancel with more general hypotheses.

theorem sdiff_le_sdiff_of_sup_le_sup_left E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, c ⊔ a ≤ c ⊔ b → a \ c ≤ b \ c

theorem sdiff_le_sdiff_of_sup_le_sup_right E1 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, a ⊔ c ≤ b ⊔ c → a \ c ≤ b \ c

theorem inf_sdiff_sup_left E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, a \ c ⊓ (a ⊔ b) = a \ c

theorem inf_sdiff_sup_right E0 #

∀ {α : Type u_2} [inst : GeneralizedCoheytingAlgebra α] {a b c : α}, a \ c ⊓ (b ⊔ a) = a \ c

instance GeneralizedCoheytingAlgebra.toDistribLattice E0 #

{α : Type u_2} → [GeneralizedCoheytingAlgebra α] → DistribLattice α

instance OrderDual.instGeneralizedHeytingAlgebra E0 #

{α : Type u_2} → [GeneralizedCoheytingAlgebra α] → GeneralizedHeytingAlgebra αᵒᵈ

instance Prod.instGeneralizedCoheytingAlgebra E0 #

{α : Type u_2} →
  {β : Type u_3} →
    [GeneralizedCoheytingAlgebra α] → [GeneralizedCoheytingAlgebra β] → GeneralizedCoheytingAlgebra (α × β)

instance Pi.instGeneralizedCoheytingAlgebra E0 #

{ι : Type u_1} →
  {α : ι → Type u_4} → [(i : ι) → GeneralizedCoheytingAlgebra (α i)] → GeneralizedCoheytingAlgebra ((i : ι) → α i)

theorem himp_bot E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a : α), a ⇨ ⊥ = aᶜ

theorem top_sdiff' E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a : α), ⊤ \ a = ¬a

theorem bot_himp E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a : α), ⊥ ⇨ a = ⊤

theorem sdiff_top E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a : α), a \ ⊤ = ⊥

theorem hnot_inf_distrib E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a b : α), ¬(a ⊓ b) = ¬a ⊔ ¬b

theorem compl_sup_distrib E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a b : α), (a ⊔ b)ᶜ = aᶜ ⊓ bᶜ

theorem compl_sup E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, (a ⊔ b)ᶜ = aᶜ ⊓ bᶜ

theorem hnot_inf E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, ¬(a ⊓ b) = ¬a ⊔ ¬b

theorem sdiff_le_hnot E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, b \ a ≤ ¬a

theorem compl_le_himp E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, aᶜ ≤ a ⇨ b

theorem compl_sup_le_himp E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, aᶜ ⊔ b ≤ a ⇨ b

theorem sup_compl_le_himp E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, b ⊔ aᶜ ≤ a ⇨ b

theorem sdiff_le_inf_hnot E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, b \ a ≤ b ⊓ ¬a

theorem himp_compl E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a : α), a ⇨ aᶜ = aᶜ

theorem hnot_sdiff E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a : α), ¬a \ a = ¬a

theorem hnot_sdiff_comm E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (b a : α), ¬b \ a = ¬a \ b

theorem himp_compl_comm E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a b : α), a ⇨ bᶜ = b ⇨ aᶜ

theorem hnot_le_iff_codisjoint_left E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, ¬b ≤ a ↔ Codisjoint a b

theorem le_compl_iff_disjoint_right E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, a ≤ bᶜ ↔ Disjoint a b

theorem le_compl_iff_disjoint_left E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, a ≤ bᶜ ↔ Disjoint b a

theorem hnot_le_iff_codisjoint_right E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, ¬b ≤ a ↔ Codisjoint b a

theorem le_compl_comm E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, a ≤ bᶜ ↔ b ≤ aᶜ

theorem hnot_le_comm E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, ¬b ≤ a ↔ ¬a ≤ b

theorem Codisjoint.hnot_le_left E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, Codisjoint a b → ¬b ≤ a

Alias of the reverse direction of hnot_le_iff_codisjoint_left.

theorem Disjoint.le_compl_right E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, Disjoint a b → a ≤ bᶜ

Alias of the reverse direction of le_compl_iff_disjoint_right.

theorem Codisjoint.hnot_le_right E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, Codisjoint b a → ¬b ≤ a

Alias of the reverse direction of hnot_le_iff_codisjoint_right.

theorem Disjoint.le_compl_left E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, Disjoint b a → a ≤ bᶜ

Alias of the reverse direction of le_compl_iff_disjoint_left.

theorem hnot_le_iff_hnot_le E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, ¬b ≤ a ↔ ¬a ≤ b

Alias of hnot_le_comm.

theorem le_compl_iff_le_compl E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, a ≤ bᶜ ↔ b ≤ aᶜ

Alias of le_compl_comm.

theorem le_compl_of_le_compl E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, a ≤ bᶜ → b ≤ aᶜ

Alias of the forward direction of le_compl_comm.

theorem hnot_le_of_hnot_le E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, ¬b ≤ a → ¬a ≤ b

Alias of the forward direction of hnot_le_comm.

theorem disjoint_compl_left E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a : α}, Disjoint aᶜ a

theorem codisjoint_hnot_left E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a : α}, Codisjoint (¬a) a

theorem codisjoint_hnot_right E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a : α}, Codisjoint a (¬a)

theorem disjoint_compl_right E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a : α}, Disjoint a aᶜ

theorem LE.le.codisjoint_hnot_left E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, a ≤ b → Codisjoint (¬a) b

theorem LE.le.disjoint_compl_left E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, b ≤ a → Disjoint aᶜ b

theorem LE.le.codisjoint_hnot_right E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, b ≤ a → Codisjoint a (¬b)

theorem LE.le.disjoint_compl_right E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, a ≤ b → Disjoint a bᶜ

theorem IsCompl.compl_eq E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, IsCompl a b → aᶜ = b

theorem IsCompl.hnot_eq E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, IsCompl a b → ¬a = b

theorem compl_unique E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, a ⊓ b = ⊥ → a ⊔ b = ⊤ → aᶜ = b

theorem sup_hnot_self E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a : α), a ⊔ ¬a = ⊤

theorem inf_compl_self E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a : α), a ⊓ aᶜ = ⊥

theorem compl_inf_self E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a : α), aᶜ ⊓ a = ⊥

theorem hnot_sup_self E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a : α), ¬a ⊔ a = ⊤

theorem inf_compl_eq_bot E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a : α}, a ⊓ aᶜ = ⊥

theorem sup_hnot_eq_top E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a : α}, a ⊔ ¬a = ⊤

theorem hnot_sup_eq_top E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a : α}, ¬a ⊔ a = ⊤

theorem compl_inf_eq_bot E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a : α}, aᶜ ⊓ a = ⊥

theorem hnot_bot E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α], ¬⊥ = ⊤

theorem compl_top E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α], ⊤ᶜ = ⊥

theorem hnot_top E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α], ¬⊤ = ⊥

theorem compl_bot E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α], ⊥ᶜ = ⊤

theorem le_compl_self E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a : α}, a ≤ aᶜ ↔ a = ⊥

theorem le_hnot_self E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a : α}, ¬a ≤ a ↔ a = ⊤

theorem ne_hnot_self E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a : α} [Nontrivial α], a ≠ ¬a

theorem ne_compl_self E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a : α} [Nontrivial α], a ≠ aᶜ

theorem hnot_ne_self E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a : α} [Nontrivial α], ¬a ≠ a

theorem compl_ne_self E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a : α} [Nontrivial α], aᶜ ≠ a

theorem lt_compl_self E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a : α} [Nontrivial α], a < aᶜ ↔ a = ⊥

theorem lt_hnot_self E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a : α} [Nontrivial α], ¬a < a ↔ a = ⊤

theorem hnot_hnot_le E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a : α}, ¬¬a ≤ a

theorem le_compl_compl E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a : α}, a ≤ aᶜᶜ

theorem compl_anti E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α], Antitone compl

theorem hnot_anti E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α], Antitone hnot

theorem compl_le_compl E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, a ≤ b → bᶜ ≤ aᶜ

theorem hnot_le_hnot E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, b ≤ a → ¬a ≤ ¬b

theorem compl_compl_compl E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a : α), aᶜᶜᶜ = aᶜ

theorem hnot_hnot_hnot E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a : α), ¬¬¬a = ¬a

theorem disjoint_compl_compl_left_iff E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, Disjoint aᶜᶜ b ↔ Disjoint a b

theorem codisjoint_hnot_hnot_left_iff E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, Codisjoint (¬¬a) b ↔ Codisjoint a b

theorem disjoint_compl_compl_right_iff E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, Disjoint a bᶜᶜ ↔ Disjoint a b

theorem codisjoint_hnot_hnot_right_iff E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, Codisjoint a (¬¬b) ↔ Codisjoint a b

theorem le_hnot_inf_hnot E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] {a b : α}, ¬(a ⊔ b) ≤ ¬a ⊓ ¬b

theorem compl_sup_compl_le E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] {a b : α}, aᶜ ⊔ bᶜ ≤ (a ⊓ b)ᶜ

theorem compl_compl_inf_distrib E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a b : α), (a ⊓ b)ᶜᶜ = aᶜᶜ ⊓ bᶜᶜ

theorem hnot_hnot_sup_distrib E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a b : α), ¬¬(a ⊔ b) = ¬¬a ⊔ ¬¬b

theorem compl_compl_himp_distrib E1 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a b : α), (a ⇨ b)ᶜᶜ = aᶜᶜ ⇨ bᶜᶜ

theorem hnot_hnot_sdiff_distrib E1 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a b : α), ¬¬(b \ a) = ¬¬b \ ¬¬a

instance OrderDual.instCoheytingAlgebra E0 #

{α : Type u_2} → [HeytingAlgebra α] → CoheytingAlgebra αᵒᵈ

instance OrderDual.instHeytingAlgebra E0 #

{α : Type u_2} → [CoheytingAlgebra α] → HeytingAlgebra αᵒᵈ

theorem ofDual_hnot E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a : αᵒᵈ), OrderDual.ofDual (¬a) = (OrderDual.ofDual a)ᶜ

theorem ofDual_compl E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a : αᵒᵈ), OrderDual.ofDual aᶜ = ¬OrderDual.ofDual a

theorem ofDual_himp E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a b : αᵒᵈ),
  OrderDual.ofDual (b ⇨ a) = OrderDual.ofDual a \ OrderDual.ofDual b

theorem ofDual_sdiff E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a b : αᵒᵈ),
  OrderDual.ofDual (a \ b) = OrderDual.ofDual b ⇨ OrderDual.ofDual a

theorem toDual_compl E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a : α), OrderDual.toDual aᶜ = ¬OrderDual.toDual a

theorem toDual_hnot E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a : α), OrderDual.toDual (¬a) = (OrderDual.toDual a)ᶜ

theorem toDual_sdiff E0 #

∀ {α : Type u_2} [inst : CoheytingAlgebra α] (a b : α),
  OrderDual.toDual (b \ a) = OrderDual.toDual a ⇨ OrderDual.toDual b

theorem toDual_himp E0 #

∀ {α : Type u_2} [inst : HeytingAlgebra α] (a b : α), OrderDual.toDual (a ⇨ b) = OrderDual.toDual b \ OrderDual.toDual a

instance Prod.instHeytingAlgebra E0 #

{α : Type u_2} → {β : Type u_3} → [HeytingAlgebra α] → [HeytingAlgebra β] → HeytingAlgebra (α × β)

instance Pi.instHeytingAlgebra E0 #

{ι : Type u_1} → {α : ι → Type u_4} → [(i : ι) → HeytingAlgebra (α i)] → HeytingAlgebra ((i : ι) → α i)

instance Prod.instCoheytingAlgebra E0 #

{α : Type u_2} → {β : Type u_3} → [CoheytingAlgebra α] → [CoheytingAlgebra β] → CoheytingAlgebra (α × β)

instance Pi.instCoheytingAlgebra E0 #

{ι : Type u_1} → {α : ι → Type u_4} → [(i : ι) → CoheytingAlgebra (α i)] → CoheytingAlgebra ((i : ι) → α i)

theorem compl_le_hnot E1 #

∀ {α : Type u_2} [inst : BiheytingAlgebra α] {a : α}, aᶜ ≤ ¬a

instance Prop.instHeytingAlgebra E0 #

HeytingAlgebra Prop

Propositions form a Heyting algebra with implication as Heyting implication and negation as complement.

theorem himp_iff_imp E0 #

∀ (p q : Prop), p ⇨ q ↔ p → q

theorem compl_iff_not E0 #

∀ (p : Prop), pᶜ ↔ ¬p

abbrev LinearOrder.toBiheytingAlgebra E1 #

(α : Type u_2) → [inst : LinearOrder α] → [BoundedOrder α] → BiheytingAlgebra α

A bounded linear order is a bi-Heyting algebra by setting

  • a ⇨ b = ⊤ if a ≤ b and a ⇨ b = b otherwise.
  • a \ b = ⊥ if a ≤ b and a \ b = a otherwise.

instance OrderDual.instBiheytingAlgebra E0 #

{α : Type u_2} → [BiheytingAlgebra α] → BiheytingAlgebra αᵒᵈ

instance Prod.instBiheytingAlgebra E0 #

{α : Type u_2} → {β : Type u_3} → [BiheytingAlgebra α] → [BiheytingAlgebra β] → BiheytingAlgebra (α × β)

instance Pi.instBiheytingAlgebra E0 #

{ι : Type u_1} → {α : ι → Type u_4} → [(i : ι) → BiheytingAlgebra (α i)] → BiheytingAlgebra ((i : ι) → α i)

abbrev Function.Injective.generalizedHeytingAlgebra E1 #

{α : Type u_2} →
  {β : Type u_3} →
    [inst : Max α] →
      [inst_1 : Min α] →
        [inst_2 : LE α] →
          [inst_3 : LT α] →
            [inst_4 : Top α] →
              [inst_5 : HImp α] →
                [inst_6 : GeneralizedHeytingAlgebra β] →
                  (f : α → β) →
                    Function.Injective f →
                      (∀ {x y : α}, f x ≤ f y ↔ x ≤ y) →
                        (∀ {x y : α}, f x < f y ↔ x < y) →
                          (∀ (a b : α), f (a ⊔ b) = f a ⊔ f b) →
                            (∀ (a b : α), f (a ⊓ b) = f a ⊓ f b) →
                              f ⊤ = ⊤ → (∀ (a b : α), f (a ⇨ b) = f a ⇨ f b) → GeneralizedHeytingAlgebra α

Pullback a GeneralizedHeytingAlgebra along an injection.

abbrev Function.Injective.generalizedCoheytingAlgebra E1 #

{α : Type u_2} →
  {β : Type u_3} →
    [inst : Max α] →
      [inst_1 : Min α] →
        [inst_2 : LE α] →
          [inst_3 : LT α] →
            [inst_4 : Bot α] →
              [inst_5 : SDiff α] →
                [inst_6 : GeneralizedCoheytingAlgebra β] →
                  (f : α → β) →
                    Function.Injective f →
                      (∀ {x y : α}, f x ≤ f y ↔ x ≤ y) →
                        (∀ {x y : α}, f x < f y ↔ x < y) →
                          (∀ (a b : α), f (a ⊔ b) = f a ⊔ f b) →
                            (∀ (a b : α), f (a ⊓ b) = f a ⊓ f b) →
                              f ⊥ = ⊥ → (∀ (a b : α), f (a \ b) = f a \ f b) → GeneralizedCoheytingAlgebra α

Pullback a GeneralizedCoheytingAlgebra along an injection.

abbrev Function.Injective.heytingAlgebra E1 #

{α : Type u_2} →
  {β : Type u_3} →
    [inst : Max α] →
      [inst_1 : Min α] →
        [inst_2 : LE α] →
          [inst_3 : LT α] →
            [inst_4 : Top α] →
              [inst_5 : Bot α] →
                [inst_6 : Compl α] →
                  [inst_7 : HImp α] →
                    [inst_8 : HeytingAlgebra β] →
                      (f : α → β) →
                        Function.Injective f →
                          (∀ {x y : α}, f x ≤ f y ↔ x ≤ y) →
                            (∀ {x y : α}, f x < f y ↔ x < y) →
                              (∀ (a b : α), f (a ⊔ b) = f a ⊔ f b) →
                                (∀ (a b : α), f (a ⊓ b) = f a ⊓ f b) →
                                  f ⊤ = ⊤ →
                                    f ⊥ = ⊥ →
                                      (∀ (a : α), f aᶜ = (f a)ᶜ) →
                                        (∀ (a b : α), f (a ⇨ b) = f a ⇨ f b) → HeytingAlgebra α

Pullback a HeytingAlgebra along an injection.

abbrev Function.Injective.coheytingAlgebra E1 #

{α : Type u_2} →
  {β : Type u_3} →
    [inst : Min α] →
      [inst_1 : Max α] →
        [inst_2 : LE α] →
          [inst_3 : LT α] →
            [inst_4 : Bot α] →
              [inst_5 : Top α] →
                [inst_6 : HNot α] →
                  [inst_7 : SDiff α] →
                    [inst_8 : CoheytingAlgebra β] →
                      (f : α → β) →
                        Function.Injective f →
                          (∀ {y x : α}, f y ≤ f x ↔ y ≤ x) →
                            (∀ {y x : α}, f y < f x ↔ y < x) →
                              (∀ (a b : α), f (a ⊔ b) = f a ⊔ f b) →
                                (∀ (a b : α), f (a ⊓ b) = f a ⊓ f b) →
                                  f ⊤ = ⊤ →
                                    f ⊥ = ⊥ →
                                      (∀ (a : α), f (¬a) = ¬f a) →
                                        (∀ (b a : α), f (b \ a) = f b \ f a) → CoheytingAlgebra α

Pullback a CoheytingAlgebra along an injection.

abbrev Function.Injective.biheytingAlgebra E1 #

{α : Type u_2} →
  {β : Type u_3} →
    [inst : Max α] →
      [inst_1 : Min α] →
        [inst_2 : LE α] →
          [inst_3 : LT α] →
            [inst_4 : Top α] →
              [inst_5 : Bot α] →
                [inst_6 : Compl α] →
                  [inst_7 : HNot α] →
                    [inst_8 : HImp α] →
                      [inst_9 : SDiff α] →
                        [inst_10 : BiheytingAlgebra β] →
                          (f : α → β) →
                            Function.Injective f →
                              (∀ {x y : α}, f x ≤ f y ↔ x ≤ y) →
                                (∀ {x y : α}, f x < f y ↔ x < y) →
                                  (∀ (a b : α), f (a ⊔ b) = f a ⊔ f b) →
                                    (∀ (a b : α), f (a ⊓ b) = f a ⊓ f b) →
                                      f ⊤ = ⊤ →
                                        f ⊥ = ⊥ →
                                          (∀ (a : α), f aᶜ = (f a)ᶜ) →
                                            (∀ (a : α), f (¬a) = ¬f a) →
                                              (∀ (a b : α), f (a ⇨ b) = f a ⇨ f b) →
                                                (∀ (a b : α), f (a \ b) = f a \ f b) → BiheytingAlgebra α

Pullback a BiheytingAlgebra along an injection.

abbrev Equiv.generalizedHeytingAlgebra E1 #

{α : Type u_2} → {β : Type u_3} → α ≃ β → [GeneralizedHeytingAlgebra β] → GeneralizedHeytingAlgebra α

Transfer GeneralizedHeytingAlgebra across an Equiv.

abbrev Equiv.generalizedCoheytingAlgebra E1 #

{α : Type u_2} → {β : Type u_3} → α ≃ β → [GeneralizedCoheytingAlgebra β] → GeneralizedCoheytingAlgebra α

Transfer GeneralizedCoheytingAlgebra across an Equiv.

abbrev Equiv.heytingAlgebra E1 #

{α : Type u_2} → {β : Type u_3} → α ≃ β → [HeytingAlgebra β] → HeytingAlgebra α

Transfer HeytingAlgebra across an Equiv.

abbrev Equiv.coheytingAlgebra E1 #

{α : Type u_2} → {β : Type u_3} → α ≃ β → [CoheytingAlgebra β] → CoheytingAlgebra α

Transfer CoheytingAlgebra across an Equiv.

abbrev Equiv.biheytingAlgebra E1 #

{α : Type u_2} → {β : Type u_3} → α ≃ β → [BiheytingAlgebra β] → BiheytingAlgebra α

Transfer BiheytingAlgebra across an Equiv.

instance PUnit.instBiheytingAlgebra E0 #

BiheytingAlgebra PUnit.{u + 1}

theorem PUnit.bot_eq E0 #

⊥ = PUnit.unit

theorem PUnit.top_eq E0 #

⊤ = PUnit.unit

theorem PUnit.sup_eq E0 #

∀ (a b : PUnit.{u + 1}), max a b = PUnit.unit

theorem PUnit.inf_eq E0 #

∀ (a b : PUnit.{u + 1}), min a b = PUnit.unit

theorem PUnit.hnot_eq E0 #

∀ (a : PUnit.{u + 1}), ¬a = PUnit.unit

theorem PUnit.compl_eq E0 #

∀ (a : PUnit.{u + 1}), aᶜ = PUnit.unit

theorem PUnit.sdiff_eq E0 #

∀ (a b : PUnit.{u + 1}), b \ a = PUnit.unit

theorem PUnit.himp_eq E0 #

∀ (a b : PUnit.{u + 1}), a ⇨ b = PUnit.unit

Deprecated aliases

NameNew nameSince
inf_himpinf_himp_self2026-10-12