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