{"families":[{"id":"family-query-costs","name":"Quantum and classical queries · The exponent four","named":false,"part":0,"topics":["query-costs","quartic-exponent"]},{"id":"family-board-and-certificates","name":"The board and its certificates","named":false,"part":0,"topics":["board-and-certificates"]},{"id":"family-forrelation-addresses","name":"Forrelation addresses · Checking a proposed winner","named":false,"part":0,"topics":["exact-checking","forrelation-addresses"]},{"id":"family-classical-lower-bound","name":"The classical lower bound","named":false,"part":0,"topics":["classical-lower-bound"]},{"id":"family-comparisons","name":"Comparing two columns","named":false,"part":0,"topics":["comparisons"]},{"id":"family-tournament","name":"Finding a winning column · Amplifying success","named":false,"part":0,"topics":["tournament","amplification"]}],"layer":"phrases","meaning":"Each tie is a pointer that landed. Whether the paper and the Lean say the same thing is a reading.","parts":[{"end_byte":104070,"name":"","start_byte":0}],"passages":[[23,1678,["quartic.theorem-1"],"front"],[6539,8930,["quartic.theorem-1"],"sec-1.2"],[30405,36812,["quartic.proposition-3"],"sec-4.3"],[47795,53837,["quartic.proposition-3"],"sec-6"]],"segments":[[633,765,[0]],[877,910,[1]],[2477,2539,[2]],[4328,4431,[3]],[4567,4671,[4]],[4672,4757,[5]],[4761,4868,[6]],[4869,4911,[7]],[4915,5060,[8]],[6597,6671,[9]],[6672,6837,[10]],[6838,6926,[11]],[6927,6990,[12]],[6991,7042,[13]],[7506,7565,[14]],[8232,8249,[15]],[8290,8330,[16]],[8447,8539,[17]],[8625,8762,[18]],[8812,8887,[19]],[9046,9168,[20]],[9199,9249,[21]],[9296,9432,[22]],[9433,9488,[23]],[11282,11413,[24]],[12026,12087,[25]],[12092,12199,[26]],[12269,12335,[27]],[12337,12465,[28]],[12738,12829,[29]],[13605,13668,[30]],[13679,13697,[31]],[13703,13749,[32]],[14135,14187,[33]],[14391,14410,[34]],[14460,14499,[35]],[14570,14615,[36]],[14791,14844,[37]],[15041,15126,[38]],[15428,15500,[39]],[15505,15535,[40]],[15539,15627,[41]],[15631,15737,[42]],[15741,15846,[43]],[15848,15918,[44]],[15919,15994,[45]],[15995,16160,[46]],[16299,16396,[47]],[16470,16589,[48]],[16755,16809,[49]],[17687,17870,[50]],[17871,18025,[51]],[18026,18103,[52]],[18104,18308,[53]],[20398,20429,[54]],[20567,20847,[55]],[20849,20920,[56]],[22567,22678,[57]],[23596,23683,[58]],[23787,23927,[59]],[23928,23970,[60]],[23974,24062,[61]],[24186,24234,[62]],[25405,25466,[63]],[25703,25857,[64]],[26565,26691,[65]],[26755,26815,[66]],[26816,26946,[67]],[27157,27213,[68]],[27599,27707,[69]],[28211,28355,[70]],[28816,28930,[71]],[28931,28945,[72]],[28946,29029,[73]],[29200,29330,[74]],[29410,29473,[75]],[29608,29741,[76]],[30039,30130,[77]],[30213,30303,[78]],[30951,31067,[79]],[31467,31521,[80]],[31522,31660,[81]],[31661,31761,[82]],[31795,32029,[83]],[32382,32435,[84]],[32488,32550,[85]],[32890,33021,[86]],[33458,33622,[87]],[33687,33820,[88]],[33821,33924,[89]],[34333,34452,[90]],[34509,34646,[91]],[34939,34973,[92]],[35199,35370,[93]],[35419,35563,[94]],[35565,35660,[95]],[35804,35982,[96]],[35983,36129,[97]],[37133,37228,[98]],[37284,37357,[99]],[37420,37529,[100]],[37821,37856,[101]],[38520,38577,[102]],[39196,39248,[103]],[39426,39472,[104]],[39642,39723,[105]],[39875,39928,[106]],[40098,40135,[107]],[40136,40184,[108]],[40189,40218,[109]],[40220,40272,[110]],[40599,40603,[111]],[40606,40615,[112]],[40656,40671,[113]],[41087,41223,[114]],[41371,41502,[115]],[41503,41641,[116]],[42391,42548,[117]],[42549,42610,[118]],[42611,42685,[119]],[42911,42998,[120]],[43541,43608,[121]],[43616,43683,[122]],[43743,43819,[123]],[43826,43885,[124]],[43886,43920,[125]],[43961,44030,[126]],[44173,44271,[127]],[44439,44500,[128]],[44555,44726,[129]],[44767,44822,[130]],[44949,45002,[131]],[45046,45105,[132]],[45217,45250,[133]],[45256,45283,[134]],[45362,45429,[135]],[45470,45527,[136]],[45598,45639,[137]],[45648,45666,[138]],[45717,45805,[139]],[46095,46255,[140]],[46313,46428,[141]],[46472,46610,[142]],[46723,46809,[143]],[46811,46890,[144]],[48078,48120,[145]],[48149,48240,[146]],[48241,48316,[147]],[48470,48515,[148]],[48517,48611,[149]],[48613,48681,[150]],[48682,48837,[151]],[48838,48943,[152]],[48945,49068,[153]],[49182,49252,[154]],[49915,49984,[155]],[50043,50186,[156]],[50265,50390,[157]],[51558,51635,[158]],[51636,51958,[159]],[51976,52011,[160]],[52019,52126,[161]],[52127,52217,[162]],[52303,52415,[163]],[52417,52530,[164]],[52611,52731,[165]],[52736,52815,[166]],[52817,53066,[167]],[53067,53112,[168]],[53629,53665,[169]],[54116,54156,[170]],[54577,54833,[171]],[55792,55846,[172]],[57112,57214,[173]],[57215,57336,[174]],[57385,57443,[175]],[57474,57559,[176]],[57560,57618,[177]],[57619,57701,[178]],[57702,57879,[179]],[57880,57910,[180]],[58099,58253,[181]],[58376,58502,[182]],[58504,58562,[183]],[58637,58762,[184]],[59552,59630,[185]],[59631,59762,[186]],[59768,59813,[187]],[60591,60718,[188]],[60719,60823,[189]],[61261,61287,[190]],[61293,61355,[191]],[62035,62131,[192]],[62568,62675,[193]],[62676,62760,[194]],[62761,62852,[195]],[62858,62935,[196]],[63129,63197,[197]],[63202,63243,[198]],[63368,63487,[199]],[63488,63660,[200]],[63938,64114,[201]],[64115,64186,[202]],[64244,64437,[203]],[64488,64678,[204]],[64766,64947,[205]],[64948,65072,[206]],[66066,66237,[207]],[66238,66298,[208]],[66300,66332,[209]],[66446,66616,[210]],[66617,66819,[211]],[67795,67932,[212]],[68042,68089,[213]],[68468,68476,[214]],[68540,68548,[215]],[68626,68636,[216]],[68644,68669,[217]],[68677,68685,[218]],[68687,68734,[219]],[68740,68780,[220]],[68781,68949,[221]],[69052,69119,[222]],[69768,69900,[223]],[69964,70007,[224]],[70015,70048,[225]],[70086,70327,[226]],[70539,70594,[227]],[70799,70959,[228]],[70994,71027,[229]],[71066,71185,[230]],[71316,71470,[231]],[71518,71603,[232]],[71754,71770,[233]],[71789,71795,[234]],[71836,71841,[235]],[71890,71909,[236]],[72432,72543,[237]],[72635,72671,[238]],[72746,72825,[239]],[72826,72935,[240]],[74692,74902,[241]],[74903,74995,[242]],[75001,75058,[243]],[75059,75123,[244]],[75281,75449,[245]],[75450,75685,[246]],[75686,75815,[247]],[75845,75987,[248]],[76256,76352,[249]],[76484,76528,[250]],[76713,76770,[251]],[77226,77423,[252]],[77716,77808,[253]],[77809,77878,[254]],[77924,78148,[255]],[78299,78377,[256]],[78378,78497,[257]],[78498,78550,[258]],[78551,78645,[259]],[78800,78947,[260]],[78948,79002,[261]],[79190,79276,[262]],[79277,79390,[263]],[79391,79467,[264]],[79732,79786,[265]],[79792,79879,[266]],[79881,79936,[267]],[79998,80040,[268]],[80048,80110,[269]],[80116,80163,[270]],[80312,80372,[271]],[80407,80433,[272]],[80485,80513,[273]],[80519,80570,[274]],[80600,80616,[275]],[80643,80703,[276]],[80709,80805,[277]],[81114,81152,[278]],[81187,81252,[279]],[81258,81308,[280]],[81446,81513,[281]],[82994,83123,[282]],[83143,83281,[283]],[84064,84118,[284]],[84119,84218,[285]],[84219,84316,[286]],[85376,85447,[287]],[85448,85665,[288]],[85666,85760,[289]],[85762,85920,[290]],[86067,86119,[291]],[86120,86232,[292]],[86233,86368,[293]],[86369,86410,[294]],[86457,86573,[295]],[86579,86662,[296]],[86663,86684,[297]],[86686,86722,[298]],[86728,86780,[299]],[87078,87186,[300]],[94515,94553,[301]],[94558,94605,[302]],[96697,96765,[303]],[96812,96847,[304]],[97320,97409,[305]],[98045,98115,[306]],[98340,98379,[307]],[98500,98583,[308]]],"ties":[{"anchor":"front","at":"b633-765","from_record":false,"lean":true,"lines":[23,29],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.theorem_1_1_unconditional","origin":"ai","part":0,"phrase":"exp-intro-family","plain":"The universal quartic bound and total functions approaching exponent four","record":"quartic.theorem-1","relation":"contains","role":"statement","rows":[{"end_line":38,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":23,"lines":[23,29],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.theorem_1_1_unconditional","note":"","plain":"The universal quartic bound and total functions approaching exponent four","proof_lines":[30,38],"relation":"contains","annotation":"Read the last conjunct in binder order. Fix $k\\ge2$, choose constants and a threshold, then let $t$ grow. The same circuit witness `C` defines `Fkm k t C` in both query inequalities."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"front","at":"b877-910","from_record":false,"lean":true,"lines":[70,70],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.universalPower_four","origin":"ai","part":0,"phrase":"exp-intro-upper","plain":"R(f) ≤ 20736(1+Q(f))⁴ for total functions","record":null,"relation":"states","role":"statement","rows":[{"end_line":77,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":70,"lines":[70,70],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.universalPower_four","note":"","plain":"R(f) ≤ 20736(1+Q(f))⁴ for total functions","proof_lines":[71,77],"relation":"states","annotation":"The constant in `UniversalPower 4` is chosen once for all input lengths and total functions. The proof obtains it by composing `R_le_D` with the deterministic quartic estimate."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-1","at":"b2477-2539","from_record":false,"lean":true,"lines":[53,55],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree.depth","origin":"ai","part":0,"phrase":"exp-1-bit-read-cost","plain":"Queries along the longest decision-tree path","record":null,"relation":"defines","role":"definition","rows":[{"end_line":55,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":53,"lines":[53,55],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree.depth","note":"A query node adds one; the two possible replies choose its continuation.","plain":"Queries along the longest decision-tree path","relation":"defines","annotation":"The largest number of input bits read on any path through a deterministic algorithm."}],"tone":0,"topic":"query-costs"},{"anchor":"sec-1.1","at":"b4328-4431","from_record":false,"lean":true,"lines":[97,98],"module":"QuarticQuery.Statement","name":"QuarticQuery.State","origin":"ai","part":0,"phrase":"exp-1-state","plain":"Amplitudes for the position, answer and workspace","record":null,"relation":"defines","role":"definition","rows":[{"end_line":98,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":97,"lines":[97,98],"module":"QuarticQuery.Statement","name":"QuarticQuery.State","note":"The state type supplies coordinates; normalisation is imposed by the next declaration.","plain":"Amplitudes for the position, answer and workspace","relation":"defines","annotation":"The complex vector space of amplitudes indexed by a position, an answer bit and a workspace value. The type `State ι w` permits arbitrary vectors. The condition $\\|\\psi_0\\|=1$ is imposed separately in `QLe` when choosing an algorithm's initial state."},{"end_line":148,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":144,"lines":[147,147],"module":"QuarticQuery.Statement","name":"QuarticQuery.QLe","note":"The initial-state condition explicitly requires norm one.","plain":"A quantum algorithm within a fixed query budget","relation":"part","annotation":"The state witness is `ψ₀` with norm one. The same vector initializes the program for every input, and the promised-answer condition is checked afterward."}],"tone":0,"topic":"query-costs"},{"anchor":"sec-1.1","at":"b4567-4671","from_record":false,"lean":true,"lines":[35,36],"module":"QuarticQuery.Upper.Sampler","name":"QuarticQuery.Upper.lawOf","origin":"ai","part":0,"phrase":"exp-1-measurement","plain":"Probabilities when a register is measured","record":null,"relation":"defines","role":"definition","rows":[{"end_line":36,"exact_lines":true,"fidelity":"stronger","fidelity_note":"For arbitrary complex amplitudes and output labels, lawOf sums squared moduli over all configurations with the label. The text gives the real, single-coordinate case.","fidelity_source":"ai","line":35,"lines":[35,36],"module":"QuarticQuery.Upper.Sampler","name":"QuarticQuery.Upper.lawOf","note":"","plain":"Probabilities when a register is measured","relation":"defines","annotation":"`lawOf` sums squared moduli over the basis configurations with a common output label. At label $b$ the summands are $|\\psi_z|^2$ for those $z$ with `out z = b`."}],"tone":0,"topic":"query-costs"},{"anchor":"sec-1.1","at":"b4672-4757","from_record":false,"lean":true,"lines":[49,50],"module":"QuarticQuery.Upper.Sampler","name":"QuarticQuery.Upper.lawOf_smul","origin":"ai","part":0,"phrase":"exp-1-global-sign","plain":"A common phase leaves measurement probabilities unchanged","record":null,"relation":"states","role":"statement","rows":[{"end_line":56,"exact_lines":true,"fidelity":"stronger","fidelity_note":"`lawOf_smul` treats every complex scalar $a$ and gives the exact factor $|a|^2$; the sentence is its $a=-1$ case.","fidelity_source":"ai","line":49,"lines":[49,50],"module":"QuarticQuery.Upper.Sampler","name":"QuarticQuery.Upper.lawOf_smul","note":"","plain":"A common phase leaves measurement probabilities unchanged","proof_lines":[51,56],"relation":"states","annotation":"`lawOf_smul` treats every complex scalar $a$ and gives the exact factor $|a|^2$. The sentence is its $a=-1$ case. `a • ψ` multiplies the entire vector, so this is about a common phase, not changing the signs of selected coordinates."}],"tone":0,"topic":"query-costs"},{"anchor":"sec-1.1","at":"b4761-4868","from_record":false,"lean":true,"lines":[116,116],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram","origin":"ai","part":0,"phrase":"exp-1-free-gates","plain":"Allowed steps of a quantum query algorithm","record":null,"relation":"defines","role":"definition","rows":[{"end_line":118,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":114,"lines":[116,116],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram","note":"","plain":"Allowed steps of a quantum query algorithm","relation":"defines","annotation":"A finite quantum program made from output steps, input-independent linear isometries, input-oracle calls and two-outcome measurements. The gate `U` in the `unitary` constructor is a fixed linear norm-preserving map. Only the `query` constructor reads the unknown input."}],"tone":0,"topic":"query-costs"},{"anchor":"sec-1.1","at":"b4869-4911","from_record":false,"lean":true,"lines":[122,127],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram.queryCap","origin":"ai","part":0,"phrase":"exp-1-only-queries","plain":"A query limit that holds on every branch","record":null,"relation":"defines","role":"definition","rows":[{"end_line":127,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":122,"lines":[122,127],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram.queryCap","note":"","plain":"A query limit that holds on every branch","relation":"defines","annotation":"The maximum number of oracle calls on any branch of a quantum program. A `query` adds one. A `unitary` step adds nothing. And a measurement takes the larger cap of its two continuations."}],"tone":0,"topic":"query-costs"},{"anchor":"sec-1.1","at":"b4915-5060","from_record":false,"lean":true,"lines":[26,32],"module":"QuarticQuery.Paper.ConstructionPhase","name":"QuarticQuery.Paper.construction_bitOracle_phase_kickback","origin":"ai","part":0,"phrase":"exp-1-phase-oracle","plain":"The minus-state answer qubit converts a bit query to input signs","record":null,"relation":"proof","role":"explanation","rows":[{"end_line":41,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The physical bit-oracle theorem requires hminus, the prepared minus answer register. It does not claim that an arbitrary bit-oracle state acquires only phases; Section 5.2 supplies this preparation.","fidelity_source":"ai","line":26,"lines":[26,32],"module":"QuarticQuery.Paper.ConstructionPhase","name":"QuarticQuery.Paper.construction_bitOracle_phase_kickback","note":"","plain":"The minus-state answer qubit converts a bit query to input signs","proof_lines":[33,41],"relation":"proof","annotation":"The binder `hminus` requires opposite amplitudes for the two answer-bit values at each position and workspace value. Under that condition the physical bit query acts by the phase $(-1)^{x_j}$."}],"tone":0,"topic":"query-costs"},{"anchor":"sec-1.2","at":"b6597-6671","from_record":false,"lean":true,"lines":[27,27],"module":"QuarticQuery.Statement","name":"QuarticQuery.TotalBool","origin":"ai","part":0,"phrase":"exp-1-total-function","plain":"A Boolean answer for every input string","record":null,"relation":"defines","role":"definition","rows":[{"end_line":27,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":27,"lines":[27,27],"module":"QuarticQuery.Statement","name":"QuarticQuery.TotalBool","note":"","plain":"A Boolean answer for every input string","relation":"defines","annotation":"A total Boolean function assigns either zero or one to every bit string indexed by `ι`. In Lean, `BitInput ι` is a function from positions to `Bool`, and the arrow in `BitInput ι → Bool` assigns one output to every such input."}],"tone":0,"topic":"query-costs"},{"anchor":"sec-1.2","at":"b6672-6837","from_record":false,"lean":true,"lines":[84,85],"module":"QuarticQuery.Statement","name":"QuarticQuery.R","origin":"ai","part":0,"phrase":"exp-1-randomized-complexity","plain":"The least randomized query budget","record":null,"relation":"defines","role":"definition","rows":[{"end_line":85,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":84,"lines":[84,85],"module":"QuarticQuery.Statement","name":"QuarticQuery.R","note":"","plain":"The least randomized query budget","relation":"defines","annotation":"The smallest query budget for which a randomized algorithm computes the partial function with error at most $1/3$ on every promised input. `sInf` takes the infimum of the natural-number budgets satisfying `RLe`."},{"end_line":76,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":74,"lines":[74,76],"module":"QuarticQuery.Statement","name":"QuarticQuery.RLe","note":"The success condition is required separately for every promised input.","plain":"A randomized algorithm within a fixed query budget","relation":"part","annotation":"A finite random choice of decision trees whose worst-case depth is at most `budget` and whose success probability is at least $2/3$ on every promised input."},{"end_line":279,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":278,"lines":[278,278],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.R_le_iff","note":"The infimum is a genuine least sufficient budget.","plain":"A randomized budget suffices exactly when it bounds the minimum","proof_lines":[279,279],"relation":"proof","annotation":"The inequality $R(f)\\le t$ holds exactly when there is a randomized algorithm satisfying the budget and correctness requirements in `RLe f t`."}],"tone":0,"topic":"query-costs"},{"anchor":"sec-1.2","at":"b6838-6926","from_record":false,"lean":true,"lines":[66,67],"module":"QuarticQuery.Statement","name":"QuarticQuery.RandomizedProgram.depth","origin":"ai","part":0,"phrase":"exp-1-worst-case-randomness","plain":"The largest depth among the randomized algorithm’s trees","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":67,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":66,"lines":[66,67],"module":"QuarticQuery.Statement","name":"QuarticQuery.RandomizedProgram.depth","note":"","plain":"The largest depth among the randomized algorithm’s trees","relation":"defines","annotation":"Every listed tree has positive probability by the fields of `RandomizedProgram`, so even a very unlikely tree counts."}],"tone":0,"topic":"query-costs"},{"anchor":"sec-1.2","at":"b6927-6990","from_record":false,"lean":true,"lines":[150,151],"module":"QuarticQuery.Statement","name":"QuarticQuery.Q","origin":"ai","part":0,"phrase":"exp-1-quantum-complexity","plain":"The least quantum query budget","record":null,"relation":"defines","role":"definition","rows":[{"end_line":151,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":150,"lines":[150,151],"module":"QuarticQuery.Statement","name":"QuarticQuery.Q","note":"","plain":"The least quantum query budget","relation":"defines","annotation":"The smallest natural-number budget satisfying `QLe f t`: a quantum algorithm must have error at most $1/3$ on each promised input and obey its syntactic query cap on every branch. The expression `sInf` is the infimum over all feasible budgets."},{"end_line":148,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":144,"lines":[144,148],"module":"QuarticQuery.Statement","name":"QuarticQuery.QLe","note":"","plain":"A quantum algorithm within a fixed query budget","relation":"part","annotation":"`QLe f budget` allows a constant answer or a normalized initial state and one `AdaptiveProgram`. The program’s cap is syntactic and the correctness condition is per promised input."},{"end_line":415,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":414,"lines":[414,414],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.Q_le_iff","note":"A feasible budget exists and the infimum is attained.","plain":"A quantum budget suffices exactly when it bounds the minimum","proof_lines":[415,415],"relation":"proof","annotation":"The inequality $Q(f)\\le t$ is equivalent to the existence and correctness conditions in `QLe f t`."}],"tone":0,"topic":"query-costs"},{"anchor":"sec-1.2","at":"b6991-7042","from_record":false,"lean":true,"lines":[53,55],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree.depth","origin":"ai","part":0,"phrase":"exp-1-free-computation","plain":"Queries along the longest decision-tree path","record":null,"relation":"defines","role":"definition","rows":[{"end_line":55,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":53,"lines":[53,55],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree.depth","note":"","plain":"Queries along the longest decision-tree path","relation":"defines","annotation":"The largest number of input bits read on any path through a deterministic algorithm."},{"end_line":127,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":122,"lines":[122,127],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram.queryCap","note":"","plain":"A query limit that holds on every branch","relation":"defines","annotation":"A `unitary` node keeps the continuation’s cap. A `query` node adds one, and a `measure` node takes the maximum of its children’s caps. This definition accounts for quantum program branches."}],"tone":0,"topic":"query-costs"},{"anchor":"sec-1.2","at":"b7506-7565","from_record":false,"lean":true,"lines":[70,70],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.universalPower_four","origin":"ai","part":0,"phrase":"exp-1-universal-fourth-power","plain":"R(f) ≤ 20736(1+Q(f))⁴ for total functions","record":null,"relation":"states","role":"statement","rows":[{"end_line":77,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":70,"lines":[70,70],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.universalPower_four","note":"","plain":"R(f) ≤ 20736(1+Q(f))⁴ for total functions","proof_lines":[71,77],"relation":"states","annotation":"Every total Boolean function satisfies $R(f)\\le20736(1+Q(f))^4$. The constant is independent of the function and its input length, which is exactly what `UniversalPower 4` requires."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-1.2","at":"b8232-8249","from_record":false,"lean":true,"lines":[23,29],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.theorem_1_1_unconditional","origin":"ai","part":0,"phrase":"exp-1-summary-table-new-family","plain":"The universal quartic bound and total functions approaching exponent four","record":"quartic.theorem-1","relation":"contains","role":"statement","rows":[{"end_line":38,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":23,"lines":[23,29],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.theorem_1_1_unconditional","note":"","plain":"The universal quartic bound and total functions approaching exponent four","proof_lines":[30,38],"relation":"contains","annotation":"`k` is chosen before the constants and threshold. The size parameter `t` then grows. The existential circuit `C` is shared by the quantum and classical conclusions."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-1.2","at":"b8290-8330","from_record":false,"lean":true,"lines":[52,53],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.D_le_Q_pow_four","origin":"ai","part":0,"phrase":"exp-1-summary-table-upper","plain":"D(f) ≤ 20736Q(f)⁴ for total functions","record":null,"relation":"part","role":"statement","rows":[{"end_line":54,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem gives $D(f) \\le 20736\\, Q(f)^4$ for every total $f$. Together with `R_le_D`, it yields the displayed bound on $R$.","fidelity_source":"ai","line":52,"lines":[52,53],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.D_le_Q_pow_four","note":"","plain":"D(f) ≤ 20736Q(f)⁴ for total functions","proof_lines":[54,54],"relation":"part","annotation":"The theorem gives $D(f) \\le 20736\\, Q(f)^4$ for every total $f$. Together with `R_le_D`, it yields the displayed bound on $R$."},{"end_line":287,"exact_lines":true,"fidelity":"stronger","fidelity_note":"`R_le_D` holds for every partial Boolean function on a finite coordinate type, including the total functions in this row.","fidelity_source":"ai","line":286,"lines":[286,286],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.R_le_D","note":"","plain":"Randomization may use an exact deterministic algorithm","proof_lines":[287,287],"relation":"part","annotation":"`R_le_D` holds for every partial Boolean function on a finite coordinate type, including the total functions in this row."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-1.2","at":"b8447-8539","from_record":false,"lean":true,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","origin":"ai","part":0,"phrase":"exp-1-all-smaller-powers","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","record":null,"relation":"part","role":"statement","rows":[{"end_line":410,"exact_lines":true,"fidelity":"weaker","fidelity_note":"`classical_Fkm_ratio` assumes $0 \\le \\alpha$ and $\\alpha/2 < 2-1/k$ for a fixed $k\\ge 2$; `exists_nat_exponent` chooses $k$ for $\\alpha<4$. Negative $\\alpha$ require the additional monotonicity observation, not stated by this declaration.","fidelity_source":"ai","line":372,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","note":"","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","proof_lines":[387,410],"relation":"part","annotation":"`classical_Fkm_ratio` assumes $0 \\le \\alpha$ and $\\alpha/2 < 2-1/k$ for a fixed $k\\ge 2$. `exists_nat_exponent` chooses $k$ for $\\alpha<4$. Negative $\\alpha$ require the additional monotonicity observation, not stated by this declaration. A positive constant `d` is chosen before `t` grows, and the same named circuit defines both complexities."},{"end_line":164,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":160,"lines":[160,161],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.exists_nat_exponent","note":"Choose the block count before the family size tends to infinity.","plain":"Every exponent below four is exceeded by 4−2/k for some k","proof_lines":[162,164],"relation":"proof","annotation":"For every real $\\alpha<4$, some integer $k\\ge2$ satisfies $\\alpha/2<2-1/k$, equivalently $\\alpha<4-2/k$. The only hypothesis is `hα : α < 4`. This numerical choice does not depend on the board size."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-1.2","at":"b8625-8762","from_record":false,"lean":true,"lines":[329,329],"module":"QuarticQuery.Statement","name":"QuarticQuery.alphaTot","origin":"ai","part":0,"phrase":"exp-1-critical-exponent-definition","plain":"Infimum of powers of 1+Q that bound randomized query complexity","record":null,"relation":"defines","role":"definition","rows":[{"end_line":329,"exact_lines":true,"fidelity":"different","fidelity_note":"`alphaTot` takes the infimum of nonnegative $\\alpha$ satisfying a uniform bound in $(1+Q(f))^\\alpha$; the sentence writes $Q(f)^\\alpha$ without that restriction. The positive-$Q$ bases are comparable, but the expressions are not literally identical.","fidelity_source":"ai","line":329,"lines":[329,329],"module":"QuarticQuery.Statement","name":"QuarticQuery.alphaTot","note":"","plain":"Infimum of powers of 1+Q that bound randomized query complexity","relation":"defines","annotation":"`sInf` takes the infimum over `UniversalPower`. Lean restricts to nonnegative exponents and uses the positive base $1+Q(f)$, which lies between $Q(f)$ and $2Q(f)$ when $Q(f)\\ge1$."},{"end_line":326,"exact_lines":true,"fidelity":"different","fidelity_note":"`UniversalPower` quantifies $0\\le\\alpha$, one positive $C$, all positive $n$ and all total $f$, and uses $1+Q(f)$ rather than the sentence’s $Q(f)$.","fidelity_source":"ai","line":323,"lines":[323,326],"module":"QuarticQuery.Statement","name":"QuarticQuery.UniversalPower","note":"","plain":"Powers α with a uniform bound on R(f)/(1+Q(f))^α","relation":"part","annotation":"After `0 ≤ α`, the binder order chooses one positive $C$ before the length and the function. The expression `Real.rpow (1 + (Q (totalise f) : ℝ)) α` also covers zero-query functions."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-1.2","at":"b8812-8887","from_record":false,"lean":true,"lines":[18,18],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.alphaTot_eq_four_unconditional","origin":"ai","part":0,"phrase":"exp-1-critical-exponent-value","plain":"The optimal universal exponent is four","record":null,"relation":"states","role":"statement","rows":[{"end_line":19,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":18,"lines":[18,18],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.alphaTot_eq_four_unconditional","note":"","plain":"The optimal universal exponent is four","proof_lines":[19,19],"relation":"states","annotation":"The proof supplies `ForrelationLower.bansalSinhaLower` to `alphaTot_eq_four_of_bansalSinha`. Open the latter to see the upper and lower inequalities for the infimum."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-1.3","at":"b9046-9168","from_record":false,"lean":true,"lines":[294,296],"module":"QuarticQuery.Statement","name":"QuarticQuery.Fkm","origin":"ai","part":0,"phrase":"exp-1-finite-family-parameters","plain":"The full board function at the Forrelation parameters","record":null,"relation":"defines","role":"definition","rows":[{"end_line":296,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":294,"lines":[294,296],"module":"QuarticQuery.Statement","name":"QuarticQuery.Fkm","note":"","plain":"The full board function at the Forrelation parameters","relation":"defines","annotation":"The addressed total function built from $k$-block Forrelation with $m=4^t$ columns, row-number length $\\ell=2t$ and address length $r=40t$. The circuit `C` remains an explicit parameter, so two different circuit encodings can define different board functions."},{"end_line":74,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":58,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","note":"The family theorem imposes $k\\ge 2$; the function itself is defined more generally.","plain":"Both query bounds for each fixed Forrelation order k≥2","proof_lines":[68,74],"relation":"part","annotation":"The parameter binder takes `k` and `hk : 2 ≤ k` before the constants. `t` is the later size parameter, with $m=4^t$."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-1.3","at":"b9199-9249","from_record":false,"lean":true,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","origin":"ai","part":0,"phrase":"exp-1-quantum-scale","plain":"Both query bounds for each fixed Forrelation order k≥2","record":null,"relation":"part","role":"statement","rows":[{"end_line":74,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":58,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","note":"The omitted factors are a fixed power of the logarithm, with $k$ fixed.","plain":"Both query bounds for each fixed Forrelation order k≥2","proof_lines":[68,74],"relation":"part","annotation":"The quantum term is the upper bound on `Q (totalise (Fkm k t Cir))`. Its square-root factor comes with a fixed logarithmic power chosen with $k$."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-1.3","at":"b9296-9432","from_record":false,"lean":true,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","origin":"ai","part":0,"phrase":"exp-1-classical-scale","plain":"Both query bounds for each fixed Forrelation order k≥2","record":null,"relation":"part","role":"explanation","rows":[{"end_line":74,"exact_lines":true,"fidelity":"different","fidelity_note":"The family theorem gives an eventual lower bound $c\\, m^{2-1/k}/(\\log_2 m)^2$. It does not assert an exact product cost or the explanatory split of the two factors; this display intentionally suppresses logarithms.","fidelity_source":"ai","line":58,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","note":"","plain":"Both query bounds for each fixed Forrelation order k≥2","proof_lines":[68,74],"relation":"part","annotation":"The lower-bound conjunct is eventual in $t$ for fixed $k\\ge2$. It has coefficient $c>0$ and denominator $(\\log_2 m)^2$, so the product in the passage gives the power of $m$ in the bound."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-1.3","at":"b9433-9488","from_record":false,"lean":true,"lines":[142,142],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_tendsto","origin":"ai","part":0,"phrase":"exp-1-fourth-power-limit","plain":"The family powers approach four","record":null,"relation":"proof","role":"explanation","rows":[{"end_line":147,"exact_lines":true,"fidelity":"different","fidelity_note":"The theorem states $\\lim_{k\\to\\infty}(4-2/k)=4$, a numerical exponent limit. The displayed sentence is about powers of $m$; fixed-$k$ query bounds and then growing $m$ are a further step.","fidelity_source":"ai","line":142,"lines":[142,142],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_tendsto","note":"","plain":"The family powers approach four","proof_lines":[143,147],"relation":"proof","annotation":"The sequence in Lean is `familyExponent`, namely $4-2/k$. In the separation argument the limit lets one choose a fixed $k$ for a proposed power below four before increasing the board size."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-2","at":"b11282-11413","from_record":false,"lean":true,"lines":[245,249],"module":"QuarticQuery.Statement","name":"QuarticQuery.BitLoc","origin":"ai","part":0,"phrase":"exp-2-new-input","plain":"Column strings, address strings, cell pointers and cell transcripts","record":null,"relation":"defines","role":"definition","rows":[{"end_line":249,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":245,"lines":[245,249],"module":"QuarticQuery.Statement","name":"QuarticQuery.BitLoc","note":"","plain":"Column strings, address strings, cell pointers and cell transcripts","relation":"defines","annotation":"`BitLoc` indexes column strings, address inputs, pointers and gate transcripts. An arbitrary function from this coordinate type to `Bool` assigns every board bit, including all certificate storage."},{"end_line":289,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":287,"lines":[287,289],"module":"QuarticQuery.Statement","name":"QuarticQuery.addressedF","note":"","plain":"The board answers yes exactly when a winner exists","relation":"defines","annotation":"`addressedF` takes a full assignment to `BitLoc`. The existential `∃ i s, WinsAt f C ℓ r x i s` uses the stored certificate at each proposed pair."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.1","at":"b12026-12087","from_record":false,"lean":true,"lines":[270,271],"module":"QuarticQuery.Statement","name":"QuarticQuery.pointerEquiv","origin":"ai","part":0,"phrase":"exp-2-pointer-encoding","plain":"The bijection from ℓ-bit pointers to destination rows","record":null,"relation":"defines","role":"definition","rows":[{"end_line":271,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":270,"lines":[270,271],"module":"QuarticQuery.Statement","name":"QuarticQuery.pointerEquiv","note":"Lean numbers the same rows from zero.","plain":"The bijection from ℓ-bit pointers to destination rows","relation":"defines","annotation":"The fixed bijection between $\\ell$ Boolean digits and the $2^\\ell$ possible row numbers. Lean uses zero-based indices `Fin (2 ^ ℓ)`. The exposition labels rows starting at one."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.1","at":"b12092-12199","from_record":false,"lean":true,"lines":[39,42],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_test_depth","origin":"ai","part":0,"phrase":"exp-2-pointer-read-budget","plain":"A local test uses at most the row length plus one","record":null,"relation":"proof","role":"explanation","rows":[{"end_line":45,"exact_lines":true,"fidelity":"weaker","fidelity_note":"`construction_test_depth` states an upper bound of $2t+1$ for local tests on $m=4^t$ with $t\\ge 1$. It is not an equality or a lower bound for every pointer-following procedure.","fidelity_source":"ai","line":39,"lines":[39,42],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_test_depth","note":"","plain":"A local test uses at most the row length plus one","proof_lines":[43,45],"relation":"proof","annotation":"`construction_test_depth` states an upper bound of $2t+1$ for local tests on $m=4^t$ with $t\\ge 1$. It is not an equality or a lower bound for every pointer-following procedure. The binder `ht : 1 ≤ t` ensures this also covers gate tests, which may read three bits."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.1","at":"b12269-12335","from_record":false,"lean":true,"lines":[245,249],"module":"QuarticQuery.Statement","name":"QuarticQuery.BitLoc","origin":"ai","part":0,"phrase":"exp-2-cells","plain":"Column strings, address strings, cell pointers and cell transcripts","record":null,"relation":"defines","role":"definition","rows":[{"end_line":249,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":245,"lines":[245,249],"module":"QuarticQuery.Statement","name":"QuarticQuery.BitLoc","note":"Pointer and transcript positions are indexed by both the column and its cell label.","plain":"Column strings, address strings, cell pointers and cell transcripts","relation":"defines","annotation":"The positions of all bits in an enlarged board: column-string bits, address-input bits, pointer bits and transcript bits. The four disjoint alternatives in `BitLoc` keep these kinds of positions separate."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.1","at":"b12337-12465","from_record":false,"lean":true,"lines":[307,309],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.trueAddress","origin":"ai","part":0,"phrase":"exp-2-computed-address","plain":"The address determined by all prescribed digits","record":null,"relation":"defines","role":"definition","rows":[{"end_line":309,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":307,"lines":[307,309],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.trueAddress","note":"","plain":"The address determined by all prescribed digits","relation":"defines","annotation":"The function returns `Classical.choose (hdef h)` at coordinate $h$. It takes the promise witness as input and extracts the mathematical answer for that address question."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.1","at":"b12738-12829","from_record":false,"lean":true,"lines":[30,30],"module":"QuarticQuery.Statement","name":"QuarticQuery.PartialBool","origin":"ai","part":0,"phrase":"exp-2-promise","plain":"An address question with an allowed input domain","record":null,"relation":"defines","role":"definition","rows":[{"end_line":30,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":30,"lines":[30,30],"module":"QuarticQuery.Statement","name":"QuarticQuery.PartialBool","note":"","plain":"An address question with an allowed input domain","relation":"defines","annotation":"A partial Boolean function returns `some false` or `some true` on its promise, and `none` outside it."},{"end_line":36,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":35,"lines":[35,36],"module":"QuarticQuery.Statement","name":"QuarticQuery.promised","note":"","plain":"Inputs on which an address digit is prescribed","relation":"defines","annotation":"An input belongs to the promise exactly when the partial function gives it a defined Boolean value. The existential `∃ b, f x = some b` includes both prescribed zero and prescribed one."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.1","at":"b13605-13668","from_record":false,"lean":true,"lines":[56,58],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_eq6","origin":"ai","part":0,"phrase":"exp-2-full-address-count","plain":"Address length r = 20 log₂m = 40t bits per column","record":null,"relation":"states","role":"statement","rows":[{"end_line":66,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":56,"lines":[56,58],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_eq6","note":"","plain":"Address length r = 20 log₂m = 40t bits per column","proof_lines":[59,66],"relation":"states","annotation":"For $m=4^t$, the row number takes $\\ell=\\log_2m=2t$ bits and the full construction uses $r=\\lceil20\\log_2m\\rceil=40t$ address questions."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.1","at":"b13679-13697","from_record":false,"lean":true,"lines":[87,90],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_layout_cardinalities","origin":"ai","part":0,"phrase":"exp-2-cell-cardinality","plain":"m columns, km bits per address input, and 2ʳ addresses","record":null,"relation":"part","role":"statement","rows":[{"end_line":93,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":87,"lines":[87,90],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_layout_cardinalities","note":"With $m=4^t$ and $r=40t$, the third cardinality is $2^r=m^{20}$.","plain":"m columns, km bits per address input, and 2ʳ addresses","proof_lines":[91,93],"relation":"part","annotation":"Use the third conjunct, `Fintype.card (Address (40 * t)) = 2 ^ (40 * t)`. The conversion to $m^{20}$ uses $m=4^t$."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.1","at":"b13703-13749","from_record":false,"lean":true,"lines":[89,89],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_layout_cardinalities","origin":"ai","part":0,"phrase":"exp-2-input-cardinality","plain":"m columns, km bits per address input, and 2ʳ addresses","record":null,"relation":"part","role":"statement","rows":[{"end_line":93,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":87,"lines":[89,89],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_layout_cardinalities","note":"","plain":"m columns, km bits per address input, and 2ʳ addresses","proof_lines":[91,93],"relation":"part","annotation":"The middle conjunct counts `ForrelationCoord k t` by a finite product equivalence. A bit coordinate is a block index and a position in that block."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b14135-14187","from_record":false,"lean":true,"lines":[255,255],"module":"QuarticQuery.Statement","name":"QuarticQuery.readX","origin":"ai","part":0,"phrase":"exp-2-column-string","plain":"A stored bit of a column string","record":null,"relation":"defines","role":"definition","rows":[{"end_line":255,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":255,"lines":[255,255],"module":"QuarticQuery.Statement","name":"QuarticQuery.readX","note":"","plain":"A stored bit of a column string","relation":"defines","annotation":"The bit in row `j` of the ordinary string stored in column `i`."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b14391-14410","from_record":false,"lean":true,"lines":[255,255],"module":"QuarticQuery.Statement","name":"QuarticQuery.readX","origin":"ai","part":0,"phrase":"exp-2-table-x","plain":"A stored bit of a column string","record":null,"relation":"defines","role":"definition","rows":[{"end_line":255,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":255,"lines":[255,255],"module":"QuarticQuery.Statement","name":"QuarticQuery.readX","note":"","plain":"A stored bit of a column string","relation":"defines","annotation":"The bit in row `j` of the ordinary string stored in column `i`."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b14460-14499","from_record":false,"lean":true,"lines":[257,258],"module":"QuarticQuery.Statement","name":"QuarticQuery.readA","origin":"ai","part":0,"phrase":"exp-2-table-a","plain":"One address input stored beside a column","record":null,"relation":"defines","role":"definition","rows":[{"end_line":258,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":257,"lines":[257,258],"module":"QuarticQuery.Statement","name":"QuarticQuery.readA","note":"","plain":"One address input stored beside a column","relation":"defines","annotation":"The bit string for address question `h` in column `i`. Its coordinates have type `κ`, so one address input can contain many stored bits."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b14570-14615","from_record":false,"lean":true,"lines":[260,262],"module":"QuarticQuery.Statement","name":"QuarticQuery.readPointerBit","origin":"ai","part":0,"phrase":"exp-2-table-cell","plain":"A bit of a pointer stored in one cell","record":null,"relation":"part","role":"definition","rows":[{"end_line":262,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":260,"lines":[260,262],"module":"QuarticQuery.Statement","name":"QuarticQuery.readPointerBit","note":"","plain":"A bit of a pointer stored in one cell","relation":"part","annotation":"Digit `b` of the pointer in cell `s` of column `i` that points into another column `j`. The subtype `{j // j ≠ i}` records that only pointers to other columns are stored."},{"end_line":265,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":264,"lines":[264,265],"module":"QuarticQuery.Statement","name":"QuarticQuery.readTranscript","note":"","plain":"Proposed gate outputs stored in a cell","relation":"part","annotation":"The transcript in cell `s` of column `i` for address question `h`: one stored Boolean bit for each of the circuit's `S` gates."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b14791-14844","from_record":false,"lean":true,"lines":[307,309],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.trueAddress","origin":"ai","part":0,"phrase":"exp-2-table-true-address","plain":"The address determined by all prescribed digits","record":null,"relation":"defines","role":"definition","rows":[{"end_line":309,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":307,"lines":[307,309],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.trueAddress","note":"","plain":"The address determined by all prescribed digits","relation":"defines","annotation":"An address is a Boolean vector indexed by `Fin r`. `apply_eq_trueAddress` identifies its $h$-th coordinate with the prescribed answer to `readA x i h`."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b15041-15126","from_record":false,"lean":true,"lines":[30,30],"module":"QuarticQuery.Statement","name":"QuarticQuery.PartialBool","origin":"ai","part":0,"phrase":"exp-2-prescribed-p","plain":"An address question with an allowed input domain","record":null,"relation":"defines","role":"definition","rows":[{"end_line":30,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":30,"lines":[30,30],"module":"QuarticQuery.Statement","name":"QuarticQuery.PartialBool","note":"A prescribed digit is some false or some true; none is outside the promise.","plain":"An address question with an allowed input domain","relation":"defines","annotation":"A partial Boolean function returns `some false` or `some true` on its promise, and `none` outside it."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b15428-15500","from_record":false,"lean":true,"lines":[131,137],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","origin":"ai","part":0,"phrase":"exp-2-winning-column","plain":"A winning column with its true-address certificate","record":null,"relation":"defines","role":"definition","rows":[{"end_line":137,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":131,"lines":[131,137],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","note":"","plain":"A winning column with its true-address certificate","relation":"defines","annotation":"The definition places the all-ones condition before an existential promise witness `hdef`. Both certificate checks then use the same `trueAddress f x i hdef`."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b15505-15535","from_record":false,"lean":true,"lines":[279,279],"module":"QuarticQuery.Statement","name":"QuarticQuery.WinsAt","origin":"ai","part":0,"phrase":"exp-2-winning-string","plain":"The conditions for winning at a specified address","record":null,"relation":"part","role":"definition","rows":[{"end_line":283,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":277,"lines":[279,279],"module":"QuarticQuery.Statement","name":"QuarticQuery.WinsAt","note":"","plain":"The conditions for winning at a specified address","relation":"part","annotation":"Column $i$ wins at address $s$ when its string is all ones, every address question has the prescribed value recorded in $s$, every transcript at that cell is correct, and its pointers find zeros in every other column."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b15539-15627","from_record":false,"lean":true,"lines":[134,134],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","origin":"ai","part":0,"phrase":"exp-2-winning-promise","plain":"A winning column with its true-address certificate","record":null,"relation":"part","role":"definition","rows":[{"end_line":137,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":131,"lines":[134,134],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","note":"","plain":"A winning column with its true-address certificate","relation":"part","annotation":"The witness `hdef` certifies `promised f (readA x i h)` for every address question $h$ in column $i$. It is passed directly to `trueAddress`."},{"end_line":309,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":307,"lines":[307,309],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.trueAddress","note":"","plain":"The address determined by all prescribed digits","relation":"defines","annotation":"The argument `hdef` supplies a promised answer for each address input of the chosen column. Those witnesses make `trueAddress` available before the stored cell is inspected."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b15631-15737","from_record":false,"lean":true,"lines":[135,135],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","origin":"ai","part":0,"phrase":"exp-2-winning-transcripts","plain":"A winning column with its true-address certificate","record":null,"relation":"part","role":"definition","rows":[{"end_line":137,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":131,"lines":[135,135],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","note":"","plain":"A winning column with its true-address certificate","relation":"part","annotation":"For every `h`, the stored transcript must equal `circuitEval C (readA x i h)` as an entire vector. The address passed to `readTranscript` is computed from the promise witness."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b15741-15846","from_record":false,"lean":true,"lines":[117,120],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionOutwardPointers","origin":"ai","part":0,"phrase":"exp-2-winning-pointers","plain":"Every pointer finds a zero in another column","record":null,"relation":"defines","role":"definition","rows":[{"end_line":120,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":117,"lines":[117,120],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionOutwardPointers","note":"","plain":"Every pointer finds a zero in another column","relation":"defines","annotation":"For every column other than `i`, the pointer stored in cell `s` selects a row where that other column's string is zero. It describes a condition at any proposed cell `s`. The winning condition uses it at the true address."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b15848-15918","from_record":false,"lean":true,"lines":[287,289],"module":"QuarticQuery.Statement","name":"QuarticQuery.addressedF","origin":"ai","part":0,"phrase":"exp-2-boolean-answer","plain":"The board answers yes exactly when a winner exists","record":null,"relation":"defines","role":"definition","rows":[{"end_line":289,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":287,"lines":[287,289],"module":"QuarticQuery.Statement","name":"QuarticQuery.addressedF","note":"","plain":"The board answers yes exactly when a winner exists","relation":"defines","annotation":"`decide` turns the existence of a winning pair into a Boolean. The two existential variables are the column and its cell address."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b15919-15994","from_record":false,"lean":true,"lines":[260,262],"module":"QuarticQuery.Statement","name":"QuarticQuery.readPointerBit","origin":"ai","part":0,"phrase":"exp-2-certificate","plain":"A bit of a pointer stored in one cell","record":null,"relation":"part","role":"definition","rows":[{"end_line":262,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":260,"lines":[260,262],"module":"QuarticQuery.Statement","name":"QuarticQuery.readPointerBit","note":"","plain":"A bit of a pointer stored in one cell","relation":"part","annotation":"Digit `b` of the pointer in cell `s` of column `i` that points into another column `j`. The subtype `{j // j ≠ i}` records that only pointers to other columns are stored."},{"end_line":265,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":264,"lines":[264,265],"module":"QuarticQuery.Statement","name":"QuarticQuery.readTranscript","note":"","plain":"Proposed gate outputs stored in a cell","relation":"part","annotation":"The transcript in cell `s` of column `i` for address question `h`: one stored Boolean bit for each of the circuit's `S` gates."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b15995-16160","from_record":false,"lean":true,"lines":[185,187],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_unique_winner","origin":"ai","part":0,"phrase":"exp-2-unique-winner","plain":"At most one column can win","record":null,"relation":"states","role":"statement","rows":[{"end_line":190,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The uniqueness theorem applies to every partial address function and every circuit. It does not require the Forrelation parameters or CircuitRealises.","fidelity_source":"ai","line":185,"lines":[185,187],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_unique_winner","note":"","plain":"At most one column can win","proof_lines":[188,190],"relation":"states","annotation":"The hypotheses `hi` and `hj` assert that two proposed columns win. The outgoing zero pointer from one would contradict the all-one condition of the other, so the argument works for any circuit, independently of `CircuitRealises`."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b16299-16396","from_record":false,"lean":true,"lines":[30,30],"module":"QuarticQuery.Statement","name":"QuarticQuery.PartialBool","origin":"ai","part":0,"phrase":"exp-2-promise-not-totality","plain":"An address question with an allowed input domain","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":30,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":30,"lines":[30,30],"module":"QuarticQuery.Statement","name":"QuarticQuery.PartialBool","note":"","plain":"An address question with an allowed input domain","relation":"defines","annotation":"The codomain is `Option Bool`. `some false` is a promised zero and `none` marks an input on which the partial function prescribes no answer."},{"end_line":289,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":287,"lines":[287,289],"module":"QuarticQuery.Statement","name":"QuarticQuery.addressedF","note":"","plain":"The board answers yes exactly when a winner exists","relation":"defines","annotation":"The promise is checked within `WinsAt` for a proposed winner. `addressedF` returns a bit for every complete board, even when an undefined address prevents a column from winning."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b16470-16589","from_record":false,"lean":true,"lines":[148,148],"module":"QuarticQuery.Statement","name":"QuarticQuery.QLe","origin":"ai","part":0,"phrase":"exp-2-decoder-promise-contract","plain":"A quantum algorithm within a fixed query budget","record":null,"relation":"defines","role":"definition","rows":[{"end_line":148,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":144,"lines":[148,148],"module":"QuarticQuery.Statement","name":"QuarticQuery.QLe","note":"","plain":"A quantum algorithm within a fixed query budget","relation":"defines","annotation":"The error bound in `QLe` is imposed whenever the partial function equals `some b`. The branch cap has no corresponding promise premise."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-2.2","at":"b16755-16809","from_record":false,"lean":true,"lines":[134,134],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","origin":"ai","part":0,"phrase":"exp-2-off-promise-cannot-win","plain":"A winning column with its true-address certificate","record":null,"relation":"part","role":"derivation","rows":[{"end_line":137,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":131,"lines":[134,134],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","note":"","plain":"A winning column with its true-address certificate","relation":"part","annotation":"A single address input failing `promised` rules out the existential `hdef`. This prevents the column from winning even if the stored certificate would pass some tests."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-3","at":"b17687-17870","from_record":false,"lean":true,"lines":[167,168],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_rule","origin":"ai","part":0,"phrase":"exp-3-rule","plain":"A sole disqualifier wins and ties favour the smaller column","record":null,"relation":"states","role":"definition","rows":[{"end_line":169,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":167,"lines":[167,168],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_rule","note":"The first Boolean corresponds to the smaller column after sorting.","plain":"A sole disqualifier wins and ties favour the smaller column","proof_lines":[169,169],"relation":"states","annotation":"The smaller column wins if its pointer alone finds a zero, or if both pointer tests agree. Here `d₁` and `d₂` are disqualification bits: true means that the corresponding pointer finds a zero in the other column."},{"end_line":176,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":173,"lines":[173,176],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_disqualification","note":"A true disqualification bit means that its pointer finds zero.","plain":"A pointer disqualifies its target when it finds zero","relation":"part","annotation":"The disqualification bit records whether the selected bit in the other column is zero. For an input `x`, a supplying column `i`, a chosen cell `s` and a different target column `j`, the theorem identifies `disq` with the negation of that target bit."}],"tone":6,"topic":"comparisons"},{"anchor":"sec-3","at":"b17871-18025","from_record":false,"lean":true,"lines":[174,174],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpProb","origin":"ai","part":0,"phrase":"exp-3-sorted","plain":"Probability that the first named column wins","record":null,"relation":"defines","role":"definition","rows":[{"end_line":177,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":174,"lines":[174,174],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpProb","note":"","plain":"Probability that the first named column wins","relation":"defines","annotation":"The probability that column $i$ is returned when it is compared with column $j$. The parameter `n` controls address-decoder repetitions."},{"end_line":250,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":230,"lines":[230,237],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_unordered_state","note":"","plain":"Both comparison orders use one prepared state","proof_lines":[238,250],"relation":"states","annotation":"For distinct columns, one circuit supplies both ordered comparison laws. The hypotheses are `hk : 1 ≤ k` and `hij : i ≠ j`. Neither column must win or satisfy the address promise."}],"tone":6,"topic":"comparisons"},{"anchor":"sec-3","at":"b18026-18103","from_record":false,"lean":true,"lines":[211,212],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_self_zero_reads","origin":"ai","part":0,"phrase":"exp-3-self","plain":"Self-comparison discards without reading the input","record":null,"relation":"states","role":"statement","rows":[{"end_line":214,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":211,"lines":[211,212],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_self_zero_reads","note":"","plain":"Self-comparison discards without reading the input","proof_lines":[213,214],"relation":"states","annotation":"Comparing a column with itself can be implemented with zero reads. The theorem gives `Samples 0` for the law whose success probability is `cmpProb n x i i`."}],"tone":6,"topic":"comparisons"},{"anchor":"sec-3","at":"b18104-18308","from_record":false,"lean":true,"lines":[227,235],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpProb_winner","origin":"ai","part":0,"phrase":"exp-3-winner","plain":"Correctly decoding the winner is enough","record":null,"relation":"proof","role":"statement","rows":[{"end_line":277,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":223,"lines":[227,235],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpProb_winner","note":"The proof shows every correct winner pointer finds zero and every reverse pointer finds one.","plain":"Correctly decoding the winner is enough","proof_lines":[226,277],"relation":"proof","annotation":"The hypothesis `hw : WinsAt ... x i s` includes an all-one string and correct outgoing pointers. `hne : j ≠ i` selects an opponent."}],"tone":6,"topic":"comparisons"},{"anchor":"sec-3.1","at":"b20398-20429","from_record":false,"lean":true,"lines":[267,272],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_query_bound","origin":"ai","part":0,"phrase":"exp-3-cheap-comparison","plain":"Comparison cost comes from two address decodings and two pointer tests","record":null,"relation":"part","role":"explanation","rows":[{"end_line":276,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":267,"lines":[267,272],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_query_bound","note":"The exact bound is polylogarithmic in $m$ for fixed $k$ and the chosen error.","plain":"Comparison cost comes from two address decodings and two pointer tests","proof_lines":[273,276],"relation":"part","annotation":"The finite bound is for $t\\ge1$ and $0<\\varepsilon\\le1$. Its decoder term has the factor $2^{10k}$ and logarithm $\\ln(40t/\\varepsilon)$, which makes the fixed-$k$ dependence explicit."}],"tone":6,"topic":"comparisons"},{"anchor":"sec-3.1","at":"b20567-20847","from_record":false,"lean":true,"lines":[267,272],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_query_bound","origin":"ai","part":0,"phrase":"exp-3-costs","plain":"Comparison cost comes from two address decodings and two pointer tests","record":null,"relation":"part","role":"explanation","rows":[{"end_line":276,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":267,"lines":[267,272],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_query_bound","note":"First row; logarithmic factors are suppressed in the paper.","plain":"Comparison cost comes from two address decodings and two pointer tests","proof_lines":[273,276],"relation":"part","annotation":"The comparison cost on the left is `2 * cmpCost` evaluated at the prescribed decoder repetitions. For fixed $k$ it contains logarithmic factors in the board size."},{"end_line":233,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":204,"lines":[204,207],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_cost_log","note":"Second row after substituting the comparison cap.","plain":"Tournament bit-query bound 276c√(2m) T² log(1/ε)","proof_lines":[208,233],"relation":"part","annotation":"Read `Tval m * stageCost m (Tval m) cc (epsval m)` as the list-generation cost. The bound scales with the supplied logical comparison budget `cc`."},{"end_line":456,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":433,"lines":[433,436],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_search_query_bound","note":"Test-search component of the third row; address decoding is added separately.","plain":"Finding a failed test costs O(ℓ√K log(1/ε)) bit queries","proof_lines":[437,456],"relation":"part","annotation":"For $K\\ge2$ and $0<\\varepsilon<1/2$, `searchCost` covers the failed-test search at one fixed address. Address decoding is charged separately."},{"end_line":532,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":528,"lines":[528,531],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_list","note":"Fourth row: multiply the per-candidate budget by the logarithmic list length.","plain":"Check the candidates one after another","proof_lines":[532,532],"relation":"part","annotation":"A list of candidates can be checked sequentially, stopping when one accepts. If `hv` supplies a verifier with physical query cap `cV` for each candidate, the list verifier has cap `L.length * cV`."}],"tone":6,"topic":"comparisons"},{"anchor":"sec-3.1","at":"b20849-20920","from_record":false,"lean":true,"lines":[132,132],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.budget","origin":"ai","part":0,"phrase":"exp-3-add","plain":"Add the tournament and verification budgets","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":134,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":132,"lines":[132,132],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.budget","note":"","plain":"Add the tournament and verification budgets","relation":"defines","annotation":"The total physical query budget is the tournament budget plus the budget for checking its candidates. The parameters `n` and `K` are the decoder repetition count and number of tests."}],"tone":6,"topic":"comparisons"},{"anchor":"sec-3.2","at":"b22567-22678","from_record":false,"lean":true,"lines":[55,57],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.expected_weight_eq","origin":"ai","part":0,"phrase":"exp-3-fixed-drift","plain":"One weighted pivot leaves expected total weight (W²−∑ᵢ wᵢ²)/(2W)","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":68,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The identity allows arbitrary real weights with positive total; setting all weights to one gives $(m-1)/2$ for fixed complementary comparisons.","fidelity_source":"ai","line":55,"lines":[55,57],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.expected_weight_eq","note":"Specialize every weight to one; no transitive order is required.","plain":"One weighted pivot leaves expected total weight (W²−∑ᵢ wᵢ²)/(2W)","proof_lines":[58,68],"relation":"proof","annotation":"The identity allows arbitrary real weights with positive total. Setting all weights to one gives $(m-1)/2$ for fixed complementary comparisons. The hypotheses `ha : IsComparison a`, `hW : W = ∑ i, w i` and `hpos : 0 < W` provide complementary comparisons and a positive denominator."}],"tone":6,"topic":"comparisons"},{"anchor":"sec-4","at":"b23596-23683","from_record":false,"lean":true,"lines":[174,174],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpProb","origin":"ai","part":0,"phrase":"exp-4-aij","plain":"Probability that the first named column wins","record":null,"relation":"defines","role":"definition","rows":[{"end_line":177,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":174,"lines":[174,174],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpProb","note":"","plain":"Probability that the first named column wins","relation":"defines","annotation":"The probability that column $i$ is returned when it is compared with column $j$. The parameter `n` controls address-decoder repetitions."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4","at":"b23787-23927","from_record":false,"lean":true,"lines":[198,200],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_complementary","origin":"ai","part":0,"phrase":"exp-4-complement","plain":"The two return probabilities sum to one","record":null,"relation":"states","role":"statement","rows":[{"end_line":201,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":198,"lines":[198,200],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_complementary","note":"","plain":"The two return probabilities sum to one","proof_lines":[201,201],"relation":"states","annotation":"For two different columns, the probability of returning the first plus the probability of returning the second is one. The only local hypothesis is `hij : i ≠ j`."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4","at":"b23928-23970","from_record":false,"lean":true,"lines":[204,205],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_self","origin":"ai","part":0,"phrase":"exp-4-self","plain":"A column never defeats itself","record":null,"relation":"states","role":"statement","rows":[{"end_line":206,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":204,"lines":[204,205],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_self","note":"","plain":"A column never defeats itself","proof_lines":[206,206],"relation":"states","annotation":"The probability assigned to a self-comparison is zero."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4","at":"b23974-24062","from_record":false,"lean":true,"lines":[296,302],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumWinner_dominates","origin":"ai","part":0,"phrase":"exp-4-dominant","plain":"A winning column wins each comparison with high probability","record":null,"relation":"states","role":"statement","rows":[{"end_line":305,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":296,"lines":[296,302],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumWinner_dominates","note":"The comparison theorem uses enough repetitions to reach the stated error.","plain":"A winning column wins each comparison with high probability","proof_lines":[303,305],"relation":"states","annotation":"A winning column beats every different column with probability at least $1-\\varepsilon$. The hypotheses `hk` and `ht` require $k,t\\ge1$. `hε` and `hε1` require $0<\\varepsilon\\le1$. `hn` gives enough decoder repetitions."},{"end_line":221,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":220,"lines":[220,220],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.Dominant","note":"The abstract dominance condition used by the tournament.","plain":"A candidate beats every opponent with high probability","relation":"defines","annotation":"A candidate $s$ is dominant when it beats each different candidate with probability at least $1-\\varepsilon$. In `Dominant a ε s`, the function `a` gives the ordered comparison probabilities."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4","at":"b24186-24234","from_record":false,"lean":true,"lines":[164,167],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.tensor_success_mass","origin":"ai","part":0,"phrase":"exp-4-independent","plain":"Fresh comparison states multiply their success probabilities","record":null,"relation":"proof","role":"explanation","rows":[{"end_line":196,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The formal product law concerns a fixed family of fresh tensor-register comparisons. Adaptive choices of later pairs are not asserted to be unconditionally independent.","fidelity_source":"ai","line":164,"lines":[164,167],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.tensor_success_mass","note":"","plain":"Fresh comparison states multiply their success probabilities","proof_lines":[168,196],"relation":"proof","annotation":"The formal product law concerns a fixed family of fresh tensor-register comparisons. Adaptive choices of later pairs are not asserted to be unconditionally independent. The state `tensorVector ψ t` contains one fresh register per comparison, and `tensorGood out t` accepts exactly when all their output bits are true."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.1","at":"b25405-25466","from_record":false,"lean":true,"lines":[35,37],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","origin":"ai","part":0,"phrase":"exp-4-weights","plain":"Weight after the listed pivots","record":null,"relation":"defines","role":"definition","rows":[{"end_line":37,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":35,"lines":[35,37],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","note":"The first formula, as a product accumulated over the pivot list.","plain":"Weight after the listed pivots","relation":"defines","annotation":"The weight of candidate $i$ after a pivot history is the product of its probabilities of defeating those pivots. Prepending a pivot `p` multiplies the old weight by `a i p`."},{"end_line":32,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":32,"lines":[32,32],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.total","note":"The second formula, a finite sum over all candidates.","plain":"Total weight of all candidates","relation":"defines","annotation":"The total weight $W$ is the finite sum of the individual candidate weights. The definition `total w` takes any real-valued weight function on a finite candidate type."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.1","at":"b25703-25857","from_record":false,"lean":true,"lines":[37,40],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.stageLaw","origin":"ai","part":0,"phrase":"exp-4-draw","plain":"One uniform draw tested against every pivot","record":null,"relation":"defines","role":"definition","rows":[{"end_line":40,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":36,"lines":[37,40],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.stageLaw","note":"","plain":"One uniform draw tested against every pivot","relation":"defines","annotation":"The outcome law of one draw: `some i` means candidate $i$ was drawn uniformly and passed every listed comparison, while `none` means rejection."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.1","at":"b26565-26691","from_record":false,"lean":true,"lines":[164,165],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumStage_success","origin":"ai","part":0,"phrase":"exp-4-joint","plain":"An accepted pivot is drawn in proportion to its weight","record":null,"relation":"contains","role":"statement","rows":[{"end_line":176,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":158,"lines":[164,165],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumStage_success","note":"The joint and total successful masses, with positive $W$ in this theorem.","plain":"An accepted pivot is drawn in proportion to its weight","proof_lines":[168,176],"relation":"contains","annotation":"Read the simultaneous equalities for the mass of label `some i` and the sum over all `some` labels. The rejected outcome is represented separately by `none`."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.1","at":"b26755-26815","from_record":false,"lean":true,"lines":[166,167],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumStage_success","origin":"ai","part":0,"phrase":"exp-4-conditional","plain":"An accepted pivot is drawn in proportion to its weight","record":null,"relation":"contains","role":"statement","rows":[{"end_line":176,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":158,"lines":[166,167],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumStage_success","note":"The final conjunct is the conditional distribution; hW excludes zero-probability conditioning.","plain":"An accepted pivot is drawn in proportion to its weight","proof_lines":[168,176],"relation":"contains","annotation":"The ratio divides the successful mass of label $i$ by the sum of successful masses. `hW` makes that denominator positive after the uniform factor $1/m$ is cancelled."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.1","at":"b26816-26946","from_record":false,"lean":true,"lines":[35,37],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","origin":"ai","part":0,"phrase":"exp-4-update","plain":"Weight after the listed pivots","record":null,"relation":"defines","role":"derivation","rows":[{"end_line":37,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":35,"lines":[35,37],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","note":"","plain":"Weight after the listed pivots","relation":"defines","annotation":"The weight of candidate $i$ after a pivot history is the product of its probabilities of defeating those pivots. Prepending a pivot `p` multiplies the old weight by `a i p`."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.2","at":"b27157-27213","from_record":false,"lean":true,"lines":[71,73],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.expected_weight_le_half","origin":"ai","part":0,"phrase":"exp-4-halving-claim","plain":"A weighted pivot leaves at most half the total weight in expectation","record":null,"relation":"states","role":"statement","rows":[{"end_line":77,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":71,"lines":[71,73],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.expected_weight_le_half","note":"","plain":"A weighted pivot leaves at most half the total weight in expectation","proof_lines":[74,77],"relation":"states","annotation":"The expected total after a proportional-weight pivot is at most $W/2$. The assumptions are complementary comparisons, `hW` identifying $W$ with the sum of the weights, and `hpos : 0 < W`."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.2","at":"b27599-27707","from_record":false,"lean":true,"lines":[31,40],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.two_mul_weighted_sum","origin":"ai","part":0,"phrase":"exp-4-pair","plain":"Reverse comparisons give W² − ∑ᵢwᵢ² in the doubled sum","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":52,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":26,"lines":[31,40],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.two_mul_weighted_sum","note":"The proof pairs arbitrary indices; this display specializes the distinct pair to 2 and 3.","plain":"Reverse comparisons give W² − ∑ᵢwᵢ² in the doubled sum","proof_lines":[28,52],"relation":"proof","annotation":"Pairing each ordered pair with its reverse gives $2\\sum_{p,i}w_pw_i a_{ip}=W^2-\\sum_iw_i^2$. The hypothesis `ha : IsComparison a` supplies complementarity for distinct candidates and zero on the diagonal."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.2","at":"b28211-28355","from_record":false,"lean":true,"lines":[55,57],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.expected_weight_eq","origin":"ai","part":0,"phrase":"exp-4-drift","plain":"One weighted pivot leaves expected total weight (W²−∑ᵢ wᵢ²)/(2W)","record":null,"relation":"states","role":"derivation","rows":[{"end_line":68,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":55,"lines":[55,57],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.expected_weight_eq","note":"","plain":"One weighted pivot leaves expected total weight (W²−∑ᵢ wᵢ²)/(2W)","proof_lines":[58,68],"relation":"states","annotation":"When pivot $p$ is chosen with probability $w_p/W$, the expected new total weight is $(W^2-\\sum_iw_i^2)/(2W)$. The hypotheses `ha : IsComparison a`, `hW : W = ∑ i, w i` and `hpos : 0 < W` provide complementary comparisons and a positive denominator."},{"end_line":52,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":26,"lines":[26,27],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.two_mul_weighted_sum","note":"Pairing ordered terms explains the intermediate sum over unordered pairs.","plain":"Reverse comparisons give W² − ∑ᵢwᵢ² in the doubled sum","proof_lines":[28,52],"relation":"proof","annotation":"Pairing each ordered pair with its reverse gives $2\\sum_{p,i}w_pw_i a_{ip}=W^2-\\sum_iw_i^2$. The hypothesis `ha : IsComparison a` supplies complementarity for distinct candidates and zero on the diagonal."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.2","at":"b28816-28930","from_record":false,"lean":true,"lines":[71,73],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.expected_weight_le_half","origin":"ai","part":0,"phrase":"exp-4-half-bound","plain":"A weighted pivot leaves at most half the total weight in expectation","record":null,"relation":"states","role":"derivation","rows":[{"end_line":77,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":71,"lines":[71,73],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.expected_weight_le_half","note":"","plain":"A weighted pivot leaves at most half the total weight in expectation","proof_lines":[74,77],"relation":"states","annotation":"The assumptions are complementary comparisons, `hW` identifying $W$ with the sum of the weights, and `hpos : 0 < W`."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.2","at":"b28931-28945","from_record":false,"lean":true,"lines":[42,47],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.expectFrom","origin":"ai","part":0,"phrase":"exp-4-zero-stop","plain":"The ideal process stops at zero total weight","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":47,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":42,"lines":[42,47],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.expectFrom","note":"The ideal process stops when the total weight is zero. The physical sampler need not compute $W$.","plain":"The ideal process stops at zero total weight","relation":"defines","annotation":"The ideal tournament chooses its next pivot proportionally to the current weights and records an expectation after a fixed number of further stages. The terminal function `g` specifies what is being averaged."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.2","at":"b28946-29029","from_record":false,"lean":true,"lines":[212,214],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.expected_final_weight","origin":"ai","part":0,"phrase":"exp-4-many-pivots","plain":"Expected total weight after T pivots is at most m/2ᵀ","record":null,"relation":"states","role":"statement","rows":[{"end_line":215,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":212,"lines":[212,214],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.expected_final_weight","note":"","plain":"Expected total weight after T pivots is at most m/2ᵀ","proof_lines":[215,215],"relation":"states","annotation":"The hypotheses `hc : IsComparison a` and `ha : UnitValued a` ensure complementary comparisons and probabilities in $[0,1]$."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.2","at":"b29200-29330","from_record":false,"lean":true,"lines":[239,242],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.dominant_weight_lb","origin":"ai","part":0,"phrase":"exp-4-survival","plain":"An unlisted dominant candidate keeps weight at least (1−ε)ᵀ","record":null,"relation":"contains","role":"statement","rows":[{"end_line":249,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration additionally assumes $0 \\le \\varepsilon \\le 1$ and $T\\varepsilon < 1/2$ to prove its further strict half bound. The printed product/Bernoulli estimate does not require $T\\varepsilon < 1/2$; the later chosen parameters satisfy it.","fidelity_source":"ai","line":239,"lines":[239,242],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.dominant_weight_lb","note":"","plain":"An unlisted dominant candidate keeps weight at least (1−ε)ᵀ","proof_lines":[243,249],"relation":"contains","annotation":"The declaration additionally assumes $0 \\le \\varepsilon \\le 1$ and $T\\varepsilon < 1/2$ to prove its further strict half bound. The printed product/Bernoulli estimate does not require $T\\varepsilon < 1/2$. The later chosen parameters satisfy it."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.2","at":"b29410-29473","from_record":false,"lean":true,"lines":[57,59],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_parameters","origin":"ai","part":0,"phrase":"exp-4-parameters","plain":"Tournament length T = ⌈log₂(1000m)⌉ and error ε = 1/(1000T)","record":null,"relation":"states","role":"definition","rows":[{"end_line":59,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":57,"lines":[57,59],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_parameters","note":"","plain":"Tournament length T = ⌈log₂(1000m)⌉ and error ε = 1/(1000T)","relation":"states","annotation":"Lean writes the first number as `Nat.clog 2 (1000 * m)`, the least natural $T$ for which $1000m\\le2^T$."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.2","at":"b29608-29741","from_record":false,"lean":true,"lines":[343,347],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.ideal_tournament","origin":"ai","part":0,"phrase":"exp-4-miss","plain":"Ideal tournament misses a dominant candidate with probability ≤2m/2ᵀ","record":null,"relation":"contains","role":"derivation","rows":[{"end_line":360,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":338,"lines":[343,347],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.ideal_tournament","note":"Combines survival, expected weight and the chosen horizon; no quantum sampling error is included.","plain":"Ideal tournament misses a dominant candidate with probability ≤2m/2ᵀ","proof_lines":[350,360],"relation":"contains","annotation":"The hypotheses `hc` and `ha` give the comparison rules and `hd` gives dominance at the chosen error $\\varepsilon$."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.2","at":"b30039-30130","from_record":false,"lean":true,"lines":[254,257],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.half_lt_total","origin":"ai","part":0,"phrase":"exp-4-positive","plain":"Total weight exceeds 1/2 before listing the dominant candidate if Tε<1/2","record":null,"relation":"states","role":"derivation","rows":[{"end_line":258,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":254,"lines":[254,257],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.half_lt_total","note":"","plain":"Total weight exceeds 1/2 before listing the dominant candidate if Tε<1/2","proof_lines":[258,258],"relation":"states","annotation":"While a dominant candidate is absent, the total weight is greater than $1/2$. The theorem assumes probabilities in $[0,1]$, $0\\le\\varepsilon\\le1$, `hT : (T : ℝ) * ε < 1 / 2`, and a history of length at most $T$ that omits the candidate."},{"end_line":176,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":158,"lines":[165,165],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumStage_success","note":"The total accepted mass is $W/m$.","plain":"An accepted pivot is drawn in proportion to its weight","proof_lines":[168,176],"relation":"part","annotation":"The total successful mass given by the theorem is $W/m$ under `hW`. The strict lower bound $W>1/2$ comes from the separate unlisted-winner weight estimate."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.2","at":"b30213-30303","from_record":false,"lean":true,"lines":[75,79],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumListLaw","origin":"ai","part":0,"phrase":"exp-4-keep-list","plain":"The bounded tournament returns its accumulated list","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":79,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":75,"lines":[75,79],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumListLaw","note":"","plain":"The bounded tournament returns its accumulated list","relation":"defines","annotation":"The recursive call changes `L` to `p :: L`, and both stopping cases return the current list. Thus a vertex already in the history survives either continuation."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.3","at":"b30951-31067","from_record":false,"lean":true,"lines":[216,223],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_conditional","origin":"ai","part":0,"phrase":"exp-4-required-law","plain":"Conditioning on success preserves the label proportions","record":null,"relation":"states","role":"explanation","rows":[{"end_line":242,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":216,"lines":[216,223],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_conditional","note":"","plain":"Conditioning on success preserves the label proportions","proof_lines":[224,242],"relation":"states","annotation":"The theorem takes any nonnegative label masses `q` with positive sum. Substituting $q_i=w_i/m$ makes the normalized law $w_i/W$."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b31467-31521","from_record":false,"lean":true,"lines":[99,99],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.uniformIndex","origin":"ai","part":0,"phrase":"exp-4-uniform","plain":"Equal amplitudes on all column numbers","record":null,"relation":"defines","role":"definition","rows":[{"end_line":100,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":99,"lines":[99,99],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.uniformIndex","note":"","plain":"Equal amplitudes on all column numbers","relation":"defines","annotation":"The uniform column state has amplitude $1/\\sqrt m$ on each of the $m$ column numbers."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b31522-31660","from_record":false,"lean":true,"lines":[120,131],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.equation_15","origin":"ai","part":0,"phrase":"exp-4-fresh-workspace","plain":"Prepare every comparison in a fresh register","record":null,"relation":"states","role":"derivation","rows":[{"end_line":153,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":120,"lines":[120,131],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.equation_15","note":"","plain":"Prepare every comparison in a fresh register","proof_lines":[132,153],"relation":"states","annotation":"A uniform candidate register is combined with one complete fresh comparison state per pivot. The hypothesis `hF` supplies a coherent comparison family with a common logical read cap `c`."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b31661-31761","from_record":false,"lean":true,"lines":[156,159],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.tensorGood","origin":"ai","part":0,"phrase":"exp-4-flag","plain":"Accept when every recorded comparison succeeds","record":null,"relation":"defines","role":"definition","rows":[{"end_line":159,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":156,"lines":[156,159],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.tensorGood","note":"","plain":"Accept when every recorded comparison succeeds","relation":"defines","annotation":"The acceptance flag is the conjunction of the success bits in all fresh comparison registers. In `tensorGood out t`, `out` reads the success bit from each retained register."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b31795-32029","from_record":false,"lean":true,"lines":[164,167],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.tensor_success_mass","origin":"ai","part":0,"phrase":"exp-4-product-mass","plain":"Fresh comparison states multiply their success probabilities","record":null,"relation":"part","role":"derivation","rows":[{"end_line":196,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":164,"lines":[164,167],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.tensor_success_mass","note":"The fresh-register conjunction has product success mass.","plain":"Fresh comparison states multiply their success probabilities","proof_lines":[168,196],"relation":"part","annotation":"The probability mass of passing every comparison is the product of the individual success masses. The state `tensorVector ψ t` contains one fresh register per comparison, and `tensorGood out t` accepts exactly when all their output bits are true."},{"end_line":253,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":228,"lines":[228,235],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.equation_15_index_law","note":"Adding the uniform column register gives the joint mass $w_i/m$.","plain":"An accepted column has mass equal to its weight over m","proof_lines":[236,253],"relation":"part","annotation":"For a state with the tensor slices specified by `hv`, the probability mass of outputting candidate $i$ is the product of its comparison success masses divided by $m$. Its algebraic form allows arbitrary vectors. Applying it to the normalized preparation in `equation_15` makes the masses probabilities."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b32382-32435","from_record":false,"lean":true,"lines":[166,166],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.flipGood","origin":"ai","part":0,"phrase":"exp-4-flip","plain":"Reverse the sign on the accepted subspace","record":null,"relation":"defines","role":"derivation","rows":[{"end_line":166,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":166,"lines":[166,166],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.flipGood","note":"","plain":"Reverse the sign on the accepted subspace","relation":"defines","annotation":"The success sign flip sends a vector $v$ to $v-2\\Pi v$, where $\\Pi$ is the orthogonal projector onto accepted states. The projector comes from `A.good` in the preparation data."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b32488-32550","from_record":false,"lean":true,"lines":[203,205],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.grover_apply","origin":"ai","part":0,"phrase":"exp-4-reflect","plain":"Reflect the sign-flipped state about the prepared state","record":null,"relation":"part","role":"derivation","rows":[{"end_line":214,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":203,"lines":[203,205],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.grover_apply","note":"","plain":"Reflect the sign-flipped state about the prepared state","proof_lines":[206,214],"relation":"part","annotation":"One amplification step sends $v$ to $2\\langle\\psi,Sv\\rangle\\psi-Sv$, where $\\psi=A|0\\rangle$ and $S$ flips the accepted component. The formula holds for every vector `v` and uses the unitary preparation and orthogonal success projector stored in `A`."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b32890-33021","from_record":false,"lean":true,"lines":[63,63],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.groverStep","origin":"ai","part":0,"phrase":"exp-4-reverse","plain":"One pair of amplification reflections","record":null,"relation":"defines","role":"derivation","rows":[{"end_line":63,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":63,"lines":[63,63],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.groverStep","note":"Lean uses a sign flip on the starting line plus an overall negation for the line reflection.","plain":"One pair of amplification reflections","relation":"defines","annotation":"One amplification step first flips the successful component, then applies the inverse preparation, flips the starting state, reapplies the preparation, and negates the whole vector."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b33458-33622","from_record":false,"lean":true,"lines":[38,45],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_state","origin":"ai","part":0,"phrase":"exp-4-plane","plain":"The accepted and rejected directions form the amplification plane","record":null,"relation":"contains","role":"derivation","rows":[{"end_line":70,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":38,"lines":[38,45],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_state","note":"","plain":"The accepted and rejected directions form the amplification plane","proof_lines":[51,70],"relation":"contains","annotation":"For $0<q<1$, the prepared state is $\\sin\\theta\\,g+\\cos\\theta\\,b$, where $g$ and $b$ are orthogonal unit vectors and $0<\\theta<\\pi/2$. The hypotheses `h0` and `h1` give these strict bounds on `A.prob`."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b33687-33820","from_record":false,"lean":true,"lines":[401,402],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.good_iterate","origin":"ai","part":0,"phrase":"exp-4-common-multiplier","plain":"The successful amplitude after j Grover steps is sin((2j+1)θ)","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":404,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":401,"lines":[401,402],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.good_iterate","note":"The full iteration preserves the successful direction; the sign flip and line-reflection formulas give each operation.","plain":"The successful amplitude after j Grover steps is sin((2j+1)θ)","proof_lines":[403,404],"relation":"proof","annotation":"After $u$ amplification iterations, the entire accepted component equals $\\sin((2u+1)\\theta)\\,g$. Here `g` is `A.goodState`, the normalized accepted part of the initial preparation."},{"end_line":166,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":166,"lines":[166,166],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.flipGood","note":"The first reflection multiplies every accepted amplitude by minus one.","plain":"Reverse the sign on the accepted subspace","relation":"defines","annotation":"The success sign flip sends a vector $v$ to $v-2\\Pi v$, where $\\Pi$ is the orthogonal projector onto accepted states. The projector comes from `A.good` in the preparation data."},{"end_line":214,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":203,"lines":[203,205],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.grover_apply","note":"The second reflection combines the same accepted direction with its scalar multiple.","plain":"Reflect the sign-flipped state about the prepared state","proof_lines":[206,214],"relation":"proof","annotation":"One amplification step sends $v$ to $2\\langle\\psi,Sv\\rangle\\psi-Sv$, where $\\psi=A|0\\rangle$ and $S$ flips the accepted component. The formula holds for every vector `v` and uses the unitary preparation and orthogonal success projector stored in `A`."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b33821-33924","from_record":false,"lean":true,"lines":[216,223],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_conditional","origin":"ai","part":0,"phrase":"exp-4-preserved-law","plain":"Conditioning on success preserves the label proportions","record":null,"relation":"states","role":"derivation","rows":[{"end_line":242,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":216,"lines":[216,223],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_conditional","note":"","plain":"Conditioning on success preserves the label proportions","proof_lines":[224,242],"relation":"states","annotation":"The proof sums the successful masses of `ampLaw f q` to get $1-f$. With $f<1$, this common multiplier cancels when conditioning on a successful label."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b34333-34452","from_record":false,"lean":true,"lines":[343,346],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.iterate_eq","origin":"ai","part":0,"phrase":"exp-4-caption-direction","plain":"The sine and cosine amplitudes after any number of Grover steps","record":null,"relation":"states","role":"explanation","rows":[{"end_line":351,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean gives the iterate explicitly, $\\sin((2u+1)\\theta)$ times $g$ plus $\\cos((2u+1)\\theta)$ times $b$; the words state only that the component along $g$ is rescaled by a common factor.","fidelity_source":"ai","line":343,"lines":[343,346],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.iterate_eq","note":"","plain":"The sine and cosine amplitudes after any number of Grover steps","proof_lines":[347,351],"relation":"states","annotation":"The type gives the iterate explicitly, $\\sin((2u+1)\\theta)$ times $g$ plus $\\cos((2u+1)\\theta)$ times $b$. The words state only that the component along $g$ is rescaled by a common factor. Lean’s `A.iterate u` executes the preparation followed by the specified circuit iterations."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b34509-34646","from_record":false,"lean":true,"lines":[355,358],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.grover_rotation","origin":"ai","part":0,"phrase":"exp-4-rotation-probability","plain":"Grover rotation by 2θ in the success–failure plane for 0<p<1","record":null,"relation":"part","role":"statement","rows":[{"end_line":391,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":355,"lines":[355,358],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.grover_rotation","note":"","plain":"Grover rotation by 2θ in the success–failure plane for 0<p<1","proof_lines":[359,391],"relation":"part","annotation":"In the ordered basis $(g,b)$, one amplification step sends $(x,y)$ to $(x\\cos2\\theta+y\\sin2\\theta,\\ y\\cos2\\theta-x\\sin2\\theta)$. The assumptions `h0 : 0 < A.prob` and `h1 : A.prob < 1` ensure that both normalized directions exist."},{"end_line":413,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":407,"lines":[407,408],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.norm_good_iterate_sq","note":"","plain":"After j Grover steps, success probability is sin²((2j+1)θ)","proof_lines":[409,413],"relation":"part","annotation":"After $u$ iterations, success has probability $\\sin^2((2u+1)\\theta)$. The type states this as the squared norm of the projected successful component, `‖A.good (A.iterate u)‖ ^ 2`."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b34939-34973","from_record":false,"lean":true,"lines":[74,75],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_zero","origin":"ai","part":0,"phrase":"exp-4-zero","plain":"Zero initial success stays zero","record":null,"relation":"states","role":"statement","rows":[{"end_line":76,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":74,"lines":[74,75],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_zero","note":"","plain":"Zero initial success stays zero","proof_lines":[76,76],"relation":"states","annotation":"If the initial success probability is zero, the successful component remains zero after every amplification iteration. The hypothesis is `h : A.prob = 0`. The iteration count is arbitrary."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b35199-35370","from_record":false,"lean":true,"lines":[156,159],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.amplification_budget_le","origin":"ai","part":0,"phrase":"exp-4-bounded-schedule","plain":"Amplification uses at most 138 ln(1/η)/√γ padded calls","record":null,"relation":"part","role":"statement","rows":[{"end_line":195,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":156,"lines":[156,159],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.amplification_budget_le","note":"Use threshold $\\gamma = 1/(2m)$ and target $\\eta = \\varepsilon$.","plain":"Amplification uses at most 138 ln(1/η)/√γ padded calls","proof_lines":[160,195],"relation":"part","annotation":"The padded schedule uses at most $138\\,\\gamma^{-1/2}\\ln(1/\\eta)$ calls to the preparation or its inverse. Its parameters satisfy $0<\\gamma\\le1/2$ and $0<\\eta<1/2$, expressed by `hγ`, `hγ1`, `hη` and `hη1`."},{"end_line":368,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":355,"lines":[355,361],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplify_samples","note":"The failure guarantee assumes the original successful mass meets that threshold.","plain":"Amplified sampling preserves the successful label law and retains workspace","proof_lines":[362,368],"relation":"part","annotation":"A coherent sampler with read cap `n` can be amplified while retaining all its workspace. For positive threshold `γ` and target error `η`, the theorem constructs a failure function `f` and a sampler with cap $N(2M+1)n$."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b35419-35563","from_record":false,"lean":true,"lines":[216,223],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_conditional","origin":"ai","part":0,"phrase":"exp-4-first-success","plain":"Conditioning on success preserves the label proportions","record":null,"relation":"states","role":"statement","rows":[{"end_line":242,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":216,"lines":[216,223],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_conditional","note":"","plain":"Conditioning on success preserves the label proportions","proof_lines":[224,242],"relation":"states","annotation":"The equality is for the amplified law conditional on success. The bound $f<1$ ensures that the total mass in the `some` labels is positive."},{"end_line":79,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":75,"lines":[75,79],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumListLaw","note":"","plain":"The bounded tournament returns its accumulated list","relation":"defines","annotation":"The continuation term multiplies $1-g(L)$ by the pivot law `weight a L p / total (weight a L)`. The chosen pivot is put at the head of the history."}],"tone":8,"topic":"amplification"},{"anchor":"sec-4.3","at":"b35565-35660","from_record":false,"lean":true,"lines":[75,79],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumListLaw","origin":"ai","part":0,"phrase":"exp-4-stop","plain":"The bounded tournament returns its accumulated list","record":null,"relation":"defines","role":"definition","rows":[{"end_line":79,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":75,"lines":[75,79],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumListLaw","note":"","plain":"The bounded tournament returns its accumulated list","relation":"defines","annotation":"With zero stages left the law is `pt L out`. At a positive stage the term `g L * pt L out` puts the failure mass on the same list."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.3","at":"b35804-35982","from_record":false,"lean":true,"lines":[301,303],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament","origin":"ai","part":0,"phrase":"exp-4-actual-miss","plain":"A short quantum list contains the winning column","record":"quartic.proposition-3","relation":"contains","role":"statement","rows":[{"end_line":307,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The list theorem gives the sharper symbolic miss bound $2m/2^T + T\\varepsilon$; at $T = \\lceil \\log_2(1000m) \\rceil$, $2m/2^T \\le 1/500$.","fidelity_source":"ai","line":287,"lines":[301,303],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament","note":"The bound concerns list membership itself, not acceptance after a verifier.","plain":"A short quantum list contains the winning column","proof_lines":[304,307],"relation":"contains","annotation":"The list theorem gives the sharper symbolic miss bound $2m/2^T + T\\varepsilon$. At $T = \\lceil \\log_2(1000m) \\rceil$, $2m/2^T \\le 1/500$. Assuming `hm : 2 ≤ Fintype.card Col`, complementary comparisons `hc` and coherent comparison samplers `hcmp`, it includes each dominant candidate with probability at least $1-2m/2^T-T\\varepsilon$."}],"tone":7,"topic":"tournament"},{"anchor":"sec-4.3","at":"b35983-36129","from_record":false,"lean":true,"lines":[204,207],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_cost_log","origin":"ai","part":0,"phrase":"exp-4-query-cost","plain":"Tournament bit-query bound 276c√(2m) T² log(1/ε)","record":null,"relation":"states","role":"statement","rows":[{"end_line":233,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":204,"lines":[204,207],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_cost_log","note":"The explicit bit-query bound is this count times a comparison read cap.","plain":"Tournament bit-query bound 276c√(2m) T² log(1/ε)","proof_lines":[208,233],"relation":"states","annotation":"Unfolding `stageCost` gives the factor `2 * (Tval m)^2 * cc` after multiplying by the number of stages. The amplification estimate supplies the factor from the threshold $1/(2m)$."}],"tone":7,"topic":"tournament"},{"anchor":"sec-5","at":"b37133-37228","from_record":false,"lean":true,"lines":[25,44],"module":"QuarticQuery.Paper.ConstructionForrelationComplete","name":"QuarticQuery.Paper.construction_lemma_2_1_ii_complete","origin":"ai","part":0,"phrase":"exp-5-quantum-property","plain":"Coherent Forrelation decoding uses Oₖ(1+log(1/η)) bit queries","record":null,"relation":"contains","role":"statement","rows":[{"end_line":61,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":25,"lines":[25,44],"module":"QuarticQuery.Paper.ConstructionForrelationComplete","name":"QuarticQuery.Paper.construction_lemma_2_1_ii_complete","note":"","plain":"Coherent Forrelation decoding uses Oₖ(1+log(1/η)) bit queries","proof_lines":[45,61],"relation":"contains","annotation":"The law `L` is normalized on every input and its promised clause gives `1 - η ≤ L z b` when `P k t z = some b`. The same isometry is measured for both clauses."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5","at":"b37284-37357","from_record":false,"lean":true,"lines":[93,94],"module":"QuarticQuery.Paper.ConstructionForrelationQuantum","name":"QuarticQuery.Paper.construction_lemma_2_1_i","origin":"ai","part":0,"phrase":"exp-5-classical-property","plain":"For fixed k≥2, Forrelation eventually needs more than L randomized queries","record":null,"relation":"states","role":"statement","rows":[{"end_line":95,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":93,"lines":[93,94],"module":"QuarticQuery.Paper.ConstructionForrelationQuantum","name":"QuarticQuery.Paper.construction_lemma_2_1_i","note":"Makes “about” precise using the eventual lower bound with a logarithmic denominator.","plain":"For fixed k≥2, Forrelation eventually needs more than L randomized queries","proof_lines":[95,95],"relation":"states","annotation":"For each fixed $k\\ge2$, all sufficiently large $t$ satisfy $L(k,t)<R(P_{k,t})$, where $m=4^t$ and $L$ is the construction’s explicit threshold of order $m^{1-1/k}/(\\log_2m)^2$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5","at":"b37420-37529","from_record":false,"lean":true,"lines":[111,115],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_lemma_2_1_iii","origin":"ai","part":0,"phrase":"exp-5-exact-circuit-property","plain":"An Oₖ(m log²m) circuit computes Forrelation promise membership and value","record":null,"relation":"states","role":"statement","rows":[{"end_line":118,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":111,"lines":[111,115],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_lemma_2_1_iii","note":"","plain":"An Oₖ(m log²m) circuit computes Forrelation promise membership and value","proof_lines":[116,118],"relation":"states","annotation":"For each $k\\ge1$, there is a positive constant $S$ such that every $t\\ge1$ has a circuit with at most $S m(\\log_2m)^2$ gates realizing $P_{k,t}$."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-5","at":"b37821-37856","from_record":false,"lean":true,"lines":[188,193],"module":"QuarticQuery.Statement","name":"QuarticQuery.P","origin":"ai","part":0,"phrase":"exp-5-address-question","plain":"The partial Forrelation address question","record":null,"relation":"defines","role":"definition","rows":[{"end_line":193,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":188,"lines":[188,193],"module":"QuarticQuery.Statement","name":"QuarticQuery.P","note":"","plain":"The partial Forrelation address question","relation":"defines","annotation":"The answer is an optional Boolean: either the digit one, the digit zero, or no defined digit."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.1","at":"b38520-38577","from_record":false,"lean":true,"lines":[164,164],"module":"QuarticQuery.Statement","name":"QuarticQuery.bitSign","origin":"ai","part":0,"phrase":"exp-5-bit-signs","plain":"Converting stored bits to signs","record":null,"relation":"defines","role":"definition","rows":[{"end_line":164,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":164,"lines":[164,164],"module":"QuarticQuery.Statement","name":"QuarticQuery.bitSign","note":"","plain":"Converting stored bits to signs","relation":"defines","annotation":"A stored zero becomes the integer $+1$, and a stored one becomes $-1$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.1","at":"b39196-39248","from_record":false,"lean":true,"lines":[139,140],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.H","origin":"ai","part":0,"phrase":"exp-5-normalized-walsh","plain":"The normalized Walsh matrix","record":null,"relation":"defines","role":"definition","rows":[{"end_line":140,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":139,"lines":[139,140],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.H","note":"At $t = 1$, its general normalization is division by two.","plain":"The normalized Walsh matrix","relation":"defines","annotation":"For $m=4^t$, the matrix $H$ is the real sign matrix $W$ multiplied by $2^{-t}=1/\\sqrt m$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.1","at":"b39426-39472","from_record":false,"lean":true,"lines":[210,211],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.H_mem_orthogonalGroup","origin":"ai","part":0,"phrase":"exp-5-length-preservation","plain":"Walsh multiplication preserves length","record":null,"relation":"states","role":"statement","rows":[{"end_line":212,"exact_lines":false,"fidelity":"stronger","fidelity_note":"The theorem gives orthogonality for every natural $t$; this paragraph uses only the four-position case $t = 1$.","fidelity_source":"ai","line":210,"lines":[210,211],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.H_mem_orthogonalGroup","note":"","plain":"Walsh multiplication preserves length","proof_lines":[212,212],"relation":"states","annotation":"The theorem gives orthogonality for every natural $t$. This paragraph uses only the four-position case $t = 1$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.1","at":"b39642-39723","from_record":false,"lean":true,"lines":[158,160],"module":"QuarticQuery.Forrelation.Product","name":"QuarticQuery.Forrelation.Phi_eq_matrix_product","origin":"ai","part":0,"phrase":"exp-5-two-block-quantity","plain":"Forrelation as an alternating matrix product","record":null,"relation":"states","role":"definition","rows":[{"end_line":183,"exact_lines":false,"fidelity":"stronger","fidelity_note":"The matrix-product identity holds for every $k \\ge 1$, every $t$, and every input; the phrase specializes to $k = 2$ and $t = 1$.","fidelity_source":"ai","line":158,"lines":[158,160],"module":"QuarticQuery.Forrelation.Product","name":"QuarticQuery.Forrelation.Phi_eq_matrix_product","note":"","plain":"Forrelation as an alternating matrix product","proof_lines":[161,183],"relation":"states","annotation":"The matrix-product identity holds for every $k \\ge 1$, every $t$, and every input. The phrase specializes to $k = 2$ and $t = 1$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.1","at":"b39875-39928","from_record":false,"lean":true,"lines":[58,58],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.Phi_negativeWitness","origin":"ai","part":0,"phrase":"exp-5-negative-example-value","plain":"A concrete Forrelation value of minus one","record":null,"relation":"part","role":"example","rows":[{"end_line":62,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":58,"lines":[58,58],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.Phi_negativeWitness","note":"Evaluates the final signed quantity for this exact two-block input.","plain":"A concrete Forrelation value of minus one","proof_lines":[59,62],"relation":"part","annotation":"The two-block, four-position input called the negative witness has $\\Phi=-1$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.1","at":"b40098-40135","from_record":false,"lean":true,"lines":[18,18],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.delta","origin":"ai","part":0,"phrase":"exp-5-two-block-threshold","plain":"The Forrelation promise threshold δ=2⁻⁵ᵏ","record":null,"relation":"defines","role":"definition","rows":[{"end_line":18,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":18,"lines":[18,18],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.delta","note":"Substituting $k = 2$ gives the displayed threshold.","plain":"The Forrelation promise threshold δ=2⁻⁵ᵏ","relation":"defines","annotation":"The threshold for $k$ blocks is the positive real number $\\delta=2^{-5k}$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.1","at":"b40136-40184","from_record":false,"lean":true,"lines":[63,64],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.P_eq_some_true_iff","origin":"ai","part":0,"phrase":"exp-5-promise-one","plain":"Forrelation assigns one exactly when Φ ≥ δ","record":null,"relation":"states","role":"statement","rows":[{"end_line":67,"exact_lines":false,"fidelity":"stronger","fidelity_note":"The theorem is an if-and-only-if for every $k$ and $t$, whereas the phrase states sufficiency in the two-block example.","fidelity_source":"ai","line":63,"lines":[63,64],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.P_eq_some_true_iff","note":"","plain":"Forrelation assigns one exactly when Φ ≥ δ","proof_lines":[65,67],"relation":"states","annotation":"The theorem is an if-and-only-if for every $k$ and $t$, whereas the phrase states sufficiency in the two-block example."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.1","at":"b40189-40218","from_record":false,"lean":true,"lines":[70,71],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.P_eq_some_false_iff","origin":"ai","part":0,"phrase":"exp-5-promise-zero","plain":"Forrelation assigns zero exactly when |Φ| ≤ δ/2","record":null,"relation":"states","role":"statement","rows":[{"end_line":83,"exact_lines":false,"fidelity":"stronger","fidelity_note":"The theorem is an if-and-only-if for every $k$ and $t$, whereas this phrase states the sufficient small-value condition for two blocks.","fidelity_source":"ai","line":70,"lines":[70,71],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.P_eq_some_false_iff","note":"","plain":"Forrelation assigns zero exactly when |Φ| ≤ δ/2","proof_lines":[72,83],"relation":"states","annotation":"The theorem is an if-and-only-if for every $k$ and $t$, whereas this phrase states the sufficient small-value condition for two blocks."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.1","at":"b40220-40272","from_record":false,"lean":true,"lines":[87,88],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.P_eq_none_iff","origin":"ai","part":0,"phrase":"exp-5-promise-undefined","plain":"Inputs with no prescribed digit","record":null,"relation":"states","role":"statement","rows":[{"end_line":92,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":87,"lines":[87,88],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.P_eq_none_iff","note":"","plain":"Inputs with no prescribed digit","proof_lines":[89,92],"relation":"states","annotation":"The address question is undefined exactly when both promise tests fail: $\\Phi<\\delta$ and $|\\Phi|>\\delta/2$, expressed in Lean as the negations of the two weak inequalities."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.1","at":"b40599-40603","from_record":false,"lean":true,"lines":[58,58],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.Phi_negativeWitness","origin":"ai","part":0,"phrase":"exp-5-negative-row-amplitude","plain":"A concrete Forrelation value of minus one","record":null,"relation":"part","role":"example","rows":[{"end_line":62,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":58,"lines":[58,58],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.Phi_negativeWitness","note":"","plain":"A concrete Forrelation value of minus one","proof_lines":[59,62],"relation":"part","annotation":"The two-block, four-position input called the negative witness has $\\Phi=-1$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.1","at":"b40606-40615","from_record":false,"lean":true,"lines":[65,65],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.P_negativeWitness","origin":"ai","part":0,"phrase":"exp-5-negative-example-undefined","plain":"The negative witness is outside the promise","record":null,"relation":"part","role":"example","rows":[{"end_line":65,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":65,"lines":[65,65],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.P_negativeWitness","note":"","plain":"The negative witness is outside the promise","relation":"part","annotation":"The explicit input with both blocks equal to $1000$ has no prescribed answer for $k=2$ and $m=4$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.1","at":"b40656-40671","from_record":false,"lean":true,"lines":[266,267],"module":"QuarticQuery.Forrelation.Product","name":"QuarticQuery.Forrelation.abs_Phi_le_one","origin":"ai","part":0,"phrase":"exp-5-range-of-quantity","plain":"Every Forrelation value lies between minus and plus one","record":null,"relation":"states","role":"statement","rows":[{"end_line":268,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":266,"lines":[266,267],"module":"QuarticQuery.Forrelation.Product","name":"QuarticQuery.Forrelation.abs_Phi_le_one","note":"","plain":"Every Forrelation value lies between minus and plus one","proof_lines":[268,268],"relation":"states","annotation":"The hypothesis is only that there is at least one block. No promise assumption is needed."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.2","at":"b41087-41223","from_record":false,"lean":true,"lines":[102,105],"module":"QuarticQuery.Statement","name":"QuarticQuery.bitOracle","origin":"ai","part":0,"phrase":"exp-5-bit-query-action","plain":"The input bit controls a reversible answer-bit flip","record":null,"relation":"defines","role":"definition","rows":[{"end_line":105,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":102,"lines":[102,105],"module":"QuarticQuery.Statement","name":"QuarticQuery.bitOracle","note":"","plain":"The input bit controls a reversible answer-bit flip","relation":"defines","annotation":"On a basis state consisting of an input position, an answer bit, and a workspace coordinate, the query flips the answer bit exactly when the stored input bit is one."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.2","at":"b41371-41502","from_record":false,"lean":true,"lines":[26,32],"module":"QuarticQuery.Paper.ConstructionPhase","name":"QuarticQuery.Paper.construction_bitOracle_phase_kickback","origin":"ai","part":0,"phrase":"exp-5-query-sign-kickback","plain":"The minus-state answer qubit converts a bit query to input signs","record":null,"relation":"states","role":"derivation","rows":[{"end_line":41,"exact_lines":false,"fidelity":"stronger","fidelity_note":"The theorem allows arbitrary position/workspace amplitudes satisfying the minus-register relation, rather than only the stated product answer vector.","fidelity_source":"ai","line":26,"lines":[26,32],"module":"QuarticQuery.Paper.ConstructionPhase","name":"QuarticQuery.Paper.construction_bitOracle_phase_kickback","note":"","plain":"The minus-state answer qubit converts a bit query to input signs","proof_lines":[33,41],"relation":"states","annotation":"The theorem allows arbitrary position/workspace amplitudes satisfying the minus-register relation, rather than only the stated product answer vector. The binder `hminus` says that the amplitude with answer bit one is the negative of the amplitude with answer bit zero, for every position and workspace value."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.2","at":"b41503-41641","from_record":false,"lean":true,"lines":[26,32],"module":"QuarticQuery.Paper.ConstructionPhase","name":"QuarticQuery.Paper.construction_bitOracle_phase_kickback","origin":"ai","part":0,"phrase":"exp-5-superposition-kickback","plain":"The minus-state answer qubit converts a bit query to input signs","record":null,"relation":"states","role":"explanation","rows":[{"end_line":41,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":26,"lines":[26,32],"module":"QuarticQuery.Paper.ConstructionPhase","name":"QuarticQuery.Paper.construction_bitOracle_phase_kickback","note":"","plain":"The minus-state answer qubit converts a bit query to input signs","proof_lines":[33,41],"relation":"states","annotation":"A bit-oracle call multiplies each position's amplitude by $(-1)^{x_i}$ when the answer register is prepared in the minus subspace. The binder `hminus` says that the amplitude with answer bit one is the negative of the amplitude with answer bit zero, for every position and workspace value."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.2","at":"b42391-42548","from_record":false,"lean":true,"lines":[50,58],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_state","origin":"ai","part":0,"phrase":"exp-5-signed-final-amplitude","plain":"The Walsh experiment and its exact output law","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":73,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":19,"lines":[50,58],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_state","note":"The proof identifies the zero-position amplitude with the signed Forrelation value.","plain":"The Walsh experiment and its exact output law","proof_lines":[29,73],"relation":"proof","annotation":"The proof names the zero basis index `o` and rewrites `F x (rket o)` as the complexification of the final Walsh transform. It then computes coordinate `o` using the all-positive Walsh row."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.2","at":"b42549-42610","from_record":false,"lean":true,"lines":[76,84],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_physical","origin":"ai","part":0,"phrase":"exp-5-projection-probability","plain":"A Walsh projection trial uses one bit query per block","record":null,"relation":"contains","role":"statement","rows":[{"end_line":104,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":76,"lines":[76,84],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_physical","note":"","plain":"A Walsh projection trial uses one bit query per block","proof_lines":[92,104],"relation":"contains","annotation":"The `lawOf` conjunct tests equality with the distinguished basis index `o` after the final Walsh transform. The physical part uses the `ReadSpecOneQuery` candidate, which still lacks native elaboration."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.2","at":"b42611-42685","from_record":false,"lean":true,"lines":[76,91],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_physical","origin":"ai","part":0,"phrase":"exp-5-two-query-trial","plain":"A Walsh projection trial uses one bit query per block","record":null,"relation":"contains","role":"statement","rows":[{"end_line":104,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The retained physical transformation has cap $k$ on all inputs for every $k \\ge 1$; the phrase uses $k = 2$.","fidelity_source":"ai","line":76,"lines":[76,91],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_physical","note":"","plain":"A Walsh projection trial uses one bit query per block","proof_lines":[92,104],"relation":"contains","annotation":"Specialize the sharp candidate to $k=2$. The state equality puts a Walsh gate after the signed word. The cap of two physical reads uses the unchecked `ReadSpecOneQuery` compiler."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.2","at":"b42911-42998","from_record":false,"lean":true,"lines":[58,58],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.Phi_negativeWitness","origin":"ai","part":0,"phrase":"exp-5-projection-cannot-certify-promise","plain":"A concrete Forrelation value of minus one","record":null,"relation":"part","role":"explanation","rows":[{"end_line":62,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":58,"lines":[58,58],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.Phi_negativeWitness","note":"The concrete witness has squared amplitude one.","plain":"A concrete Forrelation value of minus one","proof_lines":[59,62],"relation":"part","annotation":"For the concrete `negativeWitness` the proof computes numerator $-8$ and denominator $8$. The sign is lost in the squared projection probability, which is $1$ for this input."},{"end_line":65,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":65,"lines":[65,65],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.P_negativeWitness","note":"That same input has no prescribed address digit.","plain":"The negative witness is outside the promise","relation":"part","annotation":"`decide +kernel` computes the partial value at the same witness with $\\Phi=-1$ and returns the theorem `P 2 1 negativeWitness = none`. A large negative correlation falls outside both promised cases."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.3","at":"b43541-43608","from_record":false,"lean":true,"lines":[61,62],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.successProb_of_true","origin":"ai","part":0,"phrase":"exp-5-smallest-probability-wording","plain":"Projection probability ≥δ² on promised one-inputs","record":null,"relation":"states","role":"statement","rows":[{"end_line":64,"exact_lines":false,"fidelity":"stronger","fidelity_note":"Lean proves $\\delta^2\\le$ `successProb z` for every promised one-input with any number $k\\ge1$ of blocks; the words state the case of two blocks, where $\\delta^2=2^{-20}$.","fidelity_source":"ai","line":61,"lines":[61,62],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.successProb_of_true","note":"","plain":"Projection probability ≥δ² on promised one-inputs","proof_lines":[63,64],"relation":"states","annotation":"Lean proves $\\delta^2\\le$ `successProb z` for every promised one-input with any number $k\\ge1$ of blocks. The words state the case of two blocks, where $\\delta^2=2^{-20}$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.3","at":"b43616-43683","from_record":false,"lean":true,"lines":[67,68],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.successProb_of_false","origin":"ai","part":0,"phrase":"exp-5-zero-probability-bound","plain":"Projection probability ≤δ²/4 on promised zero-inputs","record":null,"relation":"states","role":"statement","rows":[{"end_line":72,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":67,"lines":[67,68],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.successProb_of_false","note":"","plain":"Projection probability ≤δ²/4 on promised zero-inputs","proof_lines":[69,72],"relation":"states","annotation":"`successProb_eq` identifies the measured probability with the square of the Forrelation amplitude for $k\\ge1$. A promised zero satisfies $|\\Phi|\\le\\delta/2$, whose square gives the bound $\\delta^2/4$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.3","at":"b43743-43819","from_record":false,"lean":true,"lines":[356,357],"module":"QuarticQuery.Upper.Decode","name":"QuarticQuery.Upper.decodeProb","origin":"ai","part":0,"phrase":"exp-5-count-threshold","plain":"Thresholding the number of successful trials","record":null,"relation":"defines","role":"definition","rows":[{"end_line":357,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":356,"lines":[356,357],"module":"QuarticQuery.Upper.Decode","name":"QuarticQuery.Upper.decodeProb","note":"","plain":"Thresholding the number of successful trials","relation":"defines","annotation":"The decoder’s probability of returning one is the upper binomial tail for $n$ trials, single-trial success probability $p$, and cutoff $n\\delta^2/2$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.3","at":"b43826-43885","from_record":false,"lean":true,"lines":[192,193],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.repetitions","origin":"ai","part":0,"phrase":"exp-5-repetition-count","plain":"The projection trial count for promised error at most η","record":null,"relation":"defines","role":"definition","rows":[{"end_line":193,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":192,"lines":[192,193],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.repetitions","note":"","plain":"The projection trial count for promised error at most η","relation":"defines","annotation":"The repetition count is the natural-number ceiling of $16\\,2^{10k}\\ln(1/\\eta)$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.3","at":"b43886-43920","from_record":false,"lean":true,"lines":[218,221],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.threshold_correct","origin":"ai","part":0,"phrase":"exp-5-promised-decoder-accuracy","plain":"On the promise, projection threshold δ²/2 gives error ≤η with enough trials","record":null,"relation":"states","role":"statement","rows":[{"end_line":230,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":218,"lines":[218,221],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.threshold_correct","note":"","plain":"On the promise, projection threshold δ²/2 gives error ≤η with enough trials","proof_lines":[222,230],"relation":"states","annotation":"For $k\\ge1$, $\\eta>0$, and any trial count $n$ at least the prescribed repetition count, the threshold test returns one with probability at least $1-\\eta$ on promised one-inputs and at most $\\eta$ on promised zero-inputs."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.3","at":"b43961-44030","from_record":false,"lean":true,"lines":[25,44],"module":"QuarticQuery.Paper.ConstructionForrelationComplete","name":"QuarticQuery.Paper.construction_lemma_2_1_ii_complete","origin":"ai","part":0,"phrase":"exp-5-size-independent-decoder-cost","plain":"Coherent Forrelation decoding uses Oₖ(1+log(1/η)) bit queries","record":null,"relation":"contains","role":"statement","rows":[{"end_line":61,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":25,"lines":[25,44],"module":"QuarticQuery.Paper.ConstructionForrelationComplete","name":"QuarticQuery.Paper.construction_lemma_2_1_ii_complete","note":"","plain":"Coherent Forrelation decoding uses Oₖ(1+log(1/η)) bit queries","proof_lines":[45,61],"relation":"contains","annotation":"The existential `A` is chosen before both `t` and `η`. It bounds the physical cost $2nk$ by $A(1+\\ln(1/\\eta))$ for every $0<\\eta<1/2$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.3","at":"b44173-44271","from_record":false,"lean":true,"lines":[140,158],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.construction_decoder_sharp","origin":"ai","part":0,"phrase":"exp-5-decoder-on-undefined-inputs","plain":"A coherent n-trial Forrelation decoder uses at most nk bit queries","record":null,"relation":"contains","role":"statement","rows":[{"end_line":176,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":140,"lines":[140,158],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.construction_decoder_sharp","note":"","plain":"A coherent n-trial Forrelation decoder uses at most nk bit queries","proof_lines":[159,176],"relation":"contains","annotation":"The `decodeProb` law and continuation cap range over all inputs $z$. Only the accuracy clause requires `P k t z = some b`. The sharp physical cap comes from the unchecked one-query compiler."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b44439-44500","from_record":false,"lean":true,"lines":[59,61],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_equation_4","origin":"ai","part":0,"phrase":"exp-5-input-blocks","plain":"Forrelation assigns one at Φ≥δ and zero at |Φ|≤δ/2","record":null,"relation":"contains","role":"definition","rows":[{"end_line":68,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":59,"lines":[59,61],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_equation_4","note":"","plain":"Forrelation assigns one at Φ≥δ and zero at |Φ|≤δ/2","proof_lines":[66,68],"relation":"contains","annotation":"There are exactly $km$ input coordinates, arranged as a block index and a position within that block."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b44555-44726","from_record":false,"lean":true,"lines":[28,35],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_walsh_definitions","origin":"ai","part":0,"phrase":"exp-5-walsh-entries","plain":"Walsh signs, normalized Walsh matrix and uniform unit vector","record":null,"relation":"contains","role":"definition","rows":[{"end_line":46,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":28,"lines":[28,35],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_walsh_definitions","note":"","plain":"Walsh signs, normalized Walsh matrix and uniform unit vector","proof_lines":[38,46],"relation":"contains","annotation":"The `walshSign` clause raises $-1$ to the count of positions where both index bits are set. Lean computes that count over `range (2 * t)`."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b44767-44822","from_record":false,"lean":true,"lines":[36,36],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_walsh_definitions","origin":"ai","part":0,"phrase":"exp-5-uniform-start","plain":"Walsh signs, normalized Walsh matrix and uniform unit vector","record":null,"relation":"contains","role":"definition","rows":[{"end_line":46,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":28,"lines":[36,36],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_walsh_definitions","note":"","plain":"Walsh signs, normalized Walsh matrix and uniform unit vector","proof_lines":[38,46],"relation":"contains","annotation":"The `u t i` conjunct assigns the reciprocal square root of the side length to each coordinate. The proof rewrites that square root to the power of two used in the definition."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b44949-45002","from_record":false,"lean":true,"lines":[37,37],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_walsh_definitions","origin":"ai","part":0,"phrase":"exp-5-block-sign-matrices","plain":"Walsh signs, normalized Walsh matrix and uniform unit vector","record":null,"relation":"contains","role":"definition","rows":[{"end_line":46,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":28,"lines":[37,37],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_walsh_definitions","note":"","plain":"Walsh signs, normalized Walsh matrix and uniform unit vector","proof_lines":[38,46],"relation":"contains","annotation":"The final conjunct forms `Matrix.diagonal` using `bitSign (z (h, i))` at coordinate $i$ in block $h$. The Boolean convention is given by the first conjunct."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b45046-45105","from_record":false,"lean":true,"lines":[50,54],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_equation_3","origin":"ai","part":0,"phrase":"exp-5-full-signed-product","plain":"The alternating Walsh product for Φ and threshold δ=2⁻⁵ᵏ","record":null,"relation":"contains","role":"definition","rows":[{"end_line":55,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":50,"lines":[50,54],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_equation_3","note":"","plain":"The alternating Walsh product for Φ and threshold δ=2⁻⁵ᵏ","proof_lines":[55,55],"relation":"contains","annotation":"For $k\\ge1$, the Forrelation quantity is the uniform-vector inner product with the alternating block-sign and Walsh product, and its promise threshold is $2^{-5k}$."},{"end_line":73,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":19,"lines":[50,58],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_state","note":"Identifies this scalar with the zero-position amplitude after the final Walsh transform.","plain":"The Walsh experiment and its exact output law","proof_lines":[29,73],"relation":"proof","annotation":"In `hamp`, the proof rewrites $\\Phi$ by `Phi_eq_matrix_product` to obtain the amplitude at index `o`. The measurement law squares that coordinate in the final conjunct."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b45217-45250","from_record":false,"lean":true,"lines":[18,18],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.delta","origin":"ai","part":0,"phrase":"exp-5-full-promise-threshold","plain":"The Forrelation promise threshold δ=2⁻⁵ᵏ","record":null,"relation":"defines","role":"definition","rows":[{"end_line":18,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":18,"lines":[18,18],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.delta","note":"","plain":"The Forrelation promise threshold δ=2⁻⁵ᵏ","relation":"defines","annotation":"The threshold for $k$ blocks is the positive real number $\\delta=2^{-5k}$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b45256-45283","from_record":false,"lean":true,"lines":[76,91],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_physical","origin":"ai","part":0,"phrase":"exp-5-one-query-per-block","plain":"A Walsh projection trial uses one bit query per block","record":null,"relation":"contains","role":"statement","rows":[{"end_line":104,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":76,"lines":[76,91],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_physical","note":"","plain":"A Walsh projection trial uses one bit query per block","proof_lines":[92,104],"relation":"contains","annotation":"The sharp candidate adds at most $k$ to `next.queryCap` for each physical continuation. This cap depends on the unchecked `ReadSpecOneQuery` compiler."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b45362-45429","from_record":false,"lean":true,"lines":[93,94],"module":"QuarticQuery.Paper.ConstructionForrelationQuantum","name":"QuarticQuery.Paper.construction_lemma_2_1_i","origin":"ai","part":0,"phrase":"exp-5-classical-growth","plain":"For fixed k≥2, Forrelation eventually needs more than L randomized queries","record":null,"relation":"states","role":"statement","rows":[{"end_line":95,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":93,"lines":[93,94],"module":"QuarticQuery.Paper.ConstructionForrelationQuantum","name":"QuarticQuery.Paper.construction_lemma_2_1_i","note":"For fixed $k \\ge 2$, the explicit eventual lower bound includes logarithmic factors.","plain":"For fixed k≥2, Forrelation eventually needs more than L randomized queries","proof_lines":[95,95],"relation":"states","annotation":"For each fixed $k\\ge2$, all sufficiently large $t$ satisfy $L(k,t)<R(P_{k,t})$, where $m=4^t$ and $L$ is the construction’s explicit threshold of order $m^{1-1/k}/(\\log_2m)^2$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b45470-45527","from_record":false,"lean":true,"lines":[111,115],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_lemma_2_1_iii","origin":"ai","part":0,"phrase":"exp-5-exact-circuit-growth","plain":"An Oₖ(m log²m) circuit computes Forrelation promise membership and value","record":null,"relation":"states","role":"statement","rows":[{"end_line":118,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":111,"lines":[111,115],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_lemma_2_1_iii","note":"","plain":"An Oₖ(m log²m) circuit computes Forrelation promise membership and value","proof_lines":[116,118],"relation":"states","annotation":"For each $k\\ge1$, there is a positive constant $S$ such that every $t\\ge1$ has a circuit with at most $S m(\\log_2m)^2$ gates realizing $P_{k,t}$."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-5.4","at":"b45598-45639","from_record":false,"lean":true,"lines":[56,58],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_eq6","origin":"ai","part":0,"phrase":"exp-5-logarithmic-address-length","plain":"Address length r = 20 log₂m = 40t bits per column","record":null,"relation":"states","role":"definition","rows":[{"end_line":66,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":56,"lines":[56,58],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_eq6","note":"","plain":"Address length r = 20 log₂m = 40t bits per column","proof_lines":[59,66],"relation":"states","annotation":"For $m=4^t$, the row number takes $\\ell=\\log_2m=2t$ bits and the full construction uses $r=\\lceil20\\log_2m\\rceil=40t$ address questions."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b45648-45666","from_record":false,"lean":true,"lines":[87,90],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_layout_cardinalities","origin":"ai","part":0,"phrase":"exp-5-number-of-cells","plain":"m columns, km bits per address input, and 2ʳ addresses","record":null,"relation":"contains","role":"statement","rows":[{"end_line":93,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":87,"lines":[87,90],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_layout_cardinalities","note":"","plain":"m columns, km bits per address input, and 2ʳ addresses","proof_lines":[91,93],"relation":"contains","annotation":"The address type is a Boolean word of length $40t$. Every word indexes a stored cell, so its finite type counts all cells independently of which words the decoder can return."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b45717-45805","from_record":false,"lean":true,"lines":[880,884],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product","origin":"ai","part":0,"phrase":"exp-5-capped-address-guessing","plain":"Separate query caps give joint success at most βʳ on r inputs","record":null,"relation":"states","role":"statement","rows":[{"end_line":898,"exact_lines":false,"fidelity":"weaker","fidelity_note":"The bound is at most $\\beta^r$ under a mass-one product hard distribution and a cap of $L$ queries to each input on every branch; set $\\beta = 2/3$. The phrase omits these restrictions and suggests a rate rather than an upper bound.","fidelity_source":"ai","line":880,"lines":[880,884],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product","note":"","plain":"Separate query caps give joint success at most βʳ on r inputs","proof_lines":[885,898],"relation":"states","annotation":"The product bound $\\beta^r$ assumes a mass-one input law and a depth-$L$ hardness bound $\\beta$ for one input (proof in Appendix B.1). The premise `hT` requires a separate budget $L$ for every input on every branch, even if the tree interleaves its queries.","annotation_references":[{"start":120,"end":132,"key":"appendix:b.1"}]}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b46095-46255","from_record":false,"lean":true,"lines":[54,59],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumDecode_correct","origin":"ai","part":0,"phrase":"exp-5-whole-address-error","plain":"On promised address strings, whole-address decoding succeeds with probability ≥1−ε","record":null,"relation":"states","role":"statement","rows":[{"end_line":60,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":54,"lines":[54,59],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumDecode_correct","note":"","plain":"On promised address strings, whole-address decoding succeeds with probability ≥1−ε","proof_lines":[60,60],"relation":"states","annotation":"`addrLaw_good` applies `one_sub_le_prod` to the $40t$ correct-bit masses. The error allowance $\\varepsilon/(40t)$ per bit gives whole-address error at most $\\varepsilon$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b46313-46428","from_record":false,"lean":true,"lines":[173,176],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_disqualification","origin":"ai","part":0,"phrase":"exp-5-follow-pointer","plain":"A pointer disqualifies its target when it finds zero","record":null,"relation":"part","role":"explanation","rows":[{"end_line":176,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":173,"lines":[173,176],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_disqualification","note":"Identifies the reached input bit and its role as disqualification evidence.","plain":"A pointer disqualifies its target when it finds zero","relation":"part","annotation":"The disqualification bit records whether the selected bit in the other column is zero. For an input `x`, a supplying column `i`, a chosen cell `s` and a different target column `j`, the theorem identifies `disq` with the negation of that target bit."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b46472-46610","from_record":false,"lean":true,"lines":[296,302],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumWinner_dominates","origin":"ai","part":0,"phrase":"exp-5-winner-comparison-guarantee","plain":"A winning column wins each comparison with high probability","record":null,"relation":"states","role":"statement","rows":[{"end_line":305,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":296,"lines":[296,302],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumWinner_dominates","note":"","plain":"A winning column wins each comparison with high probability","proof_lines":[303,305],"relation":"states","annotation":"A winning column beats every different column with probability at least $1-\\varepsilon$ (the dominance condition used in Section 4.2). The hypotheses `hk` and `ht` require $k,t\\ge1$. `hε` and `hε1` require $0<\\varepsilon\\le1$. `hn` gives enough decoder repetitions.","annotation_references":[{"start":121,"end":132,"key":"section:4.2"}]}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b46723-46809","from_record":false,"lean":true,"lines":[218,223],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_state","origin":"ai","part":0,"phrase":"exp-5-retained-comparison-workspace","plain":"A coherent comparison and its inverse have the same read budget","record":null,"relation":"states","role":"statement","rows":[{"end_line":225,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":218,"lines":[218,223],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_state","note":"","plain":"A coherent comparison and its inverse have the same read budget","proof_lines":[224,225],"relation":"states","annotation":"For $k\\ge1$, any trial count, and any pair of columns, a finite coherent transformation has the comparison’s exact Boolean output law on every board."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-5.4","at":"b46811-46890","from_record":false,"lean":true,"lines":[267,272],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_query_bound","origin":"ai","part":0,"phrase":"exp-5-comparison-query-cost","plain":"Comparison cost comes from two address decodings and two pointer tests","record":null,"relation":"states","role":"statement","rows":[{"end_line":276,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":267,"lines":[267,272],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_query_bound","note":"","plain":"Comparison cost comes from two address decodings and two pointer tests","proof_lines":[273,276],"relation":"states","annotation":"The factor two converts `cmpCost` into physical reads. The proof expands `quantumComparison_cost_exact` and uses the decoder estimate `quantumDecode_query_bound_real`."},{"end_line":257,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":254,"lines":[254,256],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_runs","note":"Realizes the forward comparison law with the stated physical budget.","plain":"A physical program realizes the comparison distribution","proof_lines":[257,257],"relation":"part","annotation":"For $k\\ge1$, any trial count, and any two columns, a physical query program realizes the Boolean comparison law with worst-case cap twice its abstract circuit cost."},{"end_line":225,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":218,"lines":[222,223],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_state","note":"The inverse has the same abstract read budget as the forward circuit.","plain":"A coherent comparison and its inverse have the same read budget","proof_lines":[224,225],"relation":"part","annotation":"For $k\\ge1$, any trial count, and any pair of columns, a finite coherent transformation has the comparison’s exact Boolean output law on every board."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-6","at":"b48078-48120","from_record":false,"lean":true,"lines":[168,173],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_integer_tests","origin":"ai","part":0,"phrase":"exp-6-exact-integer-tests","plain":"Two exact integer comparisons give the Forrelation domain and value bits","record":null,"relation":"contains","role":"statement","rows":[{"end_line":181,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":168,"lines":[168,173],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_integer_tests","note":"","plain":"Two exact integer comparisons give the Forrelation domain and value bits","proof_lines":[179,181],"relation":"contains","annotation":"The first two equivalences translate the thresholds to integer comparisons. The third uses their disjunction for `promised (P k t) z`, and the fourth identifies the positive test with `some true`."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b48149-48240","from_record":false,"lean":true,"lines":[58,69],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_forr_output_bits","origin":"ai","part":0,"phrase":"exp-6-domain-bit","plain":"The exact Forrelation circuit’s domain and value bits on every input","record":null,"relation":"contains","role":"definition","rows":[{"end_line":81,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":58,"lines":[58,69],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_forr_output_bits","note":"","plain":"The exact Forrelation circuit’s domain and value bits on every input","proof_lines":[70,81],"relation":"contains","annotation":"For the constructed circuit with $k=l+1$, any transcript satisfying every gate equation has value output equal to the positive integer test and domain output equal to the disjunction of the positive and small-value tests."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b48241-48316","from_record":false,"lean":true,"lines":[58,69],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_forr_output_bits","origin":"ai","part":0,"phrase":"exp-6-value-bit","plain":"The exact Forrelation circuit’s domain and value bits on every input","record":null,"relation":"contains","role":"definition","rows":[{"end_line":81,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":58,"lines":[58,69],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_forr_output_bits","note":"","plain":"The exact Forrelation circuit’s domain and value bits on every input","proof_lines":[70,81],"relation":"contains","annotation":"For the constructed circuit with $k=l+1$, any transcript satisfying every gate equation has value output equal to the positive integer test and domain output equal to the disjunction of the positive and small-value tests."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b48470-48515","from_record":false,"lean":true,"lines":[206,210],"module":"QuarticQuery.Statement","name":"QuarticQuery.Circuit","origin":"ai","part":0,"phrase":"exp-6-ordered-circuit","plain":"An ordered circuit with two designated outputs","record":null,"relation":"defines","role":"definition","rows":[{"end_line":210,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":206,"lines":[206,210],"module":"QuarticQuery.Statement","name":"QuarticQuery.Circuit","note":"","plain":"An ordered circuit with two designated outputs","relation":"defines","annotation":"A circuit specifies its number of gates, a gate at each position, and the positions of its domain and value outputs."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b48517-48611","from_record":false,"lean":true,"lines":[201,204],"module":"QuarticQuery.Statement","name":"QuarticQuery.Gate","origin":"ai","part":0,"phrase":"exp-6-fan-in-two-gates","plain":"A gate has at most two earlier inputs","record":null,"relation":"defines","role":"definition","rows":[{"end_line":204,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":201,"lines":[201,204],"module":"QuarticQuery.Statement","name":"QuarticQuery.Gate","note":"","plain":"A gate has at most two earlier inputs","relation":"defines","annotation":"A gate carries two optional predecessors and a Boolean truth table."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b48613-48681","from_record":false,"lean":true,"lines":[220,224],"module":"QuarticQuery.Statement","name":"QuarticQuery.GateConsistent","origin":"ai","part":0,"phrase":"exp-6-proposed-transcript","plain":"Checking a proposed list of gate outputs","record":null,"relation":"defines","role":"definition","rows":[{"end_line":224,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":220,"lines":[220,224],"module":"QuarticQuery.Statement","name":"QuarticQuery.GateConsistent","note":"","plain":"Checking a proposed list of gate outputs","relation":"defines","annotation":"A transcript is consistent when, at every gate, its listed output equals that gate’s truth table applied to its predecessor values."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b48682-48837","from_record":false,"lean":true,"lines":[220,224],"module":"QuarticQuery.Statement","name":"QuarticQuery.GateConsistent","origin":"ai","part":0,"phrase":"exp-6-local-gate-equation","plain":"Checking a proposed list of gate outputs","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":224,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":220,"lines":[220,224],"module":"QuarticQuery.Statement","name":"QuarticQuery.GateConsistent","note":"","plain":"Checking a proposed list of gate outputs","relation":"defines","annotation":"A transcript is consistent when, at every gate, its listed output equals that gate’s truth table applied to its predecessor values."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b48838-48943","from_record":false,"lean":true,"lines":[48,51],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_transcript_correct","origin":"ai","part":0,"phrase":"exp-6-all-gates-correct","plain":"Passing every gate check determines the true computation","record":null,"relation":"contains","role":"statement","rows":[{"end_line":52,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":48,"lines":[48,51],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_transcript_correct","note":"","plain":"Passing every gate check determines the true computation","proof_lines":[52,52],"relation":"contains","annotation":"For any circuit and actual input, a proposed transcript is consistent if and only if it equals the recursively evaluated circuit transcript."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b48945-49068","from_record":false,"lean":true,"lines":[30,41],"module":"QuarticQuery.Construction.Transcript","name":"QuarticQuery.GateConsistent.unique","origin":"ai","part":0,"phrase":"exp-6-first-wrong-gate","plain":"Gate order forces transcript uniqueness","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":41,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":30,"lines":[30,41],"module":"QuarticQuery.Construction.Transcript","name":"QuarticQuery.GateConsistent.unique","note":"The induction uses agreement at every earlier gate and actual values at input predecessors.","plain":"Gate order forces transcript uniqueness","proof_lines":[32,41],"relation":"proof","annotation":"Two transcripts satisfying all gate equations for the same circuit and input must agree at every position."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b49182-49252","from_record":false,"lean":true,"lines":[71,74],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.sum_walshN_succ","origin":"ai","part":0,"phrase":"exp-6-butterfly-recursion","plain":"A Walsh stage combines two halves by sum and difference","record":null,"relation":"states","role":"explanation","rows":[{"end_line":80,"exact_lines":false,"fidelity":"stronger","fidelity_note":"The lemma is an exact recursion for any integer coefficient sequence and any bit length; the phrase describes the stage used for one input block.","fidelity_source":"ai","line":71,"lines":[71,74],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.sum_walshN_succ","note":"","plain":"A Walsh stage combines two halves by sum and difference","proof_lines":[75,80],"relation":"states","annotation":"The lemma is an exact recursion for any integer coefficient sequence and any bit length. The phrase describes the stage used for one input block."},{"end_line":32,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":25,"lines":[25,32],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.wht","note":"The actual circuit builder recursively creates the sum and difference blocks.","plain":"The recursive circuit for a Walsh transform","relation":"defines","annotation":"The transform circuit on $2^{n+1}$ entries first recursively transforms the two halves, then constructs the coordinatewise sums and differences of their outputs."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b49915-49984","from_record":false,"lean":true,"lines":[48,51],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_transcript_correct","origin":"ai","part":0,"phrase":"exp-6-altered-bit-fails","plain":"Passing every gate check determines the true computation","record":null,"relation":"states","role":"statement","rows":[{"end_line":52,"exact_lines":false,"fidelity":"stronger","fidelity_note":"Consistency is equivalent to equality with the true transcript, so any unequal transcript fails somewhere, including changes to many bits at once.","fidelity_source":"ai","line":48,"lines":[48,51],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_transcript_correct","note":"","plain":"Passing every gate check determines the true computation","proof_lines":[52,52],"relation":"states","annotation":"Consistency is equivalent to equality with the true transcript, so any unequal transcript fails somewhere, including changes to many bits at once."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b50043-50186","from_record":false,"lean":true,"lines":[92,99],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.layers","origin":"ai","part":0,"phrase":"exp-6-transform-and-word-costs","plain":"Alternating block signs with Walsh transform circuits","record":null,"relation":"part","role":"statement","rows":[{"end_line":99,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":92,"lines":[92,99],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.layers","note":"Adds one Walsh transform for each block after the first.","plain":"Alternating block signs with Walsh transform circuits","relation":"part","annotation":"The circuit starts with the signs of one block, and each further block adds one Walsh transform followed by multiplication by its signs."},{"end_line":32,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":25,"lines":[25,32],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.wht","note":"The recursion gives logarithmically many stages of pairwise sums and differences.","plain":"The recursive circuit for a Walsh transform","relation":"part","annotation":"The transform circuit on $2^{n+1}$ entries first recursively transforms the two halves, then constructs the coordinatewise sums and differences of their outputs."},{"end_line":107,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":94,"lines":[94,103],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_circuit_costs","note":"Gives explicit transform, layer, width, and total-size bounds for the constructed finite-word circuit.","plain":"Word widths and gate costs for exact arithmetic","proof_lines":[104,107],"relation":"part","annotation":"For $k=l+1$ and $t\\ge1$, this theorem bounds the arithmetic word width, the cost of a fast Walsh transform, the layer cost, and the completed circuit size."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b50265-50390","from_record":false,"lean":true,"lines":[94,103],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_circuit_costs","origin":"ai","part":0,"phrase":"exp-6-circuit-size-product","plain":"Word widths and gate costs for exact arithmetic","record":null,"relation":"contains","role":"derivation","rows":[{"end_line":107,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":94,"lines":[94,103],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_circuit_costs","note":"","plain":"Word widths and gate costs for exact arithmetic","proof_lines":[104,107],"relation":"contains","annotation":"For $k=l+1$ and $t\\ge1$, this theorem bounds the arithmetic word width, the cost of a fast Walsh transform, the layer cost, and the completed circuit size."},{"end_line":118,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":111,"lines":[111,115],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_lemma_2_1_iii","note":"","plain":"An Oₖ(m log²m) circuit computes Forrelation promise membership and value","proof_lines":[116,118],"relation":"states","annotation":"For each $k\\ge1$, there is a positive constant $S$ such that every $t\\ge1$ has a circuit with at most $S m(\\log_2m)^2$ gates realizing $P_{k,t}$."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b51558-51635","from_record":false,"lean":true,"lines":[370,373],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_probability","origin":"ai","part":0,"phrase":"exp-6-fixed-cell-after-decoding","plain":"Verifier acceptance is averaged over the fresh address measurement","record":null,"relation":"states","role":"explanation","rows":[{"end_line":373,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":370,"lines":[370,373],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_probability","note":"","plain":"Verifier acceptance is averaged over the fresh address measurement","relation":"states","annotation":"The acceptance probability of verifying column $i$ is the sum, over cell addresses $s$, of the decoder’s probability of selecting $s$ times the subsequent fixed-cell checker’s acceptance probability."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b51636-51958","from_record":false,"lean":true,"lines":[129,129],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.TestIndex","origin":"ai","part":0,"phrase":"exp-6-five-test-kinds","plain":"The indices of all certificate checks","record":null,"relation":"defines","role":"definition","rows":[{"end_line":129,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":129,"lines":[129,129],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.TestIndex","note":"","plain":"The indices of all certificate checks","relation":"defines","annotation":"A test index selects a column-string position, a pointer destination, or a particular transcript together with either a gate index or one of its two output checks."},{"end_line":155,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":143,"lines":[143,155],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTest","note":"","plain":"Tests for the column, pointers, gate equations and circuit outputs","relation":"defines","annotation":"For a fixed board, column, and candidate cell, the five kinds of local check ask for a one in the column string, a zero at a pointer destination, a consistent gate equation, domain output one, or value output equal to the matching address digit."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b51976-52011","from_record":false,"lean":true,"lines":[132,133],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.card_testIndex","origin":"ai","part":0,"phrase":"exp-6-count-of-tests","plain":"The exact number of certificate checks","record":null,"relation":"part","role":"derivation","rows":[{"end_line":134,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":132,"lines":[132,133],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.card_testIndex","note":"Counts each test type exactly.","plain":"The exact number of certificate checks","proof_lines":[134,134],"relation":"part","annotation":"For arbitrary column bit length $2^\\ell$, address length $r$, and circuit size $S$, the number of test indices is $2^\\ell+(2^\\ell-1)+r(S+2)$."},{"end_line":164,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":139,"lines":[139,142],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_K_bound","note":"Uses the circuit-size hypothesis to give the cubic logarithmic bound.","plain":"Circuit size Oₖ(m log²m) gives Oₖ(m log³m) certificate tests","proof_lines":[143,164],"relation":"part","annotation":"After rewriting with `construction_K_count`, the proof multiplies the circuit-size bound by $40t=20(2t)$, one factor for the address inputs of each cell. The extra $2t$ supplies the third power of the base-two logarithm."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b52019-52126","from_record":false,"lean":true,"lines":[219,230],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTestTree_depth_le","origin":"ai","part":0,"phrase":"exp-6-local-test-query-cost","plain":"Each local test uses at most max(3,ℓ+1) input queries","record":null,"relation":"proof","role":"statement","rows":[{"end_line":230,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":219,"lines":[219,230],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTestTree_depth_le","note":"The case analysis proves the sharper separate bounds before taking their maximum.","plain":"Each local test uses at most max(3,ℓ+1) input queries","proof_lines":[221,230],"relation":"proof","annotation":"For any circuit, selected column, cell, and test index, a decision tree evaluates that test with depth at most $\\max(3,\\ell+1)$."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b52127-52217","from_record":false,"lean":true,"lines":[68,70],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.testLaw_fail","origin":"ai","part":0,"phrase":"exp-6-uniform-test-failure","plain":"Uniform sampling detects a failing test with probability at least 1/K","record":null,"relation":"states","role":"statement","rows":[{"end_line":81,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":68,"lines":[68,70],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.testLaw_fail","note":"","plain":"Uniform sampling detects a failing test with probability at least 1/K","proof_lines":[71,81],"relation":"states","annotation":"The law records a failed test index and uses a separate outcome for success."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b52303-52415","from_record":false,"lean":true,"lines":[344,350],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_fixedAddress","origin":"ai","part":0,"phrase":"exp-6-search-finds-failure","plain":"At a fixed address, passing every test gives certain acceptance","record":null,"relation":"part","role":"statement","rows":[{"end_line":351,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":344,"lines":[344,350],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_fixedAddress","note":"","plain":"At a fixed address, passing every test gives certain acceptance","proof_lines":[351,351],"relation":"part","annotation":"Fix a column and one cell, and choose any positive error parameter $\\varepsilon$."},{"end_line":456,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":433,"lines":[433,436],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_search_query_bound","note":"","plain":"Finding a failed test costs O(ℓ√K log(1/ε)) bit queries","proof_lines":[437,456],"relation":"part","annotation":"The proof instantiates the amplification threshold at $1/K$. `testCost t` converts the resulting test-evaluation bound to physical reads at the fixed address."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b52417-52530","from_record":false,"lean":true,"lines":[344,350],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_fixedAddress","origin":"ai","part":0,"phrase":"exp-6-one-sided-verification","plain":"At a fixed address, passing every test gives certain acceptance","record":null,"relation":"contains","role":"statement","rows":[{"end_line":351,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":344,"lines":[344,350],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_fixedAddress","note":"","plain":"At a fixed address, passing every test gives certain acceptance","proof_lines":[351,351],"relation":"contains","annotation":"Fix a column and one cell, and choose any positive error parameter $\\varepsilon$."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b52611-52731","from_record":false,"lean":true,"lines":[110,118],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_local_dichotomy","origin":"ai","part":0,"phrase":"exp-6-nonwinner-at-every-cell","plain":"A column wins exactly when it has a cell passing every test","record":null,"relation":"contains","role":"statement","rows":[{"end_line":126,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":110,"lines":[110,118],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_local_dichotomy","note":"","plain":"A column wins exactly when it has a cell passing every test","proof_lines":[119,126],"relation":"contains","annotation":"Under `hC : CircuitRealises C f`, the nonwinner clause has `∀ s` before `∃ e`. An off-promise decoder can return any address $s$, and the verifier still has a failed test at that address."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b52736-52815","from_record":false,"lean":true,"lines":[539,549],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumError_bound","origin":"ai","part":0,"phrase":"exp-6-false-board-error","plain":"False acceptance ≤ Tε and false rejection ≤ 2m/2ᵀ + (T+1)ε","record":null,"relation":"contains","role":"statement","rows":[{"end_line":585,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":539,"lines":[539,549],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumError_bound","note":"","plain":"False acceptance ≤ Tε and false rejection ≤ 2m/2ᵀ + (T+1)ε","proof_lines":[550,585],"relation":"contains","annotation":"For $k,t\\ge1$, a circuit realizing the address function, and enough decoding trials (`hk`, `ht`, `hC`, `hn`), an actual board algorithm has false-board acceptance at most $T\\varepsilon$ and true-board rejection at most $2m/2^T+T\\varepsilon+\\varepsilon$."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b52817-53066","from_record":false,"lean":true,"lines":[287,303],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament","origin":"ai","part":0,"phrase":"exp-6-true-board-error-sources","plain":"A short quantum list contains the winning column","record":"quartic.proposition-3","relation":"part","role":"statement","rows":[{"end_line":307,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The list-omission contribution is bounded by $2m/2^T + T\\varepsilon$, retaining the sharper symbolic term before the paper bounds it by $1/500$.","fidelity_source":"ai","line":287,"lines":[287,303],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament","note":"Supplies a single actual list law with its dominant-column inclusion guarantee.","plain":"A short quantum list contains the winning column","proof_lines":[304,307],"relation":"part","annotation":"The list-omission contribution is bounded by $2m/2^T + T\\varepsilon$, retaining the sharper symbolic term before the paper bounds it by $1/500$ (Section 4.3). Assuming `hm : 2 ≤ Fintype.card Col`, complementary comparisons `hc` and coherent comparison samplers `hcmp`, it includes each dominant candidate with probability at least $1-2m/2^T-T\\varepsilon$.","annotation_references":[{"start":145,"end":156,"key":"section:4.3"}]},{"end_line":585,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":539,"lines":[539,549],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumError_bound","note":"Combines tournament-list omission with final address-decoding error; a correct winning certificate is accepted surely.","plain":"False acceptance ≤ Tε and false rejection ≤ 2m/2ᵀ + (T+1)ε","proof_lines":[550,585],"relation":"part","annotation":"For $k,t\\ge1$, a circuit realizing the address function, and enough decoding trials (`hk`, `ht`, `hC`, `hn`), an actual board algorithm has false-board acceptance at most $T\\varepsilon$ and true-board rejection at most $2m/2^T+T\\varepsilon+\\varepsilon$."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b53067-53112","from_record":false,"lean":true,"lines":[588,590],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumError_numeric","origin":"ai","part":0,"phrase":"exp-6-final-error-bound","plain":"The chosen parameters keep total error below one third","record":null,"relation":"states","role":"statement","rows":[{"end_line":591,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":588,"lines":[588,590],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumError_numeric","note":"","plain":"The chosen parameters keep total error below one third","proof_lines":[591,591],"relation":"states","annotation":"For at least two columns, the construction’s choices of the list length $T$ and small error parameter make $T\\varepsilon=1/1000$ and the complete true-board error expression $2m/2^T+T\\varepsilon+\\varepsilon$ strictly less than $1/3$."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-6","at":"b53629-53665","from_record":false,"lean":true,"lines":[278,280],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.Q_Fkm_le","origin":"ai","part":0,"phrase":"exp-6-final-quantum-bound","plain":"Quantum query cost Oₖ(√m log⁶m) for the Forrelation board","record":null,"relation":"states","role":"statement","rows":[{"end_line":284,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":278,"lines":[278,280],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.Q_Fkm_le","note":"","plain":"Quantum query cost Oₖ(√m log⁶m) for the Forrelation board","proof_lines":[281,284],"relation":"states","annotation":"The conclusion bounds the total function built from `forrCircuit l t`. Its right side is `budgetConst (l + 1)` times $2^t(2t)^6$ for every $t\\ge1$."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-7","at":"b54116-54156","from_record":false,"lean":true,"lines":[309,309],"module":"QuarticQuery.Statement","name":"QuarticQuery.Lvalue","origin":"ai","part":0,"phrase":"exp-7-L","plain":"Reads allowed before a column is heavy","record":null,"relation":"defines","role":"definition","rows":[{"end_line":311,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":309,"lines":[309,309],"module":"QuarticQuery.Statement","name":"QuarticQuery.Lvalue","note":"","plain":"Reads allowed before a column is heavy","relation":"defines","annotation":"The integer allowance $L=\\lfloor m^{1-1/k}/(\\log_2m)^2\\rfloor$ used in the classical lower bound."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7","at":"b54577-54833","from_record":false,"lean":true,"lines":[465,474],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_23_randomized","origin":"ai","part":0,"phrase":"exp-7-disagreement-bound","plain":"The same three-term acceptance-gap bound holds for bounded randomized programs","record":null,"relation":"part","role":"statement","rows":[{"end_line":510,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The exposition bounds the coupled event that the two runs differ. Lean bounds only the absolute difference of their output-one probabilities, which can be smaller; its type also states the hard-distribution and $L\\ge 1$ premises explicitly.","fidelity_source":"ai","line":465,"lines":[465,474],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_23_randomized","note":"Acceptance-probability gap; the coupled disagreement bound requires the separate event estimates.","plain":"The same three-term acceptance-gap bound holds for bounded randomized programs","proof_lines":[475,510],"relation":"part","annotation":"The left side is an absolute difference of acceptance probabilities. For $L\\ge1$ and a normalized hard law supported on the promise, the proof averages the deterministic estimate over `P.weight` with the same depth cap $G$ on every seed."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7","at":"b55792-55846","from_record":false,"lean":true,"lines":[479,482],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.discrepancy_parameters","origin":"ai","part":0,"phrase":"exp-7-small-discrepancy","plain":"The three distinguishing terms total at most 6/100","record":null,"relation":"states","role":"statement","rows":[{"end_line":487,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The Lean theorem supplies this inequality for $k\\ge 2$ and $t\\ge 8$, with $m=4^t$ and the defined $L$ and $G$. The preview sentence does not yet state that threshold.","fidelity_source":"ai","line":479,"lines":[479,482],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.discrepancy_parameters","note":"","plain":"The three distinguishing terms total at most 6/100","proof_lines":[483,487],"relation":"states","annotation":"The Lean theorem supplies this inequality for $k\\ge 2$ and $t\\ge 8$, with $m=4^t$ and the defined $L$ and $G$. The preview sentence does not yet state that threshold."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.1","at":"b57112-57214","from_record":false,"lean":true,"lines":[29,30],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.dummyAvg","origin":"ai","part":0,"phrase":"exp-7-zero-sampling","plain":"Independent zero positions and address strings","record":null,"relation":"defines","role":"definition","rows":[{"end_line":31,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":29,"lines":[29,30],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.dummyAvg","note":"The product of uniform zero positions, interpreted through the first-board constructor.","plain":"Independent zero positions and address strings","relation":"defines","annotation":"The distribution of the first board, written as an expectation. The two products `prodW (prodW μ)` choose all address strings, while `prodW (unif ℓ)` chooses the zero positions."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.1","at":"b57215-57336","from_record":false,"lean":true,"lines":[29,30],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.dummyAvg","origin":"ai","part":0,"phrase":"exp-7-address-sampling","plain":"Independent zero positions and address strings","record":null,"relation":"defines","role":"definition","rows":[{"end_line":31,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":29,"lines":[29,30],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.dummyAvg","note":"Independent address strings use the nested product weight.","plain":"Independent zero positions and address strings","relation":"defines","annotation":"The distribution of the first board, written as an expectation. The two products `prodW (prodW μ)` choose all address strings, while `prodW (unif ℓ)` chooses the zero positions."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.1","at":"b57385-57443","from_record":false,"lean":true,"lines":[50,54],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.dummy","origin":"ai","part":0,"phrase":"exp-7-blank-cells","plain":"One zero per column and blank cells","record":null,"relation":"defines","role":"definition","rows":[{"end_line":54,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":50,"lines":[50,54],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.dummy","note":"","plain":"One zero per column and blank cells","relation":"defines","annotation":"The first board determined by zero positions $J$ and address data $A$."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.1","at":"b57474-57559","from_record":false,"lean":true,"lines":[142,145],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.dummy_update_of_aTarget_none","origin":"ai","part":0,"phrase":"exp-7-blank-replies","plain":"Changing target strings leaves every other reply unchanged","record":null,"relation":"states","role":"derivation","rows":[{"end_line":152,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean proves that replacing the target strings leaves every non-target location unchanged, including column-string bits and other columns as well as cell bits.","fidelity_source":"ai","line":142,"lines":[142,145],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.dummy_update_of_aTarget_none","note":"","plain":"Changing target strings leaves every other reply unchanged","proof_lines":[146,152],"relation":"states","annotation":"Lean proves that replacing the target strings leaves every non-target location unchanged, including column-string bits and other columns as well as cell bits. The hypothesis `h : aTarget I q = none` says precisely that location $q$ is outside the target strings."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.1","at":"b57560-57618","from_record":false,"lean":true,"lines":[97,98],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.addressedF_dummy","origin":"ai","part":0,"phrase":"exp-7-dummy-value","plain":"The board with one zero per column loses","record":null,"relation":"states","role":"statement","rows":[{"end_line":102,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":97,"lines":[97,98],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.addressedF_dummy","note":"","plain":"The board with one zero per column loses","proof_lines":[99,102],"relation":"states","annotation":"The first board has function value zero, for every choice of zero positions and address strings."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.1","at":"b57619-57701","from_record":false,"lean":true,"lines":[27,28],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.coupledAvg","origin":"ai","part":0,"phrase":"exp-7-independent-column","plain":"Choose the planted column independently","record":null,"relation":"defines","role":"definition","rows":[{"end_line":29,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":27,"lines":[27,28],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.coupledAvg","note":"","plain":"Choose the planted column independently","relation":"defines","annotation":"The joint experiment for the two boards. In Lean, the final `avg (unif ℓ)` is the average over $I$."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.1","at":"b57702-57879","from_record":false,"lean":true,"lines":[58,66],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.planted","origin":"ai","part":0,"phrase":"exp-7-plant-construction","plain":"Erase one column’s zero and fill its true-address certificate","record":null,"relation":"defines","role":"definition","rows":[{"end_line":66,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":58,"lines":[58,66],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.planted","note":"The transcript argument is chosen correct; the constructor itself accepts arbitrary transcript bits.","plain":"Erase one column’s zero and fill its true-address certificate","relation":"defines","annotation":"The second board agrees with the first except in the chosen column $I$: its column string becomes all ones, and its true-address cell receives transcripts `tr` and pointers to the zeros of the other columns. Off the promise, `trueAddr` uses false as a default, so winning also needs promised target strings."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.1","at":"b57880-57910","from_record":false,"lean":true,"lines":[106,109],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.addressedF_planted","origin":"ai","part":0,"phrase":"exp-7-planted-value","plain":"Correctly planting a certificate makes the board win","record":null,"relation":"states","role":"statement","rows":[{"end_line":128,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":106,"lines":[106,109],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.addressedF_planted","note":"","plain":"Correctly planting a certificate makes the board win","proof_lines":[110,128],"relation":"states","annotation":"The planted board has value one when the target column’s address strings are promised and its stored gate outputs are correct."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.1","at":"b58099-58253","from_record":false,"lean":true,"lines":[44,44],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree","origin":"ai","part":0,"phrase":"exp-7-decision-tree","plain":"A classical algorithm after its coins are fixed","record":null,"relation":"defines","role":"definition","rows":[{"end_line":46,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":44,"lines":[44,44],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree","note":"","plain":"A classical algorithm after its coins are fixed","relation":"defines","annotation":"A deterministic decision tree for reading bits."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.1","at":"b58376-58502","from_record":false,"lean":true,"lines":[43,44],"module":"QuarticQuery.LowerBound.Planted.Coupling","name":"QuarticQuery.QueryTree.exists_mem_path_ne","origin":"ai","part":0,"phrase":"exp-7-first-difference","plain":"Different outputs require reading a changed bit","record":null,"relation":"states","role":"statement","rows":[{"end_line":55,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":43,"lines":[43,44],"module":"QuarticQuery.LowerBound.Planted.Coupling","name":"QuarticQuery.QueryTree.exists_mem_path_ne","note":"","plain":"Different outputs require reading a changed bit","proof_lines":[45,55],"relation":"states","annotation":"The hypothesis `h : T.eval x ≠ T.eval y` is the output disagreement. `T.path x` lists the actual queries on the first input."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.1","at":"b58504-58562","from_record":false,"lean":true,"lines":[70,73],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.eq_of_dummy_ne_planted","origin":"ai","part":0,"phrase":"exp-7-changed-locations","plain":"Only the erased zero or planted cell can change","record":null,"relation":"states","role":"statement","rows":[{"end_line":92,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":70,"lines":[70,73],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.eq_of_dummy_ne_planted","note":"","plain":"Only the erased zero or planted cell can change","proof_lines":[74,92],"relation":"states","annotation":"The hypothesis `h` is the inequality of the two replies at the queried location $q$."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.1","at":"b58637-58762","from_record":false,"lean":true,"lines":[142,164],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.output_gap_abs_le_unsplit","origin":"ai","part":0,"phrase":"exp-7-cell-overcount","plain":"Charge an output change to a zero or cell visit","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":164,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":142,"lines":[142,164],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.output_gap_abs_le_unsplit","note":"","plain":"Charge an output change to a zero or cell visit","proof_lines":[147,164],"relation":"proof","annotation":"For a fixed tree and a fixed pair of boards, the indicator of different Boolean outputs is at most the indicator of finding the erased zero plus the indicator of visiting the planted cell."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.2","at":"b59552-59630","from_record":false,"lean":true,"lines":[182,183],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.discoveredZeros","origin":"ai","part":0,"phrase":"exp-7-Z","plain":"Count columns whose zero is read during the dummy run","record":null,"relation":"defines","role":"definition","rows":[{"end_line":185,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":182,"lines":[182,183],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.discoveredZeros","note":"","plain":"Count columns whose zero is read during the dummy run","relation":"defines","annotation":"All adaptive choices are already incorporated in `T.path (dummy J A)`, the full list of locations queried on this particular board."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.2","at":"b59631-59762","from_record":false,"lean":true,"lines":[189,191],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.discoveredZeros_cast","origin":"ai","part":0,"phrase":"exp-7-uniform-hit-count","plain":"Count discovered columns by adding their indicators","record":null,"relation":"part","role":"derivation","rows":[{"end_line":195,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":189,"lines":[189,191],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.discoveredZeros_cast","note":"The discovery count is the sum of the per-column indicators.","plain":"Count discovered columns by adding their indicators","proof_lines":[192,195],"relation":"part","annotation":"`foundZero` is zero or one, and the cast `: ℝ` lets the integer count be used in a probability calculation."},{"end_line":154,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":152,"lines":[152,153],"module":"QuarticQuery.LowerBound.Planted.ZeroSearch","name":"QuarticQuery.avg_unif","note":"For the fixed run, average those indicators over the independent uniform column.","plain":"Uniform averaging divides the sum by the number of columns","proof_lines":[154,154],"relation":"part","annotation":"An average over the $m=2^\\ell$ equally likely columns is the sum of the column values divided by $m$. This identity holds for any real-valued function `g`. Taking `g` to be the indicator of a discovered zero gives the conditional fraction $Z/m$ once the board and run are fixed."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.2","at":"b59768-59813","from_record":false,"lean":true,"lines":[206,209],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.erasedZero_eq_expectedZeros_div","origin":"ai","part":0,"phrase":"exp-7-erased-zero-identity","plain":"Erased-zero hit probability equals E[Z]/m","record":null,"relation":"states","role":"statement","rows":[{"end_line":211,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":206,"lines":[206,209],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.erasedZero_eq_expectedZeros_div","note":"","plain":"Erased-zero hit probability equals E[Z]/m","proof_lines":[210,211],"relation":"states","annotation":"The probability of reading the erased zero is $\\mathbb E[Z]/m$. Lean expresses the left side through `coupledAvg` and the right side through `expectedZeros`."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.2","at":"b60591-60718","from_record":false,"lean":true,"lines":[252,257],"module":"QuarticQuery.Paper.ClassicalUniformZero","name":"QuarticQuery.Paper.uniform_zero_given_transcript","origin":"ai","part":0,"phrase":"exp-7-unseen-uniform","plain":"An unseen zero is uniform among unread rows","record":null,"relation":"states","role":"statement","rows":[{"end_line":271,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":252,"lines":[252,257],"module":"QuarticQuery.Paper.ClassicalUniformZero","name":"QuarticQuery.Paper.uniform_zero_given_transcript","note":"","plain":"An unseen zero is uniform among unread rows","proof_lines":[258,271],"relation":"states","annotation":"The assumptions `hτ : NoZeroSeen i τ` and `hpos : 0 < dummyTraceMass μ T τ` state these two requirements."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.2","at":"b60719-60823","from_record":false,"lean":true,"lines":[102,106],"module":"QuarticQuery.Paper.ClassicalUniformZero","name":"QuarticQuery.Paper.observedPrefix_dummy_fiber","origin":"ai","part":0,"phrase":"exp-7-unseen-move","plain":"Moving an unseen zero preserves the observed history","record":null,"relation":"states","role":"derivation","rows":[{"end_line":134,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":102,"lines":[102,106],"module":"QuarticQuery.Paper.ClassicalUniformZero","name":"QuarticQuery.Paper.observedPrefix_dummy_fiber","note":"","plain":"Moving an unseen zero preserves the observed history","proof_lines":[107,134],"relation":"states","annotation":"A history containing no zero reply from column $i$ is compatible with placing its zero at row $j$ exactly when $j$ is unread and the same history is compatible with an all-one reference column. The hypothesis `hτ : NoZeroSeen i τ` is essential."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.2","at":"b61261-61287","from_record":false,"lean":true,"lines":[240,243],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.expectedZeros_le_four","origin":"ai","part":0,"phrase":"exp-7-expected-zeros","plain":"At most four G over m zeros are found on average","record":null,"relation":"states","role":"statement","rows":[{"end_line":247,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":240,"lines":[240,243],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.expectedZeros_le_four","note":"","plain":"At most four G over m zeros are found on average","proof_lines":[244,247],"relation":"states","annotation":"The hypotheses `hμ` and `hμ1` make the address-data weights a probability distribution, and `hT` bounds the tree’s depth."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.2","at":"b61293-61355","from_record":false,"lean":true,"lines":[250,254],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_19","origin":"ai","part":0,"phrase":"exp-7-erased-zero-bound","plain":"Erased-zero hit probability ≤4G/m² within G dummy queries","record":null,"relation":"states","role":"statement","rows":[{"end_line":258,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":250,"lines":[250,254],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_19","note":"","plain":"Erased-zero hit probability ≤4G/m² within G dummy queries","proof_lines":[255,258],"relation":"states","annotation":"The board uses normalized nonnegative address-data weights (`hμ`, `hμ1`), and the planted column is independently uniform."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b62035-62131","from_record":false,"lean":true,"lines":[124,124],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.cellGuess","origin":"ai","part":0,"phrase":"exp-7-query-index","plain":"A cell query names an address before its reply","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":127,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":124,"lines":[124,124],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.cellGuess","note":"","plain":"A cell query names an address before its reply","relation":"defines","annotation":"The address already present in a proposed cell-query location. For a fixed target column $I$, `cellGuess I q` returns the cell label if $q$ names a pointer or transcript bit in that column, and returns `none` otherwise."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b62568-62675","from_record":false,"lean":true,"lines":[22,22],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.aQueries","origin":"ai","part":0,"phrase":"exp-7-address-count","plain":"Count all reads of a column’s address strings","record":null,"relation":"defines","role":"definition","rows":[{"end_line":23,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":22,"lines":[22,22],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.aQueries","note":"Apply the count to the complete first-board path; repeated reads count.","plain":"Count all reads of a column’s address strings","relation":"defines","annotation":"The number of queries in a supplied list that read the address strings of column $i$. Repeated reads do contribute, because `countP` counts list occurrences."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b62676-62760","from_record":false,"lean":true,"lines":[262,263],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.HeavyColumn","origin":"ai","part":0,"phrase":"exp-7-heavy-definition","plain":"A column is heavy after more than L address-string reads","record":null,"relation":"defines","role":"definition","rows":[{"end_line":264,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":262,"lines":[262,263],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.HeavyColumn","note":"","plain":"A column is heavy after more than L address-string reads","relation":"defines","annotation":"`aQueries` counts reads of the column’s address inputs along the whole dummy path, including repeats. A column can cross the threshold $L$ after the query being analyzed."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b62761-62852","from_record":false,"lean":true,"lines":[26,26],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.sum_aQueries_le","origin":"ai","part":0,"phrase":"exp-7-heavy-counting","plain":"Address reads across columns cannot exceed all reads","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":38,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":26,"lines":[26,26],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.sum_aQueries_le","note":"Summing disjoint address-read charges gives the run’s total budget.","plain":"Address reads across columns cannot exceed all reads","proof_lines":[27,38],"relation":"proof","annotation":"The sum of the address-read counts over all columns is at most the length of the query list."},{"end_line":65,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":42,"lines":[46,58],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.avg_heavy_le","note":"","plain":"A uniform column is heavy with probability ≤G/(mL)","proof_lines":[45,65],"relation":"proof","annotation":"`hcount` charges $L$ per heavy column and bounds the total charge by the sum of `aQueries` over columns. `sum_aQueries_le` bounds that sum by the length of the run."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b62858-62935","from_record":false,"lean":true,"lines":[42,44],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.avg_heavy_le","origin":"ai","part":0,"phrase":"exp-7-heavy-probability","plain":"A uniform column is heavy with probability ≤G/(mL)","record":null,"relation":"states","role":"statement","rows":[{"end_line":65,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":42,"lines":[42,44],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.avg_heavy_le","note":"","plain":"A uniform column is heavy with probability ≤G/(mL)","proof_lines":[45,65],"relation":"states","annotation":"The proof uses `avg_unif` to divide the count of heavy columns by $m=2^\\ell$. The positive budget `hL : 1 ≤ L` permits the remaining division by $L$."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b63129-63197","from_record":false,"lean":true,"lines":[339,339],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.one_le_Lvalue","origin":"ai","part":0,"phrase":"exp-7-L-positive","plain":"The Forrelation query cutoff is at least one when k≥2 and t≥8","record":null,"relation":"states","role":"statement","rows":[{"end_line":342,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":339,"lines":[339,339],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.one_le_Lvalue","note":"","plain":"The Forrelation query cutoff is at least one when k≥2 and t≥8","proof_lines":[340,342],"relation":"states","annotation":"The allowance $L$ is at least one whenever $k\\ge2$ and $m=4^t$ with $t\\ge8$."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b63202-63243","from_record":false,"lean":true,"lines":[525,525],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.bansalSinhaLower","origin":"ai","part":0,"phrase":"exp-7-forrelation-hardness","plain":"For fixed k≥2, Forrelation eventually needs more than L randomized queries","record":null,"relation":"states","role":"statement","rows":[{"end_line":562,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":525,"lines":[525,525],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.bansalSinhaLower","note":"For the exact promise problem, each fixed $k$ has its own eventual threshold.","plain":"For fixed k≥2, Forrelation eventually needs more than L randomized queries","proof_lines":[526,562],"relation":"states","annotation":"For each fixed $k\\ge2$, there is a threshold $t_0$ such that $R(P_{k,4^t})>L$ for all $t\\ge t_0$. The conclusion is the predicate `BansalSinhaLower`, whose definition fixes this quantifier order and the exact promise problem."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b63368-63487","from_record":false,"lean":true,"lines":[299,299],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.lt_R_iff","origin":"ai","part":0,"phrase":"exp-7-hardness-meaning","plain":"A bound t<R(f) means every budget at most t fails","record":null,"relation":"states","role":"derivation","rows":[{"end_line":305,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":299,"lines":[299,299],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.lt_R_iff","note":"","plain":"A bound t<R(f) means every budget at most t fails","proof_lines":[300,305],"relation":"states","annotation":"The strict lower bound $t<R(f)$ is equivalent to failure of every randomized query budget $s\\le t$. Here `¬ RLe f s` means that no randomized program of that depth succeeds with probability at least $2/3$ on every promised input."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b63488-63660","from_record":false,"lean":true,"lines":[138,140],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.exists_hard_distribution","origin":"ai","part":0,"phrase":"exp-7-hard-distribution","plain":"One promise distribution bounds every L-query tree’s success by 2/3","record":null,"relation":"states","role":"statement","rows":[{"end_line":175,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The lemma derives the same hard distribution from `¬RLe f L` for every natural $L$, including $L=0$; the paragraph has already assumed $L\\ge 1$.","fidelity_source":"ai","line":138,"lines":[138,140],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.exists_hard_distribution","note":"","plain":"One promise distribution bounds every L-query tree’s success by 2/3","proof_lines":[141,175],"relation":"states","annotation":"The lemma derives the same hard distribution from `¬RLe f L` for every natural $L$, including $L=0$. The paragraph has already assumed $L\\ge 1$."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b63938-64114","from_record":false,"lean":true,"lines":[274,276],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.addressSimulator","origin":"ai","part":0,"phrase":"exp-7-predictor","plain":"Replay with capped address reads to predict a cell address","record":null,"relation":"defines","role":"definition","rows":[{"end_line":277,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":274,"lines":[274,276],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.addressSimulator","note":"","plain":"Replay with capped address reads to predict a cell address","relation":"defines","annotation":"The predictor for a fixed target column and proposed query time. At time `t`, it extracts the proposed cell label without reading that cell."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b64115-64186","from_record":false,"lean":true,"lines":[27,28],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.coupledAvg","origin":"ai","part":0,"phrase":"exp-7-generated-data","plain":"Choose the planted column independently","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":29,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":27,"lines":[27,28],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.coupledAvg","note":"The target tuple is independent of all other first-board data in this product experiment.","plain":"Choose the planted column independently","relation":"defines","annotation":"The joint experiment for the two boards. In Lean, the final `avg (unif ℓ)` is the average over $I$."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b64244-64437","from_record":false,"lean":true,"lines":[32,45],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.simTree","origin":"ai","part":0,"phrase":"exp-7-predictor-abort","plain":"Stop before an unaffordable target read","record":null,"relation":"defines","role":"definition","rows":[{"end_line":45,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":32,"lines":[32,45],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.simTree","note":"","plain":"Stop before an unaffordable target read","relation":"defines","annotation":"A replay tree with two separate counters: `t` counts original queries still to replay, and `c` counts target reads still allowed. An outside-target query uses the supplied `base` reply without spending target budget (worked example in Appendix B.2).","annotation_references":[{"start":235,"end":247,"key":"appendix:b.2"}]}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b64488-64678","from_record":false,"lean":true,"lines":[274,276],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.addressSimulator","origin":"ai","part":0,"phrase":"exp-7-predictor-output","plain":"Replay with capped address reads to predict a cell address","record":null,"relation":"defines","role":"definition","rows":[{"end_line":277,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":274,"lines":[274,276],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.addressSimulator","note":"","plain":"Replay with capped address reads to predict a cell address","relation":"defines","annotation":"The predictor for a fixed target column and proposed query time. Although its base argument includes `A`, only non-target replies use that base. Target replies come from the predictor’s input."},{"end_line":45,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":32,"lines":[32,35],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.simTree","note":"","plain":"Stop before an unaffordable target read","relation":"defines","annotation":"A replay tree with two separate counters: `t` counts original queries still to replay, and `c` counts target reads still allowed. An outside-target query uses the supplied `base` reply without spending target budget."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b64766-64947","from_record":false,"lean":true,"lines":[76,81],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.eval_simTree","origin":"ai","part":0,"phrase":"exp-7-replay-correctness","plain":"Replay preserves the proposed address while the cap is respected","record":null,"relation":"states","role":"statement","rows":[{"end_line":115,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean needs only a cap on target reads in the prefix before query $j$, rather than lightness over the entire run. Its explicit replay-consistency premises are supplied by the first-board construction.","fidelity_source":"ai","line":76,"lines":[76,81],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.eval_simTree","note":"","plain":"Replay preserves the proposed address while the cap is respected","proof_lines":[82,115],"relation":"states","annotation":"The cap premise `hc` counts target reads in `(T.path x).take t`, before the prescribed query. `hbase` supplies all outside answers, and `hV` identifies the target reads with the unknown input."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b64948-65072","from_record":false,"lean":true,"lines":[305,337],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.avg_reachedCellAt_le","origin":"ai","part":0,"phrase":"exp-7-joint-event-domination","plain":"A light true-cell visit at one time is bounded by address-guessing success","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":338,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":295,"lines":[305,337],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.avg_reachedCellAt_le","note":"","plain":"A light true-cell visit at one time is bounded by address-guessing success","proof_lines":[302,338],"relation":"proof","annotation":"With all other board data fixed, the probability that the target column is light and its true cell is proposed at time `t` is at most the bound `ρ` for every separately capped address predictor. `hμ` gives nonnegative weights, `hdom` supplies promise support, and `hguess` supplies the predictor bound."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b66066-66237","from_record":false,"lean":true,"lines":[179,183],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.address_guess_le","origin":"ai","part":0,"phrase":"exp-7-product-bound","plain":"Whole-address success is at most (2/3)ʳ with L queries per string","record":null,"relation":"states","role":"statement","rows":[{"end_line":184,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":179,"lines":[179,183],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.address_guess_le","note":"","plain":"Whole-address success is at most (2/3)ʳ with L queries per string","proof_lines":[184,184],"relation":"states","annotation":"The hypothesis `hard` bounds every single-string tree of depth at most $L$ by $2/3$, while `hT : T.capped fun _ => L` enforces every separate cap on every branch."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b66238-66298","from_record":false,"lean":true,"lines":[281,283],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.addressSimulator_depth_le","origin":"ai","part":0,"phrase":"exp-7-total-cap","plain":"At most L predictor reads across all target strings","record":null,"relation":"states","role":"statement","rows":[{"end_line":283,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":281,"lines":[281,283],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.addressSimulator_depth_le","note":"","plain":"At most L predictor reads across all target strings","relation":"states","annotation":"The predictor’s total number of target reads is at most $L$ on every branch."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b66300-66332","from_record":false,"lean":true,"lines":[196,197],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.OutTree.capped_of_depth_le","origin":"ai","part":0,"phrase":"exp-7-total-implies-separate","plain":"A total read cap implies every separate read cap","record":null,"relation":"states","role":"derivation","rows":[{"end_line":209,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":196,"lines":[196,197],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.OutTree.capped_of_depth_le","note":"","plain":"A total read cap implies every separate read cap","proof_lines":[198,209],"relation":"states","annotation":"A tree with at most $n$ queries in total obeys any per-string allowance of at least $n$. The hypotheses are `hT : T.depth ≤ n` and `hc : ∀ j, n ≤ c j`."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b66446-66616","from_record":false,"lean":true,"lines":[275,284],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_product_law","origin":"ai","part":0,"phrase":"exp-7-transcript-factorization","plain":"Conditioning on a possible history preserves product form","record":null,"relation":"states","role":"statement","rows":[{"end_line":301,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":275,"lines":[275,284],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_product_law","note":"The conditional statement is for histories of positive probability.","plain":"Conditioning on a possible history preserves product form","proof_lines":[285,301],"relation":"states","annotation":"`hm` gives a positive prefix mass, which forces the recorded schedule to be consistent with `T`. Only the coordinate-wise answer restrictions then remain in the product on the right."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b66617-66819","from_record":false,"lean":true,"lines":[439,447],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_16_transcript","origin":"ai","part":0,"phrase":"exp-7-one-step-value","plain":"The expected best value cannot rise after one allowed query","record":null,"relation":"states","role":"derivation","rows":[{"end_line":453,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":439,"lines":[439,447],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_16_transcript","note":"","plain":"The expected best value cannot rise after one allowed query","proof_lines":[448,453],"relation":"states","annotation":"The hypothesis `hc : classicalQueriesTo τ h < L` says a query remains. `hμ` gives nonnegative weights."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b67795-67932","from_record":false,"lean":true,"lines":[172,178],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.avg_reachedCell_le","origin":"ai","part":0,"phrase":"exp-7-time-union","plain":"Light true-cell hits over G query times have probability ≤Gρ","record":null,"relation":"states","role":"statement","rows":[{"end_line":232,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":172,"lines":[172,178],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.avg_reachedCell_le","note":"Instantiate $\\rho$ with the separate-cap bound $(2/3)^r$; outside board data are fixed in this theorem.","plain":"Light true-cell hits over G query times have probability ≤Gρ","proof_lines":[179,232],"relation":"states","annotation":"With the outside data fixed, the probability of visiting the true cell while the target column is light is at most $G\\rho$, provided every separately capped predictor succeeds with probability at most $\\rho$. The premise `hT : T.depth ≤ G` bounds the number of proposed query times."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.3","at":"b68042-68089","from_record":false,"lean":true,"lines":[429,430],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.twoThirds_pow_le","origin":"ai","part":0,"phrase":"exp-7-tail","plain":"Guessing 40t address bits contributes at most m⁻¹⁰","record":null,"relation":"states","role":"statement","rows":[{"end_line":439,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":429,"lines":[429,430],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.twoThirds_pow_le","note":"","plain":"Guessing 40t address bits contributes at most m⁻¹⁰","proof_lines":[431,439],"relation":"states","annotation":"For $m=4^t$ and $r=40t=20\\log_2m$, the product probability satisfies $(2/3)^r\\le m^{-10}$."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.4","at":"b68468-68476","from_record":false,"lean":true,"lines":[250,254],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_19","origin":"ai","part":0,"phrase":"exp-7-table-erased","plain":"Erased-zero hit probability ≤4G/m² within G dummy queries","record":null,"relation":"states","role":"statement","rows":[{"end_line":258,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":250,"lines":[250,254],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_19","note":"","plain":"Erased-zero hit probability ≤4G/m² within G dummy queries","proof_lines":[255,258],"relation":"states","annotation":"The board uses normalized nonnegative address-data weights (`hμ`, `hμ1`), and the planted column is independently uniform."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.4","at":"b68540-68548","from_record":false,"lean":true,"lines":[42,44],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.avg_heavy_le","origin":"ai","part":0,"phrase":"exp-7-table-heavy","plain":"A uniform column is heavy with probability ≤G/(mL)","record":null,"relation":"states","role":"statement","rows":[{"end_line":65,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":42,"lines":[42,44],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.avg_heavy_le","note":"","plain":"A uniform column is heavy with probability ≤G/(mL)","proof_lines":[45,65],"relation":"states","annotation":"The bound $G/(mL)$ is for a uniform column and a fixed list of length at most $G$. It can be averaged over the dummy board because it holds for every such list."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.4","at":"b68626-68636","from_record":false,"lean":true,"lines":[172,178],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.avg_reachedCell_le","origin":"ai","part":0,"phrase":"exp-7-table-light","plain":"Light true-cell hits over G query times have probability ≤Gρ","record":null,"relation":"states","role":"statement","rows":[{"end_line":232,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":172,"lines":[172,178],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.avg_reachedCell_le","note":"Uses the original product law and the whole-run read count.","plain":"Light true-cell hits over G query times have probability ≤Gρ","proof_lines":[179,232],"relation":"states","annotation":"With the outside data fixed, the probability of visiting the true cell while the target column is light is at most $G\\rho$, provided every separately capped predictor succeeds with probability at most $\\rho$. The premise `hT : T.depth ≤ G` bounds the number of proposed query times."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.4","at":"b68644-68669","from_record":false,"lean":true,"lines":[921,922],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_17_floor","origin":"ai","part":0,"phrase":"exp-7-G-floor","plain":"The randomized query budget G=⌊mL/100⌋","record":null,"relation":"states","role":"definition","rows":[{"end_line":924,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":921,"lines":[921,922],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_17_floor","note":"","plain":"The randomized query budget G=⌊mL/100⌋","proof_lines":[923,924],"relation":"states","annotation":"Lean’s definition uses natural-number division, and this theorem identifies the two forms exactly."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.4","at":"b68677-68685","from_record":false,"lean":true,"lines":[345,345],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.Lvalue_le_mValue","origin":"ai","part":0,"phrase":"exp-7-L-at-most-m","plain":"The address-read allowance is at most m","record":null,"relation":"states","role":"statement","rows":[{"end_line":361,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean proves $L\\le m$ already for $k\\ge 1$ and $t\\ge 1$; the exposition works with $k\\ge 2$ and sufficiently large $t$.","fidelity_source":"ai","line":345,"lines":[345,345],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.Lvalue_le_mValue","note":"","plain":"The address-read allowance is at most m","proof_lines":[346,361],"relation":"states","annotation":"Lean proves $L\\le m$ already for $k\\ge 1$ and $t\\ge 1$. The exposition works with $k\\ge 2$ and sufficiently large $t$."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.4","at":"b68687-68734","from_record":false,"lean":true,"lines":[154,162],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_numeric_components","origin":"ai","part":0,"phrase":"exp-7-final-numeric","plain":"Distinguishing terms bounded by 4/100, 1/100 and 1/100","record":null,"relation":"part","role":"statement","rows":[{"end_line":185,"exact_lines":true,"fidelity":"weaker","fidelity_note":"Lean states the weaker third-term bound $1/100$ and total bound $6/100<1/3$, rather than the displayed sharper third-term bound $1/(100m^8)$.","fidelity_source":"ai","line":154,"lines":[154,162],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_numeric_components","note":"","plain":"Distinguishing terms bounded by 4/100, 1/100 and 1/100","proof_lines":[163,185],"relation":"part","annotation":"The type states the weaker third-term bound $1/100$ and total bound $6/100<1/3$, rather than the displayed sharper third-term bound $1/(100m^8)$. The hypotheses are `hL1`, `hLm`, and `hG`. The parameters use $m=4^t$ and $r=40t$."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.4","at":"b68740-68780","from_record":false,"lean":true,"lines":[456,458],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.paper_avg_abs_le_const","origin":"ai","part":0,"phrase":"exp-7-randomized-average","plain":"A uniform bound survives averaging over independent choices","record":null,"relation":"states","role":"derivation","rows":[{"end_line":461,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":456,"lines":[456,458],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.paper_avg_abs_le_const","note":"Average a bound that holds for each fixed choice of coins.","plain":"A uniform bound survives averaging over independent choices","proof_lines":[459,461],"relation":"states","annotation":"If every value in a finite family has absolute value at most $c$, any nonnegative weighted average with total weight one also has absolute value at most $c$."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.4","at":"b68781-68949","from_record":false,"lean":true,"lines":[133,141],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.addressedF_not_RLe","origin":"ai","part":0,"phrase":"exp-7-bounded-error-gap","plain":"A dummy–planted acceptance gap below one third rules out the randomized budget","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":176,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":111,"lines":[133,141],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.addressedF_not_RLe","note":"","plain":"A dummy–planted acceptance gap below one third rules out the randomized budget","proof_lines":[116,176],"relation":"proof","annotation":"The premises are `hL : ¬ RLe f L`, `hL1 : 1 ≤ L`, `hdisc`, and a circuit realizing $f$."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-7.4","at":"b69052-69119","from_record":false,"lean":true,"lines":[20,22],"module":"QuarticQuery.Paper.Section4","name":"QuarticQuery.Paper.prop_4_2","origin":"ai","part":0,"phrase":"exp-7-classical-lower-bound","plain":"The total function needs more than the chosen query budget","record":null,"relation":"states","role":"statement","rows":[{"end_line":25,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean proves the stated eventual lower bound for every circuit realizing $P$, with a threshold independent of that circuit, rather than only the chosen circuit of $F_{k,m}$.","fidelity_source":"ai","line":20,"lines":[20,22],"module":"QuarticQuery.Paper.Section4","name":"QuarticQuery.Paper.prop_4_2","note":"","plain":"The total function needs more than the chosen query budget","proof_lines":[23,25],"relation":"states","annotation":"Lean proves the stated eventual lower bound for every circuit realizing $P$, with a threshold independent of that circuit, rather than only the chosen circuit of $F_{k,m}$. Here $m=4^t$, and `totalise` simply presents the total Boolean function in the common partial-function query notation."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-8","at":"b69768-69900","from_record":false,"lean":true,"lines":[281,283],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_power_log_tendsto","origin":"ai","part":0,"phrase":"exp-8-restoring-logarithms","plain":"A positive power outgrows any fixed logarithmic loss","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":312,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem applies to any positive coefficient and positive real power of $m$, divided by any fixed real logarithmic power, along $m=4^t$.","fidelity_source":"ai","line":281,"lines":[281,283],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_power_log_tendsto","note":"","plain":"A positive power outgrows any fixed logarithmic loss","proof_lines":[284,312],"relation":"proof","annotation":"The theorem applies to any positive coefficient and positive real power of $m$, divided by any fixed real logarithmic power, along $m=4^t$."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b69964-70007","from_record":false,"lean":true,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","origin":"ai","part":0,"phrase":"exp-8-cubic-fails","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","record":null,"relation":"proof","role":"statement","rows":[{"end_line":410,"exact_lines":true,"fidelity":"stronger","fidelity_note":"For $k=3$, `classical_Fkm_ratio` gives divergence for every nonnegative $\\alpha<10/3$, including $\\alpha=3$; it treats all fixed $k\\ge 2$.","fidelity_source":"ai","line":372,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","note":"","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","proof_lines":[387,410],"relation":"proof","annotation":"For $k=3$, `classical_Fkm_ratio` gives divergence for every nonnegative $\\alpha<10/3$, including $\\alpha=3$. It treats all fixed $k\\ge 2$. A positive constant `d` is chosen before `t` grows, and the same named circuit defines both complexities."},{"end_line":134,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":134,"lines":[134,134],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_three","note":"","plain":"Three blocks give the exponent ten thirds","relation":"part","annotation":"Substituting $k=3$ into $4-2/k$ gives $10/3$."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b70015-70048","from_record":false,"lean":true,"lines":[134,134],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_three","origin":"ai","part":0,"phrase":"exp-8-three-block-exponent","plain":"Three blocks give the exponent ten thirds","record":null,"relation":"states","role":"statement","rows":[{"end_line":134,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":134,"lines":[134,134],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_three","note":"","plain":"Three blocks give the exponent ten thirds","relation":"states","annotation":"Substituting $k=3$ into $4-2/k$ gives $10/3$."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b70086-70327","from_record":false,"lean":true,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","origin":"ai","part":0,"phrase":"exp-8-one-family-two-bounds","plain":"Both query bounds for each fixed Forrelation order k≥2","record":null,"relation":"states","role":"statement","rows":[{"end_line":74,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":58,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","note":"","plain":"Both query bounds for each fixed Forrelation order k≥2","proof_lines":[68,74],"relation":"states","annotation":"For each fixed $k\\ge2$, sufficiently large boards have quantum cost at most $C\\sqrt m(\\log_2m)^b$ and randomized cost at least $c\\,m^{2-1/k}/(\\log_2m)^2$, with positive constants. Constants, the logarithmic exponent and the threshold are chosen before `t`."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b70539-70594","from_record":false,"lean":true,"lines":[30,40],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_family_named","origin":"ai","part":0,"phrase":"exp-8-explicit-constants","plain":"The explicit Forrelation family has both bounds with fixed logarithmic powers","record":null,"relation":"contains","role":"statement","rows":[{"end_line":54,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":30,"lines":[30,40],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_family_named","note":"","plain":"The explicit Forrelation family has both bounds with fixed logarithmic powers","proof_lines":[41,54],"relation":"contains","annotation":"One specified circuit family has $Q(F)\\le C_k\\sqrt m(\\log_2m)^6$ and $R(F)\\ge m^{2-1/k}/(400(\\log_2m)^2)$ for all sufficiently large $m=4^t$. Lean writes $k=l+1$ and assumes `hk : 2 ≤ l + 1`."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b70799-70959","from_record":false,"lean":true,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","origin":"ai","part":0,"phrase":"exp-8-parameter-order","plain":"Both query bounds for each fixed Forrelation order k≥2","record":null,"relation":"part","role":"explanation","rows":[{"end_line":74,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":58,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","note":"Read the quantifiers from $k$, to constants and threshold, to $t$.","plain":"Both query bounds for each fixed Forrelation order k≥2","proof_lines":[68,74],"relation":"part","annotation":"The constants and threshold precede `∀ t`. The realizing circuit `Cir` is chosen afterward and occurs in both the quantum and classical terms for that size."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b70994-71027","from_record":false,"lean":true,"lines":[131,131],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent","origin":"ai","part":0,"phrase":"exp-8-family-power","plain":"The separation exponent 4−2/k at Forrelation order k","record":null,"relation":"defines","role":"definition","rows":[{"end_line":131,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":131,"lines":[131,131],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent","note":"","plain":"The separation exponent 4−2/k at Forrelation order k","relation":"defines","annotation":"The number $4-2/k$, obtained by measuring the classical power $m^{2-1/k}$ in units of the quantum scale $\\sqrt m$."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b71066-71185","from_record":false,"lean":true,"lines":[160,161],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.exists_nat_exponent","origin":"ai","part":0,"phrase":"exp-8-choose-k","plain":"Every exponent below four is exceeded by 4−2/k for some k","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":164,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Only $\\alpha<4$ is required to choose $k$; the arithmetic theorem also allows negative $\\alpha$. Nonnegativity is needed later in the ratio theorem.","fidelity_source":"ai","line":160,"lines":[160,161],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.exists_nat_exponent","note":"","plain":"Every exponent below four is exceeded by 4−2/k for some k","proof_lines":[162,164],"relation":"proof","annotation":"Only $\\alpha<4$ is required to choose $k$. The arithmetic theorem also allows negative $\\alpha$. Nonnegativity is needed later in the ratio theorem. The only hypothesis is `hα : α < 4`. This numerical choice does not depend on the board size."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b71316-71470","from_record":false,"lean":true,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","origin":"ai","part":0,"phrase":"exp-8-ratio-display","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","record":null,"relation":"states","role":"derivation","rows":[{"end_line":410,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":372,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","note":"","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","proof_lines":[387,410],"relation":"states","annotation":"A positive constant `d` is chosen before `t` grows, and the same named circuit defines both complexities."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b71518-71603","from_record":false,"lean":true,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","origin":"ai","part":0,"phrase":"exp-8-beats-every-constant","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","record":null,"relation":"contains","role":"derivation","rows":[{"end_line":410,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":372,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","note":"Divergence is stronger than exceeding one proposed constant.","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","proof_lines":[387,410],"relation":"contains","annotation":"A positive constant `d` is chosen before `t` grows, and the same named circuit defines both complexities."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b71754-71770","from_record":false,"lean":true,"lines":[133,133],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_two","origin":"ai","part":0,"phrase":"exp-8-table-k2","plain":"Two blocks give the exponent three","record":null,"relation":"part","role":"example","rows":[{"end_line":133,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":133,"lines":[133,133],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_two","note":"","plain":"Two blocks give the exponent three","relation":"part","annotation":"Substituting $k=2$ into $4-2/k$ gives three. This is an exact arithmetic identity about `familyExponent`."},{"end_line":410,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The ratio theorem covers all fixed $k\\ge 2$ and nonnegative $\\alpha$ below $4-2/k$; this table entry uses $k=2$ in the surrounding nonnegative-exponent discussion.","fidelity_source":"ai","line":372,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","note":"","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","proof_lines":[387,410],"relation":"proof","annotation":"The ratio theorem covers all fixed $k\\ge 2$ and nonnegative $\\alpha$ below $4-2/k$. This table entry uses $k=2$ in the surrounding nonnegative-exponent discussion. A positive constant `d` is chosen before `t` grows, and the same named circuit defines both complexities."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b71789-71795","from_record":false,"lean":true,"lines":[134,134],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_three","origin":"ai","part":0,"phrase":"exp-8-table-k3","plain":"Three blocks give the exponent ten thirds","record":null,"relation":"states","role":"example","rows":[{"end_line":134,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":134,"lines":[134,134],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_three","note":"","plain":"Three blocks give the exponent ten thirds","relation":"states","annotation":"Substituting $k=3$ into $4-2/k$ gives $10/3$."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b71836-71841","from_record":false,"lean":true,"lines":[135,135],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_four","origin":"ai","part":0,"phrase":"exp-8-table-k4","plain":"Four blocks give the exponent seven halves","record":null,"relation":"states","role":"example","rows":[{"end_line":135,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":135,"lines":[135,135],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_four","note":"","plain":"Four blocks give the exponent seven halves","relation":"states","annotation":"Substituting $k=4$ into $4-2/k$ gives $7/2$."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b71890-71909","from_record":false,"lean":true,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","origin":"ai","part":0,"phrase":"exp-8-table-k5","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","record":null,"relation":"part","role":"example","rows":[{"end_line":410,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The ratio theorem covers every fixed $k\\ge 2$. This row uses $k=5$ and nonnegative $\\alpha<18/5$; negative $\\alpha$ follow from $\\alpha=0$ by monotonicity.","fidelity_source":"ai","line":372,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","note":"","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","proof_lines":[387,410],"relation":"part","annotation":"The ratio theorem covers every fixed $k\\ge 2$. This row uses $k=5$ and nonnegative $\\alpha<18/5$. Negative $\\alpha$ follow from $\\alpha=0$ by monotonicity. A positive constant `d` is chosen before `t` grows, and the same named circuit defines both complexities."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b72432-72543","from_record":false,"lean":true,"lines":[87,88],"module":"QuarticQuery.Statement","name":"QuarticQuery.D","origin":"ai","part":0,"phrase":"exp-8-deterministic-cost","plain":"The least exact deterministic query budget","record":null,"relation":"defines","role":"definition","rows":[{"end_line":88,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":87,"lines":[87,88],"module":"QuarticQuery.Statement","name":"QuarticQuery.D","note":"","plain":"The least exact deterministic query budget","relation":"defines","annotation":"The smallest worst-case depth of a deterministic decision tree that computes the function exactly on each promised input. In `DLe`, correctness is equality of the tree's output and the prescribed bit, with no allowed error."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b72635-72671","from_record":false,"lean":true,"lines":[52,53],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.D_le_Q_pow_four","origin":"ai","part":0,"phrase":"exp-8-universal-d-bound","plain":"D(f) ≤ 20736Q(f)⁴ for total functions","record":null,"relation":"states","role":"statement","rows":[{"end_line":54,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The source gives the explicit uniform inequality $D(f) \\le 20736\\, Q(f)^4$ for every total function, with no asymptotic threshold.","fidelity_source":"ai","line":52,"lines":[52,53],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.D_le_Q_pow_four","note":"","plain":"D(f) ≤ 20736Q(f)⁴ for total functions","proof_lines":[54,54],"relation":"states","annotation":"The source gives the explicit uniform inequality $D(f) \\le 20736\\, Q(f)^4$ for every total function, with no asymptotic threshold."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b72746-72825","from_record":false,"lean":true,"lines":[286,286],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.R_le_D","origin":"ai","part":0,"phrase":"exp-8-r-below-d","plain":"Randomization may use an exact deterministic algorithm","record":null,"relation":"states","role":"derivation","rows":[{"end_line":287,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem applies to arbitrary partial Boolean functions on finite coordinate types, not only the total functions discussed here.","fidelity_source":"ai","line":286,"lines":[286,286],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.R_le_D","note":"","plain":"Randomization may use an exact deterministic algorithm","proof_lines":[287,287],"relation":"states","annotation":"The theorem applies to arbitrary partial Boolean functions on finite coordinate types, not only the total functions discussed here."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b72826-72935","from_record":false,"lean":true,"lines":[18,18],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.alphaTot_eq_four_unconditional","origin":"ai","part":0,"phrase":"exp-8-final-exponent","plain":"The optimal universal exponent is four","record":null,"relation":"states","role":"statement","rows":[{"end_line":19,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":18,"lines":[18,18],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.alphaTot_eq_four_unconditional","note":"","plain":"The optimal universal exponent is four","proof_lines":[19,19],"relation":"states","annotation":"The endpoint invokes the conditional exponent theorem with the formal fixed-$k$ Forrelation lower bound. The family argument picks $k$ before sending $t$ to infinity."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a.1","at":"b74692-74902","from_record":false,"lean":true,"lines":[392,397],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_controlled_bit_query","origin":"ai","part":0,"phrase":"app-a1-control","plain":"Load and clear a controlled bit read","record":null,"relation":"states","role":"derivation","rows":[{"end_line":398,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":392,"lines":[392,397],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_controlled_bit_query","note":"","plain":"Load and clear a controlled bit read","proof_lines":[398,398],"relation":"states","annotation":"Given a register embedding `e` and read specification `R`, the theorem constructs a program wrapper `P` with exactly two extra queries before any continuation."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.1","at":"b74903-74995","from_record":false,"lean":true,"lines":[383,387],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_controlled_reads","origin":"ai","part":0,"phrase":"app-a1-padding","plain":"A superposed choice preserves the common read cap","record":null,"relation":"states","role":"derivation","rows":[{"end_line":387,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":383,"lines":[383,387],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_controlled_reads","note":"","plain":"A superposed choice preserves the common read cap","relation":"states","annotation":"The hypothesis `hF : ∀ c, IsCirc n (F c)` requires that cap for every branch."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.1","at":"b75001-75058","from_record":false,"lean":true,"lines":[377,379],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_inverse_reads","origin":"ai","part":0,"phrase":"app-a1-reverse","plain":"Reversing a circuit has the same read cap","record":null,"relation":"states","role":"derivation","rows":[{"end_line":379,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":377,"lines":[377,379],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_inverse_reads","note":"","plain":"Reversing a circuit has the same read cap","relation":"states","annotation":"The inverse of a coherent circuit has the same logical read cap as the circuit itself. The hypothesis `hF : IsCirc n F` gives a family of input-dependent isometries assembled from permitted gates and reads."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.1","at":"b75059-75123","from_record":false,"lean":true,"lines":[42,43],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.test_samples","origin":"ai","part":0,"phrase":"app-a1-local-tests","plain":"Evaluate one uniformly chosen local test coherently","record":null,"relation":"states","role":"statement","rows":[{"end_line":60,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":42,"lines":[42,43],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.test_samples","note":"The logical cap is $\\max(3,\\ell+1)$; the described compiler multiplies it by two.","plain":"Evaluate one uniformly chosen local test coherently","proof_lines":[44,60],"relation":"states","annotation":"A uniform local-test label and its exact result can be prepared with cap $\\max(3,2t+1)$ logical reads. For fixed column `i` and cell `s`, `testLaw` returns a failed test’s own label, or no label if it passes."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.1","at":"b75281-75449","from_record":false,"lean":true,"lines":[267,272],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_query_bound","origin":"ai","part":0,"phrase":"app-a1-comparison","plain":"Comparison cost comes from two address decodings and two pointer tests","record":null,"relation":"states","role":"statement","rows":[{"end_line":276,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":267,"lines":[267,272],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_query_bound","note":"","plain":"Comparison cost comes from two address decodings and two pointer tests","proof_lines":[273,276],"relation":"states","annotation":"The repetitions target error $\\varepsilon/(40t)$ per address bit. The additive $8t+4$ comes from the two pointer checks, with the physical compilation factor included."}],"tone":6,"topic":"comparisons"},{"anchor":"sec-appendix-a.1","at":"b75450-75685","from_record":false,"lean":true,"lines":[204,207],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_cost_log","origin":"ai","part":0,"phrase":"app-a1-tournament","plain":"Tournament bit-query bound 276c√(2m) T² log(1/ε)","record":null,"relation":"states","role":"statement","rows":[{"end_line":233,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":204,"lines":[204,207],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_cost_log","note":"","plain":"Tournament bit-query bound 276c√(2m) T² log(1/ε)","proof_lines":[208,233],"relation":"states","annotation":"The proof applies `amplification_budget_le` at $\\gamma=1/(2m)$ and multiplies the resulting cap by the cost of the comparisons and by the number of stages."}],"tone":7,"topic":"tournament"},{"anchor":"sec-appendix-a.1","at":"b75686-75815","from_record":false,"lean":true,"lines":[433,436],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_search_query_bound","origin":"ai","part":0,"phrase":"app-a1-verification","plain":"Finding a failed test costs O(ℓ√K log(1/ε)) bit queries","record":null,"relation":"part","role":"statement","rows":[{"end_line":456,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":433,"lines":[433,436],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_search_query_bound","note":"The search cap is a constant times $\\sqrt{K}\\log(1/\\varepsilon)$ test costs.","plain":"Finding a failed test costs O(ℓ√K log(1/ε)) bit queries","proof_lines":[437,456],"relation":"part","annotation":"This inequality uses $K\\ge2$ and $0<\\varepsilon<1/2$ to price one search among a fixed candidate’s local tests. The list verifier multiplies the per-candidate budget by its list length."},{"end_line":532,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":528,"lines":[528,531],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_list","note":"The list has at most $T$ entries, each with a fresh verifier.","plain":"Check the candidates one after another","proof_lines":[532,532],"relation":"part","annotation":"A list of candidates can be checked sequentially, stopping when one accepts. If `hv` supplies a verifier with physical query cap `cV` for each candidate, the list verifier has cap `L.length * cV`."}],"tone":7,"topic":"tournament"},{"anchor":"sec-appendix-a.1","at":"b75845-75987","from_record":false,"lean":true,"lines":[132,132],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.budget","origin":"ai","part":0,"phrase":"app-a1-sum","plain":"Add the tournament and verification budgets","record":null,"relation":"defines","role":"derivation","rows":[{"end_line":134,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":132,"lines":[132,132],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.budget","note":"The two additive terms are tournament stages and candidate verification.","plain":"Add the tournament and verification budgets","relation":"defines","annotation":"The total physical query budget is the tournament budget plus the budget for checking its candidates. The parameters `n` and `K` are the decoder repetition count and number of tests."},{"end_line":276,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":267,"lines":[267,272],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_query_bound","note":"","plain":"Comparison cost comes from two address decodings and two pointer tests","proof_lines":[273,276],"relation":"part","annotation":"This estimate supplies the per-comparison factor in the tournament term of the displayed sum. The decoder uses `repetitions k (ε / (40 * t : ℕ))`."},{"end_line":233,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":204,"lines":[204,207],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_cost_log","note":"","plain":"Tournament bit-query bound 276c√(2m) T² log(1/ε)","proof_lines":[208,233],"relation":"part","annotation":"The left side charges `Tval m` calls to `stageCost`. The theorem gives the tournament term of the sum, with `cc` still a parameter to be bounded using the comparison theorem."},{"end_line":456,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":433,"lines":[433,436],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_search_query_bound","note":"","plain":"Finding a failed test costs O(ℓ√K log(1/ε)) bit queries","proof_lines":[437,456],"relation":"part","annotation":"In the verification term, `testCost t` accounts for the input bits read by one local test. `searchCost` multiplies that budget by the amplification overhead for the $K$ tests."}],"tone":7,"topic":"tournament"},{"anchor":"sec-appendix-a.1","at":"b76256-76352","from_record":false,"lean":true,"lines":[258,262],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budget_le","origin":"ai","part":0,"phrase":"app-a1-polylog","plain":"Circuit-size bound gives budget Cₖ√m log₂⁶m","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":268,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":87,"lines":[258,262],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budget_le","note":"The proof separately displays powers six and five before enlarging the latter.","plain":"Circuit-size bound gives budget Cₖ√m log₂⁶m","proof_lines":[91,268],"relation":"proof","annotation":"For $m=4^t$ and $t\\ge1$, the complete algorithm’s query budget is at most $C_k\\,2^t(2t)^6$. The hypothesis `hSz` bounds the chosen circuit size by `forrConstant k * mValue t * (2 * t) ^ 2`."}],"tone":7,"topic":"tournament"},{"anchor":"sec-appendix-a.1","at":"b76484-76528","from_record":false,"lean":true,"lines":[278,280],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.Q_Fkm_le","origin":"ai","part":0,"phrase":"app-a1-q","plain":"Quantum query cost Oₖ(√m log⁶m) for the Forrelation board","record":null,"relation":"states","role":"statement","rows":[{"end_line":284,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":278,"lines":[278,280],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.Q_Fkm_le","note":"","plain":"Quantum query cost Oₖ(√m log⁶m) for the Forrelation board","proof_lines":[281,284],"relation":"states","annotation":"`budgetConst (l + 1)` is independent of $t$. The remaining factor $2^t(2t)^6$ is $\\sqrt m(\\log_2m)^6$ under $m=4^t$."}],"tone":7,"topic":"tournament"},{"anchor":"sec-appendix-a.1","at":"b76713-76770","from_record":false,"lean":true,"lines":[409,411],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.rpow_le_of_Gvalue_lt","origin":"ai","part":0,"phrase":"app-a1-r","plain":"Removing the floors gives the randomized lower bound with coefficient 1/400","record":null,"relation":"part","role":"derivation","rows":[{"end_line":412,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":409,"lines":[409,411],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.rpow_le_of_Gvalue_lt","note":"Apply the arithmetic implication to the lower bound from Section 7. It assumes $t\\ge 8$.","plain":"Removing the floors gives the randomized lower bound with coefficient 1/400","proof_lines":[412,412],"relation":"part","annotation":"A bound above the integer threshold $G$ implies the explicit lower estimate $m^{2-1/k}/(400(\\log_2m)^2)$. The assumptions are `hk : 2 ≤ k`, `ht : 8 ≤ t`, and `hr : Gvalue (mValue t) (Lvalue k t) < r`, with $m=4^t$."}],"tone":7,"topic":"tournament"},{"anchor":"sec-appendix-a.2","at":"b77226-77423","from_record":false,"lean":true,"lines":[63,63],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.groverStep","origin":"ai","part":0,"phrase":"app-a2-reverse","plain":"One pair of amplification reflections","record":null,"relation":"defines","role":"derivation","rows":[{"end_line":63,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":63,"lines":[63,63],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.groverStep","note":"","plain":"One pair of amplification reflections","relation":"defines","annotation":"One amplification step first flips the successful component, then applies the inverse preparation, flips the starting state, reapplies the preparation, and negates the whole vector."},{"end_line":379,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":377,"lines":[377,379],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_inverse_reads","note":"","plain":"Reversing a circuit has the same read cap","relation":"part","annotation":"The inverse of a coherent circuit has the same logical read cap as the circuit itself. The hypothesis `hF : IsCirc n F` gives a family of input-dependent isometries assembled from permitted gates and reads."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.2","at":"b77716-77808","from_record":false,"lean":true,"lines":[355,358],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.grover_rotation","origin":"ai","part":0,"phrase":"app-a2-matrix","plain":"Grover rotation by 2θ in the success–failure plane for 0<p<1","record":null,"relation":"states","role":"derivation","rows":[{"end_line":391,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":355,"lines":[355,358],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.grover_rotation","note":"","plain":"Grover rotation by 2θ in the success–failure plane for 0<p<1","proof_lines":[359,391],"relation":"states","annotation":"In the ordered basis $(g,b)$, one amplification step sends $(x,y)$ to $(x\\cos2\\theta+y\\sin2\\theta,\\ y\\cos2\\theta-x\\sin2\\theta)$. The assumptions `h0 : 0 < A.prob` and `h1 : A.prob < 1` ensure that both normalized directions exist."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.2","at":"b77809-77878","from_record":false,"lean":true,"lines":[343,346],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.iterate_eq","origin":"ai","part":0,"phrase":"app-a2-three-theta","plain":"The sine and cosine amplitudes after any number of Grover steps","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":351,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The source states the decomposition after every natural iteration count, including the first step used here; it also includes $q = 0$ and $q = 1$.","fidelity_source":"ai","line":343,"lines":[343,346],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.iterate_eq","note":"","plain":"The sine and cosine amplitudes after any number of Grover steps","proof_lines":[347,351],"relation":"proof","annotation":"The source states the decomposition after every natural iteration count, including the first step used here. It also includes $q = 0$ and $q = 1$. Lean’s `A.iterate u` executes the preparation followed by the specified circuit iterations."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.2","at":"b77924-78148","from_record":false,"lean":true,"lines":[343,346],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.iterate_eq","origin":"ai","part":0,"phrase":"app-a2-good-direction","plain":"The sine and cosine amplitudes after any number of Grover steps","record":null,"relation":"states","role":"explanation","rows":[{"end_line":351,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean gives the iterate explicitly, $\\sin((2u+1)\\theta)$ times $g$ plus $\\cos((2u+1)\\theta)$ times $b$; the words state only that the component along $g$ is rescaled by a common factor.","fidelity_source":"ai","line":343,"lines":[343,346],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.iterate_eq","note":"","plain":"The sine and cosine amplitudes after any number of Grover steps","proof_lines":[347,351],"relation":"states","annotation":"The type gives the iterate explicitly, $\\sin((2u+1)\\theta)$ times $g$ plus $\\cos((2u+1)\\theta)$ times $b$. The words state only that the component along $g$ is rescaled by a common factor. Lean’s `A.iterate u` executes the preparation followed by the specified circuit iterations."},{"end_line":404,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":401,"lines":[401,402],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.good_iterate","note":"The successful direction itself stays fixed, preserving its conditional label probabilities.","plain":"The successful amplitude after j Grover steps is sin((2j+1)θ)","proof_lines":[403,404],"relation":"part","annotation":"After $u$ amplification iterations, the entire accepted component equals $\\sin((2u+1)\\theta)\\,g$. Here `g` is `A.goodState`, the normalized accepted part of the initial preparation."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.2","at":"b78299-78377","from_record":false,"lean":true,"lines":[125,128],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_parameters","origin":"ai","part":0,"phrase":"app-a2-parameters","plain":"Fix the number of iterations and trials","record":null,"relation":"states","role":"definition","rows":[{"end_line":129,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":125,"lines":[125,128],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_parameters","note":"","plain":"Fix the number of iterations and trials","proof_lines":[129,129],"relation":"states","annotation":"The declaration exposes these definitions, so it places no probability assumptions on `γ` or `η`."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.2","at":"b78378-78497","from_record":false,"lean":true,"lines":[133,137],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_trial_distribution","origin":"ai","part":0,"phrase":"app-a2-mixture","plain":"Mix a zero-iteration trial and a uniform iteration count with equal probability","record":null,"relation":"states","role":"definition","rows":[{"end_line":138,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":133,"lines":[133,137],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_trial_distribution","note":"","plain":"Mix a zero-iteration trial and a uniform iteration count with equal probability","proof_lines":[138,138],"relation":"states","annotation":"The hypothesis `hM : M ≠ 0` ensures that this is a probability distribution."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.2","at":"b78498-78550","from_record":false,"lean":true,"lines":[142,145],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_trial_recursion","origin":"ai","part":0,"phrase":"app-a2-first","plain":"Restart after failure and stop at first success","record":null,"relation":"defines","role":"definition","rows":[{"end_line":145,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":142,"lines":[142,145],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_trial_recursion","note":"","plain":"Restart after failure and stop at first success","relation":"defines","annotation":"A trial chooses its iteration count, restarts from the initial state, runs the corresponding amplification circuit, and measures success. The displayed recursion is for `attempts M (n + 1)`."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.2","at":"b78551-78645","from_record":false,"lean":true,"lines":[149,150],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_call_cap","origin":"ai","part":0,"phrase":"app-a2-cap","plain":"At most N(2M+1) preparation or inverse calls on every branch","record":null,"relation":"states","role":"statement","rows":[{"end_line":151,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":149,"lines":[149,150],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_call_cap","note":"","plain":"At most N(2M+1) preparation or inverse calls on every branch","proof_lines":[151,151],"relation":"states","annotation":"The complete bounded procedure makes at most $N(2M+1)$ calls to $A$ or $A^{-1}$ on every branch. The parameters `M` and `N` are computed from `γ` and `η`."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.2","at":"b78800-78947","from_record":false,"lean":true,"lines":[41,43],"module":"QuarticQuery.Amplification.Average","name":"QuarticQuery.Amplification.average_sin_sq","origin":"ai","part":0,"phrase":"app-a2-average","plain":"Average success over the random iteration count","record":null,"relation":"part","role":"derivation","rows":[{"end_line":50,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":41,"lines":[41,43],"module":"QuarticQuery.Amplification.Average","name":"QuarticQuery.Amplification.average_sin_sq","note":"The exact average, including the factor four in its denominator.","plain":"Average success over the random iteration count","proof_lines":[44,50],"relation":"part","annotation":"The mean of $\\sin^2((2u+1)\\theta)$ over $u=0,\\ldots,M-1$ is exactly $1/2-\\sin(4M\\theta)/(4M\\sin2\\theta)$. The hypotheses `hM : M ≠ 0` and `hs : Real.sin (2 * θ) ≠ 0` make both divisions legitimate."},{"end_line":468,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":462,"lines":[462,463],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.sin_two_angle","note":"Its identity supplies the sharper middle estimate under $\\gamma \\le q \\le 1/2$.","plain":"The Grover double-angle identity sin(2θ)=2√(p(1−p))","proof_lines":[464,468],"relation":"part","annotation":"The amplification angle satisfies $\\sin(2\\theta)=2\\sqrt{q(1-q)}$, where $q$ is the preparation’s success probability."},{"end_line":93,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":75,"lines":[75,77],"module":"QuarticQuery.Amplification.Average","name":"QuarticQuery.Amplification.average_sin_sq_ge_nine_twentieths","note":"The final $9/20$ bound holds under the weaker lower estimate $\\sin(2\\theta) \\ge \\sqrt{\\gamma}$.","plain":"Random Grover success ≥9/20 when sin(2θ)≥√γ and M≥10/√γ","proof_lines":[78,93],"relation":"part","annotation":"The average success probability over the uniform iteration count is at least $9/20$. The assumptions are `hγ : 0 < γ`, `hM : 10 / Real.sqrt γ ≤ M` and `hs : Real.sqrt γ ≤ Real.sin (2 * θ)`."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.2","at":"b78948-79002","from_record":false,"lean":true,"lines":[462,463],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.sin_two_angle","origin":"ai","part":0,"phrase":"app-a2-sin","plain":"The Grover double-angle identity sin(2θ)=2√(p(1−p))","record":null,"relation":"part","role":"derivation","rows":[{"end_line":468,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":462,"lines":[462,463],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.sin_two_angle","note":"The equality is explicit; the displayed inequality follows from $\\gamma \\le q \\le 1/2$.","plain":"The Grover double-angle identity sin(2θ)=2√(p(1−p))","proof_lines":[464,468],"relation":"part","annotation":"The amplification angle satisfies $\\sin(2\\theta)=2\\sqrt{q(1-q)}$, where $q$ is the preparation’s success probability."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.2","at":"b79190-79276","from_record":false,"lean":true,"lines":[150,151],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.Preparation.trialFail_le","origin":"ai","part":0,"phrase":"app-a2-failure","plain":"Mixed-trial failure probability ≤31/40 when p≥γ","record":null,"relation":"part","role":"derivation","rows":[{"end_line":153,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":150,"lines":[150,151],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.Preparation.trialFail_le","note":"Single-trial failure is at most $31/40$ when $q\\ge\\gamma$.","plain":"Mixed-trial failure probability ≤31/40 when p≥γ","proof_lines":[152,153],"relation":"part","annotation":"The hypotheses are `hγ : 0 < γ` and `hp : γ ≤ A.prob`."},{"end_line":47,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":35,"lines":[35,35],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.pow_trialCount_le","note":"The choice of $N$ gives $(31/40)^N\\le\\eta$.","plain":"Trial count N gives (31/40)ᴺ ≤ η","proof_lines":[36,47],"relation":"part","annotation":"The prescribed repetition count satisfies $(31/40)^N\\le\\eta$ for every positive target error `η`. The hypothesis `h0 : 0 < η` permits the logarithms used in the definition of `trialCount`."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.2","at":"b79277-79390","from_record":false,"lean":true,"lines":[355,361],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplify_samples","origin":"ai","part":0,"phrase":"app-a2-first-law","plain":"Amplified sampling preserves the successful label law and retains workspace","record":null,"relation":"part","role":"derivation","rows":[{"end_line":368,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":355,"lines":[355,361],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplify_samples","note":"The complete trial procedure returns the amplified law.","plain":"Amplified sampling preserves the successful label law and retains workspace","proof_lines":[362,368],"relation":"part","annotation":"A coherent sampler with read cap `n` can be amplified while retaining all its workspace. For positive threshold `γ` and target error `η`, the theorem constructs a failure function `f` and a sampler with cap $N(2M+1)n$."},{"end_line":242,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":216,"lines":[216,223],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_conditional","note":"Conditioning that law cancels the common success factor.","plain":"Conditioning on success preserves the label proportions","proof_lines":[224,242],"relation":"part","annotation":"The quotient divides each `some b` mass by the total over successful labels (as in Equation (4.1)). The cancellation assumes $\\sum_bq_b>0$ and $f<1$, so neither denominator vanishes.","annotation_references":[{"start":83,"end":97,"key":"equation:4.1"}]}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.2","at":"b79391-79467","from_record":false,"lean":true,"lines":[149,150],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_call_cap","origin":"ai","part":0,"phrase":"app-a2-below-threshold","plain":"At most N(2M+1) preparation or inverse calls on every branch","record":null,"relation":"states","role":"explanation","rows":[{"end_line":151,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":149,"lines":[149,150],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_call_cap","note":"","plain":"At most N(2M+1) preparation or inverse calls on every branch","proof_lines":[151,151],"relation":"states","annotation":"The complete bounded procedure makes at most $N(2M+1)$ calls to $A$ or $A^{-1}$ on every branch. The parameters `M` and `N` are computed from `γ` and `η`."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-a.3","at":"b79732-79786","from_record":false,"lean":true,"lines":[76,91],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_physical","origin":"ai","part":0,"phrase":"app-a3-one-query-per-block","plain":"A Walsh projection trial uses one bit query per block","record":null,"relation":"contains","role":"statement","rows":[{"end_line":104,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":76,"lines":[76,91],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_physical","note":"","plain":"A Walsh projection trial uses one bit query per block","proof_lines":[92,104],"relation":"contains","annotation":"The candidate gives `IsCirc k F` and a physical continuation with at most $k$ additional reads. The physical compiler in `ReadSpecOneQuery` still lacks a native elaboration check."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.3","at":"b79792-79879","from_record":false,"lean":true,"lines":[76,84],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_physical","origin":"ai","part":0,"phrase":"app-a3-projection-probability","plain":"A Walsh projection trial uses one bit query per block","record":null,"relation":"contains","role":"statement","rows":[{"end_line":104,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":76,"lines":[76,84],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_physical","note":"","plain":"A Walsh projection trial uses one bit query per block","proof_lines":[92,104],"relation":"contains","annotation":"`F z (rket o)` is identified with the complexification of $H\\psi_z$. The following clause identifies the outcome law with `bern (Phi k t z ^ 2)`. The sharp physical compilation in the same signature remains a candidate."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.3","at":"b79881-79936","from_record":false,"lean":true,"lines":[61,62],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.successProb_of_true","origin":"ai","part":0,"phrase":"app-a3-promise-probability-gap","plain":"Projection probability ≥δ² on promised one-inputs","record":null,"relation":"part","role":"statement","rows":[{"end_line":64,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":61,"lines":[61,62],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.successProb_of_true","note":"","plain":"Projection probability ≥δ² on promised one-inputs","proof_lines":[63,64],"relation":"part","annotation":"The proof rewrites the measured mass using `successProb_eq` and uses monotonicity of squaring above the positive threshold $\\delta$. A promised one therefore gives probability at least $\\delta^2$."},{"end_line":72,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":67,"lines":[67,68],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.successProb_of_false","note":"","plain":"Projection probability ≤δ²/4 on promised zero-inputs","proof_lines":[69,72],"relation":"part","annotation":"`P_eq_some_false_iff` bounds the absolute amplitude by $\\delta/2$. Squaring gives at most $\\delta^2/4$ on a promised zero, a factor of four below the lower bound for a promised one."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.3","at":"b79998-80040","from_record":false,"lean":true,"lines":[192,193],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.repetitions","origin":"ai","part":0,"phrase":"app-a3-repetition-count","plain":"The projection trial count for promised error at most η","record":null,"relation":"defines","role":"definition","rows":[{"end_line":193,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":192,"lines":[192,193],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.repetitions","note":"","plain":"The projection trial count for promised error at most η","relation":"defines","annotation":"The repetition count is the natural-number ceiling of $16\\,2^{10k}\\ln(1/\\eta)$."},{"end_line":189,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":186,"lines":[186,186],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.delta_sq","note":"Identifies $c^{-1}$ with the power of two in the repetition definition.","plain":"The square of the Forrelation threshold is 2⁻¹⁰ᵏ","proof_lines":[187,189],"relation":"part","annotation":"The squared promise threshold is $\\delta^2=(2^{10k})^{-1}$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.3","at":"b80048-80110","from_record":false,"lean":true,"lines":[56,57],"module":"QuarticQuery.Upper.Decode","name":"QuarticQuery.Upper.Samples.count","origin":"ai","part":0,"phrase":"app-a3-success-count","plain":"Independent trial counts have a binomial law","record":null,"relation":"contains","role":"definition","rows":[{"end_line":112,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":56,"lines":[56,57],"module":"QuarticQuery.Upper.Decode","name":"QuarticQuery.Upper.Samples.count","note":"","plain":"Independent trial counts have a binomial law","proof_lines":[58,112],"relation":"contains","annotation":"If a coherent sampler costs $c$ queries and has Bernoulli success probability $p(x)$ on input $x$, repeating it $n$ times gives a sampler of the success count with cost $nc$ and the binomial distribution."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.3","at":"b80116-80163","from_record":false,"lean":true,"lines":[356,357],"module":"QuarticQuery.Upper.Decode","name":"QuarticQuery.Upper.decodeProb","origin":"ai","part":0,"phrase":"app-a3-decision-threshold","plain":"Thresholding the number of successful trials","record":null,"relation":"defines","role":"definition","rows":[{"end_line":357,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":356,"lines":[356,357],"module":"QuarticQuery.Upper.Decode","name":"QuarticQuery.Upper.decodeProb","note":"","plain":"Thresholding the number of successful trials","relation":"defines","annotation":"The decoder’s probability of returning one is the upper binomial tail for $n$ trials, single-trial success probability $p$, and cutoff $n\\delta^2/2$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.3","at":"b80312-80372","from_record":false,"lean":true,"lines":[160,161],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.binomTail_large","origin":"ai","part":0,"phrase":"app-a3-large-mean-tail","plain":"For p≥c, binomial probability below nc/2 is at most e^(−nc/16)","record":null,"relation":"states","role":"statement","rows":[{"end_line":182,"exact_lines":false,"fidelity":"weaker","fidelity_note":"The theorem bounds the lower tail by $\\exp(-nc/16)$; it does not state the sharper $\\exp(-nc/8)$ intermediate bound printed here.","fidelity_source":"ai","line":160,"lines":[160,161],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.binomTail_large","note":"","plain":"For p≥c, binomial probability below nc/2 is at most e^(−nc/16)","proof_lines":[162,182],"relation":"states","annotation":"The theorem bounds the lower tail by $\\exp(-nc/16)$. It does not state the sharper $\\exp(-nc/8)$ intermediate bound printed here."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.3","at":"b80407-80433","from_record":false,"lean":true,"lines":[141,142],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.binomTail_small","origin":"ai","part":0,"phrase":"app-a3-small-mean-tail","plain":"For p≤c/4, binomial probability of reaching nc/2 is at most e^(−nc/16)","record":null,"relation":"states","role":"statement","rows":[{"end_line":157,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":141,"lines":[141,142],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.binomTail_small","note":"","plain":"For p≤c/4, binomial probability of reaching nc/2 is at most e^(−nc/16)","proof_lines":[143,157],"relation":"states","annotation":"For $n$ trials, $0\\le p\\le1$, and $p\\le c/4$, the upper binomial tail at the cutoff $nc/2$ is at most $\\exp(-nc/16)$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.3","at":"b80485-80513","from_record":false,"lean":true,"lines":[218,221],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.threshold_correct","origin":"ai","part":0,"phrase":"app-a3-error-after-repetition","plain":"On the promise, projection threshold δ²/2 gives error ≤η with enough trials","record":null,"relation":"states","role":"statement","rows":[{"end_line":230,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":218,"lines":[218,221],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.threshold_correct","note":"","plain":"On the promise, projection threshold δ²/2 gives error ≤η with enough trials","proof_lines":[222,230],"relation":"states","annotation":"For $k\\ge1$, $\\eta>0$, and any trial count $n$ at least the prescribed repetition count, the threshold test returns one with probability at least $1-\\eta$ on promised one-inputs and at most $\\eta$ on promised zero-inputs."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.3","at":"b80519-80570","from_record":false,"lean":true,"lines":[140,158],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.construction_decoder_sharp","origin":"ai","part":0,"phrase":"app-a3-physical-all-input-cap","plain":"A coherent n-trial Forrelation decoder uses at most nk bit queries","record":null,"relation":"contains","role":"statement","rows":[{"end_line":176,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":140,"lines":[140,158],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.construction_decoder_sharp","note":"","plain":"A coherent n-trial Forrelation decoder uses at most nk bit queries","proof_lines":[159,176],"relation":"contains","annotation":"The candidate sets `n = repetitions k η` and adds at most `n * k` to every continuation’s cap. The clause has no promise hypothesis on $z$, and the one-query compiler still lacks a native elaboration check."},{"end_line":61,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":25,"lines":[25,33],"module":"QuarticQuery.Paper.ConstructionForrelationComplete","name":"QuarticQuery.Paper.construction_lemma_2_1_ii_complete","note":"Bounds the repetition cost by a constant depending only on $k$ times $1+\\log(1/\\eta)$.","plain":"Coherent Forrelation decoding uses Oₖ(1+log(1/η)) bit queries","proof_lines":[45,61],"relation":"part","annotation":"The compiled continuation clause charges at most $2nk$ additional physical reads for all inputs. `IsCirc (n * k) F` is the linked logical-read count."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.3","at":"b80600-80616","from_record":false,"lean":true,"lines":[186,186],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.delta_sq","origin":"ai","part":0,"phrase":"app-a3-reciprocal-scale","plain":"The square of the Forrelation threshold is 2⁻¹⁰ᵏ","record":null,"relation":"states","role":"statement","rows":[{"end_line":189,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":186,"lines":[186,186],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.delta_sq","note":"","plain":"The square of the Forrelation threshold is 2⁻¹⁰ᵏ","proof_lines":[187,189],"relation":"states","annotation":"The squared promise threshold is $\\delta^2=(2^{10k})^{-1}$."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.3","at":"b80643-80703","from_record":false,"lean":true,"lines":[18,40],"module":"QuarticQuery.Paper.ForrelationTensorSharp","name":"QuarticQuery.Paper.forr_walsh_tensor_physical","origin":"ai","part":0,"phrase":"app-a3-separate-trial-registers","plain":"Fresh Walsh trials form a retained tensor product","record":null,"relation":"contains","role":"statement","rows":[{"end_line":70,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":18,"lines":[18,40],"module":"QuarticQuery.Paper.ForrelationTensorSharp","name":"QuarticQuery.Paper.forr_walsh_tensor_physical","note":"","plain":"Fresh Walsh trials form a retained tensor product","proof_lines":[41,70],"relation":"contains","annotation":"For each number $q$ of trials, `tensorPreparation` uses a fresh position register for each copy of the same `F z`. The cited sharp physical cap $qk$ depends on the unchecked one-query compiler."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.3","at":"b80709-80805","from_record":false,"lean":true,"lines":[40,43],"module":"QuarticQuery.Paper.TensorCoordinates","name":"QuarticQuery.Paper.tensorVector_coord_product","origin":"ai","part":0,"phrase":"app-a3-independent-outcome-law","plain":"Tensor-product amplitudes multiply across trials","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":53,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":40,"lines":[40,43],"module":"QuarticQuery.Paper.TensorCoordinates","name":"QuarticQuery.Paper.tensorVector_coord_product","note":"Products of amplitudes become products of probabilities after taking squared magnitudes.","plain":"Tensor-product amplitudes multiply across trials","proof_lines":[44,53],"relation":"proof","annotation":"For a vector $v$, a trial count $n$, and a tuple of register positions, the amplitude of the repeated tensor vector is the product of the corresponding single-register amplitudes."}],"tone":4,"topic":"forrelation-addresses"},{"anchor":"sec-appendix-a.4","at":"b81114-81152","from_record":false,"lean":true,"lines":[141,150],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_N_phi","origin":"ai","part":0,"phrase":"app-a4-integer-normalization","plain":"The integer Walsh path sum divided by its positive normalization","record":null,"relation":"contains","role":"statement","rows":[{"end_line":164,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":141,"lines":[141,150],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_N_phi","note":"","plain":"The integer Walsh path sum divided by its positive normalization","proof_lines":[153,164],"relation":"contains","annotation":"For $k\\ge1$, the integer numerator equals the unnormalized sign-and-Walsh matrix calculation, and $\\Phi=N/M$ with $M>0$ and $M=m(\\sqrt m)^{k-1}$."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-appendix-a.4","at":"b81187-81252","from_record":false,"lean":true,"lines":[168,171],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_integer_tests","origin":"ai","part":0,"phrase":"app-a4-positive-integer-threshold","plain":"Two exact integer comparisons give the Forrelation domain and value bits","record":null,"relation":"contains","role":"statement","rows":[{"end_line":181,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":168,"lines":[168,171],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_integer_tests","note":"","plain":"Two exact integer comparisons give the Forrelation domain and value bits","proof_lines":[179,181],"relation":"contains","annotation":"The positive threshold uses the signed `forrelationNumerator` multiplied by $2^{5k}$. The comparison accepts equality with `forrelationDenominator`."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-appendix-a.4","at":"b81258-81308","from_record":false,"lean":true,"lines":[172,173],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_integer_tests","origin":"ai","part":0,"phrase":"app-a4-small-integer-threshold","plain":"Two exact integer comparisons give the Forrelation domain and value bits","record":null,"relation":"contains","role":"statement","rows":[{"end_line":181,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":168,"lines":[172,173],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_integer_tests","note":"","plain":"Two exact integer comparisons give the Forrelation domain and value bits","proof_lines":[179,181],"relation":"contains","annotation":"The small-value clause takes the absolute value of the integer numerator and multiplies it by $2^{5k+1}$. The extra factor two comes from the half-threshold in `delta k / 2`."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-appendix-a.4","at":"b81446-81513","from_record":false,"lean":true,"lines":[85,86],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_circuit_width","origin":"ai","part":0,"phrase":"app-a4-arithmetic-word-width","plain":"The arithmetic words grow logarithmically with block length","record":null,"relation":"states","role":"statement","rows":[{"end_line":89,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":85,"lines":[85,86],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_circuit_width","note":"","plain":"The arithmetic words grow logarithmically with block length","proof_lines":[87,89],"relation":"states","annotation":"For $k=l+1$ blocks and $t\\ge1$, the required word width plus one is at most $(3l+5)(2t)$."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-appendix-a.4","at":"b82994-83123","from_record":false,"lean":true,"lines":[84,93],"module":"QuarticQuery.Paper.ConstructionForrelationComparison","name":"QuarticQuery.Paper.construction_bs_comparison_chain","origin":"ai","part":0,"phrase":"app-a4-absorbing-the-lower-bound-constant","plain":"The chosen hardness threshold fits below the logarithmic lower bound","record":null,"relation":"states","role":"derivation","rows":[{"end_line":108,"exact_lines":false,"fidelity":"weaker","fidelity_note":"The statement proves the eventual strict comparison for every positive constant $c$ at fixed $k \\ge 2$. It does not state the ratio asymptotic of order $(\\log m)^{1+1/k}$.","fidelity_source":"ai","line":84,"lines":[84,93],"module":"QuarticQuery.Paper.ConstructionForrelationComparison","name":"QuarticQuery.Paper.construction_bs_comparison_chain","note":"","plain":"The chosen hardness threshold fits below the logarithmic lower bound","proof_lines":[94,108],"relation":"states","annotation":"The statement proves the eventual strict comparison for every positive constant $c$ at fixed $k \\ge 2$. It does not state the ratio asymptotic of order $(\\log m)^{1+1/k}$."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-appendix-a.4","at":"b83143-83281","from_record":false,"lean":true,"lines":[71,76],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_column_layout","origin":"ai","part":0,"phrase":"app-a4-column-storage-layout","plain":"The four kinds of stored board bits","record":null,"relation":"defines","role":"definition","rows":[{"end_line":76,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":71,"lines":[71,76],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_column_layout","note":"","plain":"The four kinds of stored board bits","relation":"defines","annotation":"A board coordinate consists of a column number and one of four kinds of local storage: a string position, a block-position coordinate in an address input, a pointer bit in a selected cell, or a transcript gate bit in a selected cell."},{"end_line":93,"exact_lines":false,"fidelity":"same","fidelity_source":"ai","line":87,"lines":[87,90],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_layout_cardinalities","note":"Counts the column, address-input, and address-label types used in the layout.","plain":"m columns, km bits per address input, and 2ʳ addresses","proof_lines":[91,93],"relation":"part","annotation":"The three conjuncts count rows, coordinates of one address input, and addresses. To obtain the storage expression, multiply the second count by $r$ and use the pointer and transcript fields of each cell."}],"tone":3,"topic":"exact-checking"},{"anchor":"sec-appendix-b.1","at":"b84064-84118","from_record":false,"lean":true,"lines":[171,176],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.OutTree.capped","origin":"ai","part":0,"phrase":"app-b-per-instance-cap","plain":"A separate query allowance for each input string","record":null,"relation":"defines","role":"definition","rows":[{"end_line":176,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":171,"lines":[171,176],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.OutTree.capped","note":"","plain":"A separate query allowance for each input string","relation":"defines","annotation":"The rule that a tree respects the remaining query allowance of every input string."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b84119-84218","from_record":false,"lean":true,"lines":[880,884],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product","origin":"ai","part":0,"phrase":"app-b-product-endpoint","plain":"Separate query caps give joint success at most βʳ on r inputs","record":null,"relation":"states","role":"statement","rows":[{"end_line":898,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":880,"lines":[880,884],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product","note":"","plain":"Separate query caps give joint success at most βʳ on r inputs","proof_lines":[885,898],"relation":"states","annotation":"The inputs share normalized nonnegative law $\\mu$ (`hμ`, `hμ1`), and `hT` enforces the separate caps."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b84219-84316","from_record":false,"lean":true,"lines":[902,909],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","origin":"ai","part":0,"phrase":"app-b-independent-seed","plain":"Independent finite advice and coins preserve the product bound","record":null,"relation":"states","role":"statement","rows":[{"end_line":913,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The source declaration averages over a finite seed type $S$ via `[Fintype S]`. The prose permits jointly independent coins and data without stating a finite-seed restriction; the arbitrary-measurable-seed transfer is not supplied here.","fidelity_source":"ai","line":902,"lines":[902,909],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","note":"","plain":"Independent finite advice and coins preserve the product bound","proof_lines":[910,913],"relation":"states","annotation":"The source declaration averages over a finite seed type `S` via `[Fintype S]`. The prose permits jointly independent coins and data without stating a finite-seed restriction. The arbitrary-measurable-seed transfer is not supplied here. `hp` and `hp1` make that law a probability distribution, and `hT` requires every selected tree to satisfy the separate caps."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b85376-85447","from_record":false,"lean":true,"lines":[177,178],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalLocalConsistent","origin":"ai","part":0,"phrase":"app-b-consistency-sets","plain":"The values one input may have after a history","record":null,"relation":"defines","role":"definition","rows":[{"end_line":178,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":177,"lines":[177,178],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalLocalConsistent","note":"","plain":"The values one input may have after a history","relation":"defines","annotation":"The constraint imposed on one string $U_h$ by a recorded query history."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b85448-85665","from_record":false,"lean":true,"lines":[218,222],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_prefix_iff","origin":"ai","part":0,"phrase":"app-b-adaptive-rectangle","plain":"A compatible transcript imposes separate constraints on each input","record":null,"relation":"states","role":"statement","rows":[{"end_line":231,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":218,"lines":[218,222],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_prefix_iff","note":"","plain":"A compatible transcript imposes separate constraints on each input","proof_lines":[223,231],"relation":"states","annotation":"A tuple produces a specified history exactly when the history follows the deterministic tree’s query schedule and every input separately satisfies its recorded bits. `classicalSchedule` records that legal sequence, and `classicalLocalConsistent` records each input’s constraints."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b85666-85760","from_record":false,"lean":true,"lines":[275,284],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_product_law","origin":"ai","part":0,"phrase":"app-b-conditional-product","plain":"Conditioning on a possible history preserves product form","record":null,"relation":"states","role":"statement","rows":[{"end_line":301,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":275,"lines":[275,284],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_product_law","note":"","plain":"Conditioning on a possible history preserves product form","proof_lines":[285,301],"relation":"states","annotation":"Each factor is `classicalLaw (classicalTranscriptWeight μ τ h)`. Lean allows a different prior `μ h` for each input and normalizes its surviving weight separately after a positive-mass history."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b85762-85920","from_record":false,"lean":true,"lines":[387,389],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue","origin":"ai","part":0,"phrase":"app-b-continuation-value","plain":"Optimal success for one input after its transcript, using its remaining budget","record":null,"relation":"defines","role":"definition","rows":[{"end_line":390,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":387,"lines":[387,389],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue","note":"","plain":"Optimal success for one input after its transcript, using its remaining budget","relation":"defines","annotation":"The value $V_h(\\tau)$: the best success probability for input $h$ after the recorded history, with its unused allowance remaining. `classicalValue` normalizes by the remaining probability mass."},{"end_line":401,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":395,"lines":[395,400],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue_attained","note":"A tree attains the value with exactly the allowed remaining budget.","plain":"A bounded strategy attains the stated continuation value","proof_lines":[401,401],"relation":"part","annotation":"There exists a single-input decision tree attaining $V_h(\\tau)$ while using at most the remaining allowance $L-q_h(\\tau)$."},{"end_line":411,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":405,"lines":[405,410],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue_bounds_tree","note":"Every allowed tree is bounded by that value.","plain":"Every allowed continuation is bounded by the best remaining value","proof_lines":[411,411],"relation":"part","annotation":"Any tree using at most the remaining $L-q_h(\\tau)$ queries has conditional success at most $V_h(\\tau)$. The assumption `hμ` requires nonnegative prior weights for every input, and `hT` is the remaining-query cap."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b86067-86119","from_record":false,"lean":true,"lines":[439,447],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_16_transcript","origin":"ai","part":0,"phrase":"app-b-value-step","plain":"The expected best value cannot rise after one allowed query","record":null,"relation":"states","role":"statement","rows":[{"end_line":453,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":439,"lines":[439,447],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_16_transcript","note":"","plain":"The expected best value cannot rise after one allowed query","proof_lines":[448,453],"relation":"states","annotation":"The hypothesis `hc : classicalQueriesTo τ h < L` says a query remains. `hμ` gives nonnegative weights."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b86120-86232","from_record":false,"lean":true,"lines":[306,310],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcriptWeight_append","origin":"ai","part":0,"phrase":"app-b-other-inputs-unchanged","plain":"Each reply restricts only the probability law of the queried input","record":null,"relation":"part","role":"statement","rows":[{"end_line":334,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":306,"lines":[306,310],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcriptWeight_append","note":"Only the queried input’s restricted weight changes.","plain":"Each reply restricts only the probability law of the queried input","proof_lines":[311,334],"relation":"part","annotation":"Appending one query and reply restricts the prior weight for the queried input $h$ to inputs having that reply. `Function.update` expresses this replacement of one component."},{"end_line":435,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":424,"lines":[424,428],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_budget_append","note":"Only the queried input’s remaining allowance changes.","plain":"A new query reduces only one remaining allowance","proof_lines":[429,435],"relation":"part","annotation":"After appending a query to input $h$, the vector of remaining allowances changes only at $h$, where one unit is subtracted."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b86233-86368","from_record":false,"lean":true,"lines":[615,627],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_conditional_expectation","origin":"ai","part":0,"phrase":"app-b-product-step","plain":"The conditional expectation of the product of continuation values cannot increase","record":null,"relation":"states","role":"statement","rows":[{"end_line":653,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":615,"lines":[615,627],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_conditional_expectation","note":"","plain":"The conditional expectation of the product of continuation values cannot increase","proof_lines":[628,653],"relation":"states","annotation":"`hm` requires a possible history, `hc` requires an unused query on the selected input, and `hμ` supplies nonnegative prior weights."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b86369-86410","from_record":false,"lean":true,"lines":[892,898],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product","origin":"ai","part":0,"phrase":"app-b-initial-product","plain":"Separate query caps give joint success at most βʳ on r inputs","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":898,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":880,"lines":[892,898],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product","note":"","plain":"Separate query caps give joint success at most βʳ on r inputs","proof_lines":[885,898],"relation":"proof","annotation":"The inputs share normalized nonnegative law $\\mu$ (`hμ`, `hμ1`), and `hT` enforces the separate caps."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b86457-86573","from_record":false,"lean":true,"lines":[220,221],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_leaf","origin":"ai","part":0,"phrase":"app-b-leaf-independence","plain":"A fixed answer word succeeds with the product of its marginal chances","record":null,"relation":"states","role":"statement","rows":[{"end_line":232,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":220,"lines":[220,221],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_leaf","note":"Apply this product-law identity to the conditional laws at the leaf.","plain":"A fixed answer word succeeds with the product of its marginal chances","proof_lines":[222,232],"relation":"states","annotation":"Under a product input law, the success weight of a leaf returning word $s$ equals the product of the success weights of its separate constant answers $s_h$. `guessSuccess` asks that every input be promised and every answer be correct."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b86579-86662","from_record":false,"lean":true,"lines":[405,410],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue_bounds_tree","origin":"ai","part":0,"phrase":"app-b-leaf-value","plain":"Every allowed continuation is bounded by the best remaining value","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":411,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":405,"lines":[405,410],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue_bounds_tree","note":"A constant-answer leaf has depth zero, so it is one allowed continuation.","plain":"Every allowed continuation is bounded by the best remaining value","proof_lines":[411,411],"relation":"proof","annotation":"Any tree using at most the remaining $L-q_h(\\tau)$ queries has conditional success at most $V_h(\\tau)$. The assumption `hμ` requires nonnegative prior weights for every input, and `hT` is the remaining-query cap."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b86663-86684","from_record":false,"lean":true,"lines":[889,892],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product","origin":"ai","part":0,"phrase":"app-b-leaf-average","plain":"Separate query caps give joint success at most βʳ on r inputs","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":898,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":880,"lines":[889,892],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product","note":"","plain":"Separate query caps give joint success at most βʳ on r inputs","proof_lines":[885,898],"relation":"proof","annotation":"The inputs share normalized nonnegative law $\\mu$ (`hμ`, `hμ1`), and `hT` enforces the separate caps."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b86686-86722","from_record":false,"lean":true,"lines":[725,727],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_capped_depth_uniform","origin":"ai","part":0,"phrase":"app-b-finite-horizon","plain":"A cap of L per input allows at most rL queries","record":null,"relation":"states","role":"statement","rows":[{"end_line":728,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":725,"lines":[725,727],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_capped_depth_uniform","note":"","plain":"A cap of L per input allows at most rL queries","proof_lines":[728,728],"relation":"states","annotation":"The hypothesis `hT` is the separate-cap predicate, not a bound on the average number of queries."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.1","at":"b86728-86780","from_record":false,"lean":true,"lines":[902,909],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","origin":"ai","part":0,"phrase":"app-b-final-average","plain":"Independent finite advice and coins preserve the product bound","record":null,"relation":"states","role":"derivation","rows":[{"end_line":913,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The average over coins and other data is explicitly over a finite seed type $S$ in this source theorem; the prose states no such restriction.","fidelity_source":"ai","line":902,"lines":[902,909],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","note":"","plain":"Independent finite advice and coins preserve the product bound","proof_lines":[910,913],"relation":"states","annotation":"The average over coins and other data is explicitly over a finite seed type `S` in this source theorem. The prose states no such restriction. `hp` and `hp1` make that law a probability distribution, and `hT` requires every selected tree to satisfy the separate caps."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b.2","at":"b87078-87186","from_record":false,"lean":true,"lines":[32,45],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.simTree","origin":"ai","part":0,"phrase":"app-b-example-two-counters","plain":"Stop before an unaffordable target read","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":45,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":32,"lines":[32,45],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.simTree","note":"","plain":"Stop before an unaffordable target read","relation":"defines","annotation":"A replay tree with two separate counters: `t` counts original queries still to replay, and `c` counts target reads still allowed. An outside-target query uses the supplied `base` reply without spending target budget."}],"tone":5,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-d","at":"b94515-94553","from_record":false,"lean":true,"lines":[135,135],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_four","origin":"ai","part":0,"phrase":"app-d-four-block-answer","plain":"Four blocks give the exponent seven halves","record":null,"relation":"states","role":"example","rows":[{"end_line":135,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":135,"lines":[135,135],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_four","note":"","plain":"Four blocks give the exponent seven halves","relation":"states","annotation":"Substituting $k=4$ into $4-2/k$ gives $7/2$."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-appendix-d","at":"b94558-94605","from_record":false,"lean":true,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","origin":"ai","part":0,"phrase":"app-d-four-block-strict-range","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","record":null,"relation":"part","role":"example","rows":[{"end_line":410,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem covers all fixed $k\\ge 2$ and nonnegative $\\alpha<4-2/k$; this application takes $k=4$. Negative $\\alpha$ follow from the $\\alpha=0$ case by monotonicity.","fidelity_source":"ai","line":372,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","note":"","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","proof_lines":[387,410],"relation":"part","annotation":"The theorem covers all fixed $k\\ge 2$ and nonnegative $\\alpha<4-2/k$. This application takes $k=4$. Negative $\\alpha$ follow from the $\\alpha=0$ case by monotonicity. A positive constant `d` is chosen before `t` grows, and the same named circuit defines both complexities."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-appendix-e","at":"b96697-96765","from_record":false,"lean":true,"lines":[216,223],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_conditional","origin":"ai","part":0,"phrase":"app-e-measured-law","plain":"Conditioning on success preserves the label proportions","record":null,"relation":"proof","role":"statement","rows":[{"end_line":242,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The conditional-law theorem permits arbitrary finite nonnegative label weights of positive mass and $0\\le f<1$. Here $q_i=w_i/m$, so normalisation gives $w_i/W$.","fidelity_source":"ai","line":216,"lines":[216,223],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_conditional","note":"","plain":"Conditioning on success preserves the label proportions","proof_lines":[224,242],"relation":"proof","annotation":"The conditional-law theorem permits arbitrary finite nonnegative label weights of positive mass and $0\\le f<1$. Here $q_i=w_i/m$, so normalisation gives $w_i/W$."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-e","at":"b96812-96847","from_record":false,"lean":true,"lines":[202,210],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_label_law","origin":"ai","part":0,"phrase":"app-e-measured-implementation","plain":"The physical amplifier preserves relative probabilities of all successful labels","record":null,"relation":"states","role":"statement","rows":[{"end_line":211,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":202,"lines":[202,210],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_label_law","note":"","plain":"The physical amplifier preserves relative probabilities of all successful labels","proof_lines":[211,211],"relation":"states","annotation":"A coherent sampler with query cost `n` can be amplified to a bounded physical query program with output law `ampLaw`. The hypothesis `h : Samples n L` supplies the preparation. `hγ` and `hη` require positive success threshold and error target."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-e","at":"b97320-97409","from_record":false,"lean":true,"lines":[97,106],"module":"QuarticQuery.Upper.FinalB","name":"QuarticQuery.Upper.finalB_retained_original","origin":"ai","part":0,"phrase":"app-e-retained-factor","plain":"On success the original register retains the normalized good state","record":null,"relation":"states","role":"statement","rows":[{"end_line":109,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":97,"lines":[97,106],"module":"QuarticQuery.Upper.FinalB","name":"QuarticQuery.Upper.finalB_retained_original","note":"","plain":"On success the original register retains the normalized good state","proof_lines":[107,109],"relation":"states","annotation":"For the actual circuit `finalB`, the successful part of its output factors as an auxiliary vector times the original good-state vector. The binder `hM : 0 < M` requires a nonempty iteration selector."}],"tone":8,"topic":"amplification"},{"anchor":"sec-appendix-e","at":"b98045-98115","from_record":false,"lean":true,"lines":[134,134],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","origin":"ai","part":0,"phrase":"app-e-winning-promise","plain":"A winning column with its true-address certificate","record":null,"relation":"part","role":"statement","rows":[{"end_line":137,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":131,"lines":[134,134],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","note":"","plain":"A winning column with its true-address certificate","relation":"part","annotation":"The promise witness `hdef` has type `∀ h, promised f (readA x i h)`. Its scope is one column, so the definition permits arbitrary address inputs elsewhere on the board."}],"tone":2,"topic":"board-and-certificates"},{"anchor":"sec-appendix-e","at":"b98340-98379","from_record":false,"lean":true,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","origin":"ai","part":0,"phrase":"app-e-one-circuit","plain":"Both query bounds for each fixed Forrelation order k≥2","record":null,"relation":"contains","role":"statement","rows":[{"end_line":74,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":58,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","note":"","plain":"Both query bounds for each fixed Forrelation order k≥2","proof_lines":[68,74],"relation":"contains","annotation":"For each fixed $k\\ge2$, sufficiently large boards have quantum cost at most $C\\sqrt m(\\log_2m)^b$ and randomized cost at least $c\\,m^{2-1/k}/(\\log_2m)^2$, with positive constants. Constants, the logarithmic exponent and the threshold are chosen before `t`."}],"tone":1,"topic":"quartic-exponent"},{"anchor":"sec-appendix-e","at":"b98500-98583","from_record":false,"lean":true,"lines":[18,18],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.alphaTot_eq_four_unconditional","origin":"ai","part":0,"phrase":"app-e-exponent-endpoint","plain":"The optimal universal exponent is four","record":null,"relation":"proof","role":"statement","rows":[{"end_line":19,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":18,"lines":[18,18],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.alphaTot_eq_four_unconditional","note":"","plain":"The optimal universal exponent is four","proof_lines":[19,19],"relation":"proof","annotation":"The unconditional endpoint is a single application of `alphaTot_eq_four_of_bansalSinha`. Its argument is the proof of the one-address hardness used to construct the separating family."},{"end_line":77,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":70,"lines":[70,70],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.universalPower_four","note":"","plain":"R(f) ≤ 20736(1+Q(f))⁴ for total functions","proof_lines":[71,77],"relation":"part","annotation":"Every total Boolean function satisfies $R(f)\\le20736(1+Q(f))^4$. The constant is independent of the function and its input length, which is exactly what `UniversalPower 4` requires."}],"tone":1,"topic":"quartic-exponent"}],"topics":[{"dark":"oklch(0.607 0.145 45.9)","description":"What a query costs, how the two algorithm models work, and what their complexity measures require.","family":"family-query-costs","id":"query-costs","light":"oklch(0.398 0.099 45.9)","name":"Quantum and classical queries","part":0,"tone":0},{"dark":"oklch(0.692 0.129 53.1)","description":"How the two bounds on the same family exclude every universal power below four.","family":"family-query-costs","id":"quartic-exponent","light":"oklch(0.482 0.087 53.1)","name":"The exponent four","part":0,"tone":1},{"dark":"oklch(0.660 0.137 100.5)","description":"How column strings, address inputs, pointers and proposed gate outputs define one total Boolean function.","family":"family-board-and-certificates","id":"board-and-certificates","light":"oklch(0.450 0.093 100.5)","name":"The board and its certificates","part":0,"tone":2},{"dark":"oklch(0.657 0.145 161.4)","description":"How exact local tests detect invalid transcripts, wrong addresses and failed pointers.","family":"family-forrelation-addresses","id":"exact-checking","light":"oklch(0.448 0.099 161.4)","name":"Checking a proposed winner","part":0,"tone":3},{"dark":"oklch(0.742 0.129 168.6)","description":"How the quantum decoder estimates promised address digits and how many queries it uses.","family":"family-forrelation-addresses","id":"forrelation-addresses","light":"oklch(0.532 0.087 168.6)","name":"Forrelation addresses","part":0,"tone":4},{"dark":"oklch(0.750 0.137 229.5)","description":"Why the planted change is hard to find and why limited queries cannot recover an entire address.","family":"family-classical-lower-bound","id":"classical-lower-bound","light":"oklch(0.540 0.093 229.5)","name":"The classical lower bound","part":0,"tone":5},{"dark":"oklch(0.655 0.137 274.5)","description":"How following two pointers gives a comparison and why a winning column wins with high probability.","family":"family-comparisons","id":"comparisons","light":"oklch(0.445 0.093 274.5)","name":"Comparing two columns","part":0,"tone":6},{"dark":"oklch(0.632 0.145 340.9)","description":"How comparison weights and successive pivots produce a short list containing the winner.","family":"family-tournament","id":"tournament","light":"oklch(0.422 0.099 340.9)","name":"Finding a winning column","part":0,"tone":7},{"dark":"oklch(0.717 0.129 348.1)","description":"How reflections increase acceptance while preserving the conditional distribution and bounding every run.","family":"family-tournament","id":"amplification","light":"oklch(0.507 0.087 348.1)","name":"Amplifying success","part":0,"tone":8}]}