lean4-htt/library/init/data/nat/pow.lean

24 lines
436 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/-
Copyright (c) 2017 Galois Inc. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
exponentiation on natural numbers
This is a work-in-progress
-/
prelude
import init.data.nat.basic init.meta
namespace nat
def pow (b : ) :
| 0 := 1
| (succ n) := pow n * b
infix `^` := pow
@[simp] lemma pow_succ (b n : ) : b^(succ n) = b^n * b := rfl
end nat