Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Nat/log): Nat.log 2 = Nat.log2 and linear bound on Nat.log (#15096)
There is a `Nat.log2` function in Lean (Init/Data/Nat/Log2.lean), which corresponds to the floor log base 2 over Nat. This PR proves this connection and uses it to show that `Nat.log b n ≤ n` as a simple upper bound on Nat.log. Co-authored-by: Hyeokjun Kwon <[email protected]> Co-authored-by: Yury G. Kudryashov <[email protected]>
- Loading branch information