Documentation

Mathlib.Deprecated.NatLemmas

Note about deprecated files #

This file is deprecated, and is no longer imported by anything in mathlib other than other deprecated files, and test files. You should not need to import it.

multiplication

@[deprecated Nat.mul_eq_zero]
theorem Nat.eq_zero_of_mul_eq_zero {m : } {n : } :
n * m = 0n = 0 m = 0

Alias of the forward direction of Nat.mul_eq_zero.

successor and predecessor

@[deprecated]
def Nat.discriminate {B : Sort u} {n : } (H1 : n = 0B) (H2 : (m : ) → n = m.succB) :
B
Equations
  • One or more equations did not get rendered due to their size.
Instances For
    @[deprecated]

    induction principles

    @[deprecated]
    def Nat.subInduction {P : Sort u} (H1 : (m : ) → P 0 m) (H2 : (n : ) → P n.succ 0) (H3 : (n m : ) → P n mP n.succ m.succ) (n : ) (m : ) :
    P n m
    Equations
    Instances For

      mod

      @[deprecated]
      theorem Nat.cond_decide_mod_two (x : ) [d : Decidable (x % 2 = 1)] :
      (bif decide (x % 2 = 1) then 1 else 0) = x % 2