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.
21 lines
628 B
Text
21 lines
628 B
Text
import Lean
|
|
|
|
open Lean Meta
|
|
|
|
-- set_option trace.Meta.Closure true
|
|
|
|
/--
|
|
info: before: h.2
|
|
---
|
|
info: after: _proof_2 ?m.1 h
|
|
-/
|
|
#guard_msgs(pass trace, all) in
|
|
run_meta do
|
|
have l := ← Lean.Meta.mkFreshExprMVar (mkConst ``True) (kind := .syntheticOpaque)
|
|
let ty := mkAnd (mkConst ``True) (.letE `foo (mkConst ``True) l (mkConst ``True) false)
|
|
withLocalDecl `h default ty fun x => do
|
|
let e := mkProj ``And 1 x
|
|
Lean.logInfo m!"before: {e}"
|
|
-- works fine without this line
|
|
let e ← Lean.Meta.mkAuxTheorem (mkConst ``True) e (zetaDelta := true) -- or false, not really relevant
|
|
Lean.logInfo m!"after: {e}"
|