{"canonical":{"quartic.lemma-2":[null,11546,12043],"quartic.lemma-4":[138,21108,21711],"quartic.lemma-5":[null,27902,28535],"quartic.proposition-3":[114,17282,17828],"quartic.theorem-1":[null,3486,4010]},"families":[{"id":"family-query","name":"Query complexity and the quartic exponent · Forrelation and address decoding","named":false,"part":0,"topics":["query","forrelation"]},{"id":"family-construction","name":"Columns and certificates · Verifying a candidate","named":false,"part":0,"topics":["verification","construction"]},{"id":"family-comparison","name":"Pairwise comparisons · Weighted tournament and amplification · Predicting the hidden address","named":false,"part":0,"topics":["comparison","tournament","prediction"]},{"id":"family-planted","name":"The planted input and erased zero","named":false,"part":0,"topics":["planted"]}],"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":45136,"name":"","start_byte":0}],"passages":[[1845,8694,["quartic.proposition-3","quartic.theorem-1"],"sec-1"],[8778,12284,["quartic.lemma-2"],"sec-2"],[15902,24309,["quartic.lemma-4","quartic.proposition-3"],"sec-4"],[24406,32995,["quartic.lemma-5"],"sec-5"],[38885,39954,["quartic.theorem-1"],"sec-8"]],"segments":[[256,420,[0]],[635,715,[1]],[721,794,[2]],[1888,1927,[3]],[2006,2012,[4]],[2017,2023,[5]],[2323,2456,[6]],[3286,3302,[7]],[3558,3616,[8]],[3618,3833,[9]],[3836,3941,[10]],[3943,4009,[11]],[4152,4230,[12]],[4232,4255,[13]],[4260,4310,[14]],[4345,4380,[15]],[4393,4422,[16]],[4424,4515,[17]],[4654,4678,[18]],[4683,4711,[19]],[4717,4747,[20]],[4837,4923,[21]],[4970,5127,[22]],[5128,5155,[23]],[5527,5650,[24]],[6021,6119,[25]],[6124,6171,[26]],[6276,6283,[27]],[6320,6419,[28]],[6420,6489,[29]],[6490,6573,[30]],[6581,6645,[31]],[6646,6753,[32]],[7219,7329,[33]],[7437,7503,[34]],[7507,7532,[35]],[7704,7834,[36]],[7836,7890,[37]],[7896,7974,[38]],[8813,8936,[39]],[8942,8977,[40]],[9038,9073,[41]],[9156,9167,[42]],[9169,9180,[43]],[9208,9229,[44]],[9347,9395,[45]],[9539,9715,[46]],[9811,9848,[47]],[9903,9980,[48]],[10054,10092,[49]],[10298,10332,[50]],[10334,10434,[51]],[10439,10466,[52]],[10468,10530,[53]],[10532,10568,[54]],[10573,10615,[55]],[10625,10707,[56]],[10708,10806,[57]],[10807,10901,[58]],[10903,10959,[59]],[10965,11027,[60]],[11090,11145,[61]],[11227,11257,[62]],[11261,11312,[63]],[11313,11344,[64]],[11349,11411,[65]],[11413,11499,[66]],[11675,11743,[67]],[11745,11902,[68]],[11903,12042,[69]],[12414,12424,[70]],[12507,12612,[71]],[12616,12647,[72]],[12648,12726,[73]],[12729,12797,[74]],[12798,12898,[75]],[12955,13006,[76]],[13047,13110,[77]],[13116,13235,[78]],[13236,13285,[79]],[13417,13547,[80]],[13618,13653,[81]],[13657,13734,[82]],[13738,13857,[83]],[13861,13951,[84]],[13953,14017,[85]],[14019,14116,[86]],[14117,14238,[87]],[14314,14356,[88]],[14358,14400,[89]],[14445,14506,[90]],[14511,14551,[91]],[14553,14649,[92]],[14653,14694,[93]],[14700,14789,[94]],[14804,14871,[95]],[14882,14913,[96]],[14924,14940,[97]],[14942,14985,[98]],[14991,15025,[99]],[15190,15238,[100]],[15331,15400,[101]],[15953,16039,[102]],[16040,16083,[103]],[16084,16206,[104]],[16207,16269,[105]],[16313,16522,[106]],[16524,16669,[107]],[16670,16865,[108]],[16866,16975,[109]],[16985,17045,[110]],[17060,17070,[111]],[17072,17129,[112]],[17130,17210,[113]],[17361,17828,[114]],[17830,17921,[115]],[18238,18391,[116]],[18466,18523,[117]],[18525,18555,[118]],[18556,18609,[119]],[18614,18644,[120]],[19068,19104,[121]],[19177,19259,[122]],[19261,19364,[123]],[19426,19581,[124]],[19583,19621,[125]],[19622,19685,[126]],[19686,19783,[127]],[19829,19924,[128]],[19933,19992,[129]],[20235,20401,[130]],[20494,20574,[131]],[20575,20618,[132]],[20619,20733,[133]],[20735,20782,[134]],[20796,20926,[135]],[20927,21042,[136]],[21220,21294,[137]],[21295,21511,[138]],[21512,21622,[139]],[21623,21710,[140]],[21713,21931,[141]],[22057,22118,[142]],[22119,22190,[143]],[22195,22314,[144]],[22315,22354,[145]],[22355,22472,[146]],[22569,22650,[147]],[22651,22795,[148]],[22880,22994,[149]],[22995,23145,[150]],[23146,23271,[151]],[23272,23317,[152]],[23318,23400,[153]],[23402,23469,[154]],[23470,23588,[155]],[23590,23764,[156]],[23887,23997,[157]],[23998,24026,[158]],[24228,24308,[159]],[24621,24646,[160]],[24736,24935,[161]],[25011,25040,[162]],[25042,25131,[163]],[25133,25273,[164]],[25274,25301,[165]],[25302,25321,[166]],[25322,25387,[167]],[25392,25423,[168]],[25425,25560,[169]],[25561,25577,[170]],[25697,25777,[171]],[26441,26556,[172]],[26713,26813,[173]],[26814,26905,[174]],[26906,27044,[175]],[27430,27489,[176]],[27546,27603,[177]],[27668,27754,[178]],[28078,28192,[179]],[28194,28375,[180]],[28376,28534,[181]],[28546,28626,[182]],[28627,28795,[183]],[28799,28885,[184]],[28891,28960,[185]],[28962,29094,[186]],[29095,29220,[187]],[29226,29263,[188]],[29265,29303,[189]],[29304,29382,[190]],[29388,29421,[191]],[29492,29539,[192]],[29781,29831,[193]],[29833,29984,[194]],[30031,30182,[195]],[30183,30231,[196]],[30274,30316,[197]],[30443,30571,[198]],[30572,30642,[199]],[30759,30872,[200]],[30874,30925,[201]],[30926,31157,[202]],[31158,31243,[203]],[31331,31423,[204]],[31429,31480,[205]],[31485,31566,[206]],[31568,31747,[207]],[31842,31971,[208]],[31972,32022,[209]],[32109,32224,[210]],[32379,32440,[211]],[32446,32470,[212]],[32475,32525,[213]],[32531,32570,[214]],[32572,32624,[215]],[32632,32721,[216]],[32729,32763,[217]],[33116,33165,[218]],[33170,33203,[219]],[33208,33245,[220]],[33282,33394,[221]],[33433,33597,[222]],[33598,33669,[223]],[33822,33856,[224]],[34914,35017,[225]],[35163,35215,[226]],[35236,35284,[227]],[35290,35328,[228]],[35334,35363,[229]],[35474,35515,[230]],[35615,35661,[231]],[35769,35846,[232]],[36201,36374,[233]],[38591,38641,[234]],[38643,38696,[235]],[38702,38780,[236]],[39042,39231,[237]],[39233,39340,[238]],[39342,39404,[239]],[39409,39476,[240]]],"ties":[{"anchor":"front","at":"b256-420","from_record":false,"lean":true,"lines":[30,40],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_family_named","origin":"ai","part":0,"phrase":"a-family","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":"stronger","fidelity_note":"Lean gives the same family with explicit logarithmic losses, $b=6$ and $c=1/400$, and a specified realizing circuit; the abstract suppresses these details.","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":"Set $k=l+1$. The witness is `forrCircuit l t` in both bounds, and `max t₀ 8` combines the Forrelation threshold with the minimum board size needed by the lower-bound proof."}],"tone":0,"topic":"query"},{"anchor":"front","at":"b635-715","from_record":false,"lean":true,"lines":[18,18],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.alphaTot_eq_four_unconditional","origin":"ai","part":0,"phrase":"a-critical-exponent","plain":"The critical 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 critical exponent is four","proof_lines":[19,19],"relation":"states","annotation":"The proof discharges the earlier hypothesis by passing `ForrelationLower.bansalSinhaLower` to `alphaTot_eq_four_of_bansalSinha`. The infimum in `alphaTot` ranges over powers with one constant for every total Boolean function."}],"tone":0,"topic":"query"},{"anchor":"front","at":"b721-794","from_record":false,"lean":true,"lines":[42,44],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.cubic_bound_fails_unconditional","origin":"ai","part":0,"phrase":"a-cubic-refutation","plain":"No universal cubic randomized-to-quantum bound exists","record":null,"relation":"states","role":"statement","rows":[{"end_line":45,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":42,"lines":[42,44],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.cubic_bound_fails_unconditional","note":"","plain":"No universal cubic randomized-to-quantum bound exists","proof_lines":[45,45],"relation":"states","annotation":"The conclusion negates a single existential `C` outside both `n` and `f`. `cubic_bound_fails_of_bansalSinha` rules out that constant using the fixed family with $k=3$."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b1888-1927","from_record":false,"lean":true,"lines":[27,27],"module":"QuarticQuery.Statement","name":"QuarticQuery.TotalBool","origin":"ai","part":0,"phrase":"i-total-function","plain":"A Boolean value for every bit input","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 value for every bit input","relation":"defines","annotation":"A total Boolean function assigns an output bit to every input bit string. The coordinate type `ι` names the input positions, and `BitInput ι` means `ι → Bool`."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b2006-2012","from_record":false,"lean":true,"lines":[84,85],"module":"QuarticQuery.Statement","name":"QuarticQuery.R","origin":"ai","part":0,"phrase":"i-r","plain":"Randomized queries with one-third error","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":"Randomized queries with one-third error","relation":"defines","annotation":"The coordinate type `ι` is finite, and `f : PartialBool ι` may be undefined outside its promise. Lean writes this minimum as `sInf {t | RLe f t}`."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b2017-2023","from_record":false,"lean":true,"lines":[150,151],"module":"QuarticQuery.Statement","name":"QuarticQuery.Q","origin":"ai","part":0,"phrase":"i-q","plain":"Quantum queries with one-third error","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":"Quantum queries with one-third error","relation":"defines","annotation":"The least worst-case bit-query budget of a quantum algorithm that succeeds with probability at least $2/3$ on every promised input. For a total function, the paper's $Q(f)$ is `Q (totalise f)`."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b2323-2456","from_record":false,"lean":true,"lines":[329,329],"module":"QuarticQuery.Statement","name":"QuarticQuery.alphaTot","origin":"ai","part":0,"phrase":"i-critical-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":"same","fidelity_source":"ai","line":329,"lines":[329,329],"module":"QuarticQuery.Statement","name":"QuarticQuery.alphaTot","note":"Lean makes the universal constant explicit and uses the equivalent shifted convention explained in the note.","plain":"Infimum of powers of 1+Q that bound randomized query complexity","relation":"defines","annotation":"The infimum of exponents $\\alpha$ for which one constant bounds $R(f)$ by $C(1+Q(f))^\\alpha$ for every total Boolean function of every positive input length. `UniversalPower α` contains this whole quantifier order."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b3286-3302","from_record":false,"lean":true,"lines":[52,53],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.D_le_Q_pow_four","origin":"ai","part":0,"phrase":"i-known-quartic-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":"Lean supplies the explicit universal coefficient 20736 rather than only asserting existence of a big-O constant.","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 proof supplies the explicit universal coefficient 20736 rather than only asserting existence of a big-$O$ constant. The only explicit argument is the total function `f`. Partial functions are excluded."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b3558-3616","from_record":false,"lean":true,"lines":[70,70],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.universalPower_four","origin":"ai","part":0,"phrase":"thm1-universal-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 exponent four satisfies the universal comparison $R(f)\\le C(1+Q(f))^4$ for all total Boolean functions, with one constant independent of input length."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b3618-3833","from_record":false,"lean":true,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","origin":"ai","part":0,"phrase":"thm1-quantifier-order","plain":"Both query bounds for each fixed Forrelation order k≥2","record":null,"relation":"contains","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":"The constants and threshold are chosen after $k$, before the size parameter $t$.","plain":"Both query bounds for each fixed Forrelation order k≥2","proof_lines":[68,74],"relation":"contains","annotation":"The witness circuit `Cir` occurs inside the threshold quantifier, and both complexities refer to `Fkm k t Cir`."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b3836-3941","from_record":false,"lean":true,"lines":[58,67],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_equation_two","origin":"ai","part":0,"phrase":"thm1-both-bounds","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":"Both inequalities concern the same Cir and the same total function.","plain":"Both query bounds for each fixed Forrelation order k≥2","proof_lines":[68,74],"relation":"contains","annotation":"The witness circuit `Cir` occurs inside the threshold quantifier, and both complexities refer to `Fkm k t Cir`."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b3943-4009","from_record":false,"lean":true,"lines":[18,18],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.alphaTot_eq_four_unconditional","origin":"ai","part":0,"phrase":"thm1-exponent","plain":"The critical 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 critical exponent is four","proof_lines":[19,19],"relation":"states","annotation":"Unfolding `alphaTot` reveals a universal comparison over all input lengths and all total functions."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b4152-4230","from_record":false,"lean":true,"lines":[30,40],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_family_named","origin":"ai","part":0,"phrase":"i-same-function","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":"The same forrCircuit appears in both complexity expressions.","plain":"The explicit Forrelation family has both bounds with fixed logarithmic powers","proof_lines":[41,54],"relation":"contains","annotation":"Look for both occurrences of `Fkm (l + 1) t (Forrelation.forrCircuit l t)`. The circuit is fixed by its parameters, so the upper and lower inequalities concern the same total function."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b4232-4255","from_record":false,"lean":true,"lines":[30,40],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_family_named","origin":"ai","part":0,"phrase":"i-logarithmic-exponent","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":"The quantum bound has an explicit sixth power of $\\log_2 m$.","plain":"The explicit Forrelation family has both bounds with fixed logarithmic powers","proof_lines":[41,54],"relation":"contains","annotation":"The quantum conjunct writes the sixth power on `Real.logb 2 (mValue t : ℝ)`. The circuit construction first bounds its size and then invokes the budget for that named circuit (see Appendix E.5 of the full reconstruction for the deliberately loose sixth-power estimate).","annotation_references":[{"start":180,"end":219,"key":"long/appendix:e.5"}]}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b4260-4310","from_record":false,"lean":true,"lines":[20,22],"module":"QuarticQuery.Paper.Section4","name":"QuarticQuery.Paper.prop_4_2","origin":"ai","part":0,"phrase":"i-finite-lower","plain":"Every realizing circuit has the finite randomized lower bound","record":null,"relation":"states","role":"statement","rows":[{"end_line":25,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean proves this for every circuit realizing $P$; the prose discusses the specified circuit family.","fidelity_source":"ai","line":20,"lines":[20,22],"module":"QuarticQuery.Paper.Section4","name":"QuarticQuery.Paper.prop_4_2","note":"","plain":"Every realizing circuit has the finite randomized lower bound","proof_lines":[23,25],"relation":"states","annotation":"The binder `CircuitRealises C (P k t)` requires exact domain and value outputs for any chosen circuit realizing $P_{k,4^t}$. The paper uses the bound for its specified family."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b4345-4380","from_record":false,"lean":true,"lines":[309,311],"module":"QuarticQuery.Statement","name":"QuarticQuery.Lvalue","origin":"ai","part":0,"phrase":"i-cutoff","plain":"The query cutoff for one Forrelation instance","record":null,"relation":"defines","role":"definition","rows":[{"end_line":311,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":309,"lines":[309,311],"module":"QuarticQuery.Statement","name":"QuarticQuery.Lvalue","note":"","plain":"The query cutoff for one Forrelation instance","relation":"defines","annotation":"The integer $L=\\lfloor m^{1-1/k}/(\\log_2m)^2\\rfloor$, with $m=4^t$."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-1","at":"b4393-4422","from_record":false,"lean":true,"lines":[30,40],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_family_named","origin":"ai","part":0,"phrase":"i-explicit-lower-constant","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":"The lower-bound conjunct uses the exact constant $1/400$.","plain":"The explicit Forrelation family has both bounds with fixed logarithmic powers","proof_lines":[41,54],"relation":"contains","annotation":"The last conjunct has the coefficient `(1 / 400 : ℝ)` and denominator `(Real.logb 2 (mValue t : ℝ)) ^ 2`. It is the real-power form of the lower bound for the same circuit used by the quantum algorithm."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b4424-4515","from_record":false,"lean":true,"lines":[23,29],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.theorem_1_1_unconditional","origin":"ai","part":0,"phrase":"i-finite-headline","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":"Both bounds use the same circuit `C` and the same function `Fkm k t C`."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b4654-4678","from_record":false,"lean":true,"lines":[134,134],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_three","origin":"ai","part":0,"phrase":"i-exponent-three","plain":"At $k=3$, the expression $4-2/k$ equals $10/3$","record":null,"relation":"states","role":"derivation","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":"At $k=3$, the expression $4-2/k$ equals $10/3$","relation":"states","annotation":"The expression $4-2/k$ equals $10/3$ when $k=3$."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b4683-4711","from_record":false,"lean":true,"lines":[42,44],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.cubic_bound_fails_unconditional","origin":"ai","part":0,"phrase":"i-cubic","plain":"No universal cubic randomized-to-quantum bound exists","record":null,"relation":"states","role":"statement","rows":[{"end_line":45,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":42,"lines":[42,44],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.cubic_bound_fails_unconditional","note":"","plain":"No universal cubic randomized-to-quantum bound exists","proof_lines":[45,45],"relation":"states","annotation":"No real constant $C$ makes $R(f)\\le C Q(f)^3$ hold for every total Boolean function on every positive input length."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b4717-4747","from_record":false,"lean":true,"lines":[142,142],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_tendsto","origin":"ai","part":0,"phrase":"i-exponents-approach-four","plain":"The family exponents tend to four","record":null,"relation":"states","role":"derivation","rows":[{"end_line":147,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":142,"lines":[142,142],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent_tendsto","note":"","plain":"The family exponents tend to four","proof_lines":[143,147],"relation":"states","annotation":"The numbers $4-2/k$ tend to four as the integer $k$ tends to infinity. In Lean, `atTop` describes arbitrarily large $k$ and `nhds 4` describes convergence to four."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b4837-4923","from_record":false,"lean":true,"lines":[245,249],"module":"QuarticQuery.Statement","name":"QuarticQuery.BitLoc","origin":"ai","part":0,"phrase":"p3-overview-layout","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":"The nested sum gives separate cases for column bits, address bits, and the two kinds of certificate storage. Each board simply assigns a Boolean to every position in the sum."}],"tone":3,"topic":"construction"},{"anchor":"sec-1","at":"b4970-5127","from_record":false,"lean":true,"lines":[131,137],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","origin":"ai","part":0,"phrase":"p3-overview-wins","plain":"A winning column and its correct 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 and its correct certificate","relation":"defines","annotation":"The all-one test precedes a witness that makes `trueAddress` available. The transcript equality and `constructionOutwardPointers` both inspect the cell at that address."}],"tone":3,"topic":"construction"},{"anchor":"sec-1","at":"b5128-5155","from_record":false,"lean":true,"lines":[185,187],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_unique_winner","origin":"ai","part":0,"phrase":"p3-overview-unique","plain":"At most one column can win","record":null,"relation":"states","role":"statement","rows":[{"end_line":190,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean proves uniqueness for arbitrary partial functions, circuits and address lengths, not only the Forrelation family.","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":"Lean proves uniqueness for arbitrary partial functions, circuits and address lengths, not only the Forrelation family."}],"tone":3,"topic":"construction"},{"anchor":"sec-1","at":"b5527-5650","from_record":false,"lean":true,"lines":[498,507],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify","origin":"ai","part":0,"phrase":"q4-preview-verify","plain":"One bounded verifier handles both winners and nonwinners","record":null,"relation":"part","role":"explanation","rows":[{"end_line":524,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type supplies a bounded verifier with its two correctness guarantees, but not the square-root asymptotic estimate or the local-test count asserted in the sentence.","fidelity_source":"ai","line":498,"lines":[498,507],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify","note":"","plain":"One bounded verifier handles both winners and nonwinners","proof_lines":[508,524],"relation":"part","annotation":"The first conjunct gives a separate `Runs` witness for each candidate column. The budget adds two address-decoding costs to failed-test search, and the error clauses distinguish columns with no winning address from any pair satisfying `WinsAt`."},{"end_line":456,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type bounds fixed-address failed-test search under $K \\ge 2$ and $0 < \\varepsilon < 1/2$. It does not include fresh address decoding, complete winner verification or the substitution $K = O_k(m\\ell^3)$.","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":"`searchCost` is the cost after fixing a candidate address. The proof gives the amplifier threshold $1/K$ using `hK : 2 ≤ K` and bounds the number of test calls for $0<\\varepsilon<1/2$."}],"tone":2,"topic":"verification"},{"anchor":"sec-1","at":"b6021-6119","from_record":false,"lean":true,"lines":[287,303],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament","origin":"ai","part":0,"phrase":"q4-preview-candidates","plain":"A bounded quantum tournament lists a dominant candidate with high probability","record":"quartic.proposition-3","relation":"part","role":"explanation","rows":[{"end_line":307,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type supplies the bounded candidate list and its cost for an abstract comparison circuit. It does not verify those candidates or substitute this construction’s comparison budget.","fidelity_source":"ai","line":287,"lines":[287,303],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament","note":"","plain":"A bounded quantum tournament lists a dominant candidate with high probability","proof_lines":[304,307],"relation":"part","annotation":"The candidates come from a law on `QuantumCandidateList Col T`. The final clause applies whenever `Dominant (a x) ε s` holds, and the budget is in terms of the supplied comparison cost `cc`."},{"end_line":532,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type bounds verification of a supplied list by its length times the single-candidate budget. It does not generate the list or supply its comparison procedure.","fidelity_source":"ai","line":528,"lines":[528,531],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_list","note":"","plain":"Test the candidate list until one candidate accepts","proof_lines":[532,532],"relation":"part","annotation":"Read `hv` as one equal-budget verifier for each column. `vall_runs` combines those verifiers on a given list at cost `L.length * cV`, so the theorem applies after the tournament has produced its list."}],"tone":5,"topic":"tournament"},{"anchor":"sec-1","at":"b6124-6171","from_record":false,"lean":true,"lines":[87,90],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budget_le","origin":"ai","part":0,"phrase":"q4-preview-additive","plain":"Circuit-size bound gives budget Cₖ√m log₂⁶m","record":null,"relation":"contains","role":"explanation","rows":[{"end_line":268,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":87,"lines":[87,90],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budget_le","note":"The defined budget is the sum of tournament and list-verification costs.","plain":"Circuit-size bound gives budget Cₖ√m log₂⁶m","proof_lines":[91,268],"relation":"contains","annotation":"The proof sets `τ = 2 * t` and `p = 2 ^ t` to use $\\log_2m=2t$ and $\\sqrt m=2^t$. `hSz` bounds the circuit size before the cost is expressed using only $k$ and $t$."}],"tone":5,"topic":"tournament"},{"anchor":"sec-1","at":"b6276-6283","from_record":false,"lean":true,"lines":[131,131],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.familyExponent","origin":"ai","part":0,"phrase":"i-improved-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 exponent $4-2/k$ suggested by comparing the family’s randomized scale $m^{2-1/k}$ with its quantum scale $m^{1/2}$."}],"tone":0,"topic":"query"},{"anchor":"sec-1","at":"b6320-6419","from_record":false,"lean":true,"lines":[117,120],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionOutwardPointers","origin":"ai","part":0,"phrase":"p3-overview-outward","plain":"The cell points to a zero in every rival","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":"The cell points to a zero in every rival","relation":"defines","annotation":"The outward-pointer condition for cell $B_{i,s}$. Lean restricts the target by `{j : Column ℓ // j ≠ i}`."}],"tone":3,"topic":"construction"},{"anchor":"sec-1","at":"b6420-6489","from_record":false,"lean":true,"lines":[146,152],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.core_samples","origin":"ai","part":0,"phrase":"p3-overview-two-pointers","plain":"A comparison reads both outward pointers","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":164,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":143,"lines":[146,152],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.core_samples","note":"","plain":"A comparison reads both outward pointers","proof_lines":[146,164],"relation":"proof","annotation":"The hypothesis `hij : j ≠ i` excludes self-comparisons, and `hk : 1 ≤ k` permits the Forrelation decoders. The resulting Boolean law is `coreProb`. The cost also includes the two address decodings, not merely the two pointer lookups."}],"tone":4,"topic":"comparison"},{"anchor":"sec-1","at":"b6490-6573","from_record":false,"lean":true,"lines":[69,70],"module":"QuarticQuery.Construction.Winner","name":"QuarticQuery.winner_finds_zero","origin":"ai","part":0,"phrase":"p3-overview-zero","plain":"A winner’s true cell finds every rival’s zero","record":null,"relation":"states","role":"statement","rows":[{"end_line":71,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The deterministic pointer conclusion holds for every addressed construction, not only the Forrelation family.","fidelity_source":"ai","line":69,"lines":[69,70],"module":"QuarticQuery.Construction.Winner","name":"QuarticQuery.winner_finds_zero","note":"","plain":"A winner’s true cell finds every rival’s zero","proof_lines":[71,71],"relation":"states","annotation":"The deterministic pointer conclusion holds for every addressed construction, not only the Forrelation family. The hypotheses are the winning condition `h` and `hne : j ≠ i`."}],"tone":4,"topic":"comparison"},{"anchor":"sec-1","at":"b6581-6645","from_record":false,"lean":true,"lines":[62,64],"module":"QuarticQuery.Construction.Winner","name":"QuarticQuery.winner_no_incoming_zero","origin":"ai","part":0,"phrase":"p3-overview-no-incoming","plain":"No pointer finds a zero in a winner","record":null,"relation":"states","role":"statement","rows":[{"end_line":65,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean quantifies over every rival and every address in an arbitrary addressed construction.","fidelity_source":"ai","line":62,"lines":[62,64],"module":"QuarticQuery.Construction.Winner","name":"QuarticQuery.winner_no_incoming_zero","note":"","plain":"No pointer finds a zero in a winner","proof_lines":[65,65],"relation":"states","annotation":"Lean quantifies over every rival and every address in an arbitrary addressed construction. The hypothesis `h : WinsAt f C ℓ r x i s` supplies the winner's all-one string, and `hne : i ≠ c` makes the incoming pointer well typed."}],"tone":4,"topic":"comparison"},{"anchor":"sec-1","at":"b6646-6753","from_record":false,"lean":true,"lines":[296,302],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumWinner_dominates","origin":"ai","part":0,"phrase":"p3-overview-dominance","plain":"A winner beats every rival 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":"","plain":"A winner beats every rival with high probability","proof_lines":[303,305],"relation":"states","annotation":"The proof chains `addrLaw_good` with `cmpProb_winner`. The mass of the winning address alone suffices to give the comparison lower bound."}],"tone":4,"topic":"comparison"},{"anchor":"sec-1","at":"b7219-7329","from_record":false,"lean":true,"lines":[35,37],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","origin":"ai","part":0,"phrase":"q4-preview-weight","plain":"Weight is the probability of beating every earlier pivot","record":null,"relation":"part","role":"explanation","rows":[{"end_line":37,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The definition gives the product update of candidate weights. It does not itself define the distribution used to sample pivots or prove the independent-comparison probability interpretation.","fidelity_source":"ai","line":35,"lines":[35,37],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","note":"","plain":"Weight is the probability of beating every earlier pivot","relation":"part","annotation":"The recursion `weight a L i * a i p` appends the factor for the new pivot $p$, with $1$ as the starting weight. The sampling law is defined separately in `expectFrom`."},{"end_line":47,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The definition supplies sampling with ratios $w_i/W$ and stopping at $W = 0$. The equality of each weight to the probability of winning fresh independent comparisons is not part of its type.","fidelity_source":"ai","line":42,"lines":[42,47],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.expectFrom","note":"","plain":"Draw pivots proportionally to weight and stop at zero total","relation":"part","annotation":"The nonzero-total branch weights each recursive expectation by `weight a L p / total (weight a L)` (the candidate’s weight divided by the total; see the four-column example in Section 4.1 of the worked exposition). At zero total the recurrence consumes a step with the same history.","annotation_references":[{"start":176,"end":212,"key":"expository/section:4.1"}]}],"tone":5,"topic":"tournament"},{"anchor":"sec-1","at":"b7437-7503","from_record":false,"lean":true,"lines":[70,74],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.eq_of_dummy_ne_planted","origin":"ai","part":0,"phrase":"c5-overview-difference","plain":"Planting changes only the erased zero and the true cell","record":null,"relation":"states","role":"explanation","rows":[{"end_line":92,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":70,"lines":[70,74],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.eq_of_dummy_ne_planted","note":"","plain":"Planting changes only the erased zero and the true cell","proof_lines":[74,92],"relation":"states","annotation":"If a bit differs between the dummy and planted inputs, its location is either the erased zero $X_I[J_I]$ or a bit of the true-address cell $B_{I,s_I}$. The premise `h` asserts that the two values actually differ."}],"tone":7,"topic":"planted"},{"anchor":"sec-1","at":"b7507-7532","from_record":false,"lean":true,"lines":[27,29],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.coupledAvg","origin":"ai","part":0,"phrase":"c5-overview-column","plain":"The dummy choices and an independent planting column","record":null,"relation":"defines","role":"definition","rows":[{"end_line":29,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":27,"lines":[27,29],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.coupledAvg","note":"","plain":"The dummy choices and an independent planting column","relation":"defines","annotation":"The innermost `avg (unif ℓ)` chooses the planting column after the common $A$ and $J$ have been fixed. The two coupled boards are functions of those same data."}],"tone":7,"topic":"planted"},{"anchor":"sec-1","at":"b7704-7834","from_record":false,"lean":true,"lines":[316,333],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.avg_reachedCellAt_le","origin":"ai","part":0,"phrase":"c5-overview-prediction","plain":"A light true-cell visit at one time is bounded by address-guessing success","record":null,"relation":"proof","role":"explanation","rows":[{"end_line":338,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":295,"lines":[316,333],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.avg_reachedCellAt_le","note":"The proof turns a light true-cell query into the correct vector before reading the queried cell.","plain":"A light true-cell visit at one time is bounded by address-guessing success","proof_lines":[302,338],"relation":"proof","annotation":"The proof fixes the board data outside column $i$ and uses `addressSimulator L t T J A i`. The cell index at the prescribed query gives the predicted address."}],"tone":6,"topic":"prediction"},{"anchor":"sec-1","at":"b7836-7890","from_record":false,"lean":true,"lines":[188,193],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.address_guess_average","origin":"ai","part":0,"phrase":"c5-overview-product","plain":"Independent side information and coins preserve the (2/3)ʳ address-guessing bound","record":null,"relation":"contains","role":"explanation","rows":[{"end_line":194,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":188,"lines":[188,193],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.address_guess_average","note":"","plain":"Independent side information and coins preserve the (2/3)ʳ address-guessing bound","proof_lines":[194,194],"relation":"contains","annotation":"The `hard` hypothesis supplies the single-input success bound, and `hT` imposes the cap for every outside-data value. The distribution of those values is `p`, while the target law remains the same product of $\\mu$."}],"tone":6,"topic":"prediction"},{"anchor":"sec-1","at":"b7896-7974","from_record":false,"lean":true,"lines":[295,310],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.avg_reachedCellAt_le","origin":"ai","part":0,"phrase":"c5-overview-no-conditioning","plain":"A light true-cell visit at one time is bounded by address-guessing success","record":null,"relation":"proof","role":"explanation","rows":[{"end_line":338,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":295,"lines":[295,310],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.avg_reachedCellAt_le","note":"Lightness remains inside the event; the target inputs retain their original product law.","plain":"A light true-cell visit at one time is bounded by address-guessing success","proof_lines":[302,338],"relation":"proof","annotation":"On the left, `Function.update A i U` varies only the target address inputs. The average is over the original product weights `prodW μ`, which keeps lightness inside the encounter event (rather than conditioning on lightness; see the AND counterexample in Section 7.3 of the worked exposition).","annotation_references":[{"start":255,"end":291,"key":"expository/section:7.3"}]}],"tone":6,"topic":"prediction"},{"anchor":"sec-2","at":"b8813-8936","from_record":false,"lean":true,"lines":[66,67],"module":"QuarticQuery.Statement","name":"QuarticQuery.RandomizedProgram.depth","origin":"ai","part":0,"phrase":"p2-worst-case","plain":"Worst-case number of randomized queries","record":null,"relation":"part","role":"definition","rows":[{"end_line":67,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration defines the randomized cap only; the same phrase also mentions measurement branches, covered by the accompanying quantum declaration.","fidelity_source":"ai","line":66,"lines":[66,67],"module":"QuarticQuery.Statement","name":"QuarticQuery.RandomizedProgram.depth","note":"","plain":"Worst-case number of randomized queries","relation":"part","annotation":"This declaration defines the randomized cap only. The same phrase also mentions measurement branches, covered by the accompanying quantum declaration. The field `weight_pos` in `RandomizedProgram` makes every stored tree part of the support."},{"end_line":127,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration defines the quantum cap only; the same phrase also mentions randomized algorithms, covered by the accompanying randomized declaration.","fidelity_source":"ai","line":122,"lines":[122,127],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram.queryCap","note":"","plain":"Worst-case number of quantum queries","relation":"part","annotation":"This declaration defines the quantum cap only. The same phrase also mentions randomized algorithms, covered by the accompanying randomized declaration."}],"tone":0,"topic":"query"},{"anchor":"sec-2","at":"b8942-8977","from_record":false,"lean":true,"lines":[125,125],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram.queryCap","origin":"ai","part":0,"phrase":"p2-free-computation","plain":"Worst-case number of quantum queries","record":null,"relation":"part","role":"explanation","rows":[{"end_line":127,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The displayed definition makes quantum unitary steps free; it does not separately state the classical decision-tree convention.","fidelity_source":"ai","line":122,"lines":[125,125],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram.queryCap","note":"","plain":"Worst-case number of quantum queries","relation":"part","annotation":"A `unitary` node inherits its continuation’s cap, while a `query` node adds one. The recursive definition is for `AdaptiveProgram`."}],"tone":0,"topic":"query"},{"anchor":"sec-2","at":"b9038-9073","from_record":false,"lean":true,"lines":[106,110],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_correct_on_domain_iff","origin":"ai","part":0,"phrase":"p2-promise-error","plain":"Correctness is required only on the promise","record":null,"relation":"states","role":"explanation","rows":[{"end_line":118,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":106,"lines":[106,110],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_correct_on_domain_iff","note":"","plain":"Correctness is required only on the promise","proof_lines":[111,118],"relation":"states","annotation":"A correctness requirement for a partial function applies exactly to its defined inputs. Lean writes a defined answer as `some b` and an input outside the promise as `none`."}],"tone":0,"topic":"query"},{"anchor":"sec-2","at":"b9156-9167","from_record":false,"lean":true,"lines":[84,85],"module":"QuarticQuery.Statement","name":"QuarticQuery.R","origin":"ai","part":0,"phrase":"p2-R-third","plain":"Randomized queries with one-third error","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":"Randomized queries with one-third error","relation":"defines","annotation":"The coordinate type `ι` is finite, and `f : PartialBool ι` may be undefined outside its promise. Lean writes this minimum as `sInf {t | RLe f t}`."}],"tone":0,"topic":"query"},{"anchor":"sec-2","at":"b9169-9180","from_record":false,"lean":true,"lines":[150,151],"module":"QuarticQuery.Statement","name":"QuarticQuery.Q","origin":"ai","part":0,"phrase":"p2-Q-third","plain":"Quantum queries with one-third error","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":"Quantum queries with one-third error","relation":"defines","annotation":"The least worst-case bit-query budget of a quantum algorithm that succeeds with probability at least $2/3$ on every promised input. For a total function, the paper's $Q(f)$ is `Q (totalise f)`."}],"tone":0,"topic":"query"},{"anchor":"sec-2","at":"b9208-9229","from_record":false,"lean":true,"lines":[102,105],"module":"QuarticQuery.Statement","name":"QuarticQuery.bitOracle","origin":"ai","part":0,"phrase":"p2-oracle","plain":"One query reads one input bit","record":null,"relation":"defines","role":"definition","rows":[{"end_line":105,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":102,"lines":[102,105],"module":"QuarticQuery.Statement","name":"QuarticQuery.bitOracle","note":"","plain":"One query reads one input bit","relation":"defines","annotation":"The standard bit oracle $O_x|i,b,z\\rangle=|i,b\\mathbin\\oplus x_i,z\\rangle$."}],"tone":0,"topic":"query"},{"anchor":"sec-2","at":"b9347-9395","from_record":false,"lean":true,"lines":[177,179],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTestTree","origin":"ai","part":0,"phrase":"p2-pointer-bits","plain":"Decision trees for column, pointer, gate and output tests","record":null,"relation":"proof","role":"explanation","rows":[{"end_line":190,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":174,"lines":[177,179],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTestTree","note":"","plain":"Decision trees for column, pointer, gate and output tests","relation":"proof","annotation":"The decision tree that evaluates one test at $(i,s)$."}],"tone":3,"topic":"construction"},{"anchor":"sec-2","at":"b9539-9715","from_record":false,"lean":true,"lines":[66,90],"module":"QuarticQuery.Paper.ConstructionForrelationComplete","name":"QuarticQuery.Paper.construction_lemma_2_1_complete","origin":"ai","part":0,"phrase":"p2-three-properties","plain":"Forrelation’s randomized lower bound, coherent decoder and exact promise circuit","record":"quartic.lemma-2","relation":"contains","role":"statement","rows":[{"end_line":93,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":66,"lines":[66,90],"module":"QuarticQuery.Paper.ConstructionForrelationComplete","name":"QuarticQuery.Paper.construction_lemma_2_1_complete","note":"","plain":"Forrelation’s randomized lower bound, coherent decoder and exact promise circuit","proof_lines":[91,93],"relation":"contains","annotation":"For each fixed $k\\ge2$, the same partial function has a randomized lower bound, a coherent quantum decoder and a small exact circuit. The hypothesis is `hk : 2 ≤ k`."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b9811-9848","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":"p2-table-decoder","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":"stronger","fidelity_note":"Lean supplies the decoder already for $k \\ge 1$, while this paper fixes $k \\ge 2$.","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 proof supplies the decoder already for $k \\ge 1$, while this paper fixes $k \\ge 2$. For each fixed $k\\ge1$, a decoder achieves error at most $\\eta$ with $O_k(1+\\log(1/\\eta))$ bit queries, under `0 < η` and `η < 1 / 2`."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b9903-9980","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":"p2-table-circuit","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":true,"fidelity":"stronger","fidelity_note":"Lean gives the explicit $O_k(m(\\log_2 m)^2)$ size and also covers $k = 1$.","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":"The type gives the explicit $O_k(m(\\log_2 m)^2)$ size (see the Walsh butterfly calculation in Appendix G.3 of the full reconstruction) and also covers $k = 1$. `CircuitRealises C (P k t)` says the domain output is true exactly on the promise, and then the value output equals $P$.","annotation_references":[{"start":94,"end":133,"key":"long/appendix:g.3"}]}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b10054-10092","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":"p2-table-hardness","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":true,"fidelity":"same","fidelity_source":"ai","line":93,"lines":[93,94],"module":"QuarticQuery.Paper.ConstructionForrelationQuantum","name":"QuarticQuery.Paper.construction_lemma_2_1_i","note":"","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$, the randomized query complexity of $P_{k,4^t}$ eventually exceeds $L=\\lfloor m^{1-1/k}/(\\log_2m)^2\\rfloor$. The hypothesis is `hk : 2 ≤ k`, and the threshold `t₀` is chosen after $k$."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b10298-10332","from_record":false,"lean":true,"lines":[161,161],"module":"QuarticQuery.Statement","name":"QuarticQuery.ForrelationCoord","origin":"ai","part":0,"phrase":"p2-input-blocks","plain":"Coordinates of a Forrelation input","record":null,"relation":"defines","role":"definition","rows":[{"end_line":161,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":161,"lines":[161,161],"module":"QuarticQuery.Statement","name":"QuarticQuery.ForrelationCoord","note":"","plain":"Coordinates of a Forrelation input","relation":"defines","annotation":"The $km$ input coordinates of $k$-fold Forrelation, arranged as $k$ blocks of $m=4^t$ bits. A coordinate is a pair in `Fin k × Fin (mValue t)`, and an input assigns a Boolean value to every such pair."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b10334-10434","from_record":false,"lean":true,"lines":[164,164],"module":"QuarticQuery.Statement","name":"QuarticQuery.bitSign","origin":"ai","part":0,"phrase":"p2-sign-coordinate","plain":"A bit value represented as a sign","record":null,"relation":"defines","role":"definition","rows":[{"end_line":164,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":164,"lines":[164,164],"module":"QuarticQuery.Statement","name":"QuarticQuery.bitSign","note":"","plain":"A bit value represented as a sign","relation":"defines","annotation":"The sign associated with a Boolean value: false, or bit $0$, gives $+1$, and true, or bit $1$, gives $-1$. The argument `b : Bool` is the stored bit, not its position."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b10439-10466","from_record":false,"lean":true,"lines":[26,32],"module":"QuarticQuery.Paper.ConstructionPhase","name":"QuarticQuery.Paper.construction_bitOracle_phase_kickback","origin":"ai","part":0,"phrase":"p2-sign-query","plain":"The minus-state answer qubit converts a bit query to input signs","record":null,"relation":"states","role":"statement","rows":[{"end_line":41,"exact_lines":true,"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":"The hypothesis `hminus` expresses this by requiring the amplitude with answer true to be the negative of the amplitude with answer false, for every coordinate and workspace label."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b10468-10530","from_record":false,"lean":true,"lines":[34,35],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_walsh_definitions","origin":"ai","part":0,"phrase":"p2-H","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":[34,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 `H t i j` conjunct casts `walshSign t i j` to a real and multiplies it by the inverse square root of `mValue t`. The preceding conjunct computes that sign from shared set bits of the two indices."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b10532-10568","from_record":false,"lean":true,"lines":[36,36],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_walsh_definitions","origin":"ai","part":0,"phrase":"p2-u","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 clause for `u t i` gives the same real reciprocal square root for every `i : Fin (mValue t)`. The proof rewrites the square root by `construction_forr_sqrt_mValue` to match the definition."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b10573-10615","from_record":false,"lean":true,"lines":[37,37],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_walsh_definitions","origin":"ai","part":0,"phrase":"p2-D","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 last conjunct writes the diagonal as `Matrix.diagonal fun i => (bitSign (z (h, i)) : ℝ)`. The index `h : Fin k` selects a block, and the first conjunct specifies the Boolean-to-sign conversion."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b10625-10707","from_record":false,"lean":true,"lines":[50,54],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_equation_3","origin":"ai","part":0,"phrase":"p2-Phi-delta","plain":"The alternating Walsh product for Φ and threshold δ=2⁻⁵ᵏ","record":null,"relation":"states","role":"definition","rows":[{"end_line":55,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The matrix-product identity is proved under $1 \\le k$, including the paper's $k \\ge 2$ range.","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":"states","annotation":"The matrix-product identity is proved under $1 \\le k$, including the paper's $k \\ge 2$ range. The sole range hypothesis is `hk : 1 ≤ k`, so the statement also covers one block."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b10708-10806","from_record":false,"lean":true,"lines":[59,66],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_equation_4","origin":"ai","part":0,"phrase":"p2-promise","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,66],"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":"The complete promise of $P$ on its $km$ input bits."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b10807-10901","from_record":false,"lean":true,"lines":[26,28],"module":"QuarticQuery.Paper.ConstructionForrelationQuantum","name":"QuarticQuery.Paper.construction_projection_test","origin":"ai","part":0,"phrase":"p2-projection","plain":"Projection probability Φ² separates the two promise cases","record":null,"relation":"contains","role":"statement","rows":[{"end_line":41,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":26,"lines":[26,28],"module":"QuarticQuery.Paper.ConstructionForrelationQuantum","name":"QuarticQuery.Paper.construction_projection_test","note":"","plain":"Projection probability Φ² separates the two promise cases","proof_lines":[34,41],"relation":"contains","annotation":"The projection test succeeds with probability $\\Phi^2$. Under `hk : 1 ≤ k`, this probability is at least $\\delta^2$ on a promised one-input and at most $\\delta^2/4$ on a promised zero-input."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b10903-10959","from_record":false,"lean":true,"lines":[29,30],"module":"QuarticQuery.Paper.ConstructionForrelationQuantum","name":"QuarticQuery.Paper.construction_projection_test","origin":"ai","part":0,"phrase":"p2-gap","plain":"Projection probability Φ² separates the two promise cases","record":null,"relation":"contains","role":"statement","rows":[{"end_line":41,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":26,"lines":[29,30],"module":"QuarticQuery.Paper.ConstructionForrelationQuantum","name":"QuarticQuery.Paper.construction_projection_test","note":"","plain":"Projection probability Φ² separates the two promise cases","proof_lines":[34,41],"relation":"contains","annotation":"The projection test succeeds with probability $\\Phi^2$. Under `hk : 1 ≤ k`, this probability is at least $\\delta^2$ on a promised one-input and at most $\\delta^2/4$ on a promised zero-input."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b10965-11027","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":"p2-retained-decoder","plain":"Coherent Forrelation decoding uses Oₖ(1+log(1/η)) bit queries","record":null,"relation":"contains","role":"explanation","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":"For each fixed $k\\ge1$, a decoder achieves error at most $\\eta$ with $O_k(1+\\log(1/\\eta))$ bit queries, under `0 < η` and `η < 1 / 2`. It returns a normalized Boolean law on every input (see Appendix G.2 of the full reconstruction), while accuracy is required only when `P k t z = some b`.","annotation_references":[{"start":191,"end":230,"key":"long/appendix:g.2"}]}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b11090-11145","from_record":false,"lean":true,"lines":[87,88],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.P_eq_none_iff","origin":"ai","part":0,"phrase":"p2-negative-promise","plain":"Exactly which inputs lie outside the promise","record":null,"relation":"contains","role":"statement","rows":[{"end_line":92,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean characterizes every undefined input; the paper uses the large-negative-value case of that characterization.","fidelity_source":"ai","line":87,"lines":[87,88],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.P_eq_none_iff","note":"","plain":"Exactly which inputs lie outside the promise","proof_lines":[89,92],"relation":"contains","annotation":"Lean characterizes every undefined input. The paper uses the large-negative-value case of that characterization."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b11227-11257","from_record":false,"lean":true,"lines":[172,177],"module":"QuarticQuery.Statement","name":"QuarticQuery.forrelationNumerator","origin":"ai","part":0,"phrase":"p2-numerator","plain":"The signed integer Forrelation numerator","record":null,"relation":"defines","role":"definition","rows":[{"end_line":177,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":172,"lines":[172,177],"module":"QuarticQuery.Statement","name":"QuarticQuery.forrelationNumerator","note":"","plain":"The signed integer Forrelation numerator","relation":"defines","annotation":"The expression `z (h, path h)` reads the input value at the chosen coordinate."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b11261-11312","from_record":false,"lean":true,"lines":[92,99],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.layers","origin":"ai","part":0,"phrase":"p2-transforms","plain":"Successive Walsh transforms and input sign changes","record":null,"relation":"proof","role":"explanation","rows":[{"end_line":99,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":92,"lines":[92,99],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.layers","note":"","plain":"Successive Walsh transforms and input sign changes","relation":"proof","annotation":"The circuit construction for $l$ Walsh transforms on $l+1$ sign blocks. For the paper, take `n = 2*t` and `l = k-1`."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b11313-11344","from_record":false,"lean":true,"lines":[85,86],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_circuit_width","origin":"ai","part":0,"phrase":"p2-integer-width","plain":"The circuit registers have logarithmic width","record":null,"relation":"part","role":"explanation","rows":[{"end_line":89,"exact_lines":true,"fidelity":"weaker","fidelity_note":"Lean proves logarithmic width for the modular circuit registers; this theorem does not identify every stored intermediate with an overflow-free signed integer.","fidelity_source":"ai","line":85,"lines":[85,86],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_circuit_width","note":"","plain":"The circuit registers have logarithmic width","proof_lines":[87,89],"relation":"part","annotation":"Lean proves logarithmic width for the modular circuit registers. This theorem does not identify every stored intermediate with an overflow-free signed integer. The hypothesis is `ht : 1 ≤ t`, and `widthTop l t + 1` is the full register width."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b11349-11411","from_record":false,"lean":true,"lines":[168,178],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_integer_tests","origin":"ai","part":0,"phrase":"p2-integer-tests","plain":"Two exact integer comparisons give the Forrelation domain and value bits","record":null,"relation":"states","role":"derivation","rows":[{"end_line":181,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":168,"lines":[168,178],"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":"states","annotation":"The real promise inequalities are equivalent to exact comparisons of integers: $2^{5k}N\\ge M$ and $2^{5k+1}|N|\\le M$."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b11413-11499","from_record":false,"lean":true,"lines":[99,102],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_denominator","origin":"ai","part":0,"phrase":"p2-denominator","plain":"The positive integer normalizing denominator","record":null,"relation":"states","role":"statement","rows":[{"end_line":105,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":99,"lines":[99,102],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_denominator","note":"","plain":"The positive integer normalizing denominator","proof_lines":[103,105],"relation":"states","annotation":"The normalizing denominator is the positive integer $M=m(\\sqrt m)^{k-1}$ when $m=4^t$."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b11675-11743","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":"p2-L-bound","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":true,"fidelity":"same","fidelity_source":"ai","line":93,"lines":[93,94],"module":"QuarticQuery.Paper.ConstructionForrelationQuantum","name":"QuarticQuery.Paper.construction_lemma_2_1_i","note":"","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$, the randomized query complexity of $P_{k,4^t}$ eventually exceeds $L=\\lfloor m^{1-1/k}/(\\log_2m)^2\\rfloor$. The hypothesis is `hk : 2 ≤ k`, and the threshold `t₀` is chosen after $k$."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b11745-11902","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":"p2-lemma-decoder","plain":"Coherent Forrelation decoding uses Oₖ(1+log(1/η)) bit queries","record":null,"relation":"states","role":"statement","rows":[{"end_line":61,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean proves this for all $k \\ge 1$ and every $t$, while the lemma is stated for fixed $k \\ge 2$ and sufficiently large powers of four.","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":"states","annotation":"The parameter range is all $k \\ge 1$ and every $t$, while the lemma is stated for fixed $k \\ge 2$ and sufficiently large powers of four. For each fixed $k\\ge1$, a decoder achieves error at most $\\eta$ with $O_k(1+\\log(1/\\eta))$ bit queries, under `0 < η` and `η < 1 / 2`."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-2","at":"b11903-12042","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":"p2-lemma-circuit","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":true,"fidelity":"stronger","fidelity_note":"Lean covers $k \\ge 1$ and every $t \\ge 1$, so the circuit statement holds for all $m = 4^t \\ge 4$ rather than only eventually.","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":"Lean covers $k \\ge 1$ and every $t \\ge 1$, so the circuit statement holds for all $m = 4^t \\ge 4$ rather than only eventually. `CircuitRealises C (P k t)` says the domain output is true exactly on the promise, and then the value output equals $P$."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-3","at":"b12414-12424","from_record":false,"lean":true,"lines":[294,296],"module":"QuarticQuery.Statement","name":"QuarticQuery.Fkm","origin":"ai","part":0,"phrase":"p3-parameters","plain":"The total addressed Forrelation function","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 total addressed Forrelation function","relation":"defines","annotation":"The circuit `C` is a parameter because different valid gate numberings can realize the same partial function."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b12507-12612","from_record":false,"lean":true,"lines":[245,249],"module":"QuarticQuery.Statement","name":"QuarticQuery.BitLoc","origin":"ai","part":0,"phrase":"p3-untrusted-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":"The transcript and pointer cases of `BitLoc` are ordinary input coordinates. Their values are checked by the certificate tests after the board has been supplied."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b12616-12647","from_record":false,"lean":true,"lines":[255,255],"module":"QuarticQuery.Statement","name":"QuarticQuery.readX","origin":"ai","part":0,"phrase":"p3-X","plain":"A bit in 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 bit in a column string","relation":"defines","annotation":"The bit $X_i[j]$ in column $i$ at row $j$. Both indices range over `Column ℓ`, which has $m=2^\\ell$ elements."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b12648-12726","from_record":false,"lean":true,"lines":[62,64],"module":"QuarticQuery.Construction.Winner","name":"QuarticQuery.winner_no_incoming_zero","origin":"ai","part":0,"phrase":"p3-all-ones","plain":"No pointer finds a zero in a winner","record":null,"relation":"states","role":"statement","rows":[{"end_line":65,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean covers all rivals and addresses in every addressed construction, independently of Forrelation.","fidelity_source":"ai","line":62,"lines":[62,64],"module":"QuarticQuery.Construction.Winner","name":"QuarticQuery.winner_no_incoming_zero","note":"","plain":"No pointer finds a zero in a winner","proof_lines":[65,65],"relation":"states","annotation":"Lean covers all rivals and addresses in every addressed construction, independently of Forrelation. The hypothesis `h : WinsAt f C ℓ r x i s` supplies the winner's all-one string, and `hne : i ≠ c` makes the incoming pointer well typed."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b12729-12797","from_record":false,"lean":true,"lines":[257,258],"module":"QuarticQuery.Statement","name":"QuarticQuery.readA","origin":"ai","part":0,"phrase":"p3-A","plain":"One address input in 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 in a column","relation":"defines","annotation":"The partial-function input $A_{i,h}$ stored in column $i$ for address position $h$. The value is a Boolean function of the internal coordinate `q : κ`. For Forrelation, $\\kappa$ contains $km$ coordinates."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b12798-12898","from_record":false,"lean":true,"lines":[307,309],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.trueAddress","origin":"ai","part":0,"phrase":"p3-true-address","plain":"The vector of defined address answers","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 vector of defined address answers","relation":"defines","annotation":"The address $s_i$ whose $h$th bit is the defined value of the partial function on $A_{i,h}$. Its argument `hdef : ∀ h, promised f (readA x i h)` requires every address input of this column to satisfy the promise."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b12955-13006","from_record":false,"lean":true,"lines":[245,249],"module":"QuarticQuery.Statement","name":"QuarticQuery.BitLoc","origin":"ai","part":0,"phrase":"p3-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":"","plain":"Column strings, address strings, cell pointers and cell transcripts","relation":"defines","annotation":"The cell coordinates carry both a column and an `Address r`. Pointer coordinates choose a rival and a pointer bit, while transcript coordinates choose an address question and a gate."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b13047-13110","from_record":false,"lean":true,"lines":[260,262],"module":"QuarticQuery.Statement","name":"QuarticQuery.readPointerBit","origin":"ai","part":0,"phrase":"p3-pointer","plain":"One bit of an outward row pointer","record":null,"relation":"defines","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":"One bit of an outward row pointer","relation":"defines","annotation":"The type `{j : Column ℓ // j ≠ i}` excludes a self-pointer, and `b : Fin ℓ` picks one of its $\\ell$ bits."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b13116-13235","from_record":false,"lean":true,"lines":[264,265],"module":"QuarticQuery.Statement","name":"QuarticQuery.readTranscript","origin":"ai","part":0,"phrase":"p3-transcript","plain":"A cell’s proposed circuit transcript","record":null,"relation":"defines","role":"definition","rows":[{"end_line":265,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":264,"lines":[264,265],"module":"QuarticQuery.Statement","name":"QuarticQuery.readTranscript","note":"","plain":"A cell’s proposed circuit transcript","relation":"defines","annotation":"The proposed circuit transcript for address input $A_{i,h}$ in cell $B_{i,s}$. It is a function `Fin S → Bool`, with one input bit for each non-input gate of a circuit of size $S$, including the output gates."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b13236-13285","from_record":false,"lean":true,"lines":[80,82],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_pointer_encoding","origin":"ai","part":0,"phrase":"p3-pointer-valid","plain":"Every pointer word names exactly one row","record":null,"relation":"states","role":"statement","rows":[{"end_line":83,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean also proves that every row has exactly one encoding, for every natural $\\ell$.","fidelity_source":"ai","line":80,"lines":[80,82],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_pointer_encoding","note":"","plain":"Every pointer word names exactly one row","proof_lines":[83,83],"relation":"states","annotation":"Lean also proves that every row has exactly one encoding, for every natural $\\ell$."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b13417-13547","from_record":false,"lean":true,"lines":[131,137],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","origin":"ai","part":0,"phrase":"p3-wins-summary","plain":"A winning column and its correct 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 and its correct certificate","relation":"defines","annotation":"The two checks inside the existential `hdef` require evaluated transcripts and outward zero witnesses. Both use the address formed from the very promise inputs being certified."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b13618-13653","from_record":false,"lean":true,"lines":[133,133],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","origin":"ai","part":0,"phrase":"p3-wins-all-one","plain":"A winning column and its correct certificate","record":null,"relation":"defines","role":"definition","rows":[{"end_line":137,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":131,"lines":[133,133],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","note":"","plain":"A winning column and its correct certificate","relation":"defines","annotation":"The outer conjunct `∀ j, readX x i j = true` already ranges over every row. It is independent of the subsequent choice of promise witness."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b13657-13734","from_record":false,"lean":true,"lines":[134,134],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","origin":"ai","part":0,"phrase":"p3-wins-promise","plain":"A winning column and its correct certificate","record":null,"relation":"defines","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 and its correct certificate","relation":"defines","annotation":"The binder `hdef` ranges over all $r$ address inputs of the proposed winner. Lean uses that witness to form the address used by both cell checks."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b13738-13857","from_record":false,"lean":true,"lines":[135,136],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","origin":"ai","part":0,"phrase":"p3-wins-transcript","plain":"A winning column and its correct certificate","record":null,"relation":"defines","role":"definition","rows":[{"end_line":137,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":131,"lines":[135,136],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionWinner","note":"","plain":"A winning column and its correct certificate","relation":"defines","annotation":"For each $h$, the comparison is between `readTranscript x i (trueAddress f x i hdef) h` and `circuitEval C (readA x i h)`. This is equality of the full stored and computed gate vectors."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b13861-13951","from_record":false,"lean":true,"lines":[117,120],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.constructionOutwardPointers","origin":"ai","part":0,"phrase":"p3-wins-outward","plain":"The cell points to a zero in every rival","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":"The cell points to a zero in every rival","relation":"defines","annotation":"The outward-pointer condition for cell $B_{i,s}$. Lean restricts the target by `{j : Column ℓ // j ≠ i}`."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b13953-14017","from_record":false,"lean":true,"lines":[287,289],"module":"QuarticQuery.Statement","name":"QuarticQuery.addressedF","origin":"ai","part":0,"phrase":"p3-F","plain":"Accept exactly when a winning column 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":"Accept exactly when a winning column exists","relation":"defines","annotation":"`decide` acts on the existential proposition `∃ i s, WinsAt f C ℓ r x i s`. A candidate consists of both a column $i$ and a cell address $s$."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b14019-14116","from_record":false,"lean":true,"lines":[287,289],"module":"QuarticQuery.Statement","name":"QuarticQuery.addressedF","origin":"ai","part":0,"phrase":"p3-total","plain":"Accept exactly when a winning column exists","record":null,"relation":"contains","role":"explanation","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":"Accept exactly when a winning column exists","relation":"contains","annotation":"The input of `addressedF` is a complete assignment to `BitLoc`. Promise membership is a condition inside `WinsAt`, so a column with an undefined address bit cannot witness the existential."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b14117-14238","from_record":false,"lean":true,"lines":[185,187],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_unique_winner","origin":"ai","part":0,"phrase":"p3-unique","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 theorem holds for arbitrary $f$, $C$, $\\ell$ and $r$; no circuit-realization hypothesis is needed.","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 theorem holds for arbitrary $f$, $C$, $\\ell$ and $r$. No circuit-realization hypothesis is needed."}],"tone":3,"topic":"construction"},{"anchor":"sec-3","at":"b14314-14356","from_record":false,"lean":true,"lines":[145,145],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTest","origin":"ai","part":0,"phrase":"p3-test-X","plain":"Tests for the column, pointers, gate equations and circuit outputs","record":null,"relation":"defines","role":"definition","rows":[{"end_line":155,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":143,"lines":[145,145],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTest","note":"","plain":"Tests for the column, pointers, gate equations and circuit outputs","relation":"defines","annotation":"The `.inl b` branch returns `readX x i b` directly. A test label specifies one row, so checking all rows means ranging over all such labels."}],"tone":2,"topic":"verification"},{"anchor":"sec-3","at":"b14358-14400","from_record":false,"lean":true,"lines":[146,148],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTest","origin":"ai","part":0,"phrase":"p3-test-pointer","plain":"Tests for the column, pointers, gate equations and circuit outputs","record":null,"relation":"defines","role":"definition","rows":[{"end_line":155,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":143,"lines":[146,148],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTest","note":"","plain":"Tests for the column, pointers, gate equations and circuit outputs","relation":"defines","annotation":"The branch maps the rival label through `otherColumn i e`, decodes its pointer word with `pointerEquiv`, then negates the bit read at the target row."}],"tone":2,"topic":"verification"},{"anchor":"sec-3","at":"b14445-14506","from_record":false,"lean":true,"lines":[149,153],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTest","origin":"ai","part":0,"phrase":"p3-test-gate","plain":"Tests for the column, pointers, gate equations and circuit outputs","record":null,"relation":"defines","role":"definition","rows":[{"end_line":155,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":143,"lines":[149,153],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTest","note":"","plain":"Tests for the column, pointers, gate equations and circuit outputs","relation":"defines","annotation":"At label `.inr (.inr (h, .inl g))`, the code computes both inputs with `predecessorValue`, applies `(C.gate g).table`, and compares the result with the stored gate bit."}],"tone":2,"topic":"verification"},{"anchor":"sec-3","at":"b14511-14551","from_record":false,"lean":true,"lines":[154,155],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTest","origin":"ai","part":0,"phrase":"p3-test-outputs","plain":"Tests for the column, pointers, gate equations and circuit outputs","record":null,"relation":"defines","role":"definition","rows":[{"end_line":155,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":143,"lines":[154,155],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTest","note":"","plain":"Tests for the column, pointers, gate equations and circuit outputs","relation":"defines","annotation":"The two Boolean labels select different checks. `false` selects the direct read of `C.domainOut`, and `true` compares `C.valueOut` with proposed bit `s h`."}],"tone":2,"topic":"verification"},{"anchor":"sec-3","at":"b14553-14649","from_record":false,"lean":true,"lines":[48,51],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_transcript_correct","origin":"ai","part":0,"phrase":"p3-transcript-induction","plain":"Local gate consistency forces the true transcript","record":null,"relation":"states","role":"statement","rows":[{"end_line":52,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean also states existence and uniqueness of the consistent transcript for every circuit and input.","fidelity_source":"ai","line":48,"lines":[48,51],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_transcript_correct","note":"","plain":"Local gate consistency forces the true transcript","proof_lines":[52,52],"relation":"states","annotation":"Lean also states existence and uniqueness of the consistent transcript for every circuit and input."}],"tone":2,"topic":"verification"},{"anchor":"sec-3","at":"b14653-14694","from_record":false,"lean":true,"lines":[48,51],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_transcript_correct","origin":"ai","part":0,"phrase":"p3-failed-gate","plain":"Local gate consistency forces the true transcript","record":null,"relation":"contains","role":"derivation","rows":[{"end_line":52,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem gives an equivalence with the true evaluation and uniqueness; this phrase uses its contrapositive.","fidelity_source":"ai","line":48,"lines":[48,51],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_transcript_correct","note":"","plain":"Local gate consistency forces the true transcript","proof_lines":[52,52],"relation":"contains","annotation":"The theorem gives an equivalence with the true evaluation and uniqueness. This phrase uses its contrapositive."}],"tone":2,"topic":"verification"},{"anchor":"sec-3","at":"b14700-14789","from_record":false,"lean":true,"lines":[228,232],"module":"QuarticQuery.Statement","name":"QuarticQuery.CircuitRealises","origin":"ai","part":0,"phrase":"p3-failed-output","plain":"The exact circuit’s domain and value guarantees","record":null,"relation":"contains","role":"derivation","rows":[{"end_line":232,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":228,"lines":[228,232],"module":"QuarticQuery.Statement","name":"QuarticQuery.CircuitRealises","note":"","plain":"The exact circuit’s domain and value guarantees","relation":"contains","annotation":"The correctness contract for a circuit realizing a partial function. The field `correct` is an assumption carried by this structure. The Forrelation circuit theorem supplies a value of the structure."}],"tone":2,"topic":"verification"},{"anchor":"sec-3","at":"b14804-14871","from_record":false,"lean":true,"lines":[110,118],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_local_dichotomy","origin":"ai","part":0,"phrase":"p3-nonwinner-every-address","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":"stronger","fidelity_note":"Lean proves both winner and nonwinner directions for every partial function and every realizing circuit.","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":"Lean proves both winner and nonwinner directions for every partial function and every realizing circuit. The assumption `hC : CircuitRealises C f` ensures that the two output tests correctly certify definedness and value."}],"tone":2,"topic":"verification"},{"anchor":"sec-3","at":"b14882-14913","from_record":false,"lean":true,"lines":[132,133],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.card_testIndex","origin":"ai","part":0,"phrase":"p3-K","plain":"The exact number of local tests","record":null,"relation":"states","role":"statement","rows":[{"end_line":134,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The exact count is proved for arbitrary $\\ell$, $r$ and $S$; the paper substitutes $m = 2^\\ell$ and $r = 20\\ell$.","fidelity_source":"ai","line":132,"lines":[132,133],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.card_testIndex","note":"","plain":"The exact number of local tests","proof_lines":[134,134],"relation":"states","annotation":"The exact count is proved for arbitrary $\\ell$, $r$ and $S$. The paper substitutes $m = 2^\\ell$ and $r = 20\\ell$."}],"tone":2,"topic":"verification"},{"anchor":"sec-3","at":"b14924-14940","from_record":false,"lean":true,"lines":[168,172],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_K_family","origin":"ai","part":0,"phrase":"p3-K-growth","plain":"The exact Forrelation circuit gives Oₖ(m log³m) certificate tests","record":null,"relation":"states","role":"statement","rows":[{"end_line":178,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem covers $k \\ge 1$ and every $t \\ge 1$ with one $B$ chosen before $t$.","fidelity_source":"ai","line":168,"lines":[168,172],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_K_family","note":"","plain":"The exact Forrelation circuit gives Oₖ(m log³m) certificate tests","proof_lines":[173,178],"relation":"states","annotation":"The theorem covers $k \\ge 1$ and every $t \\ge 1$ with one $B$ chosen before $t$. The constant `B` is chosen before `t`. `hk : 1 ≤ k` is the only parameter hypothesis."}],"tone":2,"topic":"verification"},{"anchor":"sec-3","at":"b14942-14985","from_record":false,"lean":true,"lines":[180,185],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTestTree","origin":"ai","part":0,"phrase":"p3-gate-cost","plain":"Decision trees for column, pointer, gate and output tests","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":190,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":174,"lines":[180,185],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTestTree","note":"","plain":"Decision trees for column, pointer, gate and output tests","relation":"proof","annotation":"In the gate branch, the tree reads the two predecessor locations and the stored bit for gate $g$. An absent predecessor is supplied without an oracle query."}],"tone":2,"topic":"verification"},{"anchor":"sec-3","at":"b14991-15025","from_record":false,"lean":true,"lines":[177,179],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTestTree","origin":"ai","part":0,"phrase":"p3-pointer-cost","plain":"Decision trees for column, pointer, gate and output tests","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":190,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":174,"lines":[177,179],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTestTree","note":"","plain":"Decision trees for column, pointer, gate and output tests","relation":"proof","annotation":"The decision tree that evaluates one test at $(i,s)$."}],"tone":2,"topic":"verification"},{"anchor":"sec-3","at":"b15190-15238","from_record":false,"lean":true,"lines":[296,302],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumWinner_dominates","origin":"ai","part":0,"phrase":"p3-interface-comparison","plain":"A winner beats every rival 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":"","plain":"A winner beats every rival with high probability","proof_lines":[303,305],"relation":"states","annotation":"`hw` supplies the winner’s certificate and `hji` requires the rival to be distinct. `hn` sets the repetition threshold for decoding the winner’s address."}],"tone":4,"topic":"comparison"},{"anchor":"sec-3","at":"b15331-15400","from_record":false,"lean":true,"lines":[110,118],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_local_dichotomy","origin":"ai","part":0,"phrase":"p3-interface-verification","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":"stronger","fidelity_note":"Lean proves the generic two-sided dichotomy for any partial function and realizing circuit.","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":"Lean proves the generic two-sided dichotomy for any partial function and realizing circuit. The assumption `hC : CircuitRealises C f` ensures that the two output tests correctly certify definedness and value."}],"tone":2,"topic":"verification"},{"anchor":"sec-4","at":"b15953-16039","from_record":false,"lean":true,"lines":[33,35],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumDecode","origin":"ai","part":0,"phrase":"q4-decode-two","plain":"Independent retained-workspace decoders give a product law for the address","record":null,"relation":"part","role":"explanation","rows":[{"end_line":36,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem supplies a coherent decoder for any one column i. Two independent address registers require composing two such decoders; their joint preparation is not the conclusion of this one declaration.","fidelity_source":"ai","line":33,"lines":[33,35],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumDecode","note":"","plain":"Independent retained-workspace decoders give a product law for the address","proof_lines":[36,36],"relation":"part","annotation":"For one column $i$, `quantumDecode` supplies a coherent decoder controlled by the repetition count `n`. Preparing two independent address registers composes two such decoders."}],"tone":4,"topic":"comparison"},{"anchor":"sec-4","at":"b16040-16083","from_record":false,"lean":true,"lines":[173,176],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_disqualification","origin":"ai","part":0,"phrase":"q4-pointer-tests","plain":"A pointer disqualifies a rival by finding a zero","record":null,"relation":"defines","role":"explanation","rows":[{"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":"","plain":"A pointer disqualifies a rival by finding a zero","relation":"defines","annotation":"The hypothesis `hji : j ≠ i` excludes a self-pointer. `readPointerBit` reads the pointer word, `pointerEquiv` turns that word into a row, and `readX` reads the rival string at that row."}],"tone":4,"topic":"comparison"},{"anchor":"sec-4","at":"b16084-16206","from_record":false,"lean":true,"lines":[167,168],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_rule","origin":"ai","part":0,"phrase":"q4-comparison-rule","plain":"A sole disqualifier wins and ties favour the smaller column","record":null,"relation":"states","role":"statement","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":"","plain":"A sole disqualifier wins and ties favour the smaller column","proof_lines":[169,169],"relation":"states","annotation":"The first column in the canonically ordered pair wins if its pointer alone finds a zero, or if the two disqualification bits agree. Here `d₁` and `d₂` say whether the first and second pointers disqualify their rivals."}],"tone":4,"topic":"comparison"},{"anchor":"sec-4","at":"b16207-16269","from_record":false,"lean":true,"lines":[211,212],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_self_zero_reads","origin":"ai","part":0,"phrase":"q4-self-comparison","plain":"Self-comparison returns no win 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 returns no win without reading the input","proof_lines":[213,214],"relation":"states","annotation":"A self-comparison has a zero-read implementation and returns the false comparison bit with certainty. `Samples 0` states this without needing a promise on any input."}],"tone":4,"topic":"comparison"},{"anchor":"sec-4","at":"b16313-16522","from_record":false,"lean":true,"lines":[227,235],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpProb_winner","origin":"ai","part":0,"phrase":"q4-winning-comparison","plain":"A winner wins whenever its own address is decoded correctly","record":null,"relation":"proof","role":"derivation","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’s two disqualification facts express the deterministic guarantee at the winner’s true address.","plain":"A winner wins whenever its own address is decoded correctly","proof_lines":[226,277],"relation":"proof","annotation":"A winning column is selected with probability at least the probability of decoding its own true address. The hypothesis `hw : WinsAt ... x i s` supplies an all-one string and a pointer to a zero in every rival. `hne` makes the rival distinct."}],"tone":4,"topic":"comparison"},{"anchor":"sec-4","at":"b16524-16669","from_record":false,"lean":true,"lines":[54,59],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumDecode_correct","origin":"ai","part":0,"phrase":"q4-error-allocation","plain":"On promised address strings, whole-address decoding succeeds with probability ≥1−ε","record":null,"relation":"contains","role":"explanation","rows":[{"end_line":60,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":54,"lines":[54,59],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumDecode_correct","note":"The repetition and promise hypotheses give the complete-address error guarantee.","plain":"On promised address strings, whole-address decoding succeeds with probability ≥1−ε","proof_lines":[60,60],"relation":"contains","annotation":"The decoder returns the prescribed address $s$ with probability at least $1-\\varepsilon$. The repetition hypothesis `hn` allocates error $\\varepsilon/r$ to each of the $r=40t$ bits, and `hε`, `hε1` require $0<\\varepsilon\\le1$."}],"tone":4,"topic":"comparison"},{"anchor":"sec-4","at":"b16670-16865","from_record":false,"lean":true,"lines":[230,237],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_unordered_state","origin":"ai","part":0,"phrase":"q4-single-experiment","plain":"One comparison experiment supplies both ordered outcomes","record":null,"relation":"states","role":"explanation","rows":[{"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":"One comparison experiment supplies both ordered outcomes","proof_lines":[238,250],"relation":"states","annotation":"One retained-workspace circuit supplies the probabilities for both orientations of a distinct pair. `hij : i ≠ j` excludes self-comparison and `hk : 1 ≤ k` permits address decoding."}],"tone":4,"topic":"comparison"},{"anchor":"sec-4","at":"b16866-16975","from_record":false,"lean":true,"lines":[174,177],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpProb","origin":"ai","part":0,"phrase":"q4-aij-definition","plain":"Probability that the first named column is selected","record":null,"relation":"defines","role":"definition","rows":[{"end_line":177,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":174,"lines":[174,177],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpProb","note":"","plain":"Probability that the first named column is selected","relation":"defines","annotation":"The comparison probability $a_{ij}$ for a fixed input."}],"tone":4,"topic":"comparison"},{"anchor":"sec-4","at":"b16985-17045","from_record":false,"lean":true,"lines":[195,196],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpProb_isComparison","origin":"ai","part":0,"phrase":"q4-complementary-display","plain":"Comparison probabilities are complementary with a zero diagonal","record":null,"relation":"states","role":"statement","rows":[{"end_line":201,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":195,"lines":[195,196],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpProb_isComparison","note":"","plain":"Comparison probabilities are complementary with a zero diagonal","proof_lines":[197,201],"relation":"states","annotation":"The actual comparison probabilities satisfy $a_{ii}=0$ and $a_{ij}+a_{ji}=1$ for distinct indices. The theorem holds for every input `x` and repetition count `n`. No Forrelation promise appears among its hypotheses."}],"tone":4,"topic":"comparison"},{"anchor":"sec-4","at":"b17060-17070","from_record":false,"lean":true,"lines":[220,221],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.Dominant","origin":"ai","part":0,"phrase":"q4-dominant-term","plain":"A candidate beats every other candidate with high probability","record":null,"relation":"defines","role":"definition","rows":[{"end_line":221,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":220,"lines":[220,221],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.Dominant","note":"","plain":"A candidate beats every other candidate with high probability","relation":"defines","annotation":"A dominant candidate $s$ satisfies $a_{sj}\\ge1-\\varepsilon$ for every $j\\ne s$."}],"tone":4,"topic":"comparison"},{"anchor":"sec-4","at":"b17072-17129","from_record":false,"lean":true,"lines":[296,302],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumWinner_dominates","origin":"ai","part":0,"phrase":"q4-dominance","plain":"A winner beats every rival 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":"","plain":"A winner beats every rival with high probability","proof_lines":[303,305],"relation":"states","annotation":"The conclusion bounds the ordered entry `cmpProb n x i j` for every $j\\ne i$. The tournament applies its dominance predicate to that row of the comparison table."}],"tone":4,"topic":"comparison"},{"anchor":"sec-4","at":"b17130-17210","from_record":false,"lean":true,"lines":[267,272],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_query_bound","origin":"ai","part":0,"phrase":"q4-comparison-cost","plain":"Comparison cost comes from two address decodings and two pointer tests","record":null,"relation":"part","role":"statement","rows":[{"end_line":276,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem gives the explicit physical budget for the implemented comparison. It does not by itself state that the inverse circuit has the same budget.","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":"The theorem gives the explicit physical budget for the implemented comparison. It does not by itself state that the inverse circuit has the same budget."},{"end_line":225,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem supplies forward and inverse circuits with equal logical read counts. It does not itself give the logarithmic estimate or convert those reads to physical bit queries.","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":"part","annotation":"The theorem supplies forward and inverse circuits with equal logical read counts. It does not itself give the logarithmic estimate or convert those reads to physical bit queries. The hypothesis `hk : 1 ≤ k` permits the decoder, while `n` fixes its repetition count."}],"tone":4,"topic":"comparison"},{"anchor":"sec-4","at":"b17361-17828","from_record":false,"lean":true,"lines":[287,303],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament","origin":"ai","part":0,"phrase":"q4-proposition-3","plain":"A bounded quantum tournament lists a dominant candidate with high probability","record":"quartic.proposition-3","relation":"states","role":"statement","rows":[{"end_line":307,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":287,"lines":[287,303],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament","note":"","plain":"A bounded quantum tournament lists a dominant candidate with high probability","proof_lines":[304,307],"relation":"states","annotation":"The tournament returns a list of at most $T=\\lceil\\log_2(1000m)\\rceil$ candidates using at most $6072c\\sqrt m\\,T^2\\ln T$ bit queries. `hm` requires $m\\ge2$. `hc` gives complementary comparisons and a zero diagonal. `hcmp` supplies their coherent samplers."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b17830-17921","from_record":false,"lean":true,"lines":[75,79],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumListLaw","origin":"ai","part":0,"phrase":"q4-pivots-list","plain":"Return the pivots, stopping on sampling failure","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":"Return the pivots, stopping on sampling failure","relation":"defines","annotation":"The distribution of the returned list after a bounded number of stages. From history `L`, a stage stops with probability `g L`. Otherwise it draws pivot $p$ with probability $w_p/W$ and continues."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b18238-18391","from_record":false,"lean":true,"lines":[88,89],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumWeight_product","origin":"ai","part":0,"phrase":"q4-probability-weight","plain":"Recursive weights equal the product of comparison probabilities","record":null,"relation":"part","role":"explanation","rows":[{"end_line":94,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem identifies recursive weights with a product of comparison entries. It does not identify that product with a probability of independent quantum outcomes.","fidelity_source":"ai","line":88,"lines":[88,89],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumWeight_product","note":"","plain":"Recursive weights equal the product of comparison probabilities","proof_lines":[90,94],"relation":"part","annotation":"The theorem identifies recursive weights with a product of comparison entries. It does not identify that product with a probability of independent quantum outcomes. In Lean, `L.map` forms the list of comparison probabilities and `.prod` multiplies them. An empty product is one."},{"end_line":196,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem factors success mass for independent register vectors. It does not identify those individual masses with the $a_{ij}$ entries or define the candidate weights.","fidelity_source":"ai","line":164,"lines":[164,167],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.tensor_success_mass","note":"","plain":"Independent comparison registers multiply their success probabilities","proof_lines":[168,196],"relation":"part","annotation":"The theorem factors success mass for independent register vectors. It does not identify those individual masses with the $a_{ij}$ entries or define the candidate weights. `ψ` supplies the register vectors and `out` their Boolean result labels. `t` is the number of comparisons."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b18466-18523","from_record":false,"lean":true,"lines":[35,37],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","origin":"ai","part":0,"phrase":"q4-weights-display","plain":"Weight is the probability of beating every earlier pivot","record":null,"relation":"part","role":"definition","rows":[{"end_line":37,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This definition supplies only $w_i$, including its product update. It does not define the displayed total $W$; that is the separate total declaration.","fidelity_source":"ai","line":35,"lines":[35,37],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","note":"","plain":"Weight is the probability of beating every earlier pivot","relation":"part","annotation":"The recursive clause adds the comparison factor for the newest pivot, stored at the head of the history. Unfold `weight` for the product and `total` for the sum over candidates."},{"end_line":32,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This definition supplies only $W = \\sum_i w_i$. It does not define the individual product weights displayed in the same formula.","fidelity_source":"ai","line":32,"lines":[32,32],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.total","note":"","plain":"Total weight of all remaining candidates","relation":"part","annotation":"`total` sums its argument over the finite candidate type. Supply `weight a L` to get $W$ for the pivot history $L$."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b18525-18555","from_record":false,"lean":true,"lines":[35,36],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","origin":"ai","part":0,"phrase":"q4-initial-weight","plain":"Weight is the probability of beating every earlier pivot","record":null,"relation":"defines","role":"definition","rows":[{"end_line":37,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":35,"lines":[35,36],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","note":"","plain":"Weight is the probability of beating every earlier pivot","relation":"defines","annotation":"The weight of candidate $i$ starts at one and is multiplied by $a_{ip}$ whenever a new pivot $p$ is added."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b18556-18609","from_record":false,"lean":true,"lines":[35,37],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","origin":"ai","part":0,"phrase":"q4-weight-update","plain":"Weight is the probability of beating every earlier pivot","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":"","plain":"Weight is the probability of beating every earlier pivot","relation":"defines","annotation":"The weight of candidate $i$ starts at one and is multiplied by $a_{ip}$ whenever a new pivot $p$ is added."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b18614-18644","from_record":false,"lean":true,"lines":[35,37],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","origin":"ai","part":0,"phrase":"q4-pivot-zero","plain":"Weight is the probability of beating every earlier pivot","record":null,"relation":"part","role":"derivation","rows":[{"end_line":37,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The recursive definition supplies the multiplication update. The conclusion that the new pivot’s weight is zero additionally needs the `self_zero` field of `IsComparison`.","fidelity_source":"ai","line":35,"lines":[35,37],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","note":"","plain":"Weight is the probability of beating every earlier pivot","relation":"part","annotation":"The recursive definition supplies the multiplication update. The conclusion that the new pivot’s weight is zero additionally needs the `self_zero` field of `IsComparison`."},{"end_line":304,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The structure supplies the zero-diagonal assumption and complementarity. It does not define or carry out the weight update; multiplying by $a_{jj} = 0$ uses the separate weight definition.","fidelity_source":"ai","line":302,"lines":[302,304],"module":"QuarticQuery.Statement","name":"QuarticQuery.Tournament.IsComparison","note":"The zero diagonal is an assumption of the generic comparison table.","plain":"Complementary comparisons with no self-wins","relation":"part","annotation":"The structure supplies the zero-diagonal assumption and complementarity. It does not define or carry out the weight update. Multiplying by $a_{jj} = 0$ uses the separate weight definition. The structure fields `self_zero` and `complementary` are hypotheses about a comparison table."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b19068-19104","from_record":false,"lean":true,"lines":[42,47],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.expectFrom","origin":"ai","part":0,"phrase":"q4-weighted-draw","plain":"Draw pivots proportionally to weight and stop at zero total","record":null,"relation":"defines","role":"definition","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":"","plain":"Draw pivots proportionally to weight and stop at zero total","relation":"defines","annotation":"`g` is any payoff of the final weights and list, so this one definition expresses both expected weight and event probabilities."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b19177-19259","from_record":false,"lean":true,"lines":[55,57],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.expected_weight_eq","origin":"ai","part":0,"phrase":"q4-drift-display","plain":"One weighted pivot leaves expected total weight (W²−∑ᵢ wᵢ²)/(2W)","record":null,"relation":"states","role":"statement","rows":[{"end_line":68,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The Lean identity permits arbitrary real weights and comparison entries; only complementarity, a zero diagonal and $W > 0$ are required.","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":"The Lean identity permits arbitrary real weights and comparison entries. Only complementarity, a zero diagonal and $W > 0$ are required. `ha : IsComparison a` supplies complementary off-diagonal comparisons and a zero diagonal. `hW` identifies the sum, and `hpos` requires $W>0$."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b19261-19364","from_record":false,"lean":true,"lines":[71,73],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.expected_weight_le_half","origin":"ai","part":0,"phrase":"q4-half-drift","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":"stronger","fidelity_note":"Lean proves the algebraic inequality for arbitrary real weights and comparison entries with `IsComparison` and $W > 0$; the probability interpretation additionally uses nonnegative weights.","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":"Lean proves the algebraic inequality for arbitrary real weights and comparison entries with `IsComparison` and $W > 0$. The probability interpretation additionally uses nonnegative weights. The hypotheses are complementary comparisons with a zero diagonal, `hW : W = ∑ i, w i`, and `hpos : 0 < W`."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b19426-19581","from_record":false,"lean":true,"lines":[28,40],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.two_mul_weighted_sum","origin":"ai","part":0,"phrase":"q4-pair-cancellation","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":[28,40],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.two_mul_weighted_sum","note":"The proof pairs the ordered terms and cancels the diagonal.","plain":"Reverse comparisons give W² − ∑ᵢwᵢ² in the doubled sum","proof_lines":[28,52],"relation":"proof","annotation":"Twice the sum of the ordered weighted comparisons equals $(\\sum_iw_i)^2-\\sum_iw_i^2$. The hypothesis `ha : IsComparison a` gives $a_{ij}+a_{ji}=1$ for $i\\ne j$ and $a_{ii}=0$."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b19583-19621","from_record":false,"lean":true,"lines":[42,47],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.expectFrom","origin":"ai","part":0,"phrase":"q4-stop-zero","plain":"Draw pivots proportionally to weight and stop at zero total","record":null,"relation":"defines","role":"definition","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":"","plain":"Draw pivots proportionally to weight and stop at zero total","relation":"defines","annotation":"`g` is any payoff of the final weights and list, so this one definition expresses both expected weight and event probabilities."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b19622-19685","from_record":false,"lean":true,"lines":[212,214],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.expected_final_weight","origin":"ai","part":0,"phrase":"q4-expected-final-weight","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` give the comparison identities and probabilities in $[0,1]$."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b19686-19783","from_record":false,"lean":true,"lines":[239,242],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.dominant_weight_lb","origin":"ai","part":0,"phrase":"q4-surviving-winner","plain":"An unlisted dominant candidate keeps weight at least (1−ε)ᵀ","record":null,"relation":"states","role":"statement","rows":[{"end_line":249,"exact_lines":true,"fidelity":"same","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":"states","annotation":"The hypotheses include probability-valued comparisons, $0\\le\\varepsilon\\le1$, dominance, and `hT : T * ε < 1 / 2`. `hs : s ∉ L` ensures every pivot is a different candidate, so each multiplication loses at most a factor $1-\\varepsilon$."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b19829-19924","from_record":false,"lean":true,"lines":[263,267],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.ideal_miss_le","origin":"ai","part":0,"phrase":"q4-ideal-miss","plain":"Ideal list misses a dominant candidate with probability ≤2m/2ᵀ","record":null,"relation":"states","role":"derivation","rows":[{"end_line":291,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":263,"lines":[263,267],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.ideal_miss_le","note":"","plain":"Ideal list misses a dominant candidate with probability ≤2m/2ᵀ","proof_lines":[268,291],"relation":"states","annotation":"The chance that a dominant candidate is absent is at most the chance that final weight is at least $1/2$, and that probability is at most $2m/2^T$."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b19933-19992","from_record":false,"lean":true,"lines":[254,257],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.half_lt_total","origin":"ai","part":0,"phrase":"q4-positive-total","plain":"Total weight exceeds 1/2 before listing the dominant candidate if Tε<1/2","record":null,"relation":"states","role":"statement","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":"Before a dominant candidate is listed, total weight exceeds $1/2$."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b20235-20401","from_record":false,"lean":true,"lines":[120,131],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.equation_15","origin":"ai","part":0,"phrase":"q4-prepare-comparisons","plain":"Fresh comparison registers prepare the full tensor state","record":null,"relation":"contains","role":"explanation","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":"Fresh comparison registers prepare the full tensor state","proof_lines":[132,153],"relation":"contains","annotation":"`hF` gives each comparison a common logical read budget `c`. The constructed circuit uses `t * c` reads for $t$ pivots, and `slice i` selects the tensor of retained comparison states at candidate $i$."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b20494-20574","from_record":false,"lean":true,"lines":[120,131],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.equation_15","origin":"ai","part":0,"phrase":"q4-tensor-display","plain":"Fresh comparison registers prepare the full tensor state","record":null,"relation":"states","role":"statement","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":"Fresh comparison registers prepare the full tensor state","proof_lines":[132,153],"relation":"states","annotation":"The circuit prepares a uniform candidate register with one fresh complete comparison state for each pivot. `hF` gives every comparison the common logical read budget `c`. The constructed circuit uses `t * c` reads."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b20575-20618","from_record":false,"lean":true,"lines":[156,159],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.tensorGood","origin":"ai","part":0,"phrase":"q4-success-flag","plain":"Flag success when every comparison selects the candidate","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":"Flag success when every comparison selects the candidate","relation":"defines","annotation":"The success flag is the conjunction of the comparison output bits, one from each retained register."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b20619-20733","from_record":false,"lean":true,"lines":[164,167],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.tensor_success_mass","origin":"ai","part":0,"phrase":"q4-independent-registers","plain":"Independent comparison registers multiply their success probabilities","record":null,"relation":"states","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":"","plain":"Independent comparison registers multiply their success probabilities","proof_lines":[168,196],"relation":"states","annotation":"The success mass of the tensor state is the product of the individual comparison success masses. `ψ` supplies the register vectors and `out` their Boolean result labels. `t` is the number of comparisons."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b20735-20782","from_record":false,"lean":true,"lines":[58,60],"module":"QuarticQuery.Upper.Sampler","name":"QuarticQuery.Upper.lawOf_sigma","origin":"ai","part":0,"phrase":"q4-orthogonal-labels","plain":"Different candidate labels contribute separate probability masses","record":null,"relation":"part","role":"derivation","rows":[{"end_line":64,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states additivity of measured masses over distinct labelled blocks, the probability consequence of orthogonality. It does not state an inner-product equality between distinct label vectors.","fidelity_source":"ai","line":58,"lines":[58,60],"module":"QuarticQuery.Upper.Sampler","name":"QuarticQuery.Upper.lawOf_sigma","note":"","plain":"Different candidate labels contribute separate probability masses","proof_lines":[61,64],"relation":"part","annotation":"The theorem states additivity of measured masses over distinct labelled blocks, the probability consequence of orthogonality. It does not state an inner-product equality between distinct label vectors."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b20796-20926","from_record":false,"lean":true,"lines":[158,167],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumStage_success","origin":"ai","part":0,"phrase":"q4-success-law-display","plain":"An accepted pivot is drawn in proportion to its weight","record":null,"relation":"states","role":"statement","rows":[{"end_line":176,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":158,"lines":[158,167],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumStage_success","note":"","plain":"An accepted pivot is drawn in proportion to its weight","proof_lines":[168,176],"relation":"states","annotation":"`ha : UnitValued a` makes its masses nonnegative, and `hW : 0 < total (weight a L)` is the condition that makes the last probability meaningful."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b20927-21042","from_record":false,"lean":true,"lines":[272,282],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.equation_15_conditional_index","origin":"ai","part":0,"phrase":"q4-ideal-label-law","plain":"Conditioning the tensor state gives the weight-proportional law","record":null,"relation":"part","role":"derivation","rows":[{"end_line":290,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem gives the exact conditional product-weight law under `hv` and `hW > 0`. It does not by itself exhibit the query circuit or express the absence of stored numerical $a_{ij}$ values.","fidelity_source":"ai","line":272,"lines":[272,282],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.equation_15_conditional_index","note":"The exact conditional law follows from the prepared state, without estimated comparison probabilities.","plain":"Conditioning the tensor state gives the weight-proportional law","proof_lines":[283,290],"relation":"part","annotation":"The theorem gives the exact conditional product-weight law under `hv` and `hW > 0`. It does not by itself exhibit the query circuit or express the absence of stored numerical $a_{ij}$ values. `hv` states the complete tensor slice of each candidate, and `hW` requires positive total success weight."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b21220-21294","from_record":false,"lean":true,"lines":[33,39],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation","origin":"ai","part":0,"phrase":"q4-amplifier-input","plain":"A unitary preparation with a designated success projector","record":null,"relation":"defines","role":"definition","rows":[{"end_line":39,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":33,"lines":[33,39],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation","note":"","plain":"A unitary preparation with a designated success projector","relation":"defines","annotation":"A state preparation consists of a unitary, a normalized starting state and an orthogonal projector onto successful states. The fields `good_idem` and `good_symm` make `good` an orthogonal projection. `norm_zero` says the start state has norm one."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b21295-21511","from_record":false,"lean":true,"lines":[242,257],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.bounded_amplification","origin":"ai","part":0,"phrase":"q4-amplifier-cap","plain":"Amplification preserves the successful state with failure ≤η when p≥γ","record":"quartic.lemma-4","relation":"part","role":"statement","rows":[{"end_line":293,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The all-branch call bound and successful-state assertions are stated for the abstract Proc model, not an AdaptiveProgram on the bit oracle. The separate physical label-law theorem supplies the implemented sampler contract.","fidelity_source":"ai","line":242,"lines":[242,257],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.bounded_amplification","note":"The abstract procedure has a uniform all-branch call cap; its physical label implementation is a separate theorem.","plain":"Amplification preserves the successful state with failure ≤η when p≥γ","proof_lines":[258,293],"relation":"part","annotation":"The call cap and retained-state laws are stated for one abstract `Proc`. The separate physical label-law theorem supplies an `AdaptiveProgram` implementing the measured sampler."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b21512-21622","from_record":false,"lean":true,"lines":[216,223],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_conditional","origin":"ai","part":0,"phrase":"q4-amplifier-label","plain":"Amplification leaves the conditional successful label distribution unchanged","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":"Amplification leaves the conditional successful label distribution unchanged","proof_lines":[224,242],"relation":"states","annotation":"In the proof, the total successful mass of `ampLaw f q` is $1-f$. Positivity of $\\sum_b q_b$ and $f<1$ let the common multiplier cancel in each conditional label probability."},{"end_line":211,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type supplies a physical program with output law `ampLaw`, but does not itself display the conditional-law equality. That equality also needs the positive-success hypotheses stated in `quantum_amplified_conditional`.","fidelity_source":"ai","line":202,"lines":[202,210],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_label_law","note":"Supplies the physical program realizing the preserved label law.","plain":"The physical amplifier preserves relative probabilities of all successful labels","proof_lines":[211,211],"relation":"part","annotation":"`Samples n L` supplies a preparation for `h.amplify`, which gives a physical `Runs` witness. Read the normalized label equality in `quantum_amplified_conditional`, where the successful mass must be positive."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b21623-21710","from_record":false,"lean":true,"lines":[355,361],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplify_samples","origin":"ai","part":0,"phrase":"q4-amplifier-cases","plain":"Amplified sampling preserves the successful label law and retains workspace","record":null,"relation":"contains","role":"statement","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":"","plain":"Amplified sampling preserves the successful label law and retains workspace","proof_lines":[362,368],"relation":"contains","annotation":"Bounded amplification has a coherent implementation retaining all its workspaces. From `h : Samples n L` and positive $\\gamma,\\eta$, it supplies an amplified sampler with at most `trialCount η * ((2 * iterationBound γ + 1) * n)` logical reads."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b21713-21931","from_record":false,"lean":true,"lines":[38,50],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_state","origin":"ai","part":0,"phrase":"q4-grover-plane","plain":"Grover iterations preserve the direction of the successful component","record":null,"relation":"states","role":"explanation","rows":[{"end_line":70,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The displayed geometric theorem requires `h0 : 0 < A.prob` and `h1 : A.prob < 1`; its direction conclusion also requires a nonzero successful component. The normalized successful vectors agree up to global phase (`PhaseEq`). At $p = 0$ there is no conditional successful direction; at $p = 1$ the two-dimensional formulation degenerates.","fidelity_source":"ai","line":38,"lines":[38,50],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_state","note":"","plain":"Grover iterations preserve the direction of the successful component","proof_lines":[51,70],"relation":"states","annotation":"The displayed geometric theorem requires `h0 : 0 < A.prob` and `h1 : A.prob < 1`. Its direction conclusion also requires a nonzero successful component. The normalized successful vectors agree up to global phase (`PhaseEq`; see the rotation calculation in Appendix A.2 of the worked exposition). At $p = 0$ there is no conditional successful direction. At $p = 1$ the two-dimensional formulation degenerates.","annotation_references":[{"start":256,"end":293,"key":"expository/appendix:a.2"}]}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b22057-22118","from_record":false,"lean":true,"lines":[307,314],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumTournament_list","origin":"ai","part":0,"phrase":"q4-amplifier-parameters","plain":"Quantum list misses a dominant candidate with probability ≤ 2m/2ᵀ + Tε","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":396,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":270,"lines":[307,314],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumTournament_list","note":"The stage sampler is amplified with exactly this reciprocal threshold and the tournament’s $\\varepsilon$.","plain":"Quantum list misses a dominant candidate with probability ≤ 2m/2ᵀ + Tε","proof_lines":[283,396],"relation":"proof","annotation":"A coherent sampler and a physical bit-query program return a list of at most $T$ candidates. `hc` assumes the comparison identities on every input, and `hcmp` supplies the comparison circuits. `hm` requires at least two candidates."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b22119-22190","from_record":false,"lean":true,"lines":[254,257],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.half_lt_total","origin":"ai","part":0,"phrase":"q4-sampling-guarantee","plain":"Total weight exceeds 1/2 before listing the dominant candidate if Tε<1/2","record":null,"relation":"part","role":"derivation","rows":[{"end_line":258,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem supplies $W > 1/2$ while the dominant candidate is absent. It does not identify the preparation’s flag probability as $W/m$; division by positive $m$ uses that separate law.","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":"part","annotation":"The theorem supplies $W > 1/2$ while the dominant candidate is absent. It does not identify the preparation’s flag probability as $W/m$. Division by positive $m$ uses that separate law."},{"end_line":176,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem identifies the flag probability as $W/m$ when $W > 0$. It does not supply $W > 1/2$ while the dominant candidate is absent.","fidelity_source":"ai","line":158,"lines":[158,167],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumStage_success","note":"","plain":"An accepted pivot is drawn in proportion to its weight","proof_lines":[168,176],"relation":"part","annotation":"The theorem identifies the flag probability as $W/m$ when $W > 0$. It does not supply $W > 1/2$ while the dominant candidate is absent. `ha : UnitValued a` makes its masses nonnegative, and `hW : 0 < total (weight a L)` is the condition that makes the last probability meaningful."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b22195-22314","from_record":false,"lean":true,"lines":[355,361],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplify_samples","origin":"ai","part":0,"phrase":"q4-amplified-stage","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":"weaker","fidelity_note":"The theorem supplies the coherent amplifier’s failure guarantee and proportional successful-label law once its threshold hypothesis holds. It does not identify those label weights with the ideal pivot weights or append the label to a list.","fidelity_source":"ai","line":355,"lines":[355,361],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplify_samples","note":"","plain":"Amplified sampling preserves the successful label law and retains workspace","proof_lines":[362,368],"relation":"part","annotation":"The theorem supplies the coherent amplifier’s failure guarantee and proportional successful-label law once its threshold hypothesis holds. It does not identify those label weights with the ideal pivot weights or append the label to a list."},{"end_line":176,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem supplies the unamplified stage’s joint, total and conditional probabilities. It does not bound amplified failure or update the returned list.","fidelity_source":"ai","line":158,"lines":[158,167],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumStage_success","note":"","plain":"An accepted pivot is drawn in proportion to its weight","proof_lines":[168,176],"relation":"part","annotation":"The theorem supplies the unamplified stage’s joint, total and conditional probabilities. It does not bound amplified failure or update the returned list. `ha : UnitValued a` makes its masses nonnegative, and `hW : 0 < total (weight a L)` is the condition that makes the last probability meaningful."},{"end_line":79,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The definition supplies stopping on failure and prepending a successful pivot according to weight divided by total weight. It does not bound the failure function `g L` by $\\varepsilon$ or provide the coherent implementation.","fidelity_source":"ai","line":75,"lines":[75,79],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumListLaw","note":"","plain":"Return the pivots, stopping on sampling failure","relation":"part","annotation":"The definition supplies stopping on failure and prepending a successful pivot according to weight divided by total weight. It does not bound the failure function `g L` by $\\varepsilon$ or provide the coherent implementation. From history `L`, a stage stops with probability `g L`. Otherwise it draws pivot $p$ with probability $w_p/W$ and continues."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b22315-22354","from_record":false,"lean":true,"lines":[75,79],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumListLaw","origin":"ai","part":0,"phrase":"q4-physical-stopping","plain":"Return the pivots, stopping on sampling failure","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":"Return the pivots, stopping on sampling failure","relation":"defines","annotation":"The distribution of the returned list after a bounded number of stages. From history `L`, a stage stops with probability `g L`. Otherwise it draws pivot $p$ with probability $w_p/W$ and continues."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b22355-22472","from_record":false,"lean":true,"lines":[192,196],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumList_coupling","origin":"ai","part":0,"phrase":"q4-past-selection","plain":"With certain verification, sampling failures add at most ε per stage","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":236,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":175,"lines":[192,196],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumList_coupling","note":"The induction’s already-listed branch needs no small-failure assumption.","plain":"With certain verification, sampling failures add at most ε per stage","proof_lines":[181,236],"relation":"proof","annotation":"The implemented process loses at most $T\\varepsilon$ relative to the ideal chance of listing the target. `hfail` bounds it only while the target is absent. `hz` forces stopping at zero total weight."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b22569-22650","from_record":false,"lean":true,"lines":[270,282],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumTournament_list","origin":"ai","part":0,"phrase":"q4-coupling-display","plain":"Quantum list misses a dominant candidate with probability ≤ 2m/2ᵀ + Tε","record":null,"relation":"contains","role":"statement","rows":[{"end_line":396,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":270,"lines":[270,282],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumTournament_list","note":"","plain":"Quantum list misses a dominant candidate with probability ≤ 2m/2ᵀ + Tε","proof_lines":[283,396],"relation":"contains","annotation":"A coherent sampler and a physical bit-query program return a list of at most $T$ candidates. `hc` assumes the comparison identities on every input, and `hcmp` supplies the comparison circuits. `hm` requires at least two candidates."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b22651-22795","from_record":false,"lean":true,"lines":[238,241],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_cost","origin":"ai","part":0,"phrase":"q4-tournament-cost","plain":"Tournament bit-query bound 6072c√m T² ln(T)","record":null,"relation":"states","role":"derivation","rows":[{"end_line":281,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":238,"lines":[238,241],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_cost","note":"","plain":"Tournament bit-query bound 6072c√m T² ln(T)","proof_lines":[242,281],"relation":"states","annotation":"The complete tournament’s physical query cap is at most $6072c\\sqrt m\\,T^2\\ln T$, with $T=\\lceil\\log_2(1000m)\\rceil$ and $m\\ge2$."}],"tone":5,"topic":"tournament"},{"anchor":"sec-4","at":"b22880-22994","from_record":false,"lean":true,"lines":[355,358],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_runs","origin":"ai","part":0,"phrase":"q4-fresh-address","plain":"Decode a fresh address and verify at its measured value","record":null,"relation":"part","role":"explanation","rows":[{"end_line":366,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem implements fresh decoding followed by fixed-address verification with an all-input cap. It assumes component verifier programs and does not state the decoder’s promised-input error bound.","fidelity_source":"ai","line":355,"lines":[355,358],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_runs","note":"","plain":"Decode a fresh address and verify at its measured value","proof_lines":[359,366],"relation":"part","annotation":"`hRun` gives a cost of `cS` for each fixed-address verifier. The proof uses `Runs.bind` to run it after address sampling. The total cap is `2 * addrCost k t n + cS`, and `verifyProb` gives the acceptance law."},{"end_line":60,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem bounds the promised-input address error under hs and hn. It does not state that verification uses a fresh measured address or provide the subsequent verifier program.","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":"part","annotation":"`hs` identifies the true address and `hn` requires enough repetitions for error $\\varepsilon/(40t)$ at each address bit. The theorem gives the correct-address mass. `quantumVerify_runs` implements the subsequent verification."}],"tone":2,"topic":"verification"},{"anchor":"sec-4","at":"b22995-23145","from_record":false,"lean":true,"lines":[62,64],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.testLaw_pass","origin":"ai","part":0,"phrase":"q4-uniform-test-dichotomy","plain":"No local test fails when all tests pass","record":null,"relation":"part","role":"statement","rows":[{"end_line":66,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem supplies only the all-tests-pass case: successful failed-test mass is zero. The positive lower bound when a test fails is a separate theorem.","fidelity_source":"ai","line":62,"lines":[62,64],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.testLaw_pass","note":"","plain":"No local test fails when all tests pass","proof_lines":[65,66],"relation":"part","annotation":"The hypothesis `h` lets the proof rewrite `testRes` for every sampled test, so every summand at a successful label `some b` vanishes."},{"end_line":81,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem supplies only the case with a failed test $e_0$: failed-test mass is at least $1/K$. The zero-mass case when all tests pass is a separate theorem.","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":"part","annotation":"The contribution of the witness `e₀` already has mass $1/K$. The proof bounds `testLaw x i s (some e₀)` by retaining that summand and using nonnegativity of the others."}],"tone":2,"topic":"verification"},{"anchor":"sec-4","at":"b23146-23271","from_record":false,"lean":true,"lines":[433,436],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_search_query_bound","origin":"ai","part":0,"phrase":"q4-verification-search-cost","plain":"Finding a failed test costs O(ℓ√K log(1/ε)) bit queries","record":null,"relation":"states","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":"","plain":"Finding a failed test costs O(ℓ√K log(1/ε)) bit queries","proof_lines":[437,456],"relation":"states","annotation":"`testCost t` is the physical query cost of a single local test. The multiplicative overhead from search is at most $276\\sqrt K\\ln(1/\\varepsilon)$ under $K\\ge2$ and $0<\\varepsilon<1/2$."}],"tone":2,"topic":"verification"},{"anchor":"sec-4","at":"b23272-23317","from_record":false,"lean":true,"lines":[344,350],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_fixedAddress","origin":"ai","part":0,"phrase":"q4-accept-search-failure","plain":"At a fixed address, passing every test gives certain acceptance","record":null,"relation":"contains","role":"explanation","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":"The only numerical premise here is `hε : 0 < ε`. Local tests are exact. The function `f x` is acceptance probability, which equals the search’s failure-to-find-a-counterexample probability."}],"tone":2,"topic":"verification"},{"anchor":"sec-4","at":"b23318-23400","from_record":false,"lean":true,"lines":[344,350],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_fixedAddress","origin":"ai","part":0,"phrase":"q4-one-sided-testing","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":"The only numerical premise here is `hε : 0 < ε`. Local tests are exact. The function `f x` is acceptance probability, which equals the search’s failure-to-find-a-counterexample probability."}],"tone":2,"topic":"verification"},{"anchor":"sec-4","at":"b23402-23469","from_record":false,"lean":true,"lines":[417,419],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_winner","origin":"ai","part":0,"phrase":"q4-winner-sure-at-address","plain":"The verifier accepts a winning column whenever its address is decoded correctly","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":423,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":407,"lines":[417,419],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_winner","note":"The proof first establishes `f c s x = 1` at the winning address.","plain":"The verifier accepts a winning column whenever its address is decoded correctly","proof_lines":[417,423],"relation":"proof","annotation":"A winning column is accepted with probability at least $1-\\varepsilon$. `hw` supplies the winning address, `hC` gives exact circuit semantics, and `hn` gives enough decoder repetitions."}],"tone":2,"topic":"verification"},{"anchor":"sec-4","at":"b23470-23588","from_record":false,"lean":true,"lines":[392,398],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_nonwinner","origin":"ai","part":0,"phrase":"q4-nonwinner-error","plain":"A nonwinner is accepted with probability at most $\\varepsilon$","record":null,"relation":"states","role":"statement","rows":[{"end_line":403,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":392,"lines":[392,398],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_nonwinner","note":"","plain":"A nonwinner is accepted with probability at most $\\varepsilon$","proof_lines":[399,403],"relation":"states","annotation":"`hC : CircuitRealises C (P k t)` ensures the exact tests characterize a correct certificate. `hno` excludes a winning address, and `hf` bounds the acceptance probability whenever a test fails."}],"tone":2,"topic":"verification"},{"anchor":"sec-4","at":"b23590-23764","from_record":false,"lean":true,"lines":[539,549],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumError_bound","origin":"ai","part":0,"phrase":"q4-one-input-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":"The full algorithm has zero-input error at most $T\\varepsilon$ and one-input error at most $2m2^{-T}+T\\varepsilon+\\varepsilon$."}],"tone":2,"topic":"verification"},{"anchor":"sec-4","at":"b23887-23997","from_record":false,"lean":true,"lines":[539,549],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumError_bound","origin":"ai","part":0,"phrase":"q4-zero-input-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":"The full algorithm has zero-input error at most $T\\varepsilon$ and one-input error at most $2m2^{-T}+T\\varepsilon+\\varepsilon$."}],"tone":2,"topic":"verification"},{"anchor":"sec-4","at":"b23998-24026","from_record":false,"lean":true,"lines":[588,590],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumError_numeric","origin":"ai","part":0,"phrase":"q4-below-third","plain":"The chosen parameters make both errors less than one third","record":null,"relation":"states","role":"derivation","rows":[{"end_line":591,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":588,"lines":[588,590],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumError_numeric","note":"","plain":"The chosen parameters make both errors less than one third","proof_lines":[591,591],"relation":"states","annotation":"At $T=\\lceil\\log_2(1000m)\\rceil$ and $\\varepsilon=1/(1000T)$, the identity $T\\varepsilon=1/1000$ holds and $2m2^{-T}+T\\varepsilon+\\varepsilon<1/3$. The hypothesis `hm : 2 ≤ m` makes the horizon positive."}],"tone":2,"topic":"verification"},{"anchor":"sec-4","at":"b24228-24308","from_record":false,"lean":true,"lines":[87,90],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budget_le","origin":"ai","part":0,"phrase":"q4-final-query-budget","plain":"Circuit-size bound gives budget Cₖ√m log₂⁶m","record":null,"relation":"contains","role":"derivation","rows":[{"end_line":268,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":87,"lines":[87,90],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budget_le","note":"","plain":"Circuit-size bound gives budget Cₖ√m log₂⁶m","proof_lines":[91,268],"relation":"contains","annotation":"The complete algorithm’s finite query budget is at most $C_k\\sqrt m\\,\\ell^6$. The hypothesis `ht` requires $t\\ge1$. `hSz` bounds the exact circuit size by a constant depending on $k$ times $m\\ell^2$."}],"tone":2,"topic":"verification"},{"anchor":"sec-5","at":"b24621-24646","from_record":false,"lean":true,"lines":[921,924],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_17_floor","origin":"ai","part":0,"phrase":"c5-budget","plain":"The randomized query budget G=⌊mL/100⌋","record":null,"relation":"defines","role":"definition","rows":[{"end_line":924,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":921,"lines":[921,924],"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":"defines","annotation":"Lean writes the natural-number floor as `⌊…⌋₊`. This theorem converts the integer division in `Gvalue` into the real quotient used in the paper."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b24736-24935","from_record":false,"lean":true,"lines":[436,445],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_23","origin":"ai","part":0,"phrase":"c5-gap-overview","plain":"Erased-zero search, heavy columns and address guesses bound the acceptance gap","record":null,"relation":"states","role":"explanation","rows":[{"end_line":452,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":436,"lines":[436,445],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_23","note":"","plain":"Erased-zero search, heavy columns and address guesses bound the acceptance gap","proof_lines":[446,452],"relation":"states","annotation":"The absolute difference between planted and dummy acceptance probabilities is at most $4G/m^2+G/(mL)+G(2/3)^r$. Here `hT : T.depth ≤ G` imposes a cap on every branch, `hL` requires $L\\ge1$, and `hard` bounds every depth-$L$ tree on the common law $\\mu$."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b25011-25040","from_record":false,"lean":true,"lines":[50,54],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.dummy","origin":"ai","part":0,"phrase":"c5-dummy-object","plain":"An input with 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":"An input with one zero per column and blank cells","relation":"defines","annotation":"The three branches on `BitLoc` read the supplied zero positions `J`, copy the address data `A`, or return `false` for a cell bit. Sampling `J` and `A` is handled in the surrounding law."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b25042-25131","from_record":false,"lean":true,"lines":[29,31],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.dummyAvg","origin":"ai","part":0,"phrase":"c5-dummy-zero-rows","plain":"The independent sampling law of the dummy input","record":null,"relation":"defines","role":"definition","rows":[{"end_line":31,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":29,"lines":[29,31],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.dummyAvg","note":"","plain":"The independent sampling law of the dummy input","relation":"defines","annotation":"The expectation of a statistic $g(Y^{(0)})$ under the dummy distribution. `prodW (prodW μ)` draws every address input independently with law $\\mu$, and `prodW (unif ℓ)` independently chooses every zero row uniformly among $m=2^\\ell$ rows."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b25133-25273","from_record":false,"lean":true,"lines":[29,31],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.dummyAvg","origin":"ai","part":0,"phrase":"c5-address-law","plain":"The independent sampling law of the dummy input","record":null,"relation":"defines","role":"definition","rows":[{"end_line":31,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":29,"lines":[29,31],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.dummyAvg","note":"","plain":"The independent sampling law of the dummy input","relation":"defines","annotation":"The expectation of a statistic $g(Y^{(0)})$ under the dummy distribution. `prodW (prodW μ)` draws every address input independently with law $\\mu$, and `prodW (unif ℓ)` independently chooses every zero row uniformly among $m=2^\\ell$ rows."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b25274-25301","from_record":false,"lean":true,"lines":[50,54],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.dummy","origin":"ai","part":0,"phrase":"c5-blank-cells","plain":"An input with 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":"An input with one zero per column and blank cells","relation":"defines","annotation":"The last branch `.inr (.inr _)` covers both pointer and transcript bits. It returns `false` for every column and address, before any chosen cell is filled."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b25302-25321","from_record":false,"lean":true,"lines":[97,98],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.addressedF_dummy","origin":"ai","part":0,"phrase":"c5-dummy-loses","plain":"The dummy input has no winning column","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 dummy input has no winning column","proof_lines":[99,102],"relation":"states","annotation":"The addressed function is zero on every dummy input. In Lean, `addressedF … = false` means that no pair consisting of a column and an address satisfies the winning conditions."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b25322-25387","from_record":false,"lean":true,"lines":[27,29],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.coupledAvg","origin":"ai","part":0,"phrase":"c5-independent-I","plain":"The dummy choices and an independent planting column","record":null,"relation":"defines","role":"definition","rows":[{"end_line":29,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":27,"lines":[27,29],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.coupledAvg","note":"","plain":"The dummy choices and an independent planting column","relation":"defines","annotation":"The law for $I$ is `unif ℓ` regardless of the surrounding values of `A` and `J`. This independence lets the erased-zero event be averaged over columns on a fixed dummy run."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b25392-25423","from_record":false,"lean":true,"lines":[58,66],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.planted","origin":"ai","part":0,"phrase":"c5-planted-object","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":"","plain":"Erase one column’s zero and fill its true-address certificate","relation":"defines","annotation":"The input $Y^{(1)}$ obtained from the dummy data by making $X_I$ all ones and filling only $B_{I,s_I}$. `trueAddr` uses a default value off the promise, but the hard distribution assigns those address inputs probability zero."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b25425-25560","from_record":false,"lean":true,"lines":[58,66],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.planted","origin":"ai","part":0,"phrase":"c5-plant-writing","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 paper chooses correct circuit transcripts for the parameter tr; validity is used by the following theorem.","plain":"Erase one column’s zero and fill its true-address certificate","relation":"defines","annotation":"The input $Y^{(1)}$ obtained from the dummy data by making $X_I$ all ones and filling only $B_{I,s_I}$. `trueAddr` uses a default value off the promise, but the hard distribution assigns those address inputs probability zero."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b25561-25577","from_record":false,"lean":true,"lines":[110,111],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.addressedF_planted","origin":"ai","part":0,"phrase":"c5-planted-winner","plain":"Valid planted certificates make the function one","record":null,"relation":"proof","role":"statement","rows":[{"end_line":128,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":106,"lines":[110,111],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.addressedF_planted","note":"The local fact hw proves that the designated column I wins at its true address.","plain":"Valid planted certificates make the function one","proof_lines":[110,128],"relation":"proof","annotation":"The planted input has function value one when the chosen column has promised address inputs and the supplied transcripts are consistent."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b25697-25777","from_record":false,"lean":true,"lines":[27,29],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.coupledAvg","origin":"ai","part":0,"phrase":"c5-independence","plain":"The dummy choices and an independent planting column","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":29,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":27,"lines":[27,29],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.coupledAvg","note":"","plain":"The dummy choices and an independent planting column","relation":"defines","annotation":"Read the three factors from the outside in. The address inputs use `prodW (prodW μ)`, the zero rows use `prodW (unif ℓ)`, and the selected column uses `unif ℓ`."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b26441-26556","from_record":false,"lean":true,"lines":[168,174],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_18","origin":"ai","part":0,"phrase":"c5-coupling-gap","plain":"The acceptance gap is bounded by erased-zero and true-cell visits","record":null,"relation":"states","role":"statement","rows":[{"end_line":178,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":168,"lines":[168,174],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_18","note":"","plain":"The acceptance gap is bounded by erased-zero and true-cell visits","proof_lines":[175,178],"relation":"states","annotation":"Only `hμ`, nonnegativity of the address weights, is needed for this averaging step."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b26713-26813","from_record":false,"lean":true,"lines":[182,185],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.discoveredZeros","origin":"ai","part":0,"phrase":"c5-zero-count","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,185],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.discoveredZeros","note":"","plain":"Count columns whose zero is read during the dummy run","relation":"defines","annotation":"The integer $Z$ counting columns whose unique zero appears in the complete dummy query run. Lean forms the finite set of columns $i$ for which the location `(i, J i)` lies in `T.path (dummy J A)`, then takes its cardinality."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b26814-26905","from_record":false,"lean":true,"lines":[206,209],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.erasedZero_eq_expectedZeros_div","origin":"ai","part":0,"phrase":"c5-erased-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 that the erased zero is queried equals $\\mathbb E Z/m$. Lean writes $m$ as `2 ^ ℓ` and uses `coupledAvg` for the joint expectation."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b26906-27044","from_record":false,"lean":true,"lines":[252,257],"module":"QuarticQuery.Paper.ClassicalUniformZero","name":"QuarticQuery.Paper.uniform_zero_given_transcript","origin":"ai","part":0,"phrase":"c5-unseen-zero","plain":"An unseen zero remains uniform among unqueried 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 remains uniform among unqueried rows","proof_lines":[258,271],"relation":"states","annotation":"Conditional on an observed transcript, the zero in column $i$ is uniform among that column’s unqueried rows, provided no zero has yet been observed there."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b27430-27489","from_record":false,"lean":true,"lines":[250,254],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_19","origin":"ai","part":0,"phrase":"c5-erased-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 hypotheses require a normalized, nonnegative address law and `hT : T.depth ≤ G`. Promise membership is unnecessary."}],"tone":7,"topic":"planted"},{"anchor":"sec-5","at":"b27546-27603","from_record":false,"lean":true,"lines":[32,36],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.cellOf","origin":"ai","part":0,"phrase":"c5-index-names-address","plain":"A cell-bit location names its column and address","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":36,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":32,"lines":[32,36],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.cellOf","note":"","plain":"A cell-bit location names its column and address","relation":"defines","annotation":"Both a pointer-bit location and a transcript-bit location return `some (i, s)`. Locations in the strings or address inputs return `none`."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b27668-27754","from_record":false,"lean":true,"lines":[26,27],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.f_eq_trueAddr","origin":"ai","part":0,"phrase":"c5-address-values","plain":"A promised address bit equals its function value","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":29,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":26,"lines":[26,27],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.f_eq_trueAddr","note":"","plain":"A promised address bit equals its function value","proof_lines":[28,29],"relation":"proof","annotation":"For a promised input $U_h$, the $h$th bit of `trueAddr f U` is exactly the value of $f(U_h)$. The hypothesis `hU : promised f (U h)` excludes the default value used to make `trueAddr` total."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b28078-28192","from_record":false,"lean":true,"lines":[882,883],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product","origin":"ai","part":0,"phrase":"c5-single-input-hardness","plain":"Separate query caps give joint success at most βʳ on r inputs","record":null,"relation":"part","role":"explanation","rows":[{"end_line":898,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":880,"lines":[882,883],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product","note":"The hypothesis hard supplies this assumption; the theorem does not derive it.","plain":"Separate query caps give joint success at most βʳ on r inputs","proof_lines":[885,898],"relation":"part","annotation":"The premise `hard` gives the one-input bound for every tree of depth at most $L$. The proof uses it on the factors of `classicalProductValue` after showing that adaptive querying cannot increase the product in expectation."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b28194-28375","from_record":false,"lean":true,"lines":[902,910],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","origin":"ai","part":0,"phrase":"c5-product-lemma","plain":"Independent side information and random coins preserve the product bound","record":null,"relation":"states","role":"statement","rows":[{"end_line":913,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":902,"lines":[902,910],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","note":"","plain":"Independent side information and random coins preserve the product bound","proof_lines":[910,913],"relation":"states","annotation":"The proof applies `classical_direct_product` to each tree `T s` under the common product law. The per-tree bound stays $\\beta^r$ because the weights `p s` are nonnegative and sum to one."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b28376-28534","from_record":false,"lean":true,"lines":[902,910],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","origin":"ai","part":0,"phrase":"c5-coins-and-information","plain":"Independent side information and random coins preserve the product bound","record":null,"relation":"contains","role":"statement","rows":[{"end_line":913,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":902,"lines":[902,910],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","note":"","plain":"Independent side information and random coins preserve the product bound","proof_lines":[910,913],"relation":"contains","annotation":"The finite seed type `S` indexes a complete tree `T s` before the target inputs are sampled. Both external data and coins can be put in that seed if its law is independent of those inputs."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b28546-28626","from_record":false,"lean":true,"lines":[910,913],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","origin":"ai","part":0,"phrase":"c5-fix-coins","plain":"Independent side information and random coins preserve the product bound","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":913,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":902,"lines":[910,913],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","note":"","plain":"Independent side information and random coins preserve the product bound","proof_lines":[910,913],"relation":"proof","annotation":"Each fixed seed still needs `(T s).capped fun _ => L`. The theorem averages the success of these separately capped trees and uses `hp1` on the final constant sum."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b28627-28795","from_record":false,"lean":true,"lines":[218,222],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_prefix_iff","origin":"ai","part":0,"phrase":"c5-schedule","plain":"A compatible transcript imposes separate constraints on each input","record":null,"relation":"states","role":"derivation","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":"`classicalSchedule T τ` uses the recorded reply to choose the next tree. The induction on the transcript proves the equivalence even when a recorded query disagrees with the tree node."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b28799-28885","from_record":false,"lean":true,"lines":[218,222],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_prefix_iff","origin":"ai","part":0,"phrase":"c5-rectangle","plain":"A compatible transcript imposes separate constraints on each input","record":null,"relation":"states","role":"derivation","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":"After the schedule conjunct, the only remaining restrictions are `classicalLocalConsistent τ h (U h)` separately for every $h$. A consistent prefix therefore cuts the input space into a product of local restrictions."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b28891-28960","from_record":false,"lean":true,"lines":[275,286],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_product_law","origin":"ai","part":0,"phrase":"c5-posterior-product","plain":"Conditioning on a transcript preserves the product law","record":null,"relation":"states","role":"derivation","rows":[{"end_line":301,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":275,"lines":[275,286],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_product_law","note":"","plain":"Conditioning on a transcript preserves the product law","proof_lines":[285,301],"relation":"states","annotation":"At a transcript of positive probability, the conditional joint law factors into the separately conditioned laws of the inputs (a fixed compatible transcript constrains each input only by its own recorded replies; see Appendix B.1 of the worked exposition). The hypothesis `hm` makes the conditioning denominator positive.","annotation_references":[{"start":217,"end":254,"key":"expository/appendix:b.1"}]}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b28962-29094","from_record":false,"lean":true,"lines":[387,390],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue","origin":"ai","part":0,"phrase":"c5-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,390],"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 proof supplies the remaining budget as `L - classicalQueriesTo τ h` and restricts the prior using `classicalTranscriptWeight μ τ h`."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b29095-29220","from_record":false,"lean":true,"lines":[439,449],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_16_transcript","origin":"ai","part":0,"phrase":"c5-value-drift","plain":"One query cannot improve the expected optimal continuation value","record":null,"relation":"states","role":"derivation","rows":[{"end_line":453,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":439,"lines":[439,449],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_16_transcript","note":"","plain":"One query cannot improve the expected optimal continuation value","proof_lines":[448,453],"relation":"states","annotation":"The expected new value of $V_h$ after querying one of its bits is at most its current value. The hypothesis `hc : classicalQueriesTo τ h < L` ensures that one query remains available."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b29226-29263","from_record":false,"lean":true,"lines":[457,461],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue_unchanged","origin":"ai","part":0,"phrase":"c5-other-values","plain":"Querying one input leaves every other continuation value unchanged","record":null,"relation":"states","role":"derivation","rows":[{"end_line":463,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":457,"lines":[457,461],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue_unchanged","note":"","plain":"Querying one input leaves every other continuation value unchanged","proof_lines":[462,463],"relation":"states","annotation":"The type states the distinction as `hj : j ≠ h` and appends the new observation to the transcript."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b29265-29303","from_record":false,"lean":true,"lines":[615,628],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_conditional_expectation","origin":"ai","part":0,"phrase":"c5-supermartingale","plain":"The conditional expectation of the product of continuation values cannot increase","record":null,"relation":"states","role":"derivation","rows":[{"end_line":653,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":615,"lines":[615,628],"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 positive-probability execution prefix, and `hc` requires remaining budget for the queried instance."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b29304-29382","from_record":false,"lean":true,"lines":[733,743],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_final_bound","origin":"ai","part":0,"phrase":"c5-terminal-success","plain":"Final success probability is bounded by the continuation product","record":null,"relation":"contains","role":"derivation","rows":[{"end_line":756,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":733,"lines":[733,743],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_final_bound","note":"","plain":"Final success probability is bounded by the continuation product","proof_lines":[742,756],"relation":"contains","annotation":"The type states both inequalities as a conjunction and requires nonnegative component weights through `hν`. The selected answer vector is the leaf label `s`."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b29388-29421","from_record":false,"lean":true,"lines":[894,898],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product","origin":"ai","part":0,"phrase":"c5-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":[894,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 hypothesis `hard` bounds every single-input tree of depth at most $L$, while `hT : T.capped (fun _ => L)` imposes the separate caps."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b29492-29539","from_record":false,"lean":true,"lines":[218,222],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_prefix_iff","origin":"ai","part":0,"phrase":"c5-allowed-conditioning","plain":"A compatible transcript imposes separate constraints on each input","record":null,"relation":"states","role":"explanation","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":"The equivalence is for a specified execution prefix `τ`. It factors that prefix into a schedule and local answer constraints, the form used to condition the product law."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b29781-29831","from_record":false,"lean":true,"lines":[88,88],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.finite_depth_le","origin":"ai","part":0,"phrase":"c5-finite-trees","plain":"There are finitely many decision trees with a fixed cap","record":null,"relation":"states","role":"statement","rows":[{"end_line":103,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":88,"lines":[88,88],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.finite_depth_le","note":"","plain":"There are finitely many decision trees with a fixed cap","proof_lines":[89,103],"relation":"states","annotation":"For finitely many possible queried coordinates and a fixed depth cap $L$, there are finitely many Boolean decision trees. The hypothesis `[Finite κ]` supplies finiteness of the coordinate type."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b29833-29984","from_record":false,"lean":true,"lines":[138,140],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.exists_hard_distribution","origin":"ai","part":0,"phrase":"c5-minimax-law","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":"same","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":"If no randomized algorithm of query cap $L$ computes $P$ with error at most $1/3$, there is one distribution $\\mu$ on its promise under which every deterministic depth-$L$ tree succeeds with probability at most $2/3$. The premise is `h : ¬ RLe f L`, equivalent here to $L<R(f)$."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b30031-30182","from_record":false,"lean":true,"lines":[262,264],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.HeavyColumn","origin":"ai","part":0,"phrase":"c5-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,264],"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 repeated reads as separate queries, and `T.path (dummy J A)` is the whole realized path, including any queries after the time being studied."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b30183-30231","from_record":false,"lean":true,"lines":[47,59],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.avg_heavy_le","origin":"ai","part":0,"phrase":"c5-heavy-count","plain":"A uniform column is heavy with probability ≤G/(mL)","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":65,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":42,"lines":[47,59],"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":"The conditions are `hL : 1 ≤ L` and `hl : l.length ≤ G`."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b30274-30316","from_record":false,"lean":true,"lines":[42,44],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.avg_heavy_le","origin":"ai","part":0,"phrase":"c5-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 conditions are `hL : 1 ≤ L` and `hl : l.length ≤ G`."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b30443-30571","from_record":false,"lean":true,"lines":[316,333],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.avg_reachedCellAt_le","origin":"ai","part":0,"phrase":"c5-light-implies-prediction","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":[316,333],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.avg_reachedCellAt_le","note":"The proof builds the simulator equality under the full-run lightness hypothesis before taking expectations.","plain":"A light true-cell visit at one time is bounded by address-guessing success","proof_lines":[302,338],"relation":"proof","annotation":"The proof bounds `reachedCellAt` by the predictor’s success indicator separately for each target-input tuple, then multiplies by its nonnegative product weight and sums."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b30572-30642","from_record":false,"lean":true,"lines":[274,277],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.addressSimulator","origin":"ai","part":0,"phrase":"c5-target-inputs","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,277],"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 column $i$ and proposed query time."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b30759-30872","from_record":false,"lean":true,"lines":[32,45],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.simTree","origin":"ai","part":0,"phrase":"c5-simulate-target-reads","plain":"Simulating a query schedule with a separate target-query counter","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":"Simulating a query schedule with a separate target-query counter","relation":"defines","annotation":"A simulation with two counters: `t` counts remaining steps of the original tree, and `c` counts remaining queries to the hidden target. A query answered from `base` decreases only `t`. A target query decreases both."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b30874-30925","from_record":false,"lean":true,"lines":[281,283],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.addressSimulator_depth_le","origin":"ai","part":0,"phrase":"c5-stop-at-cap","plain":"At most L predictor reads across all target strings","record":null,"relation":"states","role":"derivation","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 capped address simulator has total query depth at most $L$ on every input. The time parameter `t` limits how far the original tree is simulated and can exceed $L$."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b30926-31157","from_record":false,"lean":true,"lines":[274,277],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.addressSimulator","origin":"ai","part":0,"phrase":"c5-output-before-answer","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,277],"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 column $i$ and proposed query time."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b31158-31243","from_record":false,"lean":true,"lines":[32,45],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.simTree","origin":"ai","part":0,"phrase":"c5-separate-clocks","plain":"Simulating a query schedule with a separate target-query counter","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":"Simulating a query schedule with a separate target-query counter","relation":"defines","annotation":"A simulation with two counters: `t` counts remaining steps of the original tree, and `c` counts remaining queries to the hidden target. A query answered from `base` decreases only `t`. A target query decreases both."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b31331-31423","from_record":false,"lean":true,"lines":[196,197],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.OutTree.capped_of_depth_le","origin":"ai","part":0,"phrase":"c5-total-implies-separate","plain":"A total query cap implies every separate query 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 query cap implies every separate query cap","proof_lines":[198,209],"relation":"states","annotation":"More generally, the theorem allows each component budget to be at least the total depth bound: `hT : T.depth ≤ n` and `hc : ∀ j, n ≤ c j`."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b31429-31480","from_record":false,"lean":true,"lines":[171,176],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.OutTree.capped","origin":"ai","part":0,"phrase":"c5-separate-caps-used","plain":"A separate query budget for every address input","record":null,"relation":"defines","role":"explanation","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 budget for every address input","relation":"defines","annotation":"The condition that an output tree uses at most its assigned budget on each instance, on every branch."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b31485-31566","from_record":false,"lean":true,"lines":[188,193],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.address_guess_average","origin":"ai","part":0,"phrase":"c5-predictor-bound","plain":"Independent side information and coins preserve the (2/3)ʳ address-guessing bound","record":null,"relation":"states","role":"derivation","rows":[{"end_line":194,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":188,"lines":[188,193],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.address_guess_average","note":"","plain":"Independent side information and coins preserve the (2/3)ʳ address-guessing bound","proof_lines":[194,194],"relation":"states","annotation":"The `hard` hypothesis supplies the single-input success bound, and `hT` imposes the cap for every outside-data value. The distribution of those values is `p`, while the target law remains the same product of $\\mu$."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b31568-31747","from_record":false,"lean":true,"lines":[316,333],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.avg_reachedCellAt_le","origin":"ai","part":0,"phrase":"c5-light-hit-simulates","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":[316,333],"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":"The simulator depth bound gives a separate cap by `OutTree.capped_of_depth_le`. That cap is a property of the whole simulator and still holds on branches where replay never reaches the true cell (see the four-query example in Appendix B.2 of the worked exposition).","annotation_references":[{"start":226,"end":263,"key":"expository/appendix:b.2"}]}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b31842-31971","from_record":false,"lean":true,"lines":[305,333],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.avg_reachedCellAt_le","origin":"ai","part":0,"phrase":"c5-joint-event-chain","plain":"A light true-cell visit at one time is bounded by address-guessing success","record":null,"relation":"part","role":"statement","rows":[{"end_line":338,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The highlighted proof establishes the first inequality, joint light-hit probability at most simulator success, for each fixed outside choice $A,J$. This excerpt does not state the final $\\beta^r$ bound under the full dummy law.","fidelity_source":"ai","line":295,"lines":[305,333],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.avg_reachedCellAt_le","note":"Pointwise simulation gives the first inequality before averaging the independent outside data.","plain":"A light true-cell visit at one time is bounded by address-guessing success","proof_lines":[302,338],"relation":"part","annotation":"The highlighted proof establishes the first inequality, joint light-hit probability at most simulator success, for each fixed outside choice $A,J$. This excerpt does not state the final $\\beta^r$ bound under the full dummy law. `hguess` bounds every separately capped predictor, and `hdom` ensures promised target inputs."},{"end_line":354,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives the first-to-last inequality with $\\beta=2/3$ under the full dummy law. It omits the middle quantity, the predictor's success probability.","fidelity_source":"ai","line":342,"lines":[342,348],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_21","note":"The combined joint-event bound after averaging outside data and applying the capped direct-product estimate.","plain":"Light true-cell visit probability ≤(2/3)ʳ at any fixed time","proof_lines":[349,354],"relation":"part","annotation":"The type gives the first-to-last inequality with $\\beta=2/3$ under the full dummy law. It omits the middle quantity, the predictor's success probability. `reachedCellAt` includes both requirements inside one event, and the expectation uses the original independent dummy law. The combined joint-event bound after averaging outside data and applying the capped direct-product estimate."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b31972-32022","from_record":false,"lean":true,"lines":[34,34],"module":"QuarticQuery.LowerBound.Planted.Coupling","name":"QuarticQuery.QueryTree.length_path_le","origin":"ai","part":0,"phrase":"c5-query-times","plain":"Every execution has at most the tree’s depth many query times","record":null,"relation":"states","role":"derivation","rows":[{"end_line":39,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":34,"lines":[34,34],"module":"QuarticQuery.LowerBound.Planted.Coupling","name":"QuarticQuery.QueryTree.length_path_le","note":"","plain":"Every execution has at most the tree’s depth many query times","proof_lines":[35,39],"relation":"states","annotation":"The number of queries along an actual execution is at most the decision tree’s depth. Combining this theorem with `hT : T.depth ≤ G` leaves at most $G$ possible query times."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b32109-32224","from_record":false,"lean":true,"lines":[408,414],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_22","origin":"ai","part":0,"phrase":"c5-cell-visit-bound","plain":"True-cell hit probability ≤ G/(mL) + G(2/3)ʳ","record":null,"relation":"states","role":"statement","rows":[{"end_line":415,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":408,"lines":[408,414],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_22","note":"","plain":"True-cell hit probability ≤ G/(mL) + G(2/3)ʳ","proof_lines":[415,415],"relation":"states","annotation":"The probability of querying any bit of the planted true-address cell is at most $G/(mL)+G(2/3)^r$. `hT : T.depth ≤ G` bounds the number of candidate query times, while `hard` gives the separate-input guessing bound."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b32379-32440","from_record":false,"lean":true,"lines":[471,474],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.discrepancy_lt_third","origin":"ai","part":0,"phrase":"c5-numerical-gap","plain":"The chosen budget makes the distinguishing advantage less than one third","record":null,"relation":"states","role":"statement","rows":[{"end_line":476,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":471,"lines":[471,474],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.discrepancy_lt_third","note":"","plain":"The chosen budget makes the distinguishing advantage less than one third","proof_lines":[475,476],"relation":"states","annotation":"For $m=4^t$, $r=40t=20\\log_2m$, $1\\le L\\le m$, and $G\\le mL/100$, the sum $4G/m^2+G/(mL)+G(2/3)^r$ is strictly below $1/3$. The three hypotheses `hL1`, `hLm`, and `hG` record these numerical conditions."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b32446-32470","from_record":false,"lean":true,"lines":[125,135],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Gvalue_le_square","origin":"ai","part":0,"phrase":"c5-budget-square","plain":"The classical query budget is at most $m^2/100$","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":135,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":118,"lines":[125,135],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Gvalue_le_square","note":"","plain":"The classical query budget is at most $m^2/100$","proof_lines":[120,135],"relation":"proof","annotation":"The concrete budget $G=\\lfloor mL/100\\rfloor$ is at most $m^2/100$ for $L=L_{k,m}$. The only parameter hypothesis is `hk : 1 ≤ k`. The proof handles $t=0$ separately and otherwise uses $L\\le m$."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b32475-32525","from_record":false,"lean":true,"lines":[154,158],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_numeric_components","origin":"ai","part":0,"phrase":"c5-first-two-terms","plain":"Distinguishing terms bounded by 4/100, 1/100 and 1/100","record":null,"relation":"contains","role":"derivation","rows":[{"end_line":185,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":154,"lines":[154,158],"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":"contains","annotation":"Under $1\\le L\\le m$ and $G\\le mL/100$, the erased-zero term is at most $4/100$, the heavy-column term at most $1/100$, and the guessing term at most $1/100$."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b32531-32570","from_record":false,"lean":true,"lines":[429,430],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.twoThirds_pow_le","origin":"ai","part":0,"phrase":"c5-guess-tail","plain":"Guessing 40t address bits contributes at most m⁻¹⁰","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":439,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean bounds the factor $(2/3)^{40t}$ itself by $m^{-10}$ for every natural $t$. Multiplication by the nonnegative $G$ gives the printed bound at $m=4^t$, $r=40t=20\\ell$.","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":"proof","annotation":"Lean bounds the factor $(2/3)^{40t}$ itself by $m^{-10}$ for every natural $t$. Multiplication by the nonnegative $G$ gives the printed bound at $m=4^t$, $r=40t=20\\ell$."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b32572-32624","from_record":false,"lean":true,"lines":[465,474],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_23_randomized","origin":"ai","part":0,"phrase":"c5-average-coins","plain":"The same three-term acceptance-gap bound holds for bounded randomized programs","record":null,"relation":"states","role":"derivation","rows":[{"end_line":510,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":465,"lines":[465,474],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_23_randomized","note":"","plain":"The same three-term acceptance-gap bound holds for bounded randomized programs","proof_lines":[475,510],"relation":"states","annotation":"The absolute acceptance gap of a randomized program is at most $4G/m^2+G/(mL)+G(2/3)^r$. The proof applies the deterministic bound to each tree and then averages with `P.weight`."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b32632-32721","from_record":false,"lean":true,"lines":[164,175],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.addressedF_not_RLe","origin":"ai","part":0,"phrase":"c5-required-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":[164,175],"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 assumptions are `hC : CircuitRealises C f`, `hL : ¬ RLe f L`, `hL1 : 1 ≤ L`, and `hdisc`."}],"tone":6,"topic":"prediction"},{"anchor":"sec-5","at":"b32729-32763","from_record":false,"lean":true,"lines":[203,206],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.Gvalue_lt_R_Fkm","origin":"ai","part":0,"phrase":"c5-finite-lower-bound","plain":"The addressed function needs more than $\\lfloor mL/100\\rfloor$ randomized queries","record":null,"relation":"states","role":"statement","rows":[{"end_line":208,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":203,"lines":[203,206],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.Gvalue_lt_R_Fkm","note":"","plain":"The addressed function needs more than $\\lfloor mL/100\\rfloor$ randomized queries","proof_lines":[207,208],"relation":"states","annotation":"For $k\\ge2$, $m=4^t$ with $t\\ge8$, and a circuit realizing the promised function $P$, the hardness bound $L<R(P)$ implies $R(F_{k,m})>\\lfloor mL/100\\rfloor$. The statement is a finite lower-bound implication. The fixed-parameter Forrelation theorem (Equation (8.3) of the full reconstruction) supplies `hLR` for sufficiently large $m$.","annotation_references":[{"start":250,"end":291,"key":"long/equation:8.3"}]}],"tone":6,"topic":"prediction"},{"anchor":"sec-6","at":"b33116-33165","from_record":false,"lean":true,"lines":[379,384],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.Gvalue_ge","origin":"ai","part":0,"phrase":"e-first-floor","plain":"Removing both floors costs a factor of four","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":406,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":365,"lines":[379,384],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.Gvalue_ge","note":"The local assertion `hLge` removes the first floor under $k\\ge 2$ and $t\\ge 8$.","plain":"Removing both floors costs a factor of four","proof_lines":[368,406],"relation":"proof","annotation":"For `hk : 2 ≤ k` and `ht : 8 ≤ t`, the integer $G=\\lfloor mL/100\\rfloor$ is at least $m^{2-1/k}/(400(\\log_2m)^2)$."}],"tone":0,"topic":"query"},{"anchor":"sec-6","at":"b33170-33203","from_record":false,"lean":true,"lines":[385,390],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.Gvalue_ge","origin":"ai","part":0,"phrase":"e-second-floor","plain":"Removing both floors costs a factor of four","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":406,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":365,"lines":[385,390],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.Gvalue_ge","note":"The proof bounds $p=mL$ by 200 times $G$ once $p\\ge 200$.","plain":"Removing both floors costs a factor of four","proof_lines":[368,406],"relation":"proof","annotation":"For `hk : 2 ≤ k` and `ht : 8 ≤ t`, the integer $G=\\lfloor mL/100\\rfloor$ is at least $m^{2-1/k}/(400(\\log_2m)^2)$."}],"tone":0,"topic":"query"},{"anchor":"sec-6","at":"b33208-33245","from_record":false,"lean":true,"lines":[409,411],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.rpow_le_of_Gvalue_lt","origin":"ai","part":0,"phrase":"e-real-lower-bound","plain":"Removing the floors gives the randomized lower bound with coefficient 1/400","record":null,"relation":"states","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":"","plain":"Removing the floors gives the randomized lower bound with coefficient 1/400","proof_lines":[412,412],"relation":"states","annotation":"If an integer $r$ exceeds $G=\\lfloor mL/100\\rfloor$, then $r\\ge m^{2-1/k}/(400(\\log_2m)^2)$ for $k\\ge2$ and $m=4^t$ with $t\\ge8$. The hypotheses are `hk`, `ht` and `hr : Gvalue (mValue t) (Lvalue k t) < r`."}],"tone":0,"topic":"query"},{"anchor":"sec-6","at":"b33282-33394","from_record":false,"lean":true,"lines":[160,161],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.exists_nat_exponent","origin":"ai","part":0,"phrase":"e-choose-k","plain":"Every exponent below four is exceeded by 4−2/k for some k","record":null,"relation":"states","role":"derivation","rows":[{"end_line":164,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean assumes only $\\alpha<4$, so it also covers negative $\\alpha$; its conclusion uses the equivalent inequality $\\alpha/2<2-1/k$.","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":"states","annotation":"Lean assumes only $\\alpha<4$, so it also covers negative $\\alpha$. Its conclusion uses the equivalent inequality $\\alpha/2<2-1/k$. The hypothesis `hα : α < 4` is the only restriction on $\\alpha$ in this arithmetic lemma."}],"tone":0,"topic":"query"},{"anchor":"sec-6","at":"b33433-33597","from_record":false,"lean":true,"lines":[118,123],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.eventually_gt_rpow","origin":"ai","part":0,"phrase":"e-ratio-display","plain":"If s>α/2, randomized growth eventually beats any constant times (1+Q)^α","record":null,"relation":"part","role":"derivation","rows":[{"end_line":126,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states eventual $R_t>D(1+Q_t)^\\alpha$ for any supplied positive $D$ under the family bounds. It does not state the full displayed pointwise quotient inequality with coefficient $1/[400(1+C_k)^\\alpha]$.","fidelity_source":"ai","line":118,"lines":[118,123],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.eventually_gt_rpow","note":"Supplies eventual domination; the exact displayed coefficient is an arithmetic calculation in the text.","plain":"If s>α/2, randomized growth eventually beats any constant times (1+Q)^α","proof_lines":[124,126],"relation":"part","annotation":"The theorem states eventual $R_t>D(1+Q_t)^\\alpha$ for any supplied positive $D$ under the family bounds. It does not state the full displayed pointwise quotient inequality with coefficient $1/[400(1+C_k)^\\alpha]$. The hypotheses `hQ`, `hR`, `hQ0` and `hα` record the bounds, nonnegativity and exponent range."}],"tone":0,"topic":"query"},{"anchor":"sec-6","at":"b33598-33669","from_record":false,"lean":true,"lines":[27,28],"module":"QuarticQuery.Results.Headline","name":"QuarticQuery.no_universal_power","origin":"ai","part":0,"phrase":"e-no-smaller-power","plain":"The fixed-k family rules out exponents below 4−2/k","record":null,"relation":"states","role":"derivation","rows":[{"end_line":30,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":27,"lines":[27,28],"module":"QuarticQuery.Results.Headline","name":"QuarticQuery.no_universal_power","note":"Apply with the chosen fixed $k$ and the two previously proved family bounds.","plain":"The fixed-k family rules out exponents below 4−2/k","proof_lines":[29,30],"relation":"states","annotation":"A single fixed-$k$ family rules out a universal exponent $\\alpha$ whenever $\\alpha/2<2-1/k$. The hypothesis `hfam : FamilyBoundsAt k` contains both bounds for the same total functions. `hs` is the strict exponent inequality."}],"tone":0,"topic":"query"},{"anchor":"sec-6","at":"b33822-33856","from_record":false,"lean":true,"lines":[27,28],"module":"QuarticQuery.Results.Headline","name":"QuarticQuery.no_universal_power","origin":"ai","part":0,"phrase":"e-k-three-range","plain":"The fixed-k family rules out exponents below 4−2/k","record":null,"relation":"states","role":"derivation","rows":[{"end_line":30,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":27,"lines":[27,28],"module":"QuarticQuery.Results.Headline","name":"QuarticQuery.no_universal_power","note":"Specialize $k=3$; `hs` then reads $\\alpha/2<5/3$.","plain":"The fixed-k family rules out exponents below 4−2/k","proof_lines":[29,30],"relation":"states","annotation":"A single fixed-$k$ family rules out a universal exponent $\\alpha$ whenever $\\alpha/2<2-1/k$. The hypothesis `hfam : FamilyBoundsAt k` contains both bounds for the same total functions. `hs` is the strict exponent inequality."}],"tone":0,"topic":"query"},{"anchor":"sec-7","at":"b34914-35017","from_record":false,"lean":true,"lines":[525,525],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.bansalSinhaLower","origin":"ai","part":0,"phrase":"f-fixed-forrelation","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":"","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 after which the exact promise problem $P_{k,4^t}$ satisfies $R(P)>L$. The theorem’s type is the named proposition `BansalSinhaLower`, whose definition exposes that quantifier order."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-7","at":"b35163-35215","from_record":false,"lean":true,"lines":[37,37],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.Vc","origin":"ai","part":0,"phrase":"f-gaussian-transform","plain":"A transformed coordinate of a hidden vector","record":null,"relation":"part","role":"explanation","rows":[{"end_line":37,"exact_lines":true,"fidelity":"weaker","fidelity_note":"`Vc` defines $V=HU$ for an arbitrary finite matrix and coordinate vector. Gaussian sampling and specialization to the Walsh matrix are supplied by the surrounding construction, not this definition.","fidelity_source":"ai","line":37,"lines":[37,37],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.Vc","note":"","plain":"A transformed coordinate of a hidden vector","relation":"part","annotation":"`Vc` defines $V=HU$ for an arbitrary finite matrix and coordinate vector. Gaussian sampling and specialization to the Walsh matrix are supplied by the surrounding construction, not this definition. The definition accepts a finite matrix `H` and the hidden coordinate function `u`. By itself it assumes neither that `u` is Gaussian nor that `H` is a Walsh matrix."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-7","at":"b35236-35284","from_record":false,"lean":true,"lines":[48,48],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.Sf","origin":"ai","part":0,"phrase":"f-first-block","plain":"Scale the bias of the first block only","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":48,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":48,"lines":[48,48],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.Sf","note":"","plain":"Scale the bias of the first block only","relation":"defines","annotation":"The factor that equals $s$ on input block zero and one on every other block. The argument `c : BC l n` contains both a block label and a coordinate. `c.1.val` selects its block label."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-7","at":"b35290-35328","from_record":false,"lean":true,"lines":[364,367],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.integral_walk","origin":"ai","part":0,"phrase":"f-integration-by-parts","plain":"Gaussian integration by parts moves through the remaining blocks","record":null,"relation":"proof","role":"explanation","rows":[{"end_line":431,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":364,"lines":[364,367],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.integral_walk","note":"The recursive equality moves the derivative through e remaining blocks.","plain":"Gaussian integration by parts moves through the remaining blocks","proof_lines":[368,431],"relation":"proof","annotation":"The Gaussian expectation on the left equals the iterated expression `Int` after traversing the remaining $e$ blocks (see the iterated chain rule in Section 8.5 of the full reconstruction). The multiplier $\\theta$ must be bounded and continuous (`BCf θ`) and depend only on coordinates earlier than block $j$ (`EarlyOnly j θ`).","annotation_references":[{"start":148,"end":186,"key":"long/section:8.5"}]}],"tone":1,"topic":"forrelation"},{"anchor":"sec-7","at":"b35334-35363","from_record":false,"lean":true,"lines":[26,26],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.phiS","origin":"ai","part":0,"phrase":"f-bounded-transform","plain":"The bounded algebraic transform of a Gaussian coordinate","record":null,"relation":"defines","role":"definition","rows":[{"end_line":26,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":26,"lines":[26,26],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.phiS","note":"","plain":"The bounded algebraic transform of a Gaussian coordinate","relation":"defines","annotation":"The auxiliary function `qf x` is $\\sqrt{2+x^2}$, so the Lean formula writes its denominator as `2 * qf x ^ 3`."},{"end_line":110,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":98,"lines":[98,98],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.abs_phiS_le","note":"","plain":"The Gaussian transform stays between minus and plus one half","proof_lines":[99,110],"relation":"states","annotation":"The transform $\\varphi(x)=x(3+x^2)/(2(2+x^2)^{3/2})$ satisfies $|\\varphi(x)|\\le1/2$ for every real $x$."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-7","at":"b35474-35515","from_record":false,"lean":true,"lines":[499,502],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.mass_ge","origin":"ai","part":0,"phrase":"f-mean-separation","plain":"The correlated law raises the mean Forrelation","record":null,"relation":"states","role":"statement","rows":[{"end_line":542,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean gives the explicit positive mean gap $(1/18)^{k-1}$, while the prose asserts separation without a constant.","fidelity_source":"ai","line":499,"lines":[499,502],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.mass_ge","note":"","plain":"The correlated law raises the mean Forrelation","proof_lines":[503,542],"relation":"states","annotation":"The type gives the explicit positive mean gap $(1/18)^{k-1}$, while the prose asserts separation without a constant. The hypothesis `hl : 0 < l` supplies the lower bound on $k$."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-7","at":"b35615-35661","from_record":false,"lean":true,"lines":[384,391],"module":"QuarticQuery.ForrelationLower.Cascade","name":"QuarticQuery.ForrelationLower.advantage_le_sharp","origin":"ai","part":0,"phrase":"f-tree-advantage","plain":"A shallow tree has bounded advantage between the two laws","record":null,"relation":"states","role":"explanation","rows":[{"end_line":422,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":384,"lines":[384,391],"module":"QuarticQuery.ForrelationLower.Cascade","name":"QuarticQuery.ForrelationLower.advantage_le_sharp","note":"The shallow-tree condition is hT; the note exposes the analytic parameter assumptions.","plain":"A shallow tree has bounded advantage between the two laws","proof_lines":[392,422],"relation":"states","annotation":"`hT : T.depth ≤ d` is the query restriction, `hv` bounds the output by one, and `hH` gives orthonormal rows. The entry bound `hHb` contributes a factor $((3/16)\\varepsilon)^l$. For the Walsh matrix, $\\varepsilon=m^{-1/2}$."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-7","at":"b35769-35846","from_record":false,"lean":true,"lines":[527,532],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.forrelation_lower_uniform_sharp","origin":"ai","part":0,"phrase":"f-uniform-forrelation","plain":"A uniform Forrelation lower bound with coefficient 2/18225","record":null,"relation":"states","role":"statement","rows":[{"end_line":536,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":527,"lines":[527,532],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.forrelation_lower_uniform_sharp","note":"","plain":"A uniform Forrelation lower bound with coefficient 2/18225","proof_lines":[533,536],"relation":"states","annotation":"The binders put $k\\ge2$ in `hk` and $15k+2\\le2t$ in `ht`. Both restrictions are explicit, so one can check them for a varying $k$ before applying the inequality."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-7","at":"b36201-36374","from_record":false,"lean":false,"lines":null,"module":null,"name":null,"origin":"ai","part":0,"phrase":"f-growing-family-written-only","record":null,"role":"explanation","rows":[],"tone":0,"topic":"query"},{"anchor":"sec-7","at":"b38591-38641","from_record":false,"lean":true,"lines":[226,228],"module":"QuarticQuery.LowerBound.Planted.ZeroSearch","name":"QuarticQuery.avg_foundZero_I_le","origin":"ai","part":0,"phrase":"f-erased-zero-improvement","plain":"The erased-zero probability is at most $2G/m^2$","record":null,"relation":"states","role":"statement","rows":[{"end_line":246,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":226,"lines":[226,228],"module":"QuarticQuery.LowerBound.Planted.ZeroSearch","name":"QuarticQuery.avg_foundZero_I_le","note":"","plain":"The erased-zero probability is at most $2G/m^2$","proof_lines":[229,246],"relation":"states","annotation":"The hypothesis is `hT : T.depth ≤ G`. The address data `A` are arbitrary but fixed while the zero positions and column are averaged (see “An alternative search estimate” in Appendix B.2 of the full reconstruction).","annotation_references":[{"start":173,"end":212,"key":"long/appendix:b.2"}]}],"tone":7,"topic":"planted"},{"anchor":"sec-7","at":"b38643-38696","from_record":false,"lean":true,"lines":[258,260],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_le_prod","origin":"ai","part":0,"phrase":"f-subdistribution-proof","plain":"Separate budgets bound joint success for product sub-distributions","record":null,"relation":"proof","role":"explanation","rows":[{"end_line":298,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":258,"lines":[258,260],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_le_prod","note":"This is the alternate product-weight induction, not the conditional transcript proof printed in Section 5.","plain":"Separate budgets bound joint success for product sub-distributions","proof_lines":[261,298],"relation":"proof","annotation":"The hypothesis `hT : T.capped c` bounds the number of reads to each input on every branch."}],"tone":6,"topic":"prediction"},{"anchor":"sec-7","at":"b38702-38780","from_record":false,"lean":true,"lines":[52,53],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.D_le_Q_pow_four","origin":"ai","part":0,"phrase":"f-three-quartic-routes","plain":"D(f) ≤ 20736Q(f)⁴ for total functions","record":null,"relation":"part","role":"statement","rows":[{"end_line":54,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration gives the imported route with coefficient 20736; it does not state the other two proof routes.","fidelity_source":"ai","line":52,"lines":[52,53],"module":"QuarticQuery.Appendix.TheoremA1","name":"QuarticQuery.D_le_Q_pow_four","note":"Imported complexitylib route: 20736.","plain":"D(f) ≤ 20736Q(f)⁴ for total functions","proof_lines":[54,54],"relation":"part","annotation":"The type gives the imported route with coefficient 20736. It does not state the other two proof routes. The only explicit argument is the total function `f`. Partial functions are excluded."},{"end_line":63,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration gives the reconstructed appendix route with coefficient 1500625; it does not state the other two proof routes.","fidelity_source":"ai","line":61,"lines":[61,62],"module":"QuarticQuery.Paper.AppendixA","name":"QuarticQuery.Paper.appendixA_D_le_Q_pow_four","note":"Reconstructed appendix route: 1500625.","plain":"The spectral route gives D(f) ≤ 1500625Q(f)⁴","proof_lines":[63,63],"relation":"part","annotation":"The type gives the route in Appendix A of the full reconstruction with coefficient 1500625. It does not state the other two proof routes. The explicit argument `f` is total and there is no additional theorem hypothesis.","annotation_references":[{"start":28,"end":65,"key":"long/appendix:a"}]},{"end_line":107,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration gives the hybrid route with coefficient 19600; it does not state the other two proof routes.","fidelity_source":"ai","line":105,"lines":[105,106],"module":"QuarticQuery.Paper.AppendixA","name":"QuarticQuery.Paper.appendixA_D_le_Q_pow_four_hybrid","note":"Hybrid route: 19600.","plain":"A hybrid appendix argument gives coefficient 19600","proof_lines":[107,107],"relation":"part","annotation":"The type gives the hybrid route with coefficient 19600. It does not state the other two proof routes."}],"tone":0,"topic":"query"},{"anchor":"sec-8","at":"b39042-39231","from_record":false,"lean":true,"lines":[23,29],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.theorem_1_1_unconditional","origin":"ai","part":0,"phrase":"v-headline","plain":"The universal quartic bound and total functions approaching exponent four","record":"quartic.theorem-1","relation":"states","role":"mention","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":"states","annotation":"Both bounds use the same circuit `C` and the same function `Fkm k t C`."}],"tone":0,"topic":"query"},{"anchor":"sec-8","at":"b39233-39340","from_record":false,"lean":true,"lines":[30,40],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_family_named","origin":"ai","part":0,"phrase":"v-named-family","plain":"The explicit Forrelation family has both bounds with fixed logarithmic powers","record":null,"relation":"states","role":"mention","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":"states","annotation":"The proof chooses `max t₀ 8` after obtaining the threshold from the fixed-$k$ Forrelation lower bound. This lets the later clauses use one `forrCircuit l t` with both explicit logarithmic losses."}],"tone":0,"topic":"query"},{"anchor":"sec-8","at":"b39342-39404","from_record":false,"lean":true,"lines":[525,525],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.bansalSinhaLower","origin":"ai","part":0,"phrase":"v-fixed-forrelation","plain":"For fixed k≥2, Forrelation eventually needs more than L randomized queries","record":null,"relation":"states","role":"mention","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":"","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 after which the exact promise problem $P_{k,4^t}$ satisfies $R(P)>L$. The theorem’s type is the named proposition `BansalSinhaLower`, whose definition exposes that quantifier order."}],"tone":1,"topic":"forrelation"},{"anchor":"sec-8","at":"b39409-39476","from_record":false,"lean":true,"lines":[527,532],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.forrelation_lower_uniform_sharp","origin":"ai","part":0,"phrase":"v-uniform-forrelation","plain":"A uniform Forrelation lower bound with coefficient 2/18225","record":null,"relation":"states","role":"mention","rows":[{"end_line":536,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":527,"lines":[527,532],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.forrelation_lower_uniform_sharp","note":"","plain":"A uniform Forrelation lower bound with coefficient 2/18225","proof_lines":[533,536],"relation":"states","annotation":"The denominator uses `Real.log`, the natural logarithm. The hypotheses `hk` and `ht` express $k\\ge2$ and $15k+2\\le2t$, and the conclusion concerns $P_{k,4^t}$ before the total-function construction."}],"tone":1,"topic":"forrelation"}],"topics":[{"dark":"oklch(0.652 0.134 78.6)","description":"The query model, the two complexity bounds and the order in which their parameters are chosen.","family":"family-query","id":"query","light":"oklch(0.413 0.086 78.6)","name":"Query complexity and the quartic exponent","part":0,"tone":0},{"dark":"oklch(0.737 0.118 89.4)","description":"The partial function that makes addresses cheap to decode quantumly and expensive to predict classically.","family":"family-query","id":"forrelation","light":"oklch(0.497 0.076 89.4)","name":"Forrelation and address decoding","part":0,"tone":1},{"dark":"oklch(0.652 0.134 165.6)","description":"How exact local tests turn the candidate list into a bounded-error algorithm on every input.","family":"family-construction","id":"verification","light":"oklch(0.413 0.086 165.6)","name":"Verifying a candidate","part":0,"tone":2},{"dark":"oklch(0.737 0.118 176.4)","description":"The input bits, the winning conditions and the local tests of a proposed certificate.","family":"family-construction","id":"construction","light":"oklch(0.497 0.076 176.4)","name":"Columns and certificates","part":0,"tone":3},{"dark":"oklch(0.610 0.141 243.7)","description":"How two columns are compared when only a genuine winner has a reliable address.","family":"family-comparison","id":"comparison","light":"oklch(0.370 0.091 243.7)","name":"Pairwise comparisons","part":0,"tone":4},{"dark":"oklch(0.695 0.126 254.5)","description":"How weighted sampling finds a short candidate list despite arbitrary comparisons between losers.","family":"family-comparison","id":"tournament","light":"oklch(0.455 0.081 254.5)","name":"Weighted tournament and amplification","part":0,"tone":5},{"dark":"oklch(0.780 0.111 265.3)","description":"The independent hard values, separate query caps and capped simulation behind the classical lower bound.","family":"family-comparison","id":"prediction","light":"oklch(0.540 0.071 265.3)","name":"Predicting the hidden address","part":0,"tone":6},{"dark":"oklch(0.595 0.126 343.0)","description":"The two coupled input distributions and the cost of finding their changed zero.","family":"family-planted","id":"planted","light":"oklch(0.355 0.081 343.0)","name":"The planted input and erased zero","part":0,"tone":7}]}