Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions research/four-axis-phase-covariant-grid/CALLER-SOURCES.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"repository": "aliromman/integer-mult-bounds",
"pull_request": "CrocSwap/integer-mult-bounds#6509",
"commit": "a4173e810c4d34a1d13b9745af123ad0ec6cfed5",
"files": [
{
"local_path": "inputs/retained_ports.py",
"module": "retained_ports",
"path": "research/conservative-gaussian-rounding/ports.py",
"size": 1012,
"sha256": "8460457aaafeaedf3b7fb287c0d61b049fb2595e8993ba3fc8695d8f9c9b830d",
"git_blob": "a9d5d0268ff6872536edadf159f79448aa30197a"
},
{
"local_path": "inputs/retained_rounded.py",
"module": "retained_rounded",
"path": "research/conservative-gaussian-rounding/inputs/rounded.py",
"size": 4348,
"sha256": "f320d180bdcd65d28102eb34a26b3ab5287b39d8d00bb4734019060d174d47c9",
"git_blob": "8ae18373f2f5b0d33a7f0d1d6a591489f81401f1"
}
]
}
104 changes: 104 additions & 0 deletions research/four-axis-phase-covariant-grid/CALLER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Four-axis retained-port binding

This binds the phase-covariant four-axis result to two exact retained port
programs. No complete multiplication improvement is claimed.

## Exact model and boundary

Use the exact two-/three-call retained port bodies in
CrocSwap/integer-mult-bounds#6509, head
`a4173e810c4d34a1d13b9745af123ad0ec6cfed5`, package
`research/conservative-gaussian-rounding`, by Ali Romman. Its retained
`inputs/rounded.py` originates with JoyboyBrian's #5485, and the underlying
port algebra comes from #4743. Pin and credit these sources in the final
package. This claim is only for `f=4`, hence `N=4096`, and axes zero and two.

The four active bits are `3*j+axis`, `0<=j<4`. Fixing all eight spectator
bits gives 256 disjoint fibers of length16. Apply the new block map F to
each fiber, or its literal inverse in a reverse call. Its ideal matrix on
that fiber is exactly the fourfold native Gaussian tensor, with entries
`-i^(4-popcount(r xor s))/4`. This coefficient formula is independently
used by the port oracle; the implemented factorization is `-D*(W/4)*D`.

All retained monomials and triangular mixes are exact maps of the Gaussian
integer grid and have their displayed literal inverses. Therefore reversing
the port body with the true inverse block map restores both arbitrary dirty
banks exactly. Both composition orders are covered. No `F^2=J`, `F^4=I`,
additivity or commutation of independently rounded layers is required.

## Coordinate precision and finite words

The finite certificate verifies `|e_j|<=3` and `|f_j|<=5`, where
`f=-W e/4` is the inverse correction. Applying the real map independently
to real and imaginary components, with quarter phases, proves pointwise
complex-coordinate errors at most `3*sqrt(2)*h/4` forward and
`5*sqrt(2)*h/4` inverse. Both are strictly below `2*h`. These are universal
claims conditional on the finite table predicates, not extrapolations from
the port fixtures. In particular `g=q+1` suffices for a call tolerance
`2^-q`, replacing the predecessor's four-axis `g=q+3`.

Retain the predecessor's source-ordered call requests:

| Direction | q at f=4 | New g | Old g |
|---|---|---|---|
| Two calls forward | P+7 | P+8 | P+10 |
| Three calls forward | P+9 | P+10 | P+12 |
| Two calls reverse | P+4 | P+5 | P+7 |
| Three calls reverse | P+6 | P+7 | P+9 |

The new call meets exactly the same actual-input premise used by those
budgets, so the complete port coordinate error is at most `2^-P`.
This leaves initial quantization charged separately, as in the predecessor.
It does not optimize the external requests q. An independent direct check
is possible: the native infinity norm is4 and the mixing matrix P+2Q has
infinity norm at most3. For a uniform completed-call error epsilon, the
two-/three-call forward error multipliers are13 and53, and the reverse
multipliers are1 and5. These constants also imply the displayed budgets.

For source coordinate magnitude at most `2^H`, retain the source entry
bound `U=2^(H+12)` and signed width `w=H+g+19`. In a block call, each real
input component is bounded by `M=2^g U`. Every fast Walsh intermediate is
bounded by `16M`; the final corrected numerator is bounded by `16M+5`.
For H,g>=0 this is at most `2^(H+g+16)+5 < 2^(H+g+18)`, the positive
w-bit limit. Quarter phases and exact shifts are also safe. The retained
monomial/mix width argument is unchanged, as the actual-input error
premise still holds. Thus both fractional precision and signed word width
can be lowered by two relative to that retained request, with its large
headroom margin left intact. A different tape representation may have a
different bill; this is not a lower bound on all implementations.

## Direct accounting

One complex block executes two real 16-point fast Walsh transforms:128
full-word sums/differences in total, followed by32 correction additions
and32 exact quarter shifts. The finite residue calculation uses only
three-bit residues, but is still payable, as are table access, phase/sign
operations, source reads, writes and word checks. A fixed 2048-entry scan
is an explicit bounded implementation of table access if constant-time
indexed lookup is not available; no physical tape speedup is inferred.
Each native call executes256 blocks, including all-zero blocks. A k-call
port executes `256k` blocks, `40960k` full-word block additions and
`8192k` exact quarter shifts, plus the unchanged retained monomial/mix
work. In particular the retained mixes cost4N real additions and2N left
shifts, and there are four/six monomial passes for two/three-call ports.

The implementation can load32 words, perform the two transforms in place,
apply offsets and store the result, then clear all owned scratch. Tables
and quotient/control storage are finite constants. Such scratch work costs
O(w) per block, and source/index/control work is also paid. This proves a
finite direct reference interface only. No accelerated recursive tariff,
fixed multitape placement, compiler-stock estimate, outer admission or new
kappa is established.

## Verification distinction

The independent caller oracle uses native coefficients rather than the
Walsh factorization. Exact scaled integers represent all ideal intermediates;
the common scale64 suffices for three calls. It verifies both composition
orders, global Gaussian phase covariance, every actual paid input cut,
all spectator-fiber sums, exact operation totals and complete-port error.
Separate boundary fixtures use the new g and width. Negative controls cover
aliasing, unsupported f, overflow, forward replay substituted for an inverse,
and a wrong native axis that remains reversible but has the wrong operator.
These finite fixtures corroborate the algebraic interface proof. They do
not certify a complete multiplication supplier or graph consistency.
1 change: 1 addition & 0 deletions research/four-axis-phase-covariant-grid/CERTIFICATE.json

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions research/four-axis-phase-covariant-grid/NOTICE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Attribution and source notices

New work: @CubeJerry, with substantial OpenAI Codex assistance. The research
session used parallel AI work for the period-lattice and matching discovery,
compact quotient and independent proof/checker, and retained caller integration.
New files are released under the repository's Apache-2.0 license.

Nick Petalas's #6574, `research/four-axis-reversible-grid`, head
`48e312ff18d5b66b0969148f615fdf5ce0f92edd`, supplies the sharp four-axis
Walsh reduction, native diagonal convention, error/correction predicates,
matching candidate family, literal inverse template and half-grid optimality
witness. The production block follows that endpoint convention and adapts its
reference structure to different input/output quotients. Its source notice is:
“This contribution was produced by Nick Petalas. Apache-2.0.”

Ali Romman's #6509, `research/conservative-gaussian-rounding`, head
`a4173e810c4d34a1d13b9745af123ad0ec6cfed5`, supplies the actual retained
backend interface, conservative phase-covariant context, port proof and budget.
`inputs/retained_ports.py` and `inputs/retained_rounded.py` are unchanged copies
of its `ports.py` and `inputs/rounded.py`; their original file notices remain.
They are authenticated by `CALLER-SOURCES.json` before import.

Brian / JoyboyBrian, with Codex assistance, supplies #5485's retained native
rounded-call implementation, exact monomial/mix program and port budget, head
`47c4e95f2aad7b33637aca3ac0dde0a0a2a9ebfe`. #4743, head
`158048812f4e0aeb132408f4d7cda57ba008b0d5`, is the underlying channel/port
lineage. These merged source heads are historical provenance; the imported
bytes are pinned at the #6509 snapshot actually consumed here.

Ali Romman is also credited for #6536's three-axis construction and four-axis
question, #6534's two-axis construction, and #5821's Gaussian Smith execution.
David Ganz / Dugongue is credited for #5815's Gaussian Smith construction and
the retained Gaussian native conventions. Classical Walsh identities, lattice
quotients and bipartite matching are not claimed as new.

ToikY's concurrent #6755 review, head
`4475dc90bbe6037981bfc8ce0dd55efb6bdbc6a0`, is credited for identifying the
remaining symmetry and caller/billing boundaries of #6574. It is not treated
as an execution certificate, source dependency or acceptance of this work.

All predecessor mathematical claims retain their original authorship. This
package neither audits their full results nor transfers any admission from
them. Exact inspected-source and retained-file pins are in `SOURCES.json` and
`CALLER-SOURCES.json`.
Loading