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.
80 lines
1.8 KiB
Text
80 lines
1.8 KiB
Text
|
|
/--
|
|
trace: b : Bool
|
|
⊢ if b = true then
|
|
have unused := ();
|
|
True
|
|
else False
|
|
---
|
|
warning: declaration uses `sorry`
|
|
-/
|
|
#guard_msgs in
|
|
example (b : Bool) : if b then have unused := (); True else False := by
|
|
trace_state; sorry
|
|
|
|
/--
|
|
trace: b : Bool
|
|
⊢ b = true
|
|
---
|
|
warning: declaration uses `sorry`
|
|
-/
|
|
#guard_msgs in
|
|
example (b : Bool) : if b then have unused := (); True else False := by
|
|
simp; trace_state; sorry
|
|
|
|
/--
|
|
trace: b : Bool
|
|
⊢ b = true ∧
|
|
have unused := ();
|
|
True
|
|
---
|
|
warning: declaration uses `sorry`
|
|
-/
|
|
#guard_msgs in
|
|
example (b : Bool) : if b then have unused := (); True else False := by
|
|
simp (config := Lean.Meta.Simp.neutralConfig); trace_state; sorry
|
|
|
|
/-- error: `simp` made no progress -/
|
|
#guard_msgs in
|
|
example (b : Bool) : if b then have unused := (); True else False := by
|
|
simp (config := Lean.Meta.Simp.neutralConfig) only; trace_state; sorry
|
|
|
|
/--
|
|
trace: b : Bool
|
|
⊢ if b = true then True else False
|
|
---
|
|
warning: declaration uses `sorry`
|
|
-/
|
|
#guard_msgs in
|
|
example (b : Bool) : if b then have unused := (); True else False := by
|
|
simp (config := Lean.Meta.Simp.neutralConfig) +zeta only; trace_state; sorry
|
|
|
|
|
|
/--
|
|
trace: b : Bool
|
|
⊢ if b = true then True else False
|
|
---
|
|
warning: declaration uses `sorry`
|
|
-/
|
|
#guard_msgs in
|
|
example (b : Bool) : if b then have unused := (); True else False := by
|
|
simp (config := Lean.Meta.Simp.neutralConfig) +zetaUnused only; trace_state; sorry
|
|
|
|
|
|
-- Before the introduction of zetaUnused, split would do collateral damage to unused `have`s.
|
|
-- Now they are preserved:
|
|
|
|
/--
|
|
trace: case isTrue
|
|
b : Bool
|
|
h✝ : b = true
|
|
⊢ have unused := ();
|
|
True
|
|
---
|
|
warning: declaration uses `sorry`
|
|
-/
|
|
#guard_msgs in
|
|
example (b : Bool) : if b then have unused := (); True else False := by
|
|
split
|
|
· trace_state; sorry
|
|
· sorry
|