Repository navigation
Import passive catalytic register programs - #1048
Conversation
|
Advisory cross-file review against Lean Pool's supervisory rubric. This is not by itself a significance, source-verification, or merge verdict. [Medium impact] No blocking issue was found in the source-link repair. SummaryImports the catalytic-register formalization, including the prime-field classifier, powering certificates, and balanced products.
Reviews (4) · Last reviewed commit: "Link the catalytic project card directly..." · Reviewed by Greptile |
Proof profile (new / modified Lean files)
This build covers the changed modules and their dependency cones on top of the restored cache. The serial per-file sums below are useful for ranking slow files, not as a build budget. Total heartbeats: 496,096 maxHeartbeats units across 20 valid files (8,077 added LOC). Sum of Count-heartbeats wall-clock total: 79.78 s. Repeated import cost inside Heartbeat values sum disjoint root command traces with LOC counts added lines in the profiled Lean files from this PR diff.
Aggregate phase totals
Slowest changed modules (from
|
| Changed module | Lake time |
|---|---|
LeanPool.CatalyticRegisters.PrimeFieldTools |
3.60 s |
LeanPool.CatalyticRegisters.BilinearFrobenius |
3.10 s |
LeanPool.CatalyticRegisters.Certificates.EleventhPower |
2.60 s |
LeanPool.CatalyticRegisters.ExtensionFieldSeparation |
2.30 s |
LeanPool.CatalyticRegisters.DigitSumDichotomy |
2.30 s |
LeanPool.CatalyticRegisters.Certificates.NinthPower |
2.20 s |
LeanPool.CatalyticRegisters.Certificates.ThirteenthPower |
2.00 s |
LeanPool.CatalyticRegisters.Certificates.FifteenthPower |
2.00 s |
LeanPool.CatalyticRegisters.SymbolicExecution |
1.80 s |
LeanPool.CatalyticRegisters.MathlibRing |
1.70 s |
LeanPool.CatalyticRegisters.FourRegisterPowering |
1.50 s |
LeanPool.CatalyticRegisters.Certificates.SeventhPower |
1.20 s |
Per-file `lean --profile` output
LeanPool/CatalyticRegisters.lean
import took 490ms
cumulative profiling times:
declTypeLinter 0.9ms
elaboration 0.247ms
import 490ms
initialization 33.1ms
interpretation 42.3ms
linting 0.922ms
module linting 0.034ms
parsing 0.0522ms
tacticAnalysis 0.337ms
real 1.23
user 0.52
sys 0.60
LeanPool/CatalyticRegisters/BalancedProduct.lean
import took 129ms
cumulative profiling times:
attribute application 0.33ms
blocked (unaccounted) 106ms
compilation (IR) 0.988ms
compilation (LCNF base) 9.02ms
compilation (LCNF impure) 4.52ms
compilation (LCNF mono) 7.46ms
congr simp thm 6.56ms
elaboration 81.1ms
fix level params 1.78ms
import 129ms
initialization 32.6ms
instantiate metavars 5.04ms
interpretation 2.29ms
let-to-have transformation 1.03ms
linting 23ms
parsing 21.5ms
process pre-definitions 19.5ms
share common exprs 6.68ms
simp 210ms
tactic execution 473ms
type checking 99.2ms
typeclass inference 181ms
real 1.17
user 1.40
sys 0.55
LeanPool/CatalyticRegisters/BilinearFrobenius.lean
import took 104ms
tactic execution of Lean.Parser.Tactic.change took 105ms
cumulative profiling times:
attribute application 0.801ms
blocked (unaccounted) 639ms
compilation (IR) 2.49ms
compilation (LCNF base) 19.8ms
compilation (LCNF impure) 10.2ms
compilation (LCNF mono) 16.3ms
congr simp thm 18.2ms
dsimp 0.821ms
elaboration 227ms
fix level params 3.37ms
import 104ms
initialization 31.3ms
instantiate metavars 8.56ms
interpretation 2.28ms
let-to-have transformation 1.89ms
linting 46.4ms
parsing 34.7ms
process pre-definitions 60.4ms
share common exprs 13.3ms
simp 451ms
tactic execution 878ms
type checking 232ms
typeclass inference 166ms
real 1.75
user 2.49
sys 0.57
LeanPool/CatalyticRegisters/Certificates/EleventhPower.lean
import took 103ms
attribute application took 763ms
elaboration took 610ms
type checking took 545ms
cumulative profiling times:
attribute application 763ms
elaboration 613ms
fix level params 0.0109ms
import 103ms
initialization 31.3ms
instantiate metavars 0.0429ms
interpretation 2.13ms
let-to-have transformation 0.0245ms
linting 0.983ms
parsing 0.473ms
process pre-definitions 0.161ms
share common exprs 0.0564ms
type checking 545ms
typeclass inference 1.67ms
real 1.85
user 2.24
sys 0.51
LeanPool/CatalyticRegisters/Certificates/FifteenthPower.lean
import took 103ms
type checking took 1.17s
cumulative profiling times:
attribute application 0.0127ms
elaboration 3.73ms
fix level params 0.0218ms
import 103ms
initialization 31.6ms
instantiate metavars 0.0502ms
interpretation 2.15ms
let-to-have transformation 0.0391ms
linting 0.722ms
parsing 0.481ms
process pre-definitions 0.181ms
share common exprs 0.112ms
tactic execution 0.919ms
type checking 1.17s
typeclass inference 6.15ms
real 1.91
user 1.48
sys 0.50
LeanPool/CatalyticRegisters/Certificates/NinthPower.lean
import took 105ms
attribute application took 452ms
elaboration took 357ms
type checking took 289ms
cumulative profiling times:
attribute application 452ms
elaboration 361ms
fix level params 0.0106ms
import 105ms
initialization 25.3ms
instantiate metavars 0.0436ms
interpretation 2.19ms
let-to-have transformation 0.0245ms
linting 0.916ms
parsing 0.507ms
process pre-definitions 0.158ms
share common exprs 0.0551ms
type checking 289ms
typeclass inference 1.88ms
real 1.35
user 1.40
sys 0.51
LeanPool/CatalyticRegisters/Certificates/SeventhPower.lean
import took 103ms
attribute application took 322ms
elaboration took 246ms
type checking took 192ms
cumulative profiling times:
attribute application 322ms
elaboration 250ms
fix level params 0.0105ms
import 103ms
initialization 25.2ms
instantiate metavars 0.0442ms
interpretation 2.15ms
let-to-have transformation 0.0234ms
linting 0.775ms
parsing 0.475ms
process pre-definitions 0.136ms
share common exprs 0.0513ms
type checking 192ms
typeclass inference 1.95ms
real 1.15
user 1.06
sys 0.50
LeanPool/CatalyticRegisters/Certificates/ThirteenthPower.lean
import took 104ms
type checking took 772ms
cumulative profiling times:
attribute application 0.0107ms
elaboration 3.68ms
fix level params 0.0213ms
import 104ms
initialization 25.4ms
instantiate metavars 0.0714ms
interpretation 2.15ms
let-to-have transformation 0.0246ms
linting 0.733ms
parsing 0.47ms
process pre-definitions 0.179ms
share common exprs 0.11ms
tactic execution 0.981ms
type checking 772ms
typeclass inference 6.5ms
real 1.50
user 1.08
sys 0.50
LeanPool/CatalyticRegisters/CommRing.lean
import took 104ms
cumulative profiling times:
attribute application 3.18ms
blocked (unaccounted) 95.8ms
compilation (IR) 0.579ms
compilation (LCNF base) 3.9ms
compilation (LCNF impure) 2.03ms
compilation (LCNF mono) 4.17ms
congr simp thm 1.57ms
elaboration 79.8ms
fix level params 1.5ms
import 104ms
initialization 31.3ms
instantiate metavars 2.37ms
interpretation 2.23ms
let-to-have transformation 0.556ms
linting 18.8ms
parsing 16.1ms
process pre-definitions 14.6ms
share common exprs 4.23ms
simp 24.9ms
tactic execution 243ms
type checking 84.6ms
typeclass inference 111ms
real 0.96
user 0.93
sys 0.50
LeanPool/CatalyticRegisters/DigitSumDichotomy.lean
import took 102ms
cumulative profiling times:
attribute application 0.517ms
blocked (unaccounted) 513ms
compilation (IR) 1.82ms
compilation (LCNF base) 17.4ms
compilation (LCNF impure) 8.29ms
compilation (LCNF mono) 12.7ms
congr simp thm 9.02ms
elaboration 148ms
fix level params 1.95ms
import 102ms
initialization 24.8ms
instantiate metavars 10.9ms
interpretation 2.22ms
let-to-have transformation 1.62ms
linting 61.4ms
parsing 47.5ms
process pre-definitions 36.7ms
share common exprs 13.6ms
simp 388ms
tactic execution 1.02s
type checking 621ms
typeclass inference 173ms
real 1.82
user 2.81
sys 0.58
LeanPool/CatalyticRegisters/ExtensionFieldSeparation.lean
import took 110ms
tactic execution of Lean.Parser.Tactic.omega took 465ms
tactic execution of Lean.Parser.Tactic.change took 102ms
cumulative profiling times:
attribute application 1.44ms
blocked (unaccounted) 2.75s
compilation (IR) 2.6ms
compilation (LCNF base) 18.6ms
compilation (LCNF impure) 10.9ms
compilation (LCNF mono) 16.4ms
congr simp thm 3.44ms
dsimp 2.07ms
elaboration 152ms
fix level params 1.52ms
import 110ms
initialization 29.6ms
instantiate metavars 15.6ms
interpretation 2.11ms
let-to-have transformation 0.596ms
linting 51.7ms
parsing 33.9ms
process pre-definitions 61.7ms
share common exprs 12.8ms
simp 123ms
tactic execution 1.74s
type checking 247ms
typeclass inference 88.7ms
real 1.89
user 2.94
sys 0.57
LeanPool/CatalyticRegisters/FourRegisterPowering.lean
import took 180ms
cumulative profiling times:
attribute application 0.864ms
blocked (unaccounted) 570ms
compilation (IR) 3.25ms
compilation (LCNF base) 29.7ms
compilation (LCNF impure) 14.6ms
compilation (LCNF mono) 25.4ms
congr simp thm 15.4ms
dsimp 3.42ms
elaboration 318ms
fix level params 8.56ms
import 180ms
initialization 30.9ms
instantiate metavars 13.6ms
interpretation 3.27ms
let-to-have transformation 4.68ms
linting 95ms
parsing 75.3ms
process pre-definitions 69.8ms
share common exprs 27.3ms
simp 541ms
tactic execution 1.15s
type checking 438ms
typeclass inference 317ms
real 2.02
user 3.53
sys 0.59
LeanPool/CatalyticRegisters/Imports.lean
import took 247ms
cumulative profiling times:
declTypeLinter 0.135ms
elaboration 0.157ms
import 247ms
initialization 25.2ms
interpretation 32.3ms
linting 0.204ms
module linting 0.0208ms
parsing 0.00198ms
tacticAnalysis 0.112ms
real 0.92
user 0.44
sys 0.55
LeanPool/CatalyticRegisters/MathlibRing.lean
import took 249ms
cumulative profiling times:
attribute application 0.196ms
compilation (IR) 0.0731ms
compilation (LCNF base) 1.13ms
compilation (LCNF impure) 0.336ms
compilation (LCNF mono) 1.3ms
declTypeLinter 2.87ms
elaboration 19.2ms
fix level params 0.0758ms
import 249ms
initialization 25.3ms
instantiate metavars 0.0539ms
interpretation 54ms
let-to-have transformation 8.61ms
linting 1.71ms
module linting 0.0276ms
parsing 1.18ms
process pre-definitions 2.1ms
share common exprs 0.167ms
tactic execution 5.8ms
tacticAnalysis 1.42ms
type checking 3.65ms
typeclass inference 10.7ms
real 0.97
user 0.51
sys 0.56
LeanPool/CatalyticRegisters/NonVacuity.lean
import took 106ms
cumulative profiling times:
attribute application 1.06ms
blocked (unaccounted) 0.262ms
compilation (IR) 0.304ms
compilation (LCNF base) 2.2ms
compilation (LCNF impure) 1.04ms
compilation (LCNF mono) 1.85ms
congr simp thm 1.8ms
elaboration 106ms
fix level params 0.733ms
import 106ms
initialization 25.2ms
instantiate metavars 2.28ms
interpretation 2.22ms
let-to-have transformation 2.43ms
linting 17.7ms
parsing 19.1ms
process pre-definitions 10.3ms
share common exprs 5.44ms
simp 85.6ms
tactic execution 264ms
type checking 175ms
typeclass inference 121ms
real 1.07
user 1.12
sys 0.50
LeanPool/CatalyticRegisters/Pass2Soundness.lean
import took 107ms
cumulative profiling times:
attribute application 1.74ms
blocked (unaccounted) 642ms
compilation (IR) 1.44ms
compilation (LCNF base) 9.89ms
compilation (LCNF impure) 6.49ms
compilation (LCNF mono) 11.3ms
congr simp thm 8.89ms
elaboration 132ms
fix level params 3.57ms
import 107ms
initialization 26.3ms
instantiate metavars 7.09ms
interpretation 2.19ms
let-to-have transformation 1.79ms
linting 51.8ms
parsing 39.7ms
process pre-definitions 29.1ms
share common exprs 12.1ms
simp 150ms
tactic execution 759ms
type checking 257ms
typeclass inference 193ms
real 1.43
user 1.95
sys 0.54
LeanPool/CatalyticRegisters/PoweringPrograms.lean
import took 105ms
cumulative profiling times:
attribute application 42.7ms
compilation (IR) 1.83ms
compilation (LCNF base) 16.5ms
compilation (LCNF impure) 8.36ms
compilation (LCNF mono) 15.3ms
elaboration 139ms
fix level params 0.1ms
import 105ms
initialization 30.4ms
instantiate metavars 0.51ms
interpretation 2.2ms
let-to-have transformation 0.11ms
linting 4.41ms
parsing 5.85ms
process pre-definitions 3.77ms
share common exprs 0.629ms
type checking 30.6ms
typeclass inference 25.1ms
real 0.91
user 0.63
sys 0.48
LeanPool/CatalyticRegisters/PrimeFieldTools.lean
import took 106ms
cumulative profiling times:
attribute application 3.16ms
blocked (unaccounted) 102ms
compilation (IR) 1.05ms
compilation (LCNF base) 8.8ms
compilation (LCNF impure) 3.94ms
compilation (LCNF mono) 6.09ms
congr simp thm 6.84ms
elaboration 162ms
fix level params 2.72ms
import 106ms
initialization 25.2ms
instantiate metavars 12.4ms
interpretation 2.21ms
let-to-have transformation 1.15ms
linting 89.6ms
parsing 66.2ms
process pre-definitions 61.3ms
share common exprs 20.9ms
simp 228ms
tactic execution 1.54s
type checking 832ms
typeclass inference 327ms
real 2.18
user 3.58
sys 0.55
LeanPool/CatalyticRegisters/SymbolicExecution.lean
import took 106ms
cumulative profiling times:
attribute application 0.329ms
blocked (unaccounted) 3.94ms
compilation (IR) 1.88ms
compilation (LCNF base) 18.8ms
compilation (LCNF impure) 9.09ms
compilation (LCNF mono) 14.7ms
congr simp thm 5.94ms
elaboration 119ms
fix level params 2.98ms
import 106ms
initialization 25.4ms
instantiate metavars 5.04ms
interpretation 2.2ms
let-to-have transformation 1.9ms
linting 26.8ms
parsing 21.7ms
process pre-definitions 29.7ms
share common exprs 7.91ms
simp 239ms
tactic execution 428ms
type checking 47ms
typeclass inference 75.6ms
real 1.07
user 1.41
sys 0.52
LeanPool/CatalyticRegisters/ThreeRegisterBreakthrough.lean
import took 105ms
cumulative profiling times:
attribute application 0.0558ms
elaboration 47.7ms
fix level params 0.308ms
import 105ms
initialization 25.2ms
instantiate metavars 0.905ms
interpretation 2.18ms
let-to-have transformation 0.108ms
linting 4.85ms
parsing 4.08ms
process pre-definitions 2ms
share common exprs 1.32ms
tactic execution 105ms
type checking 46ms
typeclass inference 165ms
real 1.04
user 0.68
sys 0.50
Advisory only — never blocks merge. Full log uploaded as the proof-profile artifact.
|
Request changes on the original acquisition head. Correction after checking the first configured reviewThe original acquisition review missed the work-register pool conditions in the project card, the composition-lemma attribution, and the characteristic hypothesis for Vinciguerra’s baseline. Those issues require a card and source-doc update. The mathematical and trust observations below describe the original head. Faithfulness and significance
Novelty and sourcesThe pinned upstream modules, archived manuscript, and Vinciguerra's formal model establish the mathematical scope. Two Lean module notes need the citation corrections described above. The finite characteristic classifier, primitive access semantics and verified composition are distinct from the pool's existing arithmetic circuit results. I found no matching project in the pool, Mathlib or Tau Ceti. The card credits Donahue and records the upstream AI proof contribution. The imported files carry Apache-2.0 headers and change notices. Pinned upstream · Manuscript · Register model Code and trustThe diff contains the mathematical dependency closure, the project wrapper, and the card. Independent certificate modules preserve the five program lists and send their checked equalities through the same symbolic-execution soundness lemma. The four-element-field refactor uses distributivity, associativity and commutativity to prove the same invariant and removes the large case split. The Mathlib adapter gives callers access to the generic ring theorems. The warning-as-error build, index check, style check, and scoped Mathlib, declaration, axiom, backdoor and compiler-message audits passed locally. A clean build with warm pinned dependencies took 10.49 s before and 7.13 s after. Every changed Lean file met the local per-file timing and memory limits. GitHub checksThis review covers head |
Vilin97
left a comment
There was a problem hiding this comment.
Scope corrections needed at 17f6796bba18b9ce5a39d29dc59c8e84872067cc.
rp_pass_two_iffclassifies formal polynomial identities with prime-field constants. The exported docstrings still describe the𝔽₄model as the literal Vinciguerra model and say the two-access result collapses characteristic-zero theorems. The instruction set comes from Definition 2.2, which defines cleanliness by pointwise execution. Over𝔽₂, one access can addx³as a function since it equalsx. The formal polynomial remains excluded. The pinned upstream distinguishes these claims. Upstream limitations- The three- and four-register theorems correctly require specific coefficients and factorials to be units. Some docstrings equate those conditions with restrictions on the ring's characteristic. For example,
ℤhas characteristic zero and6!is not a unit. The corrections are confined to documentation and the project card.
🤖 LLM review (
|
| Rubric | Verdict | Bottom line |
|---|---|---|
| Faithfulness | ✅ pass |
All five card results match the Lean and all 20 project modules compiled locally, with exact-head CI details unavailable. |
| Novelty | ✅ pass |
The pinned Mathlib and Tau Ceti source searches and the pool comparison found no duplicate of the five headlines, with exhaustive semantic coverage still unverifiable and CI still in progress for this head. Lean Action CI |
| Significance | ✅ pass |
The exact two-register classification warrants pooling, and all 20 project modules passed a targeted warning-as-error Lake build while the remote Build pool job remained in progress. Build pool job |
| Sources | ✅ pass |
Donahue’s corrected manuscript supports the prime-field classifier, four-register powering, and balanced-product results, and the import credits the upstream Lean development. Pinned manuscript |
| Code quality (advisory) | flag |
Evaluator timeouts and duplicated soundness proofs warrant an advisory flag. All 20 added Lean modules compiled and passed declaration lint locally, and the combined CI status remains pending despite the successful project build. |
| Aspect | Value |
|---|---|
| Proves the claim | ✅ proves_it |
| Assumed, not proved | The card states primality and t ≥ 1. Radix-13 powering assumes N ≥ 1 and requires units for the certificate coefficient, 12!, and the factorial of the base-13 digit count in the coefficient ring. The card discloses the unit conditions by reference. Clean balanced execution requires distinct work registers disjoint from the target. Both balanced-program theorems require at least k + 1 pool entries at positive depth and allow an empty pool at depth zero, as stated in the card. |
| Matches cited source | ✅ matches |
| Fit | ✅ good_fit |
| Level | research |
| Branch | algebraic complexity theory |
| Mode | theory_building |
| Code quality | 2 / 5 |
Statement check: The classifier uses formal coefficient equality modulo the prime and gives the exact digit-sum criterion for every nonzero coefficient of degree at least two.
rp_pass_two_iff gives an exact base-p digit-sum criterion for the nonlinear terms of formal polynomials computable with two passive registers over prime fields, and the project develops extension-field separations, clean powering and balanced products, with the powering certificates replaying 35 coefficient rows (0.43% of 8,077 added Lean lines) that I reproduced using the pinned upstream rational solver.
Faithfulness findings (2)
- unexercised-predicate —
LeanPool/CatalyticRegisters/BilinearFrobenius.lean:61
The public strict-validity predicate on BilinInstr has no consuming theorem or witness in the PR. The Frobenius validity theorem uses the weaker predicate. Add a checked distinct-operand multiplication and a rejected square to cover the extra condition.
Evidence:public def BilinInstr.isStrictDistinctPassive {n : Nat} : BilinInstr n → Propdefines| .mulAdd dst a b => dst ≠ a ∧ dst ≠ b ∧ a ≠ b ∧ a.val ≠ 0 ∧ b.val ≠ 0. The conclusion offrobBilinProg_validis∀ instr ∈ frobBilinProg k hk, instr.isValidPassiveonly. - prompt-injection — PR-wide
The PR discussion requests a disposition for the original acquisition head and reproduces an earlier faithfulness verdict. The current verdict comes from the declarations at the submitted head.
Evidence: The discussion in.review-pr.jsonincludes “Request changes on the original acquisition head.” and an earlier review table assigning Faithfulnesspass.
Novelty findings (1)
- prompt-injection — PR-wide
The contributor’s discussion requests a disposition for an earlier head and supplies an earlier novelty verdict, which could bias the independent comparison for this head.
Evidence: In.review-pr.json, one contributor comment opens with ‘Request changes on the original acquisition head.’ and asserts ‘I found no matching project in the pool, Mathlib or Tau Ceti.’ Another contributor comment reproduces the earlier head’s noveltypass.
Significance findings (1)
- prompt-injection — PR-wide
The PR author’s discussion supplies a requested disposition and a significance verdict for an earlier head, which could bias review of the current Lean. Assess the current head independently.
Evidence: In.review-pr.json, the author writes “Request changes on the original acquisition head.” and separately posts a prior-head rubric table with| Significance | ✅pass|.
Sources findings (1)
- citation-link —
LeanPool/projects/catalytic-registers.yaml:15
The exposition page links the manuscript title to the pinned repository tree. Link the title directly to the verified PDF so readers land on the cited statements and can check their hypotheses.
Evidence: The entry module saysThe project card cites the corrected manuscript at that commit.The card namesCatalytic.balancedProdProg_clean, whose hypotheses include(hpool : k = 0 ∨ k + 1 ≤ pool.length)and(hnd : (target :: pool).Nodup). The pinned PDF gives the matching register count in Theorem 1.4 and its proof.
Code quality findings (7)
- runtime-complexity —
LeanPool/CatalyticRegisters/BalancedProduct.lean:53
Reading a register can replay earlier updates because each instruction wraps the previous state in a closure. The same pattern appears in both bilinear interpreters. In a local run, reading the target of the 148-instruction balanced product over F2 timed out after eight seconds. A scratch evaluator that stored each update returned the result in one millisecond. Prove an eager evaluator equivalent to the current semantics and use it for compiled execution.
Evidence:CatOp.execreturnsfun r => if r = dst then st dst + CRing.intCast s * (st a * st b) else st r.BilinInstr.execandDistinctBilinInstr.execboth use| .mulAdd dst a b => fun i => if i = dst then st dst + st a * st b else st i. - runtime-complexity —
LeanPool/CatalyticRegisters/PrimeFieldTools.lean:209
The two-register symbolic evaluators call Pascal recursion without sharing overlapping subproblems. Extracting the middle coefficient of degree 24 throughpolyAtShiftCoefftimed out after 12 seconds. A scratch factorial-quotient implementation, proved equal tochooseusingchoose_mul_fact, returned the coefficient in under one millisecond. Use a proved compiler rewrite to preserve the existing proof equations and speed up evaluation.
Evidence:def choose : Nat → Nat → Natrecurses with| n + 1, k + 1 => choose n k + choose n (k + 1).polyAtShiftCoeffuseschoose k dandchoose d dx, andbinomGF4useschoose n k % 2. - duplicate-definition —
LeanPool/CatalyticRegisters/Pass2Soundness.lean:359
The prime-field and GF4 bridges repeat the instruction interpreter, degree bound, and four-case soundness induction. A change to coefficient evaluation or instruction semantics requires parallel edits. Share the instruction shape and literal evaluator over a coefficient type, and state the common soundness steps in terms of how the coefficient map handles addition and multiplication.
Evidence:Pass2Prog.execRing_from_eq_evalState2andPass2GF4Prog.execAlg_from_eq_evalState2GF4both applyrw [← sumR_add]at each of two sum levels in the output-update branch, then close the inner step withrw [natCast_mod_eq hchar, CRing.natCast_add, CRing.right_distrib]andrw [φ.map_add, CRing.right_distrib], respectively. - duplicate-proof —
LeanPool/CatalyticRegisters/DigitSumDichotomy.lean:673
Both induction cases reprove that a zero constant shift selects the coefficient at the requested total degree. The GF4 degree-three and degree-five proofs repeat that argument by expanding each coefficient list by hand. Factor out the zero-shift identity for an arbitrary list and use it at all four sites.
Evidence:buildShiftSteps_execrepeatshave hsingle : sumNat (polyAt 0).lengthandhave hsingle : sumNat (polyAt (k + 1)).lengthwith the same index split. InExtensionFieldSeparation.lean,polyAtShiftCoeffGF4_mono5_neprovespolyAtShiftCoeffGF4 [.z, .z, .z, .z, .z, c] .z a dR dx = .z, andpolyAtShiftCoeffGF4_mono3_neprovespolyAtShiftCoeffGF4 [.z, .z, .z, .one] .z a dR dx = .z. - incomplete-adapter —
LeanPool/CatalyticRegisters/MathlibRing.lean:37
The adapter supplies a rewrite for powers but leaves Mathlib callers to bridge both casts before they can discharge the powering hypotheses with ordinary ring arithmetic. Add natural- and integer-cast simp lemmas alongsideCRing.pow_ofCommRing. Scratch lemmas using the existing imports letsimpadischarge the radix-13 coefficient hypothesis from its Mathlib-cast form.
Evidence:CRing.pow_ofCommRingstates@CRing.pow R (CRing.ofCommRing R) x n = x ^ n.four_reg_powering_x13takes(hD8 : invD8 * CRing.intCast 2656207148788801777680 = 1)and(hF12 : invFact12 * CRing.natCast (fact 12) = 1). - unused-proof-code —
LeanPool/CatalyticRegisters/DigitSumDichotomy.lean:188
Remove the two unreferenced private lemmas and the two unused premises.fdWeight_sum_powalso needs only positivity of the modulus. Scratch copies of both modules compiled after these removals and the corresponding call-site adjustments.
Evidence:private theorem evalPairsInt_congr_modandprivate theorem DistinctBilinProg.basicOps_appendhave no callers.fdWeight_sum_powtakes(_hs : s < p)and uses(hp : IsPrime p)only throughhp.pos.buildShiftSteps_exectakes(_hp : 0 < p). - prompt-injection — PR-wide
The contributor’s discussion asks for a disposition on an earlier head. The current advisory verdict comes from the submitted Lean and the checks for this revision.
Evidence: The contributor’s comment in.review-pr.jsonopens with “Request changes on the original acquisition head.”
Tokens: 20,280,810 in / 72,710 out across 5 model calls · Tier: codex-subscription · Effort: xhigh · Billing: Codex subscription quota (no API credits) · Estimated cost: $82.2139 (Standard API equivalent; uncached input)
Each rubric is an independent review against .github/review-rubrics/ on top of .github/REVIEW_RULES.md. Disagree? Reply on the PR; rules can be updated in a PR of their own.
CI was not green for this commit at review time; this review does not replace CI.
|
/review Repairs on this head
The warning-as-error project build, index and text-style checks, static quality, and scoped Mathlib and trust audits passed locally. |
Vilin97
left a comment
There was a problem hiding this comment.
Documentation corrections remain at 494156966187cd15edbfe5078ebcb5da6f404a97.
- The new balanced-product card text gives the register assumptions and separates the program-length theorem from the arithmetic count. The binary cast is proved equal to the original cast, preserving the meaning of the supplied powering programs.
- The earlier scope finding still applies.
DigitSumDichotomy.leanandExtensionFieldSeparation.leanshould distinguish formal identities from pointwise execution. In particular, the characteristic-zero bounds do not extend to this model, and one read ofxaddsx³pointwise on𝔽₂. Upstream limitations - The generic powering theorem docstrings should state the required units. The characteristic examples apply to fields, and the theorems themselves already have the correct hypotheses.
|
/review Source corrections on this head
The project build, generated index, text style, and scoped Mathlib and trust checks passed locally. The Lean declarations and proofs are unchanged from the first follow-up head. |
Vilin97
left a comment
There was a problem hiding this comment.
Three documentation corrections remain at 0814560f1426e2cbaae463bf89fdbdf9ee068ff6.
The corrected manuscript, characteristic-zero comparisons, and radix-7 field examples now match their sources. The Lean declarations are unchanged from the previous commit.
- The extension-field overview still describes the formal model as literal Definition 2.2 and restates the classifier without
t ≥ 1. The instruction set comes from that definition. Cleanliness in this formalization is a coefficient-wise identity. For example,x⁷ = xpointwise on𝔽₄, so the formal exclusion ofx⁷does not carry over to functions. The same distinction applies to thex³impossibility docstring over𝔽₂. Upstream limitations - The two three-register docstrings still equate unit conditions with characteristic exclusions for arbitrary rings. For example,
576is not a unit inℤ. The Lean hypotheses correctly require units.
|
Approve. Faithfulness and sourcesThe prime-field classifier concerns formal polynomial coefficients and vanishing work-register shifts. The four-register construction proves its access bound with explicit inverses for the certificate coefficient and both factorials. The balanced product card states the register-pool size and distinctness conditions and cites the separate program-length theorem. The five powering witnesses are checked by sparse integer polynomial evaluation in Lean. The original documentation review missed the pool conditions and several citation defects. The revised card pins Donahue's corrected manuscript, with the older Zenodo deposit identified in the entry module. The source notes distinguish Alekseev et al.'s unrestricted composition, Vinciguerra's passive variant, and the large-characteristic analogue of his characteristic-zero bound. Both powering variants retain the necessary factorial-unit hypotheses. Pinned manuscript · Errata Scope, code, and trustThe formal prime-field classification and exact register constructions add results beyond the existing arithmetic circuit library. The diff contains ten upstream mathematical modules reorganized into 20 pool modules. It records Donahue's Apache-2.0 source and the documented AI proof provenance. The ring adapter preserves the original model. The kernel checks the five independent certificates, and the compiled binary cast is proved equal to the original cast. A scratch execution of the fifteen-power program checked the output and both restored registers. The shared work-register invariant addresses Greptile's duplication finding. The warning-as-error project build, generated index, text style, static quality, Mathlib lint, and declaration, axiom, backdoor and compiler-message audits passed. Matched clean measurements after the proof and execution repairs were 13.82 s and 9.86 s with warm pinned dependencies. All 20 files passed the watchdog. The source corrections and direct manuscript link leave the Lean declarations and proofs as they were in that measured revision. GitHub checksThis review covers head |
Result and source
The formalization classifies the formal polynomials computable with two passive catalytic registers over a prime field by the base-p digit sums of the degrees with nonzero coefficients. It also verifies five explicit three-register power programs, composes the radix-13 program into a four-register powering result, and proves exact cost and clean restoration for balanced multilinear products. For a product of 2^k inputs at positive depth, the construction uses at least k + 1 distinct work registers disjoint from the target. At depth zero it can use an empty pool. The integer exponent comparison is for the stated family of constructions.
Alexander S. Donahue published the first GitHub release on 2026-11-24 at 22:35:13 UTC. The import pins the Apache-2.0 Lean source at
c80125c42956ff17e7d6d56c66d94ee9bb57ae33. The project card records AI provenance from the upstream formalization record, which credits Gemini for Lean proof engineering under Donahue's direction. Release · Pinned source and provenance · Corrected manuscript at the pinned commit · Historical Zenodo v1.0.1 deposit · Vinciguerra's register modelThe project card cites the corrected manuscript under its revised title. The Lean source notes identify the large-characteristic analogue and specify the field hypotheses for the cited powering examples. Upstream errata
Import and port
LeanPool.CatalyticRegisters.Imports.Validation and measurements
Lean v4.36.0 with Mathlib
fc4f59e577feb1a4956671bc04ac18aaaf8cd842and Tau Ceti0642eae29e0a59ef798d04de325386445906e755. The warning-as-error project build, generated indexes, text style, and scoped Mathlib/quality audits passed.The repository shard checks resolved the card declarations and audited all 20 modules, including generated declarations. The axiom, option/backdoor, and build-message audits passed. The timing watchdog recorded all 20 added Lean files within the 600-second limit and observed no memory-limit breach.
Clean project build on the Azure VM with warmed pinned dependencies, a shared Mathlib ring adapter, and
LEAN_NUM_THREADS=4 lake build +LeanPool.CatalyticRegisters.Importstook 10.49 s before and 7.13 s after. These measurements used the same scratch build configuration with project artifacts removed between runs. Individual certificate modules and other module times are recorded by Lake.A scratch execution checked the fifteen-power program over the integers with nonzero initial registers. It produced the expected scaled power and restored the work registers.
A matched clean build check after review measured 13.82 s at the original baseline and 9.86 s on the revised head, using four Lean threads, warm pinned dependencies and the timing watchdog for both runs.