Skip to content

Commit 666bf91

Browse files
committed
Fixup
1 parent 45f10cd commit 666bf91

5 files changed

Lines changed: 13 additions & 5 deletions

File tree

Benchmarks/Compile/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ Runs the Ix compiler over the following libraries when imported:
1111
`lake exe compile-<lib>`, e.g. `compile-mathlib`
1212

1313
> [!NOTE]
14-
> Compiling Mathlib and FLT, which depends on the former, requires a multi-core CPU and 128+ GB RAM.
14+
> Compiling Mathlib and FLT, which depends on the former, requires a multi-core CPU and 64+ GB RAM.

Benchmarks/CompileFC/Main.lean

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
import FormalConjectures
22

33
def main : IO Unit :=
4-
IO.println s!"Formal Conjectures environment"
4+
IO.println s!"Compiling Formal Conjectures environment"
5+
6+
let leanEnv ← get_env!
7+
8+
let start ← IO.monoMsNow
9+
let phases ← Ix.CompileM.rsCompilePhases leanEnv
10+
let elapsed := (← IO.monoMsNow) - start
11+
12+
IO.println s!"{phases.rawEnv.consts.size} consts, {phases.condensed.blocks.size} blocks, {phases.compileEnv.constCount} compiled in {elapsed}ms"

Benchmarks/CompileFC/flake.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
system,
3232
pkgs,
3333
...
34-
}: let
35-
in {
34+
}: {
3635
# Lean overlay
3736
_module.args.pkgs = import nixpkgs {
3837
inherit system;

Benchmarks/CompileFC/lakefile.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ name = "CompileFC"
88
[[lean_exe]]
99
name = "compile-fc"
1010
root = "Main"
11+
supportInterpreter = true
1112

1213
[[require]]
1314
name = "formal_conjectures"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leanprover/lean4:v4.22.0
1+
leanprover/lean4:v4.26.0

0 commit comments

Comments
 (0)