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.
27 lines
579 B
Text
27 lines
579 B
Text
/-!
|
|
# Make sure `injection` tactic can handle `0 = n + 1`
|
|
https://github.com/leanprover/lean4/issues/5064
|
|
-/
|
|
|
|
/-!
|
|
Motivating example from #5064.
|
|
This failed when generating the splitter theorem for `thingy`.
|
|
-/
|
|
|
|
def thingy : List (Nat ⊕ Nat) → List Bool
|
|
| Sum.inr (_n + 2) :: l => thingy l
|
|
| _ => []
|
|
termination_by l => l.length
|
|
|
|
/-- trace: ⊢ [] = [] -/
|
|
#guard_msgs in
|
|
theorem thingy_empty : thingy [] = [] := by
|
|
unfold thingy
|
|
trace_state
|
|
rfl
|
|
|
|
/-!
|
|
Test using `injection` directly.
|
|
-/
|
|
example (n : Nat) (h : 0 = n + 1) : False := by
|
|
with_reducible injection h
|