Created
June 15, 2014 11:03
-
-
Save Tagussan/840763b181ebb1690ddb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Require Import Arith. | |
Require Import Omega. | |
Require Import Recdef. | |
Function log(n:nat) {wf lt n} := | |
if le_lt_dec n 1 then | |
0 | |
else | |
S (log (Div2.div2 n)). | |
Proof. | |
intros. | |
apply Div2.lt_div2. | |
omega. | |
apply well_founded_ltof. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment