Documentation

Mathlib.Data.Nat.Basic

Basic instances for the natural numbers #

This file contains:

Instances #

Extra instances to short-circuit type class resolution and ensure computability

Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations

Extra lemmas #

theorem Nat.nsmul_eq_mul (m : ) (n : ) :
m n = m * n
theorem Nat.toAdd_pow (a : Multiplicative ) (b : ) :
Multiplicative.toAdd (a ^ b) = Multiplicative.toAdd a * b
@[simp]
theorem Nat.ofAdd_mul (a : ) (b : ) :
Multiplicative.ofAdd (a * b) = Multiplicative.ofAdd a ^ b