lean4-htt/old_tests/tests/lean/run/occurs_check_bug1.lean
2018-04-10 12:56:55 -07:00

15 lines
464 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.

open nat prod
open decidable
constant modulo' (x : ) (y : ) :
infixl `mod`:70 := modulo'
constant gcd_aux : ×
noncomputable definition gcd' (x y : ) : := gcd_aux (x, y)
theorem gcd_def (x y : ) : gcd' x y = @ite (y = 0) (nat.decidable_eq (snd (x, y)) 0) nat x (gcd' y (x mod y)) :=
sorry
theorem gcd_succ (m n : ) : gcd' m (succ n) = gcd' (succ n) (m mod succ n) :=
eq.trans (gcd_def _ _) (if_neg (nat.succ_ne_zero _))