Documentation

CategorialAlgebras.Dimensions.Comparison

Comparing induced model functors #

Canonical composition comparisons and equal selected cells give natural isomorphisms on models. Their components retain the underlying elements, including the sort transports required by equality of underlying derivors.

theorem CategorialAlgebras.Dimensions.cells_of_eq {S T : Type u} {sig : HepSignature S} {tau : HepSignature T} {c d : GeneralizedHepDerivor sig tau} (h : c = d) (B : PartialAlgebra tau.symbol) (s : S) (b : B.carrier (c.sortMap s)) :
c.IsCell B s b ↔ d.IsCell B s (cast ⋯ b)

Equal generalized hep-derivors select the same cells after their canonical sort transport.

theorem CategorialAlgebras.Dimensions.sameDerivorIso_hom_heq {S T : Type u} {sig : HepSignature S} {tau : HepSignature T} (c d : GeneralizedHepDerivor sig tau) (h : c.toDerivor = d.toDerivor) (B : PartialAlgebra tau.symbol) (hc : ∀ (s : S) (b : B.carrier (c.sortMap s)), c.IsCell B s b ↔ d.IsCell B s (cast ⋯ b)) (s : S) (b : c.Cell B s) :
↑((c.sameDerivorIso d h B hc).hom.toMap s b) ≍ ↑b

Identifying equal underlying derivors and equal cells retains every underlying element.

noncomputable def CategorialAlgebras.Dimensions.inducedCompositeIso {S T U : Type u} {sig : HepSignature S} {tau : HepSignature T} {ups : HepSignature U} (c : GeneralizedHepDerivor sig tau) (d : GeneralizedHepDerivor tau ups) (e : GeneralizedHepDerivor sig ups) (h : (c.comp d).toDerivor = e.toDerivor) (E : EPSpecification sig.toEPSignature) (F : EPSpecification tau.toEPSignature) (G : EPSpecification ups.toEPSignature) (hc : ∀ (B : PartialAlgebra tau.symbol), F.IsModel B → E.IsModel (c.transformed B)) (hd : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → F.IsModel (d.transformed B)) (hs : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S), Function.Surjective ((c.comparison d B).toMap s)) (hb : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S) (b : B.carrier ((c.comp d).sortMap s)), (c.comp d).IsCell B s b ↔ e.IsCell B s (cast ⋯ b)) (B : PartialAlgebra ups.symbol) (hB : G.IsModel B) :

A composite transformation is identified with a direct one by the canonical comparison and by equality of underlying derivors and selected cells.

Equations
Instances For
    theorem CategorialAlgebras.Dimensions.inducedCompositeIso_hom_heq {S T U : Type u} {sig : HepSignature S} {tau : HepSignature T} {ups : HepSignature U} (c : GeneralizedHepDerivor sig tau) (d : GeneralizedHepDerivor tau ups) (e : GeneralizedHepDerivor sig ups) (h : (c.comp d).toDerivor = e.toDerivor) (E : EPSpecification sig.toEPSignature) (F : EPSpecification tau.toEPSignature) (G : EPSpecification ups.toEPSignature) (hc : ∀ (B : PartialAlgebra tau.symbol), F.IsModel B → E.IsModel (c.transformed B)) (hd : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → F.IsModel (d.transformed B)) (hs : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S), Function.Surjective ((c.comparison d B).toMap s)) (hb : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S) (b : B.carrier ((c.comp d).sortMap s)), (c.comp d).IsCell B s b ↔ e.IsCell B s (cast ⋯ b)) (B : PartialAlgebra ups.symbol) (hB : G.IsModel B) (s : S) (b : c.Cell (d.transformed B) s) :
    ↑((inducedCompositeIso c d e h E F G hc hd hs hb B hB).hom.toMap s b) ≍ ↑↑b

    The composite identification retains each underlying element.

    theorem CategorialAlgebras.Dimensions.inducedCompositeIso_inv_heq {S T U : Type u} {sig : HepSignature S} {tau : HepSignature T} {ups : HepSignature U} (c : GeneralizedHepDerivor sig tau) (d : GeneralizedHepDerivor tau ups) (e : GeneralizedHepDerivor sig ups) (h : (c.comp d).toDerivor = e.toDerivor) (E : EPSpecification sig.toEPSignature) (F : EPSpecification tau.toEPSignature) (G : EPSpecification ups.toEPSignature) (hc : ∀ (B : PartialAlgebra tau.symbol), F.IsModel B → E.IsModel (c.transformed B)) (hd : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → F.IsModel (d.transformed B)) (hs : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S), Function.Surjective ((c.comparison d B).toMap s)) (hb : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S) (b : B.carrier ((c.comp d).sortMap s)), (c.comp d).IsCell B s b ↔ e.IsCell B s (cast ⋯ b)) (B : PartialAlgebra ups.symbol) (hB : G.IsModel B) (s : S) (b : e.Cell B s) :
    ↑↑((inducedCompositeIso c d e h E F G hc hd hs hb B hB).inv.toMap s b) ≍ ↑b

    The inverse composite identification also retains each underlying element.

    theorem CategorialAlgebras.Dimensions.inducedCompositeIso_naturality {S T U : Type u} {sig : HepSignature S} {tau : HepSignature T} {ups : HepSignature U} (c : GeneralizedHepDerivor sig tau) (d : GeneralizedHepDerivor tau ups) (e : GeneralizedHepDerivor sig ups) (h : (c.comp d).toDerivor = e.toDerivor) (E : EPSpecification sig.toEPSignature) (F : EPSpecification tau.toEPSignature) (G : EPSpecification ups.toEPSignature) (hc : ∀ (B : PartialAlgebra tau.symbol), F.IsModel B → E.IsModel (c.transformed B)) (hd : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → F.IsModel (d.transformed B)) (hs : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S), Function.Surjective ((c.comparison d B).toMap s)) (hb : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S) (b : B.carrier ((c.comp d).sortMap s)), (c.comp d).IsCell B s b ↔ e.IsCell B s (cast ⋯ b)) {B B' : PartialAlgebra ups.symbol} (f : B ⟶ B') (hB : G.IsModel B) (hB' : G.IsModel B') :

    The canonical composite identification commutes with homomorphisms of models.

    noncomputable def CategorialAlgebras.Dimensions.inducedCompositeModelsNatIso {S T U : Type u} {sig : HepSignature S} {tau : HepSignature T} {ups : HepSignature U} (c : GeneralizedHepDerivor sig tau) (d : GeneralizedHepDerivor tau ups) (e : GeneralizedHepDerivor sig ups) (h : (c.comp d).toDerivor = e.toDerivor) (E : EPSpecification sig.toEPSignature) (F : EPSpecification tau.toEPSignature) (G : EPSpecification ups.toEPSignature) (hc : ∀ (B : PartialAlgebra tau.symbol), F.IsModel B → E.IsModel (c.transformed B)) (hd : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → F.IsModel (d.transformed B)) (he : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → E.IsModel (e.transformed B)) (hs : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S), Function.Surjective ((c.comparison d B).toMap s)) (hb : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S) (b : B.carrier ((c.comp d).sortMap s)), (c.comp d).IsCell B s b ↔ e.IsCell B s (cast ⋯ b)) :

    Composition of induced model functors is naturally identified with a direct model functor.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem CategorialAlgebras.Dimensions.inducedCompositeModelsNatIso_hom_heq {S T U : Type u} {sig : HepSignature S} {tau : HepSignature T} {ups : HepSignature U} (c : GeneralizedHepDerivor sig tau) (d : GeneralizedHepDerivor tau ups) (e : GeneralizedHepDerivor sig ups) (h : (c.comp d).toDerivor = e.toDerivor) (E : EPSpecification sig.toEPSignature) (F : EPSpecification tau.toEPSignature) (G : EPSpecification ups.toEPSignature) (hc : ∀ (B : PartialAlgebra tau.symbol), F.IsModel B → E.IsModel (c.transformed B)) (hd : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → F.IsModel (d.transformed B)) (he : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → E.IsModel (e.transformed B)) (hs : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S), Function.Surjective ((c.comparison d B).toMap s)) (hb : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S) (b : B.carrier ((c.comp d).sortMap s)), (c.comp d).IsCell B s b ↔ e.IsCell B s (cast ⋯ b)) (B : G.Models) (s : S) (b : (((inducedModelFunctor d F G hd).comp (inducedModelFunctor c E F hc)).obj B).obj.obj.carrier s) :
      ↑(((inducedCompositeModelsNatIso c d e h E F G hc hd he hs hb).hom.app B).hom.hom.toMap s b) ≍ ↑↑b

      Components of the model composition identification retain each underlying element.

      noncomputable def CategorialAlgebras.Dimensions.inducedCompositeModelsNatIsoOfEq {S T U : Type u} {sig : HepSignature S} {tau : HepSignature T} {ups : HepSignature U} (c : GeneralizedHepDerivor sig tau) (d : GeneralizedHepDerivor tau ups) (e : GeneralizedHepDerivor sig ups) (E : EPSpecification sig.toEPSignature) (F : EPSpecification tau.toEPSignature) (G : EPSpecification ups.toEPSignature) (hc : ∀ (B : PartialAlgebra tau.symbol), F.IsModel B → E.IsModel (c.transformed B)) (hd : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → F.IsModel (d.transformed B)) (he : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → E.IsModel (e.transformed B)) (hs : ∀ (B : PartialAlgebra ups.symbol), G.IsModel B → ∀ (s : S), Function.Surjective ((c.comparison d B).toMap s)) (hcd : c.comp d = e) :

      Equality of complete composite derivors is a sufficient case of the composite comparison.

      Equations
      Instances For

        The identity generalized derivor preserves models.

        The induced identity model functor is naturally isomorphic to identity.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          noncomputable def CategorialAlgebras.Dimensions.inducedModelsCongr {S T : Type u} {sig : HepSignature S} {tau : HepSignature T} {c d : GeneralizedHepDerivor sig tau} (h : c = d) (E : EPSpecification sig.toEPSignature) (F : EPSpecification tau.toEPSignature) (hc : ∀ (B : PartialAlgebra tau.symbol), F.IsModel B → E.IsModel (c.transformed B)) (hd : ∀ (B : PartialAlgebra tau.symbol), F.IsModel B → E.IsModel (d.transformed B)) :

          Equal generalized derivors induce naturally identified model functors.

          Equations
          Instances For

            A model functor induced by a derivor equal to identity is identified with identity.

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

              The identity model identification forgets only the cell proof.