Datasets:
id stringlengths 9 9 | family stringclasses 14
values | kind stringclasses 7
values | lean_decl stringlengths 10 65 | source_repo stringclasses 7
values | source_commit stringclasses 7
values | source_file stringclasses 49
values | license stringclasses 2
values | license_text stringclasses 7
values | zig_version stringclasses 1
value | text stringlengths 1.73k 5.11k | n_vectors int64 16 16 | bytes int64 1.73k 5.11k | sha256 stringlengths 64 64 | verify stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ilz-00000 | LeanCore.BitVec | data_struct | BitVec.extractLsb'_partInstall | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_0(lhs: u32, rhs: u32, stride: u32) u32 {
const ByteSlice0 = struct {
pub fn insert(host: u32, field: u32) u32 {
const cleared: u32 = host & (~@as(u32, 255));
return cleared | ((field & 255));
}
pub fn extract(packed_... | 16 | 2,336 | e1d0141fee843a0e678b1289dfb6e60ea240cd2bd28f77b6635f8dc5b9c6328b | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00001 | LeanCore.BitVec | data_struct | BitVec.extractLsb'_partInstall | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_1(base: u32, step: u32, mask: u32) u32 {
const NibbleAlignedByte = struct {
pub fn insert(host: u32, field: u32) u32 {
const cleared: u32 = host & (~@as(u32, 4080));
return cleared | ((field & 255) << 4);
}
pub fn ex... | 16 | 2,481 | 5e9338050aeeca7a5c4dede260e22549221ffee99af63abce31759270deed0fb | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00002 | LeanCore.BitVec | data_struct | BitVec.extractLsb'_partInstall | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_2(val: u32, delta: u32, cap: u32) u32 {
const TwelveBitField = struct {
pub fn insert(host: u32, field: u32) u32 {
const cleared: u32 = host & (~@as(u32, 1048320));
return cleared | ((field & 4095) << 8);
}
pub fn ex... | 16 | 2,418 | 939dacd2474393b00d2342e949c53ccf3f4ae400d0e4c15a12835508c141e17b | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00003 | LeanCore.BitVec | data_struct | BitVec.extractLsb'_partInstall | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_3(word: u32, shift: u32, lane: u32) u32 {
const SevenBitTag = struct {
pub fn insert(host: u32, field: u32) u32 {
const cleared: u32 = host & (~@as(u32, 1040384));
return cleared | ((field & 127) << 13);
}
pub fn ext... | 16 | 2,397 | 53d0402430ec1cded302b0f696f0e2dd4b5ba92c3a499eda1c5311194cfebdaf | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00004 | LeanCore.BitVec | data_struct | BitVec.extractLsb'_partInstall | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_4(lo: u64, hi: u64, mid: u64) u64 {
const HalfwordLo = struct {
pub fn insert(host: u64, field: u64) u64 {
const cleared: u64 = host & (~@as(u64, 65535));
return cleared | ((field & 65535));
}
pub fn extract(packed_w... | 16 | 2,474 | 8f255ef1fc0c4365507c833445f429ae81c34b3ce03d55d325fedc900aa96ce1 | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00005 | LeanCore.BitVec | data_struct | BitVec.extractLsb'_partInstall | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_5(head: u64, tail: u64, window: u64) u64 {
const PageOffsetField = struct {
pub fn insert(host: u64, field: u64) u64 {
const cleared: u64 = host & (~@as(u64, 268431360));
return cleared | ((field & 65535) << 12);
}
p... | 16 | 2,523 | 9636c7888f5d14f8683153c6b36756c6423f5982a94d11ba63970b612bd5ee03 | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00006 | LeanCore.BitVec | data_struct | BitVec.extractLsb'_partInstall | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_6(acc_in: u64, factor: u64, modulus: u64) u64 {
const VpnSliceField = struct {
pub fn insert(host: u64, field: u64) u64 {
const cleared: u64 = host & (~@as(u64, 4293918720));
return cleared | ((field & 4095) << 20);
}
... | 16 | 2,586 | 2d66706cf13081f55e3c09b4fdd5ca9aa2351a1c4464efd0021d16465fdd2c70 | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00007 | LeanCore.BitVec | data_struct | BitVec.extractLsb'_partInstall | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_7(key_a: u64, key_b: u64, prio: u64) u64 {
const NineBitSlot = struct {
pub fn insert(host: u64, field: u64) u64 {
const cleared: u64 = host & (~@as(u64, 65408));
return cleared | ((field & 511) << 7);
}
pub fn extra... | 16 | 2,471 | 1501c09e0926169f6b08da67288c179f32c817abbea46b21a3fac91df59dd384 | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00008 | LeanCore.BitVec | data_struct | BitVec.extractLsb'_partInstall | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_8(src_val: u64, dst_val: u64, align_p2: u64) u64 {
const TwentyFourBitAddr = struct {
pub fn insert(host: u64, field: u64) u64 {
const cleared: u64 = host & (~@as(u64, 1099511562240));
return cleared | ((field & 16777215) << 16);
... | 16 | 2,666 | 2c031ed3121fa6fb753a57c2fb650c9088b8160635b5acc6f892bf7cf54e0b7e | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00009 | LeanCore.BitVec | data_struct | BitVec.extractLsb'_partInstall | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_9(num: u16, den: u16, quot_in: u16) u16 {
const SixBitOpcode = struct {
pub fn insert(host: u16, field: u16) u16 {
const cleared: u16 = host & (~@as(u16, 504));
return cleared | ((field & 63) << 3);
}
pub fn extract(... | 16 | 2,355 | 894c43fbf4785c880f62a29c135d4a072ac8fe80e1988026d3ba1f79b703633b | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00010 | LeanCore.BitVec | data_struct | BitVec.extractLsb'_partInstall | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_10(node_l: u16, node_r: u16, weight: u16) u16 {
const SevenBitCounter = struct {
pub fn insert(host: u16, field: u16) u16 {
const cleared: u16 = host & (~@as(u16, 4064));
return cleared | ((field & 127) << 5);
}
pub ... | 16 | 2,378 | 944e0faa98ee09a072fcd17ff2b603e747752cb22486d3a554bcc1936627ac6e | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00011 | LeanCore.BitVec | data_struct | BitVec.extractLsb'_partInstall | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_11(blk_a: usize, blk_b: usize, tag: usize) usize {
const CacheSetSlice = struct {
pub fn insert(host: usize, field: usize) usize {
const cleared: usize = host & (~@as(usize, 65472));
return cleared | ((field & 1023) << 6);
}... | 16 | 2,734 | f94d8cc8b32486ed9962c17fbc611622505c9a4ef85e6458c42bf7b2726dba55 | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00012 | LeanCore.BitVec | proc_algo | BitVec.signExtend_eq_xor_sub | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_12(src_val: u32, dst_val: u32, align_p2: u32) u32 {
const raw_field: u32 = src_val & 255;
const sext_xor_sub: u32 = (raw_field ^ 128) -% 128;
const shifted_signed: i32 = @bitCast(raw_field << 24);
const sext_arith_shift: u32 = @bitCast(shifted_signed >... | 16 | 1,953 | d200a0f8f8553b8df213a617f8b1b45594b2dd8dcfdac07ad4ab38bec284872f | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00013 | LeanCore.BitVec | proc_algo | BitVec.signExtend_eq_xor_sub | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_13(num: u32, den: u32, quot_in: u32) u32 {
const raw_field: u32 = num & 4095;
const sext_xor_sub: u32 = (raw_field ^ 2048) -% 2048;
const shifted_signed: i32 = @bitCast(raw_field << 20);
const sext_arith_shift: u32 = @bitCast(shifted_signed >> 20);
... | 16 | 1,997 | d3729b44dd641210c9ae4bd854354db72ea11b8f39b87ddeb8e3e60c64c72221 | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00014 | LeanCore.BitVec | proc_algo | BitVec.signExtend_eq_xor_sub | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_14(node_l: u32, node_r: u32, weight: u32) u32 {
const raw_field: u32 = node_l & 65535;
const sext_xor_sub: u32 = (raw_field ^ 32768) -% 32768;
const shifted_signed: i32 = @bitCast(raw_field << 16);
const sext_arith_shift: u32 = @bitCast(shifted_signed ... | 16 | 1,950 | 0a8eac0580c3735c90855913dac0edefc622ebb464c1c99c114fedfeb4cecde2 | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
ilz-00015 | LeanCore.BitVec | proc_algo | BitVec.signExtend_eq_xor_sub | leanprover/lean4 | eb6cafb7290e8bd5f2937522d8d804f58f02bafc | src/Init/Data/BitVec/Basic.lean | Apache-2.0 | Apache License 2.0 (Apache)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
... | 0.17.0 | const std = @import("std");
pub fn leancore_bitvec_15(blk_a: u64, blk_b: u64, tag: u64) u64 {
const raw_field: u64 = blk_a & 255;
const sext_xor_sub: u64 = (raw_field ^ 128) -% 128;
const shifted_signed: i64 = @bitCast(raw_field << 56);
const sext_arith_shift: u64 = @bitCast(shifted_signed >> 56);
... | 16 | 2,039 | 2b27b112ccc4d6987211b2f0de25bd799a4b4a2c8a2898961ec0af089ba2f5b3 | zig 0.17.0 test: function plus 16 asserted vectors, all pass (x86_64-linux, Debug); builder also required ReleaseSafe and aarch64-linux / wasm32-freestanding compiles |
Ingot-Lean-Zig: Lean 4 theorems as tested Zig 0.17
A sibling of ego0op/ingot-zig. Each row takes one fact proved in a Lean 4 library (integer arithmetic, bit-vectors, hash maps, balanced trees, number theory, finite fields, NTT, RISC-V and ARM64 instruction semantics). It is written as a Zig 0.17 function that computes the result and asserts the theorem in its own body, plus a test block that checks 16 known outputs. Every shipped file passed zig test on Zig 0.17.0 exactly as it appears here.
from datasets import load_dataset
ds = load_dataset("ego0op/ingot-lean-zig", split="train") # 1,828 standalone Zig files
Configs
| config | rows | what it is | use it for |
|---|---|---|---|
train |
1,828 | the true units: function + asserted theorem + 16-vector test | training, fine-tuning |
workbook |
1,208 | proved Lean-Workbook competition statements over ℕ/ℤ, translated by the rule-based lean2zig converter: the Lean statement as a /// comment, each side as a Zig function, and a test checking the statement on generated inputs |
training, Lean↔Zig translation pairs |
twin |
1,828 | an operator-matched "twin" of each unit: same operators, different wiring, so its assert is false on at least one vector (diverges_on) |
contrastive and null-control experiments. Not for plain training |
About 4.6 MB, ≈1.4M tokens with the test blocks (≈0.66M for the function bodies alone). Token counts are estimated as in Ingot (3.27 bytes per token).
How each unit was checked
In order, from 4,445 generated candidates (every stage's drop count is in stats.json and the build ledger):
- Generation. Each unit comes from a cited Lean declaration (
source_repo,source_commit,source_file,lean_decl). Degenerate filler arithmetic such asx *% 1is folded away, and the theorem is stated asstd.debug.assert(lhs == rhs)in the body. - Structure. Exact and near duplicates are removed. Near duplicates are measured on identifier- and literal-normalised 5-grams, and each family is calibrated to a near-duplicate rate of at most 25%. Real Zig sits at 9–12%, so v3.1 doesn't push it to zero.
- Run. 16 vectors with edge values (0, 1, max, max−1, min, powers of two) under Debug and ReleaseSafe. The theorem must hold on every vector and be actively exercised by at least one. 480 generated "theorems" failed at type edges and were dropped.
- Targets. Compiles for x86_64-linux, aarch64-linux and wasm32-freestanding.
- Decontamination. No 13-gram overlap with Ingot-Bench, the Ingot held-out files, or the Babel evaluation sets.
- Repackage. The standalone file shipped here (std import + function + test) was re-run with
zig test: 1,828/1,828 pass.
workbook: Lean statements converted by rule
internlm/Lean-Workbook (Apache-2.0) holds competition-math statements formalised in Lean 4, many with machine-checked proofs. lean2zig translates the integer ones by rule, not with a language model.
- Exact Lean semantics live in
zig/lean.zig: ℕ subtraction stops at 0,x / 0 = 0,x % 0 = x, and ℤ division and modulo are Euclidean. All arithmetic is in overflow-checkedi128. - Verified by running. The statement is proved, so it must hold on every generated input that meets its hypotheses. A disagreement means a translation bug, and the row is dropped. The final run had 0 disagreements. The 6 found during development were translator bugs and are fixed. The helpers separately pass 3,266 cases against a reference implementation of Lean's integer rules.
- Funnel. 10,434 unique proved statements, 2,268 inside the supported fragment (60% are about real numbers and can't run as integer code), 1,900 that pass, 1,208 kept. Dropped along the way: 629 constants such as
2 % 2 = 0, 12 tautologies, and 51 to hold the near-duplicate rate at ≤25%. - Usage. Each file imports
lean.zig. Putzig/lean.zignext to it to compile or test.
Mix
| family | rows | family | rows | |
|---|---|---|---|---|
| LeanCore.KernelContextual | 910 | Mathlib.CombinatoricsIndex | 67 | |
| Mathlib.LinearAlgebraPoly | 134 | Batteries.HeapsRBMapFin | 62 | |
| LeanCore.BitVec | 131 | LeanCore.StdDTreeMap | 60 | |
| ZkEvm.PrimeFields | 97 | LNSym.Arm64Isa | 50 | |
| Mathlib.NumberTheory | 82 | LeanCore.NatIntDivGcd | 40 | |
| LeanCore.StdHashMapArray | 77 | ZkEvm.NTT | 40 | |
| ZkEvm.RiscvIsa | 74 | Batteries.UnionFind | 4 |
KernelContextual is half the rows, about 29% of tokens. If you evaluate on this data, report results per family.
Limits
- These are generated programs, not human-written code. Each one encodes a real Lean theorem, but the code shape is the generator's. Expect a narrower style than
ingot-zigand mix it in alongside real Zig, not instead of it. - Two families stay repetitive, by design. A minimum of 40 units per family keeps NTT (95% near-duplicate rate) and NatIntDivGcd (70%) templated. UnionFind is down to 4 units: 59 of its 63 verified units overlap the evaluation benchmarks (13-gram check) and were removed to keep those benchmarks clean. More UnionFind needs new source material, not a looser filter.
workbookis arithmetic, not algorithms. It holds identities and divisibility facts about integers, which is narrower than thetrainfamilies.- 16 vectors is testing, not proof. The Lean proof covers all inputs; the Zig check covers the vectors.
- The functions use wrapping arithmetic (
+%,*%) where the Lean statement is about fixed-width words.
License
Each row carries the license of the Lean library it was derived from (license, license_text): Apache-2.0 (lean4, batteries, mathlib4, LNSym, ArkLib, CompPoly) or BSD-2-Clause (riscv-zkvm RiscvZkvm/Isa). workbook rows are derived from internlm/Lean-Workbook (Apache-2.0). See LICENSE.md. The collection layout and the build tools are MIT.
Built by Opus · Smelter (Claude) with Gokce Özdemir as part of the Babel project, from Argon · Arbiter's Lean→Zig generators.
- Downloads last month
- 2