Documentation

CslibFrontier.Foundations.RelationAlgebra.AtomicNetwork

Atomic networks #

An atomic network labels every ordered pair of nodes with an atom so that the labels behave like the atoms holding between the points of a representation: identity atoms label exactly the loops, reversing an edge takes the converse, and every triangle is a cycle [HH01], Section 2.1. Networks need only the converse, the identity atoms and the cycles, so they are defined over any AtomStructure, without assuming its laws (LawfulAtomStructure).

A network is saturated when every way of placing an edge label below a product of two atoms is witnessed by a third node. A saturated network over an atom structure defines a homomorphism from the complex algebra to the algebra of all relations on its nodes, sending an element to the set of edges whose labels lie in it ([HH97], Lemma 4(1), (b) implies (a)). Over finitely many atoms every homomorphism from the complex algebra to the relations on a type arises in this way, because every pair of points then lies in the image of exactly one atom, as in the proof of [HH97], Lemma 6.

Main definitions #

Main results #

References #

structure Cslib.RelationAlgebra.AtomicNetwork {α : Type u_1} (F : AtomStructure α) (D : Type u_4) :
Type (max u_1 u_4)

An atomic network over the atom structure F with nodes D: a labelling of the ordered pairs of nodes by atoms in which the identity atoms label exactly the loops, the reverse of an edge carries the converse atom, and every triangle is a cycle [HH01], Section 2.1. The source's networks are these with D finite; they are strict, in that only loops have identity labels.

  • label : D → D → α

    The atom labelling the edge from the first node to the second.

  • label_mem_id {d e : D} : self.label d e ∈ F.id ↔ d = e

    The source's h(d, e) ≤ 1' ↔ d = e.

  • conv_label (d e : D) : F.conv (self.label d e) = self.label e d

    The source's h(e, d) = h(d, e)˘.

  • label_mem_cycles (d e f : D) : (self.label d e, self.label e f, self.label d f) ∈ F.cycles

    The source's h(d, f) ≤ h(d, e);h(e, f).

Instances For
    @[instance_reducible]
    instance Cslib.RelationAlgebra.AtomicNetwork.instCoeFunForallForall {α : Type u_1} {D : Type u_2} {F : AtomStructure α} :
    CoeFun (AtomicNetwork F D) fun (x : AtomicNetwork F D) => D → D → α
    theorem Cslib.RelationAlgebra.AtomicNetwork.ext {α : Type u_1} {D : Type u_2} {F : AtomStructure α} {N M : AtomicNetwork F D} (h : ∀ (d e : D), N.label d e = M.label d e) :
    N = M
    theorem Cslib.RelationAlgebra.AtomicNetwork.ext_iff {α : Type u_1} {D : Type u_2} {F : AtomStructure α} {N M : AtomicNetwork F D} :
    N = M ↔ ∀ (d e : D), N.label d e = M.label d e
    def Cslib.RelationAlgebra.AtomicNetwork.comap {α : Type u_1} {D : Type u_2} {D' : Type u_3} {F : AtomStructure α} (N : AtomicNetwork F D) (f : D' ↪ D) :

    The network induced on D' by an embedding of D' into the nodes of N. The subnetworks of N are its images under the inclusions of subsets of nodes.

    @[simp]
    theorem Cslib.RelationAlgebra.AtomicNetwork.comap_label {α : Type u_1} {D : Type u_2} {D' : Type u_3} {F : AtomStructure α} (N : AtomicNetwork F D) (f : D' ↪ D) (d e : D') :
    (N.comap f).label d e = N.label (f d) (f e)

    A network is saturated when, for every edge (m, n) and atoms a, b whose product lies above its label, some node p has N m p = a and N p n = b. This is condition (b) of [HH97], Lemma 4(1), which notes that Maddux calls such a network a complete labelling; the name "saturated" is ours.

    theorem Cslib.RelationAlgebra.AtomicNetwork.Saturated.comap {α : Type u_1} {D : Type u_2} {D' : Type u_3} {F : AtomStructure α} {N : AtomicNetwork F D} (h : N.Saturated) (e : D' ≃ D) :

    Saturation is preserved by renaming the nodes.

    The homomorphism from a complex algebra to the relations on the nodes of a saturated network: an element is sent to the set of edges whose labels belong to it.

    @[simp]
    theorem Cslib.RelationAlgebra.AtomicNetwork.Saturated.mem_hom {α : Type u_1} {D : Type u_2} {A : AtomStructure α} [LawfulAtomStructure A] {N : AtomicNetwork A D} (h : N.Saturated) {x : ComplexAlgebra A} {m n : D} :
    (m, n) ∈ h.hom x ↔ N.label m n ∈ x

    Over finitely many atoms, every homomorphism from a complex algebra to the algebra of all relations on a type is the homomorphism of a saturated network on that type: each pair of points lies in the image of exactly one atom, which labels it.