Documentation

Cslib.Foundations.RelationAlgebra.AtomStructure

Atom structures #

This module defines atom structures and their complex relation algebras. It also constructs the atom structure of an atomic relation algebra and reconstructs a complete atomic relation algebra from its atom structure.

References #

The data of an atom structure.

  • conv : α → α

    The converse operation, presented as a function for stating the cycle rules.

  • id : Set α

    The set of identity atoms.

  • cycles : Set (α × α × α)

    The set of atom cycles, where (r, s, t) represents t ≤ r * s.

Instances For

    LawfulAtomStructure asserts the cycles of an atom structure follow associativity, converse, and identity conditions, so that its complex algebra is a relation algebra.

    Instances
      theorem Cslib.RelationAlgebra.AtomStructure.assoc {α : Type u_1} (A : AtomStructure α) [LawfulAtomStructure A] {r q p s t : α} (h₁ : (r, q, p) ∈ A.cycles) (h₂ : (s, t, q) ∈ A.cycles) :
      ∃ (q' : α), (q', t, p) ∈ A.cycles ∧ (r, s, q') ∈ A.cycles
      theorem Cslib.RelationAlgebra.AtomStructure.id_cycle_right {α : Type u_1} (A : AtomStructure α) [LawfulAtomStructure A] {s r p : α} (hs : s ∈ A.id) (h : (r, s, p) ∈ A.cycles) :
      p = r
      @[simp]
      theorem Cslib.RelationAlgebra.AtomStructure.assoc_symm {α : Type u_1} (A : AtomStructure α) [LawfulAtomStructure A] {r s t p q : α} (h₁ : (q, t, p) ∈ A.cycles) (h₂ : (r, s, q) ∈ A.cycles) :
      ∃ (q' : α), (r, q', p) ∈ A.cycles ∧ (s, t, q') ∈ A.cycles
      theorem Cslib.RelationAlgebra.AtomStructure.id_cycle_left {α : Type u_1} (A : AtomStructure α) [LawfulAtomStructure A] {s r p : α} (hs : s ∈ A.id) (h : (s, r, p) ∈ A.cycles) :
      p = r
      structure Cslib.RelationAlgebra.ComplexAlgebra {α : Type u_1} (A : AtomStructure α) :
      Type u_1

      The complex relation algebra of an atom structure. "Complex" here means a subset of atoms.

      • carrier : Set α

        The underlying set.

      Instances For

        Equivalence with the powerset of the atom type.

        Equations
        Instances For

          Order isomorphism with the powerset of the atom type.

          Equations
          Instances For
            @[instance_reducible]
            Equations
            @[instance_reducible]
            Equations
            theorem Cslib.RelationAlgebra.ComplexAlgebra.ext {α : Type u_1} {A : AtomStructure α} {x y : ComplexAlgebra A} (h : ∀ (a : α), a ∈ x ↔ a ∈ y) :
            x = y
            theorem Cslib.RelationAlgebra.ComplexAlgebra.ext_iff {α : Type u_1} {A : AtomStructure α} {x y : ComplexAlgebra A} :
            x = y ↔ ∀ (a : α), a ∈ x ↔ a ∈ y
            @[simp]
            theorem Cslib.RelationAlgebra.ComplexAlgebra.mem_mk {α : Type u_1} {A : AtomStructure α} {a : α} {s : Set α} :
            a ∈ { carrier := s } ↔ a ∈ s
            @[simp]
            theorem Cslib.RelationAlgebra.ComplexAlgebra.mem_sup {α : Type u_1} {A : AtomStructure α} {x y : ComplexAlgebra A} {a : α} :
            a ∈ x ⊔ y ↔ a ∈ x ∨ a ∈ y
            @[simp]
            theorem Cslib.RelationAlgebra.ComplexAlgebra.mem_compl {α : Type u_1} {A : AtomStructure α} {x : ComplexAlgebra A} {a : α} :
            a ∈ xᶜ ↔ a ∉ x
            @[simp]
            theorem Cslib.RelationAlgebra.ComplexAlgebra.mem_one {α : Type u_1} {A : AtomStructure α} {a : α} :
            a ∈ 1 ↔ a ∈ A.id
            theorem Cslib.RelationAlgebra.ComplexAlgebra.mem_mul {α : Type u_1} {A : AtomStructure α} {x y : ComplexAlgebra A} {a : α} :
            a ∈ x * y ↔ ∃ r ∈ x, ∃ s ∈ y, (r, s, a) ∈ A.cycles
            @[instance_reducible]
            Equations
            • One or more equations did not get rendered due to their size.
            @[instance_reducible]
            Equations
            • One or more equations did not get rendered due to their size.

            A complex algebra is integral exactly when its identity set is a singleton.

            The atom structure formed by the atoms of an atomic relation algebra.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              The isomorphism from a complete atomic relation algebra to the complex algebra of its atom structure.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For