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.

@[implicit_reducible]
Instances For
    @[implicit_reducible]
    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.

      @[implicit_reducible]
      Instances For
        @[implicit_reducible]
        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.

          @[implicit_reducible]
          Instances For
            @[implicit_reducible]
            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.

              @[implicit_reducible]
              Instances For
                @[implicit_reducible]
                Instances For
                  theorem UInt64.intCast_neg (x : Int) :
                  ↑(-x) = -x
                  @[implicit_reducible]
                  Instances For
                    @[implicit_reducible]
                    Instances For
                      theorem USize.intCast_neg (x : Int) :
                      ↑(-x) = -x
                      @[implicit_reducible]
                      @[implicit_reducible]
                      @[implicit_reducible]
                      @[implicit_reducible]
                      @[implicit_reducible]