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.
47 lines
915 B
Text
47 lines
915 B
Text
set_option debug.proofAsSorry true
|
||
set_option pp.mvars false
|
||
|
||
/--
|
||
error: Type mismatch
|
||
rfl
|
||
has type
|
||
?_ = ?_
|
||
but is expected to have type
|
||
2 + 2 = 5
|
||
-/
|
||
#guard_msgs in
|
||
example : 2 + 2 = 5 := rfl -- This is not a theorem
|
||
|
||
/-- warning: declaration uses `sorry` -/
|
||
#guard_msgs in
|
||
theorem ex : 2 + 2 = 5 := id rfl -- id rfl to avoid the rfl attribute kicking in
|
||
|
||
#guard_msgs in
|
||
def data (w : Nat) : String := toString w
|
||
|
||
/-- info: "37" -/
|
||
#guard_msgs in
|
||
#eval data 37
|
||
|
||
/-- warning: declaration uses `sorry` -/
|
||
#guard_msgs in
|
||
theorem tst1 : 0 + x = 1*x + 0 := by
|
||
simp
|
||
|
||
/-- warning: declaration uses `sorry` -/
|
||
#guard_msgs in
|
||
theorem tst2 : ∀ x, 0 + x = 1*x + 0 := by
|
||
intro x
|
||
simp
|
||
|
||
/-- warning: declaration uses `sorry` -/
|
||
#guard_msgs in
|
||
theorem tst3 : x = 2*x + 1 := by
|
||
rfl
|
||
|
||
#guard_msgs in
|
||
def concatSelf (as : List α) := as ++ as
|
||
|
||
/-- info: [1, 2, 3, 1, 2, 3] -/
|
||
#guard_msgs in
|
||
#eval concatSelf [1, 2, 3]
|