lean4-htt/tests/lean/run/grind_diseq.lean
Leonardo de Moura 9d622270a1
feat: custom congruence rule for equality in grind (#6510)
This PR adds a custom congruence rule for equality in `grind`. The new
rule takes into account that `Eq` is a symmetric relation. In the
future, we will add support for arbitrary symmetric relations. The
current rule is important for propagating disequalities effectively in
`grind`.
2025-01-02 22:08:19 +00:00

5 lines
179 B
Text

set_option grind.debug true
example (p q : Prop) (a b c d : Nat) :
a = b → c = d → a ≠ c → (d ≠ b → p) → (d ≠ b → q) → p ∧ q := by
grind (splits:=0)