2015-02-06 11:03:36 -08:00
|
|
|
import data.nat
|
|
|
|
open nat
|
|
|
|
constant f : nat → nat
|
|
|
|
|
|
|
|
example (x y : nat) (H1 : (λ z, z + 0) x = y) : f x = f y :=
|
2015-03-27 17:26:06 -07:00
|
|
|
by rewrite [▸* at H1, ^[add, nat.rec_on, of_num] at H1, H1]
|
2015-02-06 11:03:36 -08:00
|
|
|
|
|
|
|
example (x y : nat) (H1 : (λ z, z + 0) x = y) : f x = f y :=
|
2015-03-27 17:26:06 -07:00
|
|
|
by rewrite [▸* at H1, ↑[add, nat.rec_on, of_num] at H1, H1]
|