Documentation

Lean.Meta.Sym.Arith.Kronecker

Parameters of the certificates by Kronecker substitution (Init/Grind/Ring/Kronecker.lean): the elaborator side of the bounds that the kernel checks.

The estimates below saturate at 2 ^ kronSatBits, which is larger than the bit limit of every Kronecker certificate: an estimate that reaches it rejects the certificate (kronExponent?), and the estimate is never computed in full. Without saturation, ((x - x) ^ 64) ^ 64 … builds integers of billions of bits.

Equations
Instances For

    a * b, or a value of at least 2 ^ kronSatBits if a * b is larger.

    Equations
    Instances For

      a ^ k, or a value of at least 2 ^ kronSatBits if a ^ k is larger. A saturated a stays saturated even for k = 0: the kernel still computes the estimate of the base.

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

        true if normalizing e multiplies out a sum: a product or power with a sum of nonconstant terms. Otherwise normalizing e only merges terms, and is cheaper than a Kronecker certificate.

        Equations
        Instances For

          The sum of the absolute values of the coefficients of p (Grind.CommRing.Poly.norm1_k).

          Equations
          Instances For

            The packed code of m in base B (Grind.CommRing.Mon.code_k).

            Equations
            Instances For
              def Lean.Meta.Sym.Arith.kronExponent? (norm maxCode maxBits : Nat) :

              The exponent K of a Kronecker certificate whose coefficients are bounded by norm and whose monomials have codes at most maxCode, if the values at the point stay below maxBits bits: they have about K * maxCode bits.

              Equations
              Instances For

                The exponent K of the linear Kronecker certificate (Grind.CommRing.Expr.eq_of_kronLin) for l and r, if they are linear and the values at the point stay below maxBits bits.

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

                  Grind.CommRing.InvVars.lookup_k: the search stops at the first larger variable.

                  Equations
                  Instances For

                    The coefficient bound and the denominator Grind.CommRing.Expr.majQ_k of e, where the variables of invs denote the inverses of their numerals.

                    Equations
                    Instances For
                      def Lean.Meta.Sym.Arith.kronQArgs? (l r : RingExpr) (invs : List (Var × Nat)) (maxBits : Nat) :

                      The arguments K and B of the Kronecker certificate of a field identity (Grind.CommRing.Expr.eq_of_kronQ) for l and r, if the values stay below maxBits bits.

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

                        The exponent K of the linear field certificate (Grind.CommRing.Expr.eq_of_kronQLin) for l and r, if they are linear in the variables not in invs and the values stay below maxBits bits.

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