Documentation

CategorialAlgebras.Limits.HomogeneousUnionLaws

Equality and operations in the increasing union #

Two representatives agree precisely when their images agree in a common later stage. Injectivity then lets any sufficiently large common stage compute all operations, independently of the representatives selected by the construction.

instance CategorialAlgebras.Limits.homogeneousStageDirected {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) (s : S) :
DirectedSystem (fun (n : ℕ) => (A.obj n).obj.obj.carrier s) fun {x x_1 : ℕ} (h : x ≤ x_1) => homogeneousStageInclusion A h s

The stage inclusions give a directed system of types at every sort.

noncomputable def CategorialAlgebras.Limits.homogeneousStageEmbedding {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) {m n : ℕ} (h : m ≤ n) (s : S) :
(A.obj m).obj.obj.carrier s ↪ (A.obj n).obj.obj.carrier s

The injective bundled inclusion of two finite stages.

Equations
Instances For
    instance CategorialAlgebras.Limits.homogeneousEmbeddingDirected {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) (s : S) :
    DirectedSystem (fun (n : ℕ) => (A.obj n).obj.obj.carrier s) fun {x x_1 : ℕ} (h : x ≤ x_1) => ⇑(homogeneousStageEmbedding A h s)

    Compatibility of the bundled inclusions.

    noncomputable def CategorialAlgebras.Limits.homogeneousCommonSetoid {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) (s : S) :
    Setoid ((n : ℕ) × (A.obj n).obj.obj.carrier s)

    The setoid comparing representatives in a common later stage.

    Equations
    Instances For
      theorem CategorialAlgebras.Limits.homogeneousUnionIn_eq_iff {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) (m n : ℕ) (s : S) (x : (A.obj m).obj.obj.carrier s) (y : (A.obj n).obj.obj.carrier s) :
      homogeneousUnionIn A m s x = homogeneousUnionIn A n s y ↔ ∃ (p : ℕ) (hm : m ≤ p) (hn : n ≤ p), homogeneousStageInclusion A hm s x = homogeneousStageInclusion A hn s y

      Equality of union representatives is equality in some common finite stage.

      The canonical map from each stage to its union is injective.

      theorem CategorialAlgebras.Limits.homogeneousUnionIn_eq_at {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) {m n p : ℕ} (hm : m ≤ p) (hn : n ≤ p) (s : S) (x : (A.obj m).obj.obj.carrier s) (y : (A.obj n).obj.obj.carrier s) (he : homogeneousUnionIn A m s x = homogeneousUnionIn A n s y) :

      Equal union cells have equal images in every common later stage.

      theorem CategorialAlgebras.Limits.homogeneousUnionAt_eq {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) {m n : ℕ} (h : m ≤ n) (s : S) (x : (A.obj m).obj.obj.carrier s) (hn : (Quot.out (homogeneousUnionIn A m s x)).fst ≤ n) :

      A chosen representative, raised to a common stage, agrees with every other representative there.

      Moving a representative to a later stage does not change its image in the union.

      Stage inclusions commute with the whole partial composition, including its domain.

      theorem CategorialAlgebras.Limits.homogeneousUnionAt_trans {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) {s : S} (x : HomogeneousUnion A s) {m n : ℕ} (hm : (Quot.out x).fst ≤ m) (hn : m ≤ n) :

      Raising a chosen representative agrees with its direct raising to the later stage.

      theorem CategorialAlgebras.Limits.homogeneousUnionSource_in {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) {n : ℕ} (k : Fin n) (s : S) (x : (A.obj n).obj.obj.carrier s) :

      A source on the union can be computed in any stage containing its dimension.

      theorem CategorialAlgebras.Limits.homogeneousUnionTarget_in {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) {n : ℕ} (k : Fin n) (s : S) (x : (A.obj n).obj.obj.carrier s) :

      A target on the union can be computed in any stage containing its dimension.

      Computing a partial composition and inserting its value commutes with moving to a later stage.

      theorem CategorialAlgebras.Limits.homogeneousUnionComp_in {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) {n : ℕ} (k : Fin n) (s : S) (x y : (A.obj n).obj.obj.carrier s) :

      Partial composition on the union is computed in any sufficiently large common stage.

      theorem CategorialAlgebras.Limits.homogeneousUnionComp_mem {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) {n : ℕ} (k : Fin n) (s : S) (x y z : (A.obj n).obj.obj.carrier s) :

      All values of partial composition can be checked in a common finite stage.

      theorem CategorialAlgebras.Limits.homogeneousUnionBase_in {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) {n : ℕ} {a : List S} {s : S} (σ : sig a s) (x : Word.Family (Homogeneous.CategorialAlgebra.carrier (homogeneousStage A n)) a) :
      (homogeneousUnionBase A σ fun (j : Fin a.length) => homogeneousUnionIn A n (a.get j) (x j)) = homogeneousUnionIn A n s (((homogeneousStage A n).op σ).toFun x)

      Original operations on the union are computed at every common finite stage.

      theorem CategorialAlgebras.Limits.homogeneousUnion_cover {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) {r : ℕ} (sorts : Fin r → S) (x : (j : Fin r) → HomogeneousUnion A (sorts j)) (bound : ℕ) :
      ∃ (n : ℕ), bound ≤ n ∧ ∃ (y : (j : Fin r) → Homogeneous.CategorialAlgebra.carrier (homogeneousStage A n) (sorts j)), ∀ (j : Fin r), homogeneousUnionIn A n (sorts j) (y j) = x j

      Every finite sorted tuple of union cells has representatives in a common stage above any bound.

      theorem CategorialAlgebras.Limits.homogeneousUnion_cover_finite {S : Type u} {sig : Signature S} (A : (homogeneousSystem sig).Family) {ι : Type u_1} [Fintype ι] (sorts : ι → S) (x : (j : ι) → HomogeneousUnion A (sorts j)) (bound : ℕ) :
      ∃ (n : ℕ), bound ≤ n ∧ ∃ (y : (j : ι) → Homogeneous.CategorialAlgebra.carrier (homogeneousStage A n) (sorts j)), ∀ (j : ι), homogeneousUnionIn A n (sorts j) (y j) = x j

      A tuple indexed by any finite type has common representatives above every bound.