Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For one specified full-product multiplier, the written construction gives$T(n)\le n\sqrt L,2^{63\Phi(x)}$ for every $n\ge2$ and at most $2^{32}n$ distinct visited tape cells. Here $L=1+\log_2 n$ , $x=\log_2 L$ and $\Phi(x)=(x^2\log_2(x+2))^{1/3}$ . At $n=1$ the direct branch takes at most 4096 transitions. Both operands may have leading zeros.
Relation to #8102
@zxv's #8102 applies OpenAI's published theorem to get$O_\varepsilon(n(\log n)^{1/2+\varepsilon})$ for each fixed $\varepsilon>0$ . Its $\kappa=0.4999$ example already gives exponent $0.5001$ , closer to $1/2$ than $0.501$ .
We derive$\log_2(T/(n\sqrt L))\le O(\Phi(x))$ by charging the address swaps and selected Walsh transforms used to compute the full product. We then fix the machine parameters and bound those costs explicitly, obtaining $63\Phi(x)$ for every $n\ge2$ . This gives a computable sufficient input length for each exponent $1/2+1/q$ (integer $q\ge2$ ) and a sharper coefficient-one cutoff for $0.501$ . Adaptive-interchange derivation
Its adaptive interchange and Fourier implementation draw directly on the November 24 papers. The code uses OpenAI's tape semantics independently of #8102. Prior work and attribution
For the same multiplier, the written proof gives$T(n)\le n(\ln n)^p$ with leading coefficient one whenever $\log_2\log_2 n\ge t$ .
For$p=0.501$ , the preceding integer $t-1$ fails the refined estimate. Lean verifies the adjacent signs, the all-later implication, and the physical gather–child–scatter rule with its repeated-call space bound. The complete time, output and space argument for the multiplier remains a written proof. Package README
From the repository root, run
Review and next steps
Review question. Does the full Walsh controller generate exactly the stated occupied calls, pay for every scan and child once, and keep the same head intervals across returns? The package states the missing Lean hypotheses and links the written cost for each. Proof boundary
For exponent$0.5$ , the open problem is to bound $G=\log_2(T/(n\sqrt L))$ above by a constant. Equivalently, the goal is an excess exponent of order $1/\log\log n$ or smaller: if $T(n)\le nL^{1/2+C/x}$ for a fixed $C$ , then $L^{C/x}=2^C$ since $x=\log_2 L\sim\log_2\log_2 n$ . The present estimate gives $G\le63\Phi(x)$ . The derivation shows where a tighter estimate could come from. It charges the movement of occupied blocks into narrower recursive calls and back, the Walsh transforms on those blocks, and the permutations that route results through the outer multiplier. A proposed change can be evaluated by recomputing those costs across the full recursion. An intermediate target is $G\le C\log_2(x+2)$ for a fixed $C$ . Then the multiplicative overhead $2^G$ is at most $(x+2)^C$ , a polynomial in $\log\log n$ . Reaching exponent $0.5$ requires a constant upper bound on the combined overhead. The package README separates these research targets from the Lean obligations for the present bound.
Jerry Chen (@CubeJerry) directed this work with substantial ChatGPT research and verification assistance. OpenAI supplied the published constructions and tape model. OpenAI Codex prepared the extraction and additional Lean proofs.