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

42 declarations. Mathlib docs · Source

Heyting regular elements

This file defines Heyting regular elements, elements of a Heyting algebra that are their own double complement, and proves that they form a Boolean algebra.

From a logic standpoint, this means that we can perform classical logic within intuitionistic logic by simply double-negating all propositions. This is practical for synthetic computability theory.

Main declarations

  • IsRegular: a is Heyting-regular if aᶜᶜ = a.
  • Regular: The subtype of Heyting-regular elements.
  • Regular.BooleanAlgebra: Heyting-regular elements form a Boolean algebra.

References

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

def Heyting.IsRegular E3 #

{α : Type u_1} → [Compl α] → α → Prop

An element of a Heyting algebra is regular if its double complement is itself.

theorem Heyting.IsRegular.eq E1 #

∀ {α : Type u_1} [inst : Compl α] {a : α}, Heyting.IsRegular a → aᶜᶜ = a

instance Heyting.IsRegular.decidablePred E0 #

{α : Type u_1} → [inst : Compl α] → [DecidableEq α] → DecidablePred Heyting.IsRegular

theorem Heyting.isRegular_bot E1 #

∀ {α : Type u_1} [inst : HeytingAlgebra α], Heyting.IsRegular ⊥

theorem Heyting.isRegular_top E1 #

∀ {α : Type u_1} [inst : HeytingAlgebra α], Heyting.IsRegular ⊤

theorem Heyting.IsRegular.inf E1 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] {a b : α},
  Heyting.IsRegular a → Heyting.IsRegular b → Heyting.IsRegular (a ⊓ b)

theorem Heyting.IsRegular.himp E1 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] {a b : α},
  Heyting.IsRegular a → Heyting.IsRegular b → Heyting.IsRegular (a ⇨ b)

theorem Heyting.isRegular_compl E1 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] (a : α), Heyting.IsRegular aᶜ

theorem Heyting.IsRegular.disjoint_compl_left_iff E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] {a b : α}, Heyting.IsRegular a → (Disjoint aᶜ b ↔ b ≤ a)

theorem Heyting.IsRegular.disjoint_compl_right_iff E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] {a b : α}, Heyting.IsRegular b → (Disjoint a bᶜ ↔ a ≤ b)

abbrev BooleanAlgebra.ofRegular E1 #

{α : Type u_1} → [inst : HeytingAlgebra α] → (∀ (a : α), Heyting.IsRegular (a ⊔ aᶜ)) → BooleanAlgebra α

A Heyting algebra with regular excluded middle is a Boolean algebra.

def Heyting.Regular E3 #

(α : Type u_1) → [HeytingAlgebra α] → Type u_1

The Boolean algebra of Heyting regular elements.

def Heyting.Regular.val E1 #

{α : Type u_1} → [inst : HeytingAlgebra α] → Heyting.Regular α → α

The coercion Regular α → α

theorem Heyting.Regular.prop E1 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] (a : Heyting.Regular α), Heyting.IsRegular ↑a

instance Heyting.Regular.instCoeOut E0 #

{α : Type u_1} → [inst : HeytingAlgebra α] → CoeOut (Heyting.Regular α) α

theorem Heyting.Regular.coe_injective E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α], Function.Injective Heyting.Regular.val

theorem Heyting.Regular.coe_inj E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] {a b : Heyting.Regular α}, ↑a = ↑b ↔ a = b

instance Heyting.Regular.top E0 #

{α : Type u_1} → [inst : HeytingAlgebra α] → Top (Heyting.Regular α)

instance Heyting.Regular.bot E0 #

{α : Type u_1} → [inst : HeytingAlgebra α] → Bot (Heyting.Regular α)

instance Heyting.Regular.inf E0 #

{α : Type u_1} → [inst : HeytingAlgebra α] → Min (Heyting.Regular α)

instance Heyting.Regular.himp E0 #

{α : Type u_1} → [inst : HeytingAlgebra α] → HImp (Heyting.Regular α)

instance Heyting.Regular.instCompl E0 #

{α : Type u_1} → [inst : HeytingAlgebra α] → Compl (Heyting.Regular α)

theorem Heyting.Regular.coe_top E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α], ↑⊤ = ⊤

theorem Heyting.Regular.coe_bot E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α], ↑⊥ = ⊥

theorem Heyting.Regular.coe_inf E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] (a b : Heyting.Regular α), ↑(a ⊓ b) = ↑a ⊓ ↑b

theorem Heyting.Regular.coe_himp E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] (a b : Heyting.Regular α), ↑(a ⇨ b) = ↑a ⇨ ↑b

theorem Heyting.Regular.coe_compl E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] (a : Heyting.Regular α), ↑aᶜ = (↑a)ᶜ

instance Heyting.Regular.instInhabited E0 #

{α : Type u_1} → [inst : HeytingAlgebra α] → Inhabited (Heyting.Regular α)

instance Heyting.Regular.instPartialOrder E0 #

{α : Type u_1} → [inst : HeytingAlgebra α] → PartialOrder (Heyting.Regular α)

instance Heyting.Regular.boundedOrder E0 #

{α : Type u_1} → [inst : HeytingAlgebra α] → BoundedOrder (Heyting.Regular α)

theorem Heyting.Regular.coe_le_coe E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] {a b : Heyting.Regular α}, ↑a ≤ ↑b ↔ a ≤ b

theorem Heyting.Regular.coe_lt_coe E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] {a b : Heyting.Regular α}, ↑a < ↑b ↔ a < b

def Heyting.Regular.toRegular E1 #

{α : Type u_1} → [inst : HeytingAlgebra α] → α →o Heyting.Regular α

Regularization of a. The smallest regular element greater than a.

theorem Heyting.Regular.coe_toRegular E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] (a : α), ↑(Heyting.Regular.toRegular a) = aᶜᶜ

theorem Heyting.Regular.toRegular_coe E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] (a : Heyting.Regular α), Heyting.Regular.toRegular ↑a = a

def Heyting.Regular.gi E1 #

{α : Type u_1} → [inst : HeytingAlgebra α] → GaloisInsertion (⇑Heyting.Regular.toRegular) Heyting.Regular.val

The Galois insertion between Regular.toRegular and coe.

instance Heyting.Regular.lattice E0 #

{α : Type u_1} → [inst : HeytingAlgebra α] → Lattice (Heyting.Regular α)

theorem Heyting.Regular.coe_sup E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] (a b : Heyting.Regular α), ↑(a ⊔ b) = (↑a ⊔ ↑b)ᶜᶜ

instance Heyting.Regular.instBooleanAlgebra E0 #

{α : Type u_1} → [inst : HeytingAlgebra α] → BooleanAlgebra (Heyting.Regular α)

theorem Heyting.Regular.coe_sdiff E0 #

∀ {α : Type u_1} [inst : HeytingAlgebra α] (a b : Heyting.Regular α), ↑(a \ b) = ↑a ⊓ (↑b)ᶜ

theorem Heyting.isRegular_of_boolean E1 #

∀ {α : Type u_1} [inst : BooleanAlgebra α] (a : α), Heyting.IsRegular a

theorem Heyting.isRegular_of_decidable E1 #

∀ (p : Prop) [Decidable p], Heyting.IsRegular p

A decidable proposition is intuitionistically Heyting-regular.