Documentation

HexRootsMathlib.Basic

@[reducible, inline]

The complex cast of an executable integer polynomial.

Equations
Instances For
    @[simp]

    Coefficients of the complex cast are the complex casts of the executable coefficients.

    The complex cast preserves the executable natural degree.

    The executable natural ceiling logarithm is an upper base-two logarithm.

    A positive natural lies above half the power of two selected by the executable ceiling logarithm.

    The real value of an exact dyadic number, through its rational value.

    Equations
    Instances For
      @[simp]

      The real value of zero is zero.

      @[simp]

      The real value of an integer dyadic is the corresponding integer.

      @[simp]

      The real value of one is one.

      @[simp]

      The real value of two is two.

      @[simp]

      The real-value map preserves addition.

      @[simp]

      The real-value map preserves negation.

      @[simp]

      The real-value map preserves subtraction.

      @[simp]

      The real-value map preserves multiplication.

      @[simp]
      theorem HexRootsMathlib.Dyadic.toReal_pow (x : Dyadic) (n : ) :
      toReal (x ^ n) = toReal x ^ n

      The real-value map preserves natural powers.

      toRat turns a right shift into multiplication by a negative power of two.

      toRat turns a left shift into multiplication by a power of two.

      The real value of a left shift is multiplication by a power of two.

      The real value of a right shift is multiplication by a negative power of two.

      @[simp]

      Real-value comparison reflects and preserves dyadic non-strict order.

      @[simp]

      Real-value comparison reflects and preserves dyadic strict order.

      @[simp]

      The real-value map preserves the executable dyadic absolute value.

      @[simp]

      The real-value map preserves the executable dyadic maximum.

      @[simp]

      The real-value map preserves the executable dyadic minimum.

      The executable dyadic ceiling logarithm bounds every positive dyadic by the corresponding power of two.

      The power selected by the executable dyadic ceiling logarithm is less than twice the positive input.

      @[simp]

      The real value of n * 2 ^ (-prec) represented as a dyadic.

      The complex value of an exact Gaussian dyadic.

      Equations
      Instances For
        @[simp]

        The real part of the complex value is the real value of the first coordinate.

        @[simp]

        The imaginary part of the complex value is the real value of the second coordinate.

        @[simp]

        Casting an integer Gaussian dyadic gives the corresponding complex integer.

        @[simp]

        The complex-value map preserves Gaussian-dyadic addition.

        @[simp]

        The complex-value map preserves Gaussian-dyadic subtraction.

        @[simp]

        The complex-value map preserves Gaussian-dyadic conjugation.

        @[simp]

        The complex-value map preserves Gaussian-dyadic multiplication.

        @[simp]

        Casting a natural multiple of a Gaussian dyadic gives scalar multiplication in .

        @[simp]

        Casting an exact Gaussian-dyadic power gives the corresponding complex power.

        @[simp]

        The real value of the exact squared modulus is the complex squared modulus.