下面是我的错误尝试。关于如何进行的任何建议?
def le(f g : ℕ) : Prop := ∃ a : ℕ , a + f = g
local notation a ≤ b := le a b
example : ∀ f g : ℕ , f ≤ g → g ≤ f → f = g :=
begin
assume f g fg gf,
dsimp[le.nat] at fg,
dsimp[le.nat] at gf,
cases fg with a b,
cases gf with c d,
rewrite← b at d,
rewrite← d at b,
induction f with f' ih,
rewrite← d,
ring,
ring at d,
rewrite← b,
ring,
ring at b,
rewrite d,
ring,
cases a,
refl,
rewrite← d,
cases c,
ring,
contradiction,
cases c,
ring at d,
rewrite← d,
cases a,
ring,
ring at d,
ring at b,
exact b,
end