lean2/tests/lean/run/occurs_check_bug1.lean

18 lines
481 B
Text
Raw Normal View History

import logic data.nat data.prod
open nat prod
open decidable
constant modulo (x : ) (y : ) :
infixl `mod`:70 := modulo
constant gcd_aux : ×
definition gcd (x y : ) : := gcd_aux (pair x y)
theorem gcd_def (x y : ) : gcd x y = @ite (y = 0) (nat.has_decidable_eq (pr2 (pair 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 !succ_ne_zero)