simple-counterexamples/SimpleCounterexamples/NotFEqImpEq.lean
2025-04-08 22:19:21 -04:00

12 lines
308 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.

theorem not_f_eq_imp_eq
: ¬∀{α β: Type} (f : α → β) a b, f a = f b → a = b := by
intro h
have : 1 = 2 := h (fun _ => 0) 1 2 rfl
contradiction
-- Counter-counterexample? (This is trivial.)
theorem eq_imp_f_eq (f : α → β) (a b : α)
: a = b → f a = f b := by
intro h
rw [h]