Documentation

Complexitylib.DescriptiveComplexity.Isomorphism

Isomorphisms, embeddings, and injective homomorphisms #

We define isomorphisms between finite structures, prove they form an equivalence relation, and show that isomorphic structures have the same cardinality. We also define embeddings (injective maps that preserve and reflect relations, as in model theory) and the weaker injective homomorphisms (which only preserve them).

An isomorphism between two finite structures over the same vocabulary.

Instances For

    A ≅ B denotes an isomorphism between finite structures A and B.

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

      The identity isomorphism.

      Equations
      Instances For

        The inverse of an isomorphism.

        Equations
        • f.symm = { toFun := f.invFun, invFun := f.toFun, left_inv := ⋯, right_inv := ⋯, rel_map := ⋯, const_map := ⋯ }
        Instances For
          def Complexity.DescriptiveComplexity.Iso.trans {V : Vocabulary} {A B C : FinStruct V} (f : Iso A B) (g : Iso B C) :
          Iso A C

          Composition of isomorphisms.

          Equations
          Instances For

            Isomorphic structures have the same cardinality.

            An injective homomorphism of structure A into structure B: an injective map of universes that preserves constants and carries every relation tuple of A to a relation tuple of B. Relations are preserved but not reflected, so B may relate images of elements that A does not relate; the notion that also reflects them is Embedding.

            Instances For

              Every isomorphism gives an injective homomorphism.

              Equations
              Instances For

                An embedding of structure A into structure B, in the model-theoretic sense (Mathlib's FirstOrder.Language.Embedding): an injective map of universes that preserves constants and both preserves and reflects relations. Its image is a substructure of B isomorphic to A, so Nonempty (Embedding A B) says that A is, up to isomorphism, a substructure of B.

                Instances For

                  The identity embedding.

                  Equations
                  Instances For

                    Composition of embeddings.

                    Equations
                    Instances For

                      Every isomorphism is an embedding.

                      Equations
                      Instances For

                        An embedding is in particular an injective homomorphism.

                        Equations
                        Instances For