Documentation

Init.GrindInstances.Ring.UInt

theorem UInt8.ofNat_mod_size' {x : Nat} :
ofNat (x % 256) = ofNat x

Variant of UInt8.ofNat_mod_size replacing 2 ^ 8 with 256.

Equations
Instances For
    Equations
    Instances For
      theorem UInt8.intCast_neg (x : Int) :
      ↑(-x) = -x
      theorem UInt16.ofNat_mod_size' {x : Nat} :
      ofNat (x % 65536) = ofNat x

      Variant of UInt16.ofNat_mod_size replacing 2 ^ 16 with 65536.

      Equations
      Instances For
        Equations
        Instances For
          theorem UInt16.intCast_neg (x : Int) :
          ↑(-x) = -x
          theorem UInt32.ofNat_mod_size' {x : Nat} :
          ofNat (x % 4294967296) = ofNat x

          Variant of UInt32.ofNat_mod_size replacing 2 ^ 32 with 4294967296.

          Equations
          Instances For
            Equations
            Instances For
              theorem UInt32.intCast_neg (x : Int) :
              ↑(-x) = -x
              theorem UInt64.ofNat_mod_size' {x : Nat} :
              ofNat (x % 18446744073709551616) = ofNat x

              Variant of UInt64.ofNat_mod_size replacing 2 ^ 64 with 18446744073709551616.

              Equations
              Instances For
                Equations
                Instances For
                  theorem UInt64.intCast_neg (x : Int) :
                  ↑(-x) = -x
                  Equations
                  Instances For
                    Equations
                    Instances For
                      theorem USize.intCast_neg (x : Int) :
                      ↑(-x) = -x
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Equations
                      • One or more equations did not get rendered due to their size.