lean4-htt/library/init/data/nat/pow.lean
Mario Carneiro 3b89739850 feat(library/data/list, library/data/array): theorems needed for new hash_map
Note that hash_map is moved to library_dev, where the more advanced theorems on lists are available
2017-05-16 14:38:43 -07:00

26 lines
479 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
lemma pow_succ (b n : ) : b^(succ n) = b^n * b := rfl
@[simp] lemma pow_zero (b : ) : b^0 = 1 := rfl
end nat