lean4-htt/tests/lean/run/2835.lean
Leonardo de Moura ef33882e2f test: issue #2835
closes #2835
2024-03-06 15:29:04 -08:00

6 lines
283 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.

@[simp] theorem imp_self' {a : Prop} : (a → a) ↔ True := ⟨fun _ => trivial, fun _ => id⟩
example {P : Prop} : P → P := by simp only [imp_self']
example {α : Prop} {P : α → Prop} {f : ∀ {a}, P a → α} {a : α} : (h : P a) → P (f h) := by
simp only [imp_self']