Relation algebras #
A relation algebra in the sense of Tarski (not to be confused with a relational algebra) is an
extension of Boolean algebras that are designed to form an algebraic analysis of relations,
α → α → Prop in Lean. They have applications in computer science such as the theory of constraint
satisfaction as well as mathematical connections such as combinatorics.
References #
- [R. Maddux, Relation Algebras][Maddux2006]
The class of relation algebras. Note the notational differences from the literature. In addition
to inheriting Mathlib's notations for Boolean algebras, star is used for converse, and the monoid
reduct for composition uses multiplicative notation.
- sup : α → α → α
- inf : α → α → α
- le_sup_inf (x y z : α) : (x ⊔ y) ⊓ (x ⊔ z) ≤ x ⊔ y ⊓ z
- compl : α → α
- sdiff : α → α → α
- himp : α → α → α
- top : α
- bot : α
- one : α
- mul : α → α → α
- star : α → α
Instances
The relation algebra of a complete Boolean algebra.
- sup : α → α → α
- inf : α → α → α
- le_sup_inf (x y z : α) : (x ⊔ y) ⊓ (x ⊔ z) ≤ x ⊔ y ⊓ z
- compl : α → α
- sdiff : α → α → α
- himp : α → α → α
- top : α
- bot : α
- one : α
- mul : α → α → α
- star : α → α
Instances
The relation algebra of a complete and atomic Boolean algebra.
- sup : α → α → α
- inf : α → α → α
- le_sup_inf (x y z : α) : (x ⊔ y) ⊓ (x ⊔ z) ≤ x ⊔ y ⊓ z
- compl : α → α
- sdiff : α → α → α
- himp : α → α → α
- top : α
- bot : α
- one : α
- mul : α → α → α
- star : α → α
- iInf_iSup_eq {ι : Type u_1} {κ : ι → Type u_1} (f : (a : ι) → κ a → α) : ⨅ (a : ι), ⨆ (b : κ a), f a b = ⨆ (g : (a : ι) → κ a), ⨅ (a : ι), f a (g a)
Instances
A RelationAlgebra can be constructed using Tarski's original ten axioms.
Converse as an automorphism of a relation algebra.
The right residual, defined so that a ≤ leftResidual b c ↔ a * b ≤ c.
The left residual, defined so that a ≤ rightResidual b c ↔ b * a ≤ c.
A relation algebra is integral when its identity is an atom.
The set of identity atoms.
The set of symmetric diversity atoms, those below the complement of identity.
The set of nonsymmetric diversity atoms. The diversity condition follows from
le_compl_one_of_mem_nonsymmetricDiversityAtoms.
Every nonsymmetric atom lies below the complement of identity.
The relation algebra of all binary relations on a type α. This is scoped so that other
instances, such as those under Pointwise, can be used elsewhere.