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.
10 lines
369 B
Text
10 lines
369 B
Text
import Lean
|
|
|
|
/-- info: (a + 1).add a -/
|
|
#guard_msgs in
|
|
open Lean Meta Sym in
|
|
run_meta SymM.run do
|
|
let s₁ ← share <| mkLambda `x .default Nat.mkType (mkApp (mkConst ``Nat.add) (mkNatAdd (mkBVar 0) (mkNatLit 1)))
|
|
let s₂ ← share <| mkConst `a
|
|
let e ← share <| mkApp2 (mkBVar 1) (mkBVar 0) (mkBVar 0)
|
|
logInfo <| (← instantiateRevBetaS e #[s₁, s₂])
|