lean4-htt/tests/lean/run/grind_9562.lean
Leonardo de Moura 7034310a3b
fix: disequality proof construction in grind (#9578)
This PR fixes an issue in `grind`'s disequality proof construction. The
issue occurs when an equality is merged with the `False` equivalence
class, but it is not the root of its congruence class, and its
congruence root has not yet been merged into the `False` equivalence
class yet.

closes #9562
2025-07-27 14:49:10 +00:00

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

axiom A : Type
axiom angle (x y z : A) : Int
axiom pi : Int
axiom Collinear (x y z : A) : Prop
axiom collinear_iff_eq_or_eq_or_angle_eq_zero_or_angle_eq_pi {p₁ p₂ p₃ : A} :
Collinear p₁ p₂ p₃ ↔ p₁ = p₂ p₃ = p₂ angle p₁ p₂ p₃ = 0 angle p₁ p₂ p₃ = pi
example {a b c a' b' c' : A} (h : ¬Collinear a b c)
(ha₁ : angle a b c = angle a' b' c')
(h' : angle a' b' c' = 0 angle a' b' c' = pi) :
False := by
grind only [collinear_iff_eq_or_eq_or_angle_eq_zero_or_angle_eq_pi]