Chalkboard - v3.0.4
    Preparing search index...

    Function idmorphism

    • Defines the identity morphism for an algebraic structure.

      Type Parameters

      • T

      Parameters

      • struc: ChalkboardStructure<T>

        The algebraic structure which is the domain and codomain of the morphism

      Returns ChalkboardMorphism<T, T>

      const Z4 = Chalkboard.abal.group(Chalkboard.abal.Z(4), (a, b) => (a + b) % 4, 0, (a) => (4 - a) % 4);
      const identity = Chalkboard.abal.idmorphism(Z4); // Maps every residue to itself