Repository navigation
Expand file tree
/
Copy pathlakefile.lean
More file actions
65 lines (53 loc) · 3.05 KB
/
Copy pathlakefile.lean
File metadata and controls
65 lines (53 loc) · 3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import Lake
open System Lake DSL
package CompStark where
version := v!"0.1.0"
testDriver := "CompStarkNativeTests"
-- Pinned to a CompPoly commit with the packed NTT, the batched coset LDE on chunks of rows with
-- input transposes by column range, coset interpolation generic over 32-bit Montgomery fields,
-- fast KoalaBear⁵ and spec fields over the fast base field, word-sized packed loads and stores and
-- decodes, the Montgomery word kernels, and coordinate planes generic over fast extensions.
require CompPoly from git "https://github.com/mitschabaude-bot/CompPoly.git" @
"f5e8d4edcd939f18cd0d4dad481a791529f445dd"
-- ArkLib main with Johnson-regime mutual correlated agreement for power curves, lossy mutual
-- correlated agreement, FRI on the interaction layer with its knowledge certificate on Plonky3's
-- commit-phase tree, state restoration over public-coin protocols with grinding draws, and
-- Fiat–Shamir on a duplex challenger with challenges of several squeezes, its draws bounded
-- against the certificate's challenge laws, the BCS compiler: Merkle commitments in place of
-- oracle messages, correlated agreement and lossy MCA for Reed–Solomon curves in the
-- unique-decoding range, and the fold lists of Plonky3's schedule, against VCVio with Merkle trees
-- of injected payloads (branch `compstark` of the bot fork).
require Arklib from git "https://github.com/mitschabaude-bot/ArkLib.git" @
"4765c7244f1e57892e9d0b016b35ecbf9a7f2500"
-- VCVio with Merkle trees of injected payloads, caps and pruned multi-openings (branch
-- `merkle-mixed` of the bot fork).
require VCVio from git "https://github.com/mitschabaude-bot/VCVio.git" @
"b46db1d8226410dd2e6b66ce2f982027f1c26fba"
-- Mathlib as CompPoly pins it, last so that its dependencies take precedence over ArkLib's.
require mathlib from git "https://github.com/leanprover-community/mathlib4" @ "v4.35.0"
@[default_target]
lean_lib CompStark where
platformIndependent := true
/-- CPU-targeted packed kernels; the proof artifacts remain platform independent. -/
lean_lib CompStarkPackedNative where
roots := #[`CompStark.Poseidon2.Packed, `CompStark.Poseidon2.Packed24,
`CompStark.Merkle.Packed, `CompStark.Merkle.PackedColumns,
`CompStark.Stark.ProgWords, `CompStark.Stark.ProgGroup, `CompStark.Stark.Fast,
`CompStark.KoalaBear.Fast, `CompStark.KoalaBear.Group, `CompStark.BabyBear.Fast]
platformIndependent := true
moreLeancArgs := #["-march=native", "-mstackrealign"]
lean_lib CompStarkTests where
srcDir := "tests"
/-- AIRs and constants of the tests and benchmarks that are not part of the library, such as
Plonky3's Keccak AIR and its quotient kernel. -/
lean_lib CompStarkFixtures where
srcDir := "fixtures"
moreLeancArgs := #["-march=native"]
/-- The test driver: builds the `#guard` library `CompStarkTests`, which it imports, and runs the
known-answer checks on the packed kernels compiled. -/
lean_exe CompStarkNativeTests where
srcDir := "tests"
moreLeancArgs := #["-march=native"]
lean_exe CompStarkBench where
srcDir := "bench"
moreLeancArgs := #["-march=native"]