This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import NNG.MyNat.Multiplication
namespace MyNat
open MyNat
def pow : ℕ → ℕ → ℕ
| _, zero => one
| m, (succ n) => pow m n * m
instance : Pow ℕℕ where
pow := pow
-- notation a ^ b := pow a b
-- Important note: This here is the real `rfl`, not the weaker game version
example : (1 : ℕ) ^ 1 = 1 := by rfl
theorem pow_zero (m : ℕ) : m ^ 0 = 1 := by rfl
theorem pow_succ (m n : ℕ) : m ^ (succ n) = m ^ n * m := by rfl