Chalkboard - v3.0.4
    Preparing search index...

    Function Lagrange

    • Checks if a group and a subgroup satisfy Lagrange's Theorem, i.e. the order of a subgroup divides the order of its group.

      Type Parameters

      • T

      Parameters

      Returns boolean

      const Z4 = Chalkboard.abal.group(Chalkboard.abal.Z(4), (a, b) => (a + b) % 4, 0, (a) => (4 - a) % 4);
      const H = Chalkboard.abal.set([0, 2]);
      const valid = Chalkboard.abal.Lagrange(Z4, H); // Returns true because 2 divides 4