§3.1: checkerboard base circuit and costs (40)–(44)
OpenQAlgorithms.Papers.Independent.Extend50.P44.checkerboardBaseLet and . There are fixed arithmetic label oracles (41)-(42), chosen independently of the two real values , for the checkerboard matrix . For every table with , the no-deletion base circuit satisfies
It loads two items, uses flags, and its arithmetic oracles use only X and CNOT gates, hence zero Toffoli/T cost. No full-unitary Hermiticity is asserted for (43). This example demonstrates repeated-value loading with data-independent structure.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P44
noncomputable section
namespace QAlgorithms.Papers.Independent.Extend50.P44
open scoped BigOperators ComplexConjugate Matrix
open QAlgorithms.Papers.Independent.Frontier18.P11 (complexMatrix)
open QAlgorithms.Papers.Independent.Information100.P34 (permutationMatrix)
open QAlgorithms.Papers.Independent.Next46.P21 (tCount)
variable {n s d m : ℕ}
/-- PDF p.13, (43)-(44): checkerboard construction, with exactly two loaded
data slots, n+1 flags, and zero Toffoli cost in the arithmetic oracles. -/
theorem checkerboardBase (n : ℕ) (hn : 1 ≤ n) :
∃ B : Scheme n n 1 (2 * n - 1), CheckerLabels B ∧ B.ArithmeticCost 0 0 ∧
loadingCost (baseLoadingSchedule 2) = 2 ∧
Fintype.card (Bool × Fin (2 ^ n)) = 2 ^ (n + 1) ∧
∀ a : Fin 2 → ℝ, 0 < tableMax a →
B.matrix a = checkerboard n a ∧
QAlgorithms.IsBlockEncoding (false, 0) (B.simpleCircuit a)
((2 ^ n : ℕ) * max |a 0| |a 1|) 0 (checkerboard n a) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P44
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every natural number , put and , and write . There exists a scheme consisting of column and row bijections , a Boolean validity function, nonempty slot sets , and unitary slot matrices , with parameter balance . Every label is valid, , both slot matrices have zeroth column constantly , and labels are uniquely determined by their column and row output coordinates together. For every label ,
The scheme admits three reversible Boolean circuits, with no work bits, implementing the column bijection, row bijection, and validity-controlled flip of the second of two flags, respectively, while preserving both flags in the first two maps. Labels and slot/output pairs are encoded by concatenating their fixed-width binary representations, most significant bit first. Each elementary Boolean gate flips a target exactly when all its controls are true, has at most two controls, and does not use its target as a control; the total number of gates with two controls across the three circuits is zero, with no bound asserted on the numbers of gates with fewer controls. The loading schedule has sum , and the ancillary index set has cardinality . For every real table with , the matrix whose -entry is the sum of over valid labels with row output and column output equals . Define
The matrix obtained by applying to the slot, the inverse column bijection, to a Boolean flag while holding the label fixed, the row bijection, and finally to the slot is unitary and satisfies
The same scheme works for all such tables, including tables with one zero entry.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.