Documentation

Cslib.Foundations.RelationAlgebra.Hom

Morphisms and isomorphisms of relation algebras #

structure Cslib.RelationAlgebraHom (α : Type u_1) (β : Type u_2) [RelationAlgebra α] [RelationAlgebra β] extends BoundedLatticeHom α β, α →⋆* β :
Type (max u_1 u_2)

The type of relation algebra homomorphisms from α to β, preserving both the Boolean algebra and composition operations

Instances For
    structure Cslib.RelationAlgebraEquiv (α : Type u_1) (β : Type u_2) [RelationAlgebra α] [RelationAlgebra β] extends (fun (x1 x2 : α) => x1 ≤ x2) ≃r fun (x1 x2 : β) => x1 ≤ x2, α ≃⋆* β :
    Type (max u_1 u_2)

    The type of relation algebra equivalence from α to β, preserving both the Boolean algebra and composition operations

    Instances For
      @[instance_reducible]
      def Cslib.RelationAlgebraHom.Simps.apply {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] (f : RelationAlgebraHom α β) :
      α → β

      See Note [custom simps projection].

      theorem Cslib.RelationAlgebraHom.ext {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] {f g : RelationAlgebraHom α β} (h : ∀ (a : α), f a = g a) :
      f = g
      theorem Cslib.RelationAlgebraHom.ext_iff {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] {f g : RelationAlgebraHom α β} :
      f = g ↔ ∀ (a : α), f a = g a
      @[simp]
      @[simp]
      theorem Cslib.RelationAlgebraHom.comp_apply {α : Type u_1} {β : Type u_2} {γ : Type u_3} [RelationAlgebra α] [RelationAlgebra β] [RelationAlgebra γ] (f : RelationAlgebraHom β γ) (g : RelationAlgebraHom α β) (a : α) :
      (f.comp g) a = f (g a)
      @[instance_reducible]
      theorem Cslib.RelationAlgebraEquiv.ext {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] {f g : RelationAlgebraEquiv α β} (h : ∀ (a : α), f a = g a) :
      f = g
      theorem Cslib.RelationAlgebraEquiv.ext_iff {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] {f g : RelationAlgebraEquiv α β} :
      f = g ↔ ∀ (a : α), f a = g a
      def Cslib.RelationAlgebraEquiv.Simps.apply {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] (e : RelationAlgebraEquiv α β) :
      α → β

      See Note [custom simps projection].

      See Note [custom simps projection].

      @[simp]
      theorem Cslib.RelationAlgebraEquiv.trans_symm_apply {α : Type u_1} {β : Type u_2} {γ : Type u_3} [RelationAlgebra α] [RelationAlgebra β] [RelationAlgebra γ] (f : RelationAlgebraEquiv α β) (g : RelationAlgebraEquiv β γ) (c : γ) :
      (f.trans g).symm c = f.symm (g.symm c)
      @[simp]
      theorem Cslib.RelationAlgebraEquiv.trans_apply {α : Type u_1} {β : Type u_2} {γ : Type u_3} [RelationAlgebra α] [RelationAlgebra β] [RelationAlgebra γ] (f : RelationAlgebraEquiv α β) (g : RelationAlgebraEquiv β γ) (a : α) :
      (f.trans g) a = g (f a)
      @[simp]
      theorem Cslib.RelationAlgebraEquiv.toHom_apply {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] (f : RelationAlgebraEquiv α β) (a : α) :
      f.toHom a = f a
      @[simp]
      theorem Cslib.RelationAlgebraEquiv.symm_apply_apply {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] (f : RelationAlgebraEquiv α β) (a : α) :
      f.symm (f a) = a
      @[simp]
      theorem Cslib.RelationAlgebraEquiv.apply_symm_apply {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] (f : RelationAlgebraEquiv α β) (b : β) :
      f (f.symm b) = b
      noncomputable def Cslib.RelationAlgebraEquiv.ofBijective {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] {f : RelationAlgebraHom α β} (hf : Function.Bijective ⇑f) :

      Promote a bijective homomorphism to an equivalence.

      @[simp]
      theorem Cslib.RelationAlgebraEquiv.ofBijective_apply {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] {f : RelationAlgebraHom α β} (hf : Function.Bijective ⇑f) (a : α) :
      (ofBijective hf) a = f a
      theorem Cslib.RelationAlgebraEquiv.inj {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] {e : RelationAlgebraEquiv α β} {x y : α} :
      e x = e y ↔ x = y
      def Cslib.RelationAlgebraEquiv.ofHomInv {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] (f : RelationAlgebraHom α β) (g : RelationAlgebraHom β α) (hfg : ∀ (b : β), f (g b) = b) (hgf : ∀ (a : α), g (f a) = a) :

      Construct an equivalence from a homomorphism and an inverse.

      @[simp]
      theorem Cslib.RelationAlgebraEquiv.ofHomInv_apply {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] (f : RelationAlgebraHom α β) (g : RelationAlgebraHom β α) (hfg : ∀ (b : β), f (g b) = b) (hgf : ∀ (a : α), g (f a) = a) (a : α) :
      (ofHomInv f g hfg hgf) a = f a
      @[simp]
      theorem Cslib.RelationAlgebraEquiv.ofHomInv_symm_apply {α : Type u_1} {β : Type u_2} [RelationAlgebra α] [RelationAlgebra β] (f : RelationAlgebraHom α β) (g : RelationAlgebraHom β α) (hfg : ∀ (b : β), f (g b) = b) (hgf : ∀ (a : α), g (f a) = a) (a : β) :
      (ofHomInv f g hfg hgf).symm a = g a
      def Cslib.RelationAlgebraEquiv.setRelOfEquiv {α : Type u_1} {β : Type u_2} (e : α ≃ β) :

      An equivalence between types lifts to an equivalence between their algebras of relations.

      @[simp]
      theorem Cslib.RelationAlgebraEquiv.setRelOfEquiv_apply {α : Type u_1} {β : Type u_2} (e : α ≃ β) (s : SetRel α α) :
      (setRelOfEquiv e) s = SetRel.map (⇑e) (⇑e) s
      @[simp]
      theorem Cslib.RelationAlgebraEquiv.setRelOfEquiv_symm_apply {α : Type u_1} {β : Type u_2} (e : α ≃ β) (s : SetRel β β) :
      (setRelOfEquiv e).symm s = SetRel.map (⇑e.symm) (⇑e.symm) s