Skip to content

Bound rounded native-line defects for the zero-retention QQ16 decoder - #2771

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
petalas:research/qq16-precision-consumer
Oct 16, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
petalas:research/qq16-precision-consumer

Conversation

@petalas

@petalas petalas commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Summary

 PR2707's 336 signed native lines / PR2736's error contract
- abstract completed-line relative-defect premise
+ direct rounded pair implementation with explicit monomial wrappers
+ all-depth error <= lambda * sqrt(D/2) * delta
+ block scaling meeting u = 2^(-b-22), with direct-work costs stated

Adds only research/qq16-rounded-native-line/. This takes the rounded-line obligation in the PR2736 handoff, as a local reference implementation rather than a recursively cheap child. It also gives a fixed-grid counterexample to inferring relative accuracy without scale control.

The direct algorithm requires a component scan, 4lambdaD real ADD/subtracts, rounding, explicit permutations and owner-local exponent metadata. It does not inherit the rank-one recursive price. Cheap child realization, finite formats, entry norms, complete caller/consumer costs and supplier admission remain open. No new kappa or selected-frontier change.

Exact predecessors are ywz65's PR2707 efa51a6c7ffec6edd556a98deedfe9deeba65809 and PR2736 eba0d6111a773cd13f5c0afb4354af2c85d04c3a. Credit Arham Tahir's PR2681, PR2540, Ali Romman and the retained QQ16/native lineage. Source proofs and notices are preserved byte-exactly. Their ideal native/frame theorem is inherited, not recertified.

Evidence

  • Before: PR2736 explicitly leaves internal component rounding open. A one-factor line on the smallest fixed-grid input can round to zero with relative error one.
    After: the written all-depth proof and exact-rational implementation supply one sufficient block-scaled line contract. A separately implemented dense kernel checks 1,240 signed basis columns; 72 absolute and 72 relative tensor cases pass. Every relative case has nonzero rounding error, including the consumed 22-bit guard.
  • CPython 3.12.15 on Linux x86_64: normal/optimized registered replay, 13 semantic/boundary controls, four CLI artifact groups, all 74 research-workflow tests, Ruff lint/format and selected baseline bindings pass. Source corruption, typed receipt corruption, overwrite refusal and Git-free read-only export are exercised.
python3.12 -Werror -I -B scripts/research_package.py \
  --package research/qq16-rounded-native-line

Started from canonical main 8e22a9d9f, priority revision 5. Pre-submission main 31452ecd3 has unchanged guidance, selected record, runner and consumed PR heads; the virtual merge is clean. Final overlap covers 716 open PRs and 1,407 Discussion records with complete pagination and no warnings. Coverage does not include arbitrary diffs or unpublished work. No formal-kernel, physical-machine, selected cold-replay or hosted-CI pass is claimed.

Merge Danger

Door: two-way

Blast Radius: research

One opt-in package. Existing verifiers, frozen predecessors and selected records are unchanged.

@Mister-Meeseeks
Mister-Meeseeks merged commit e72795c into CrocSwap:main Oct 16, 2026
40 of 61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants