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.
17 lines
537 B
Text
17 lines
537 B
Text
import Lean
|
|
|
|
axiom ex (p q : Prop) (h : p ∧ q) : q ∧ q
|
|
|
|
open Lean in
|
|
open Lean.Meta in
|
|
def test : MetaM Unit := do
|
|
let type := (← getConstInfo ``ex).type
|
|
let mvar ← mkFreshExprMVar type
|
|
let (#[p, q, h], mvarId) ← mvar.mvarId!.introNP 3 | throwError "unexpected"
|
|
trace[Meta.debug] "{MessageData.ofGoal mvarId}"
|
|
let (s₁, s₂) ← mvarId.byCases (mkFVar p) `hAux
|
|
trace[Meta.debug] "{MessageData.ofGoal s₁.mvarId}\n------\n{MessageData.ofGoal s₂.mvarId}"
|
|
return ()
|
|
|
|
set_option trace.Meta.debug true
|
|
#eval test
|