lean4-htt/tests/lean/run/simp_cache_perf_issue.lean
Leonardo de Moura e1b7984836
perf: improve simp cache behavior for well-behaved dischargers (#4044)
See comment at `Methods.wellBehavedDischarge`.
The default discharger is now well-behaved.
2024-05-01 19:57:44 +00:00

21 lines
484 B
Text

@[congr]
theorem exists_prop_congr {p p' : Prop} {q q' : p → Prop} (hq : ∀ h, q h ↔ q' h) (hp : p ↔ p') :
Exists q ↔ ∃ h : p', q' (hp.2 h) := sorry
set_option maxHeartbeats 1000 in
example (x : Nat) :
∃ (h : x = x)
(h : x = x)
(h : x = x)
(h : x = x)
(h : x = x)
(h : x = x)
(h : x = x)
(h : x = x)
(h : x = x)
(h : x = x)
(h : x = x)
(h : x = x)
(h : x = x), True := by
simp only
sorry