Repository navigation
feat(fri): bound extractor charges by the initial domain size - #1614
alexanderlhicks wants to merge 1 commit into
Conversation
Give each instruction kind an explicit polynomial in the initial domain cardinality. Use positive folding exponents to bound sums of block-size powers. Under the existing domain condition, these polynomials dominate the schedule-specific extraction profile. Lift the FRI knowledge-soundness certificate to the polynomial budget and check the degree bounds and proof dependencies. Document which operations are charged and the separate obligations for runtime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🤖 PR SummaryMathematical Formalization
Infrastructure / CI
Documentation
Known Gaps (No sorries added)The PR adds and closes zero RefactoringNone. All changes are additive: new module, new theorem, expanded imports, additional test examples, and documentation updates. Statistics
Lean Declarations ✏️ Added: 22 declaration(s)
📄 **Per-File Summaries**
Last updated: 2026-11-26 23:15 UTC. |
Build Timing Report
CPU work is Rebuilt ModulesRebuilt 4 modules (1 without an earlier time). The 3 with an earlier time took 6s here against 6s when Estimated clean-build compile time, summed over all 1643 modules: 5335s before, 5346s after (+11s (+0.2%)). Per-module times are wall-clock under whatever parallel load the run had, so treat small differences as noise; a large change on one module is the signal. Showing 4 slowest of 4 rebuilt modules.
|
|
Marked as draft whilst I make some efficiency improvements on the CompPoly side. |
Summary
Bound the existing schedule-specific FRI extractor profile by an explicit polynomial for each resource kind. Each polynomial depends only on the initial domain cardinality
N = 2 ^ n. Its degree is at most four.Formalized statements
Fri.Spec.Extractor.extractorProfileBound_le_domainEnvelopebounds each coordinate of the existing profile by evaluating its polynomial atN. It uses the reduction's domain condition2 ^ (∑ j, (s j).val) * d.val ≤ 2 ^ n, wheresis the folding schedule anddis the terminal degree bound.Fri.Spec.knowledgeSoundnessWithResources_extract_domainEnvelopeapplies that inequality to the existing knowledge-soundness certificate. It retains the same extractor, measured program, soundness error, and hypotheses, and uses the domain-size budget.Both results derive from ArkLib's existing measured FRI development.
Admissions and axioms
The PR adds and closes zero admissions. The compile-time tests check the axiom output for both headline theorems.
Validation
./scripts/validate.sh --axiomspassed at4e592aa3aon the tracked dependency pins. The sweep checked 23,368 declarations across 1,291 modules and found zerosorryAxor nonstandard axiom dependencies.Known gaps
The budget counts one unit in the corresponding coordinate for each declared instruction. View preparation, handler work beyond the declared prices, and local computation outside those instructions lie outside the budget. The polynomials are in the domain cardinality
N. Bounds inlog N, cryptographic polynomial time, and bit runtime require separate arguments.Related work
Checklist