mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
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.
30 lines
472 B
Lean4
30 lines
472 B
Lean4
set_option pp.motives.pi false
|
||
|
||
#print Nat.add
|
||
|
||
set_option pp.motives.pi true
|
||
|
||
#print Nat.add
|
||
|
||
theorem ex : ∀ {α β : Sort u} (h : α = β) (a : α), cast h a ≍ a
|
||
| α, _, rfl, a => HEq.refl a
|
||
|
||
set_option pp.motives.nonConst false
|
||
|
||
#print ex
|
||
|
||
set_option pp.motives.nonConst true
|
||
|
||
#print ex
|
||
|
||
noncomputable def fact (n : Nat) : Nat :=
|
||
Nat.recOn n 1 (fun n acc => (n+1)*acc)
|
||
|
||
set_option pp.motives.all false
|
||
|
||
#print fact
|
||
|
||
set_option pp.motives.all true
|
||
|
||
#print fact
|