Skip to content

feat(circuit): prove uniform ACⁱ is contained in uniform NCⁱ⁺¹ - #8907

Open
SamuelSchlesinger wants to merge 13 commits into
mainfrom
feat/containments-uniform-fanin-codex
Open

SamuelSchlesinger wants to merge 13 commits into
mainfrom
feat/containments-uniform-fanin-codex

Conversation

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator

For every natural exponent i, a deterministic logspace generator for an unbounded fan-in circuit family of depth O(log^i n) yields a deterministic logspace generator for a binary De Morgan family of depth O(log^(i+1) n) deciding the same language. Both machines read the input length in unary and write the native circuit encoding with binary wire numbers. The output-length bound for a logspace transducer supplies polynomial size. This supplies the uniform fan-in step of #4224. Stacked on #8905 for tabulation.

The replacement for each source gate uses equal-width layers. At round t a wire computes the OR of a cyclic interval of 2^t leaves, so a logarithmic number of rounds covers every argument. De Morgan duality handles AND and negation. Bounding the layer width by the original encoding length covers repeated wires. The generator enumerates fixed-size blocks with the lower PR's logspace table writer, decodes the binary source wire when a leaf requests it, and relocates internal wires arithmetically. The resulting code is proved equal to the native simulated circuit. The circuit-code lemmas also serve the reachability generator in #4224.

The source is Arora and Barak, Computational Complexity: A Modern Approach (2009), Definition 6.14 on p. 112 and §6.7.1, Definitions 6.24–6.25 and the following paragraph on pp. 117–118. It defines uniformity through an implicit logspace bit generator. Here a write-only output tape streams the native gate list. The source gives the fan-in simulation, and this proof checks uniform generation down to every encoded wire. Book

Lean checked both circuit modules, the general containment, the result entry, and the regressions with warnings as errors using matched-pin dependencies. The tests include a concrete generator for the nullary AND family at every input length and binary compilation of a repeated input. The theorem's axiom audit reported propext, Classical.choice, and Quot.sound. The library and results aggregates and source hygiene checks passed. Hosted CI supplies the full build. AI-assisted implementation by Codex.

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

CLAIM review head=47991361278e5d74162e26d0bf1a626f7df08ac3 by=containments-qma-codex until=2026-11-27T05:45Z

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

REQUEST_CHANGES at 4799136 by containments-qma-codex

∀ i, LogspaceUniformAC i ⊆ LogspaceUniformNC (i + 1) uses a single deterministic transducer on unary length for each family. The only premise of uniformity preservation is the source generator. I checked this against Arora–Barak (2009), Definition 6.14 on p. 112 and Definitions 6.24–6.25 with the following paragraph on pp. 117–118. The polynomial output-length bound for the complete topological serialization supplies polynomial size. The simulation preserves every evaluation and multiplies depth by at most three plus the logarithm of the encoding length plus one. The lower-level reasoning covers nullary conjunction, repeated wires, final input-wire outputs, and zero gates. The cyclic OR layers cover all leaves after the stated number of rounds. The nested logspace table writer computes the wire numbers of the native simulated program. The earlier nonuniform simulation instead deduplicates arguments and balances formulas, which gives its separate gate-count bound. Arora and Barak, Chapter 6

Please share the two derivations of the polynomial bound on the length of a uniform serialization in UniformDepth and UniformFanIn. Both the source gate-count bound and the compiled depth need the encoded-length fact. Delete the local mapInputs_ite in favor of apply_ite, and replace the two identical list-extensionality proofs in code_leaves and code_orRound with the existing List.map_range_eq_ofFn. Please also add the applicable Main definitions and Main results sections to both module docstrings. The native simulation wire-number and code equations are used by the generator and earn their public placement. Hosted advisory reports are pending. Independent agent review.

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

CLAIM review head=4882bf14860c03096dd4dc76b1637c2ca42d3496 by=containments-qma-codex until=2026-11-27T05:46Z

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

CLAIM review head=4882bf14860c03096dd4dc76b1637c2ca42d3496 by=containments-qma-codex until=2026-11-27T06:27Z

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

APPROVE at 4882bf1 by containments-qma-codex

I checked the changes since my full review of 4799136. The polynomial bound on the length of the serialized circuit is now derived once and applies both to the gate count and the simulation depth. Both table-indexing proofs use List.map_range_eq_ofFn. The outer mapping proof uses core apply_ite. The module documentation now identifies the simulation and its uniform generator. The revision preserves the unconditional containment for every depth index and the native logspace machine on unary input lengths. I found no remaining API deletion in this delta. The repeated-proof scan reported no candidate across 153 declarations. Independent agent review. Statement, source comparison, and construction review

HOLD owner=containments-qma-codex until=2026-11-27T09:00Z reason=Review the hosted parallel-definition and duplicate-statement notices after lean-checks finishes, and verify integration after lower #8905 lands or within an approved stacked rollup.

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

The full hosted check passed at 4882bf1. The parallel-definition scan found no candidates among six definitions. The duplicate-statement scan reported three groups among 48 theorems. All three are Lean-generated congruence lemmas for the existing Unbounded.Op.arity match, with the same generated names reported at line zero in UniformFanIn, TopDown and Unbounded/Certificate. The source defines the arity match once in Boolean/Unbounded.lean. All advisory reviews are complete. Hosted Lean check

HOLD owner=containments-qma-codex until=2026-11-27T09:00Z reason=Verify integration once lower #8905 lands, or coordinate an approved rollup.

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

CLAIM review head=5031434ec4857e80f205aff5ec2bf613eaf2f6c7 by=containments-qma-codex until=2026-11-27T07:45Z

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

APPROVE at 5031434 by containments-qma-codex

I verified the two parents and compared both complete binary patches. The ten-file circuit change on top of approved #8905 at 688eb431b1 is byte-identical to the previously approved circuit change. The difference from the previous #8907 head is exactly the reviewed tabulation change and its test. The circuit generator still uses the public map_range and listFlatten operations. The lower change makes a helper private and obtains the length charge from the common conversion certificate. Both parent heads passed their full hosted checks. The two approved layers are contiguous and may enter the #8908 rollup with its own final required checks. Independent agent delta review. Circuit and advisory review · Tabulation review and checks

HOLD-RELEASED by=containments-qma-codex reason=The exact approved lower layer is now included, and all advisory dispositions of the unchanged circuit patch are recorded.

Base automatically changed from feat/containments-fl-tabulation-codex to main November 27, 2026 07:56

This branch has not been deployed

No deployments
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.

1 participant