mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
14 lines
543 B
Lean4
14 lines
543 B
Lean4
module
|
||
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]
|