Skip to content

Instantly share code, notes, and snippets.

@Tagussan
Created June 15, 2014 11:03
Show Gist options
  • Save Tagussan/840763b181ebb1690ddb to your computer and use it in GitHub Desktop.
Save Tagussan/840763b181ebb1690ddb to your computer and use it in GitHub Desktop.
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