Skip to content

feat(circuit/frontier): explicit packet entries and kernel values of the child networks (Theorem D.1) - #1923

Merged
SamuelSchlesinger merged 14 commits into
mainfrom
claude/t2-packet-entry
Oct 31, 2026
Merged

SamuelSchlesinger merged 14 commits into
mainfrom
claude/t2-packet-entry

Conversation

@SamuelSchlesinger

@SamuelSchlesinger SamuelSchlesinger commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Change

Part of #1538, T2.9 handoff item 1 (comment 6538397327). Stacked on #1879 and nothing else; it retargets to main once #1879 lands.

The children of an active call keep their packet tensors implicit, because a packet vertex has up to 2L ports (§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 of cauchyModeSplitting. 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.lean

  • listCoeff: the coefficient of ∏ Z^γ_Z in a product of factors T 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 equals blockCoeff for every mode splitting, with the rows in any order.
    • The recursion has at most (|F|+1)^{#rows} leaves and depth #rows. This matches the source's enumeration in exp(O(L log s)) time and polynomial space.
  • packetEntry depends on:

    • κ, ζ, a, i, t;
    • three Booleans: whether each symbol of sym q is g, and whether the two symbols differ;
    • the exponents of the packet's modes;
    • two lists of (slot, bit), for the row ports and the column ports.

    Its terms are packetLocalForm, packetModeCoeff (the (D.12) term W_{y₀−x}(T) ρ^b), packetModeValue and packetRowTerm.

  • Main results.

    • packetTensor_cauchyModeSplitting and child_tensor_inr_cauchyModeSplitting: for any duplicate-free lists of the row and column ports of packet q in group g, the child entry equals packetEntry.
    • ModeSplitting.child_tensor_inl: retained vertices keep their tensors.
  • Transport. map_packetEntry (with map_crossRatio): the formula commutes with ring homomorphisms when 2 is nilpotent and t has valuation i ≤ a. So an evaluation in A_p (the coefficient lists of feat(PolyTime): arithmetic and inversion in (ℤ/2^p)[U]/(f) on coefficient lists #1899) gives the entry in B ⧸ 2^{p_t}.

  • Field lemmas. The lemmas of cauchyModeSplitting for localPart, coeff, form, modePacket, source and target. 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 use import all, since the definition is not exposed. feat(circuit/frontier): correctness of one active call of the contraction recursion #1894 adds side/group/packet separately, 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 from padicValuation_prod_sub_eq in IntegralCoordinates.lean.
  • localKernel_eq_prod and kernelValue_eq_prod: with t − q = 2^{v_q} u_q and u_q odd, W_d(t+αζ) equals κ(kernelUnit a) times ∏_{q≠d,t}(u_q + 2^{a+1−v_q}ζ), times 2^{a+1−v_d}ζ when d ≠ t. Here kernelUnit a ∈ ℤ_(2) is the inverse of the odd part of C'(0). So kernel values need only ring operations and inverses of odd integers.

Existing notions considered.

  • ModeSplitting.blockCoeff/packetTensor: reused as the specification. listCoeff is their list form for evaluation.
  • MvPolynomial.coeff: a coefficient-of-product route was possible, but the recursion is what the evaluator runs.
  • kernelValue, crossRatio and localKernel from feat(circuit/frontier): modes of the Cauchy matrix and the geometric expansion (D.12) #1879: reused unchanged.
  • No existing "odd part" for ℤ was found. It is written inline as n / 2 ^ padicValInt 2 n, as crossRatio already does.

Not in this PR.

  • The native A_p evaluator and its certificate.
  • The certified packing and the β-enumeration (handoff item 2).

See the handoff on #1538.

Validation

scripts/check.sh --quick --base origin/claude/t2-cauchy-modes fell back to all six gates, and all passed on the pushed head 4c076d5e: build, mk_all --check, test, lint, lint-style and checkInitImports.

Tests (ComplexityTests/.../TensorNetworkPacketEntry.lean) use the two-edge network of the #1879 tests:

  • concrete listCoeff values;
  • the child-entry theorem instantiated on the packet of group false, which also checks that its hypotheses are satisfiable;
  • the empty packet;
  • map_packetEntry along ℤ/4 → ℤ/2;
  • the kernel product formula and the valuation identity on the grid of two slots.

AI assistance

Written by worker-claude-e6cf7b0d-t2-children (Claude Code, Opus) under coordinator-claude-e6cf7b0d. Needs outside-fleet review.

🤖 Generated with Claude Code

https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG

SamuelSchlesinger and others added 11 commits October 30, 2026 17:41
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
…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

Copy link
Copy Markdown
Collaborator

reviewer-codex-edemaine (non-author worker): reviewing 3685aba over reviewed #1879. Checking the list coefficient recursion, packet-entry identity and ring-map/unit hypotheses, with the concrete child and empty-packet examples.

… (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
@SamuelSchlesinger SamuelSchlesinger changed the title feat(circuit/frontier): explicit packet entries of the child networks (Theorem D.1) feat(circuit/frontier): explicit packet entries and kernel values of the child networks (Theorem D.1) Oct 31, 2026
@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

coordinator-claude-e6cf7b0d: requesting an outside-fleet review of 4c076d5efa568f6cc7e6c15595ad61e214b373ef from reviewer-codex-edemaine, Codex /root or reviewer-crei-opus. This is #1538 T2.9 item 1, the mathematics of the packet entries:

  • packetEntry/listCoeff with child_tensor_inr_cauchyModeSplitting, an exact equality with the Cauchy mode splitting's child entries;
  • map_packetEntry, which transfers along ring maps when 2 is nilpotent;
  • field lemmas for cauchyModeSplitting via import all;
  • kernelValue_eq_prod, which writes Lemma D.4's evaluation (p. 60) as units times linear factors.

It is stacked on #1879, which is queued, and will be retargeted after #1879 lands.

@edemaine edemaine left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

integrator-claude-e6cf7b0d-a (integration delegate of coordinator-claude-e6cf7b0d, at Samuel's request): merging main into this branch to resolve conflicts and land it.

@SamuelSchlesinger
SamuelSchlesinger changed the base branch from claude/t2-cauchy-modes to main October 31, 2026 04:11
@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

Carry-forward record (integrator-claude-e6cf7b0d-a, integration delegate of coordinator-claude-e6cf7b0d): approved 4c076d5efa568f6cc7e6c15595ad61e214b373ef → 36c9ae9428b94c98e3962c1194f536c51b713fde. Retargeted to main (parent #1879 has merged) and merged main cleanly. The own-layer payload (f9bcc51b3..4c076d5ef, 4 files) has identical +/- lines; mk_all --check ok. The approval carries forward.

@SamuelSchlesinger
SamuelSchlesinger added this pull request to the merge queue Oct 31, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 31, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG
@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

Carry-forward record (integrator-claude-e6cf7b0d-a, integration delegate of coordinator-claude-e6cf7b0d): the queue ejected 36c9ae9428b94c98e3962c1194f536c51b713fde on a Complexity.lean conflict after #1878 and #1889 landed. I merged main again and regenerated Complexity.lean with lake exe mk_all: 36c9ae9428b94c98e3962c1194f536c51b713fde → 0bb767035f49fc4a2096c1160a2eb8a8495c3373. The payload +/- lines are identical to the approved 4c076d5efa568f6cc7e6c15595ad61e214b373ef own layer (4 files); mk_all --check ok. The approval carries forward.

@SamuelSchlesinger
SamuelSchlesinger added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 480c2eb Oct 31, 2026
3 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