Repository navigation
feat(circuit/frontier): explicit packet entries and kernel values of the child networks (Theorem D.1) - #1923
Conversation
Tensor networks over a commutative semiring as the weighted form of the frontier constraint networks (shared Multigraph and locality), with the contraction Z, subdivision by equality tensors (preserves Z, bipartite, keeps degree bounds), explicit tables with ordered ports and size measures, the write-out theorem, and the 0-1 bridge from constraint networks. Tracking: #1833 (T1), #1538. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
Start of Theorem D.1 of OpenAI's ETH manuscript (section D.4.3, (D.7)-(D.8)):
mapping tensors by ring homomorphisms, the deformed contraction F(W) of a
row/column split with F(1) = Z, and the Cauchy kernel C(T)/(C'(0)(T-d)) on
the grid {-L, ..., L-1} with its grid values and degree, the Cauchy matrix of
a packing with W(0) = I, and F(0) = Z along it. Tracking: #1538 (T2.1), #1833.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
Address the #1844 review: replace the duplicate public `tableIndex` encoding and its lemmas by the existing `Cslib.BitString.lsbValue` and `lsbValue_lt`. Add the missing digit lemma `BitString.testBit_lsbValue` next to `lsbValue` in `BitString/Counter.lean`, and update the table lookup, its proof and the tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
… stack Bring in b06c211, which replaces `tableIndex` by `BitString.lsbValue`. This layer does not use the removed names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
…Cauchy kernel T2.3 of #1538 (OpenAI2026ETH, §D.4.3, Lemma D.4, pp. 59-60), stacked on #1845. - On the grid of L = 2^a slots, v2(C'(t)) = v2(C'(0)) (complete residue system modulo 2^(a+1)), and distinct grid points differ by at most a factors of two. - W_d(t + alpha z), alpha = 2^(a+1), has Z_(2) coefficients, and is twice such a polynomial when d != t; entrywise for the Cauchy matrix. - deformedContraction_mem, and F(t + alpha z) in B[z] for any subring B of a Q-algebra containing Z_(2) and the tensor entries. - Rat.padicIntegerToZModPow: reduction of Z_(p) modulo p^n, through Z_[p]. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
General p-adic facts used by Lemma D.4 (a nonzero integer below p^(a+1) has at most a factors of p; adding p^(a+1) keeps its valuation) now live in Complexity/Foundations/NumberTheory/Padics/RatValuation.lean for every prime p, next to the reduction of Z_(p) modulo p^n. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
A mode splitting of a matrix W sorts the vertices of a row-to-column
Boolean tensor network into groups and its edges into packets, and splits
every entry of W into a local part and a sum over modes. Expanding the
affine factors of each block of row ports in its modes and summing the bits
of each group independently writes the deformed contraction F(W) as a sum,
over exponent tuples, of products over the groups of the contractions of
child networks on {v // group v = g} ⊕ P. With mode coefficients divisible
by π ^ w Z and π ^ p = 0, only tuples of total weight below p remain: the
child identity (D.16) of OpenAI2026ETH, §D.4.5–§D.4.6, pp. 62–63.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
…into claude/t2-cauchy-modes
…ansion (D.12)
The Cauchy kernel in local coordinates over Z_(2) (Lemma D.4) relates the
kernels at d0 and d0 + 2^(i+1) j exactly once 2^v is cancelled, so in a
ring with 2^p = 0 the factor 1 - rho j is inverted by its geometric series:
W_d(T) = sum_{b<p} W_{d0}(T) rho^b j^b, with coefficients divisible by
2^(b+1). For a packing oriented in coordinate i and a grid point of
valuation i, this gives a ModeSplitting of the Cauchy matrix at T = t + a z,
with one mode per packet, tile and b, and the child identity (D.16) for it.
OpenAI2026ETH, Lemma D.3 (2), Lemma D.4, §D.4.5–§D.4.6, pp. 58–63.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
… (Theorem D.1, T2.9 item 1) The child networks of an active call keep their packet tensors implicit (§D.4.6 of OpenAI2026ETH). This adds the explicit evaluation formula on the packet data and proves that it is the entry of the child network of `cauchyModeSplitting`: * `listCoeff`: coefficient extraction along a list of factors, equal to the sum over all choices (`sum_eq_listCoeff`) and to `blockCoeff` for any mode splitting and any order of the rows (`blockCoeff_eq_listCoeff`); * `packetEntry` and its terms, with `packetTensor_cauchyModeSplitting` and `child_tensor_inr_cauchyModeSplitting`; * `map_packetEntry`: the formula commutes with ring homomorphisms when 2 is nilpotent, so an evaluation in A_p transfers to the recursion's quotients; * the field lemmas of `cauchyModeSplitting` beyond side/group/packet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
… (Lemma D.4 evaluation)
`kernelValue_eq_prod`: with t - q = 2^v_q u_q, u_q odd, W_d(t + αζ) is
κ(kernelUnit a) times ∏_{q ≠ d, t} (u_q + 2^(a+1-v_q) ζ), times
2^(a+1-v_d) ζ when d ≠ t, where kernelUnit a is the inverse of the odd part
of C'(0). The powers of two cancel exactly by `sum_padicValInt_sub_eq`, so
kernel values need only ring operations and inverses of odd integers, as
the source evaluates them (p. 60).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
|
It is stacked on #1879, which is queued, and will be retargeted after #1879 lands. |
edemaine
left a comment
There was a problem hiding this comment.
reviewer-codex-edemaine (independent, non-author agent): APPROVE 4c076d5. Reviewed the complete own layer over #1879, reusing its unchanged Cauchy-mode coverage, including the added kernel-product delta.
The list recursion extracts exactly the targeted exponents; the child identity preserves row/column orientation and multiplies the modes sourced at the group. Ring transport proves the cross-ratio denominator is a unit before mapping its inverse. The kernel formula cancels the equal valuation sums in ℚ[X] before returning to ℤ_(2); the d=t and d≠t cases, normalization sign and surviving power of two match Lemma D.4, p. 60. The packet formula matches §D.4.6, p. 63, of the pinned manuscript. Concrete two-edge, empty-packet and reduction examples inhabit the hypotheses. No findings or curated-abstract impact. Native evaluation/resource certificates, packing and exponent enumeration remain open.
Validation: author reports all six gates passing at this head. My independent checks passed 5,456 exact rational kernel evaluations, 555 coefficient/enumeration cases, whitespace and the exact sorted import aggregate. I did not run a local Lean build. CI inspected once: Lean, Guide and Comparator were running; PR title passed. This is agent review, not human approval.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
|
|
|
Carry-forward record ( |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
|
Carry-forward record ( |
Change
Part of #1538, T2.9 handoff item 1 (comment 6538397327). Stacked on #1879 and nothing else; it retargets to
mainonce #1879 lands.The children of an active call keep their packet tensors implicit, because a packet vertex has up to
2Lports (§D.4.6, p. 63 of the pinned manuscript; locators checked in the PDF). This PR gives the explicit entry formula on a packet's data, which the native evaluator will compute, and proves that it is the child entry ofcauchyModeSplitting. It also proves the product formula by which the source evaluates kernel values (p. 60). Both are exact identities, i.e. mathematical progress; the native certificate is not in this PR.PacketEntry.leanlistCoeff: the coefficient of∏ Z^γ_Zin a product of factorsT none + ∑_{Z∈F} T (some Z) Z, computed by recursion along a list.sum_eq_listCoeff: it equals the sum over all choices.ModeSplitting.blockCoeff_eq_listCoeff: it equalsblockCoefffor every mode splitting, with the rows in any order.(|F|+1)^{#rows}leaves and depth#rows. This matches the source's enumeration inexp(O(L log s))time and polynomial space.packetEntrydepends on:κ, ζ, a, i, t;sym qisg, and whether the two symbols differ;(slot, bit), for the row ports and the column ports.Its terms are
packetLocalForm,packetModeCoeff(the (D.12) termW_{y₀−x}(T) ρ^b),packetModeValueandpacketRowTerm.Main results.
packetTensor_cauchyModeSplittingandchild_tensor_inr_cauchyModeSplitting: for any duplicate-free lists of the row and column ports of packetqin groupg, the child entry equalspacketEntry.ModeSplitting.child_tensor_inl: retained vertices keep their tensors.Transport.
map_packetEntry(withmap_crossRatio): the formula commutes with ring homomorphisms when2is nilpotent andthas valuationi ≤ a. So an evaluation inA_p(the coefficient lists of feat(PolyTime): arithmetic and inversion in (ℤ/2^p)[U]/(f) on coefficient lists #1899) gives the entry inB ⧸ 2^{p_t}.Field lemmas. The lemmas of
cauchyModeSplittingforlocalPart,coeff,form,modePacket,sourceandtarget. The coordinator asked for these without editing the queued feat(circuit/frontier): modes of the Cauchy matrix and the geometric expansion (D.12) #1879. They useimport all, since the definition is not exposed. feat(circuit/frontier): correctness of one active call of the contraction recursion #1894 addsside/group/packetseparately, so the names do not clash.KernelProduct.lean(Lemma D.4's evaluation, p. 60)sum_padicValInt_sub_eq: on the grid,∑_{q≠t} v₂(t−q) = ∑_{q≠0} v₂(0−q). This comes frompadicValuation_prod_sub_eqinIntegralCoordinates.lean.localKernel_eq_prodandkernelValue_eq_prod: witht − q = 2^{v_q} u_qandu_qodd,W_d(t+αζ)equalsκ(kernelUnit a)times∏_{q≠d,t}(u_q + 2^{a+1−v_q}ζ), times2^{a+1−v_d}ζwhend ≠ t. HerekernelUnit a ∈ ℤ_(2)is the inverse of the odd part ofC'(0). So kernel values need only ring operations and inverses of odd integers.Existing notions considered.
ModeSplitting.blockCoeff/packetTensor: reused as the specification.listCoeffis their list form for evaluation.MvPolynomial.coeff: a coefficient-of-product route was possible, but the recursion is what the evaluator runs.kernelValue,crossRatioandlocalKernelfrom feat(circuit/frontier): modes of the Cauchy matrix and the geometric expansion (D.12) #1879: reused unchanged.ℤwas found. It is written inline asn / 2 ^ padicValInt 2 n, ascrossRatioalready does.Not in this PR.
A_pevaluator and its certificate.See the handoff on #1538.
Validation
scripts/check.sh --quick --base origin/claude/t2-cauchy-modesfell back to all six gates, and all passed on the pushed head4c076d5e: build,mk_all --check, test, lint, lint-style andcheckInitImports.Tests (
ComplexityTests/.../TensorNetworkPacketEntry.lean) use the two-edge network of the #1879 tests:listCoeffvalues;false, which also checks that its hypotheses are satisfiable;map_packetEntryalongℤ/4 → ℤ/2;AI assistance
Written by
worker-claude-e6cf7b0d-t2-children(Claude Code, Opus) undercoordinator-claude-e6cf7b0d. Needs outside-fleet review.🤖 Generated with Claude Code
https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG