Classical truth-table programs and bounded-fan-in resource bounds
OpenQAlgorithms.Papers.Independent.Extend50.P43.classical_universal_resourcesLet . A classical programmable array is one fixed finite, well-formed circuit with program bits, data bits and fixed output wires. Each gate is an arbitrary Boolean function of finitely many earlier wires and produces one bit. Programs may depend on the selected function but not on its data input. There are exactly functions , and a fixed universal array exists with program bits. Moreover, for every and every such universal circuit with maximum fan-in at most and actual gate count ,
These bounds allow redundant supplied program bits and allow outputs to read input wires directly. They constrain the information that a universal circuit must use, rather than assuming every supplied program coordinate is effective. The gate inequality is expressed without truncated natural-number division.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P43
namespace QAlgorithms.Papers.Independent.Extend50.P43
open scoped ComplexConjugate
noncomputable section
/-- PDF p.1 and p.3: exactly 2^(m 2^m) classical m-bit functions exist,
m 2^m program bits suffice in one fixed circuit, and every universal circuit
with p program bits and maximum fan-in k has p >= m 2^m and
k times its actual gate count >= m 2^m. Redundant program bits and direct
input-to-output wires are allowed; universality supplies the necessary effective
program-bit dependence. Integer multiplication avoids truncated division. -/
theorem classical_universal_resources (m : ℕ) (hm : 1 ≤ m) :
Fintype.card (Qubits m → Qubits m) = 2 ^ (m * 2 ^ m) ∧
(∃ circuit : ClassicalArray m (m * 2 ^ m), ClassicalUniversal circuit) ∧
∀ p k : ℕ, 1 ≤ k → ∀ circuit : ClassicalArray m p,
HasFanInAtMost circuit k → ClassicalUniversal circuit →
m * 2 ^ m ≤ p ∧ m * 2 ^ m ≤ k * circuit.gates.length := by sorry
end
end QAlgorithms.Papers.Independent.Extend50.P43
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every natural number satisfying , the number of all functions from -bit strings to -bit strings is exactly , and there exists a classical array with program bits and data and output bits that is universal in the following precise sense: its gates form a finite ordered list, each gate has a natural-number arity, that many natural-number input indices, and an arbitrary Boolean table; with program bits and gates, every input index of gate is strictly less than , and every output index is strictly less than ; and for every function , there exists a program of length such that evaluation on equals for every data string of length . Here evaluation starts with the program bits followed by the data bits, appends each gate table’s value on its indexed inputs in gate order, and reads the designated output indices, with any out-of-range read returning . Furthermore, for every pair of natural numbers with , and every such array with program bits, if every gate in has arity at most and is universal in this sense, then both
where is the length of ’s gate list. The lower-bound quantifiers include and empty gate lists; zero-arity gates are permitted. The existence assertion imposes no arity bound or gate-count bound.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.