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.
52 lines
1.1 KiB
Text
52 lines
1.1 KiB
Text
/--
|
|
error: Tactic `apply` failed: could not unify the type of `x`
|
|
PUnit.{1}
|
|
with the goal
|
|
PUnit.{0}
|
|
|
|
x : PUnit
|
|
⊢ PUnit
|
|
-/
|
|
#guard_msgs in
|
|
example (x : PUnit.{1}) : PUnit.{0} := by
|
|
apply x
|
|
|
|
/--
|
|
error: Type mismatch
|
|
x
|
|
has type
|
|
PUnit.{1}
|
|
of sort `Type` but is expected to have type
|
|
PUnit.{0}
|
|
of sort `Prop`
|
|
-/
|
|
#guard_msgs in
|
|
example (x : PUnit.{1}) : PUnit.{0} :=
|
|
x
|
|
|
|
/--
|
|
error: Tactic `rfl` failed: The left-hand side
|
|
∀ (x : PUnit.{1}), True
|
|
is not definitionally equal to the right-hand side
|
|
∀ (x : PUnit.{2}), True
|
|
|
|
⊢ (∀ (x : PUnit), True) ↔ ∀ (x : PUnit), True
|
|
-/
|
|
#guard_msgs in
|
|
example : (∀ _ : PUnit.{1}, True) ↔ ∀ _ : PUnit.{2}, True := by
|
|
rfl
|
|
|
|
inductive Test where
|
|
| mk (x : Prop)
|
|
|
|
/--
|
|
error: Tactic `rfl` failed: The left-hand side
|
|
(Test.mk (∀ (x : PUnit.{1}), True)).1
|
|
is not definitionally equal to the right-hand side
|
|
(Test.mk (∀ (x : PUnit.{2}), True)).1
|
|
|
|
⊢ (Test.mk (∀ (x : PUnit), True)).1 = (Test.mk (∀ (x : PUnit), True)).1
|
|
-/
|
|
#guard_msgs in
|
|
example : (Test.mk (∀ _ : PUnit.{1}, True)).1 = (Test.mk (∀ _ : PUnit.{2}, True)).1 := by
|
|
rfl
|