lean4-htt/tests/lean/run/grind_congr_hash_issue.lean
Leonardo de Moura 6683d1eb91
chore: add module keyword to grind tests (#10036)
This PR also fixes missing `@[expose]` in grind support definitions.
2025-08-21 22:02:08 +00:00

26 lines
674 B
Text

module
set_option grind.debug true
opaque f : Nat → Nat
opaque g : (Nat → Nat) → Prop
example
: f a = x →
-- At this point `f` has not been internalized
g f →
-- Since `f` has now occurred as the argument of `f`, it is internalized
f b = y →
-- The congruence hash for `f a` must not depend on whether `f` has been internalized or not
b = a →
x = y := by
grind
-- Same example with `a = b` to ensure the previous issue does not depend on how we break
-- ties when merging equivalence classes of the same size
example
: f a = x →
g f →
f b = y →
a = b →
x = y := by
grind