{"canonical":{"quartic.lemma-2":[null,17361,17993],"quartic.lemma-5":[null,69991,70104],"quartic.theorem-1":[null,6293,6524]},"families":[{"id":"family-query-models","name":"Query models and promises · Quantum comparisons and verification · The optimal exponent","named":false,"part":0,"topics":["quartic-exponent","query-models","quantum-search"]},{"id":"family-walsh-promise","name":"The Forrelation address bit · Columns and addressed certificates · The Forrelation lower bound","named":false,"part":0,"topics":["addressed-certificates","walsh-promise","forrelation-hardness"]},{"id":"family-classical-lower-bound","name":"The classical planting argument · Prediction with a separate cap","named":false,"part":0,"topics":["separate-cap-direct-product","classical-lower-bound"]}],"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":324591,"name":"","start_byte":0}],"passages":[[23,5167,["quartic.theorem-1"],"front"],[214258,259714,["quartic.lemma-4"],"sec-appendix-e"]],"segments":[[5564,5576,[0]],[5577,5587,[1]],[5916,6100,[2]],[6102,6173,[3]],[6319,6366,[4]],[6526,6553,[5]],[6779,6896,[6]],[11671,11733,[7]],[11889,11951,[8]],[11952,12085,[9]],[12482,12544,[10]],[12546,12664,[11]],[12859,12876,[12]],[15709,15835,[13]],[15924,16023,[14]],[16133,16272,[15]],[16916,16995,[16]],[17364,17439,[17]],[17481,17721,[18]],[17743,17958,[19]],[20142,20255,[20]],[21002,21146,[21]],[21147,21254,[22]],[21602,21716,[23]],[22307,22362,[24]],[22990,23065,[25]],[23728,23792,[26]],[24058,24127,[27]],[25291,25342,[28]],[25528,25801,[29]],[26120,26224,[30]],[26604,26703,[31]],[30193,30207,[32]],[32062,32149,[33]],[32315,32352,[34]],[32406,32460,[35]],[32837,32929,[36]],[32931,33002,[37]],[33021,33081,[38]],[33954,34066,[39]],[34067,34162,[40]],[36127,36175,[41]],[36388,36438,[42]],[36508,36628,[43]],[39307,39395,[44]],[40510,40590,[45]],[40673,40726,[46]],[41288,41330,[47]],[41390,41484,[48]],[41485,41521,[49]],[42053,42119,[50]],[42417,42471,[51]],[43397,43504,[52]],[43518,43577,[53]],[43921,43958,[54]],[44492,44590,[55]],[45042,45134,[56]],[45780,45875,[57]],[46613,46759,[58]],[48122,48193,[59]],[48550,48657,[60]],[49907,50067,[61]],[50450,50622,[62]],[51518,51580,[63]],[51581,51647,[64]],[52896,52931,[65]],[53345,53401,[66]],[53941,53977,[67]],[54541,54587,[68]],[54978,55083,[69]],[55143,55198,[70]],[56559,56800,[71]],[57685,57764,[72]],[57789,57879,[73]],[61322,61450,[74]],[62290,62322,[75]],[62368,62427,[76]],[62599,62656,[77]],[63041,63064,[78]],[63105,63169,[79]],[63228,63278,[80]],[63509,63595,[81]],[63612,63637,[82]],[64081,64136,[83]],[64291,64371,[84]],[64776,64890,[85]],[64940,65158,[86]],[65801,65883,[87]],[65914,65993,[88]],[66307,66384,[89]],[67586,67636,[90]],[67920,68044,[91]],[68370,68432,[92]],[68493,68574,[93]],[69867,69952,[94]],[69991,70104,[95]],[70666,70721,[96]],[71008,71139,[97]],[71145,71183,[98]],[71369,71423,[99]],[71840,71930,[100]],[72873,73020,[101]],[73070,73180,[102]],[73399,73458,[103]],[73608,73669,[104]],[74151,74251,[105]],[75722,75763,[106]],[75819,76028,[107]],[76248,76352,[108]],[76709,76729,[109]],[76760,76831,[110]],[76839,76891,[111]],[76893,76924,[112]],[77267,77449,[113]],[77506,77577,[114]],[77663,77803,[115]],[77900,78031,[116]],[78248,78266,[117]],[78442,78507,[118]],[80010,80115,[119]],[80215,80321,[120]],[80722,80793,[121]],[80831,80881,[122]],[81521,81572,[123]],[81758,81854,[124]],[82092,82155,[125]],[83382,83493,[126]],[83578,83692,[127]],[85198,85344,[128]],[86525,86703,[129]],[86705,86828,[130]],[87113,87149,[131]],[87291,87397,[132]],[87807,87877,[133]],[88562,88587,[134]],[91374,91490,[135]],[91492,91531,[136]],[91926,92032,[137]],[92327,92416,[138]],[92471,92554,[139]],[92744,92854,[140]],[92991,93047,[141]],[93361,93421,[142]],[95261,95369,[143]],[95371,95431,[144]],[95540,95567,[145]],[95569,95670,[146]],[95721,95793,[147]],[95920,96058,[148]],[96486,96531,[149]],[96562,96615,[150]],[96676,96857,[151]],[98096,98202,[152]],[98227,98332,[153]],[98334,98385,[154]],[98625,98714,[155]],[98716,98742,[156]],[99195,99283,[157]],[99406,99495,[158]],[99699,99783,[159]],[99936,99998,[160]],[101043,101158,[161]],[101631,101733,[162]],[103423,103478,[163]],[104748,104840,[164]],[105681,105787,[165]],[106913,107074,[166]],[107807,107893,[167]],[109498,109696,[168]],[110254,110324,[169]],[110925,111049,[170]],[111589,111679,[171]],[112632,112770,[172]],[113103,113246,[173]],[113804,113887,[174]],[116027,116127,[175]],[116479,116555,[176]],[116803,116970,[177]],[119807,119902,[178]],[120035,120113,[179]],[121543,121704,[180]],[121773,121854,[181]],[122761,122859,[182]],[123384,123474,[183]],[125034,125088,[184]],[125247,125343,[185]],[125599,125643,[186]],[127319,127400,[187]],[127402,127483,[188]],[127962,128063,[189]],[128474,128604,[190]],[129309,129384,[191]],[130102,130233,[192]],[131583,131820,[193]],[132883,132958,[194]],[134752,134861,[195]],[134974,135107,[196]],[135213,135284,[197]],[135286,135448,[198]],[135450,135613,[199]],[135685,135711,[200]],[135819,135976,[201]],[136702,136762,[202]],[136764,136793,[203]],[136799,136902,[204]],[136903,137065,[205]],[137150,137228,[206]],[139379,139461,[207]],[139584,139634,[208]],[140253,140348,[209]],[140350,140446,[210]],[140448,140555,[211]],[140768,140859,[212]],[141228,141265,[213]],[141341,141393,[214]],[142985,143018,[215]],[143084,143220,[216]],[143370,143421,[217]],[143824,143970,[218]],[144110,144147,[219]],[144612,144652,[220]],[145043,145137,[221]],[145414,145505,[222]],[145912,146032,[223]],[146034,146113,[224]],[146115,146146,[225]],[146175,146190,[226]],[146231,146274,[227]],[146336,146472,[228]],[146474,146529,[229]],[147011,147113,[230]],[147232,147330,[231]],[148433,148486,[232]],[149388,149600,[233]],[149723,149748,[234]],[149750,149857,[235]],[149859,149931,[236]],[150880,150947,[237]],[150948,151064,[238]],[152475,152570,[239]],[152711,152825,[240]],[153003,153237,[241]],[153372,153581,[242]],[153746,153817,[243]],[154772,154851,[244]],[155041,155171,[245]],[155440,155469,[246]],[156104,156218,[247]],[156833,156939,[248]],[157070,157104,[249]],[157248,157308,[250]],[157566,157602,[251]],[157735,157793,[252]],[158218,158470,[253]],[159216,159372,[254]],[161148,161287,[255]],[162356,162480,[256]],[162594,162699,[257]],[163608,163634,[258]],[164714,164799,[259]],[164973,165032,[260]],[165110,165183,[261]],[166976,167054,[262]],[167145,167227,[263]],[167229,167425,[264]],[167426,167542,[265]],[167543,167675,[266]],[168760,169005,[267]],[179848,179910,[268]],[181750,181767,[269]],[182229,182244,[270]],[182547,182720,[271]],[183488,183646,[272]],[184060,184151,[273]],[184158,184310,[274]],[184417,184540,[275]],[184549,184573,[276]],[184674,184681,[277]],[184700,184762,[278]],[186232,186275,[279]],[186804,186826,[280]],[187012,187104,[281]],[187405,187487,[282]],[191682,191766,[283]],[192866,192953,[284]],[193617,193737,[285]],[194468,194578,[286]],[194686,194927,[287]],[195174,195250,[288]],[195671,195730,[289]],[195952,196178,[290]],[196494,196571,[291]],[215159,215231,[292]],[215636,215669,[293]],[215675,215735,[294]],[215970,216125,[295]],[216437,216522,[296]],[217155,217242,[297]],[218488,218711,[298]],[218856,219139,[299]],[220394,220580,[300]],[220822,221042,[301]],[221158,221264,[302]],[221267,221377,[303]],[221447,221666,[304]],[223259,223401,[305]],[223709,223735,[306]],[224503,224616,[307]],[224618,224745,[308]],[224948,225132,[309]],[225867,225985,[310]],[226318,226499,[311]],[226690,226767,[312]],[227523,227657,[313]],[228546,228596,[314]],[228951,229056,[315]],[229350,229438,[316]],[229729,229796,[317]],[230891,230978,[318]],[231678,231735,[319]],[232451,232701,[320]],[233336,233458,[321]],[235198,235309,[322]],[240683,240783,[323]],[241797,241872,[324]],[241929,242098,[325]],[242129,242201,[326]],[245119,245300,[327]],[246631,246754,[328]],[246756,246893,[329]],[248593,248746,[330]],[250348,250480,[331]],[252706,252768,[332]],[253085,253190,[333]],[253192,253439,[334]],[255197,255236,[335]],[255237,255288,[336]],[255289,255350,[337]],[255646,255724,[338]],[256321,256568,[339]],[257139,257192,[340]],[257324,257437,[341]],[259259,259337,[342]],[260071,260189,[343]],[260190,260383,[344]],[260946,261009,[345]],[261470,261580,[346]],[261581,261686,[347]],[261718,261896,[348]],[262441,262636,[349]],[262645,262692,[350]],[262694,262802,[351]],[262861,262907,[352]],[262913,262986,[353]],[263105,263236,[354]],[263339,263616,[355]],[263732,263805,[356]],[264411,264573,[357]],[264715,264815,[358]],[265145,265252,[359]],[265428,265581,[360]],[265918,265965,[361]],[265967,266041,[362]],[266417,266473,[363]],[267004,267160,[364]],[268070,268285,[365]],[268286,268436,[366]],[269246,269319,[367]],[269409,269481,[368]],[270532,270777,[369]],[271141,271255,[370]],[271329,271394,[371]],[271780,271842,[372]],[271926,272006,[373]],[272781,272801,[374]],[273182,273238,[375]],[273737,273907,[376]],[274064,274187,[377]],[274713,274771,[378]],[275048,275186,[379]],[275470,275637,[380]],[276758,276910,[381]],[277077,277291,[382]],[277803,277862,[383]],[278029,278143,[384]],[278324,278453,[385]],[278629,278680,[386]],[280211,280263,[387]],[280350,280382,[388]],[282930,283183,[389]],[283501,283568,[390]],[283694,283826,[391]],[283986,284019,[392]],[285416,285486,[393]],[285665,285801,[394]],[287157,287199,[395]],[287260,287390,[396]],[287518,287665,[397]],[287809,287863,[398]],[287896,287938,[399]],[287944,287974,[400]],[289945,290117,[401]],[290641,290735,[402]],[291054,291182,[403]],[292528,292622,[404]],[293216,293286,[405]],[293314,293421,[406]],[293463,293523,[407]],[293841,293903,[408]],[294532,294589,[409]],[295446,295613,[410]],[295797,295845,[411]],[296480,296580,[412]],[296665,296759,[413]],[298094,298148,[414]],[299166,299226,[415]],[299952,300060,[416]],[300131,300214,[417]],[303740,303843,[418]]],"ties":[{"anchor":"sec-1","at":"b5564-5576","from_record":false,"lean":true,"lines":[84,85],"module":"QuarticQuery.Statement","name":"QuarticQuery.R","origin":"ai","part":0,"phrase":"qr-R-definition","plain":"Randomized queries needed for error at most one third","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 needed for error at most one third","relation":"defines","annotation":"Unfold `RLe` to see a single randomized program with maximum tree depth bounded by the budget and success at least $2/3$ on each promised input. `totalise` makes every input promised for a total Boolean function."}],"tone":1,"topic":"query-models"},{"anchor":"sec-1","at":"b5577-5587","from_record":false,"lean":true,"lines":[150,151],"module":"QuarticQuery.Statement","name":"QuarticQuery.Q","origin":"ai","part":0,"phrase":"qr-Q-definition","plain":"Quantum queries needed for error at most one third","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 needed for error at most one third","relation":"defines","annotation":"`QLe` requires a single program with a syntactic cap on all branches and correctness on each promised input. Its constant-output alternative handles zero-query cases, including an empty coordinate register."}],"tone":1,"topic":"query-models"},{"anchor":"sec-1","at":"b5916-6100","from_record":false,"lean":true,"lines":[329,329],"module":"QuarticQuery.Statement","name":"QuarticQuery.alphaTot","origin":"ai","part":0,"phrase":"qr-universal-exponent-definition","plain":"Infimum of powers of 1+Q that bound randomized query complexity","record":null,"relation":"defines","role":"definition","rows":[{"end_line":329,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":329,"lines":[329,329],"module":"QuarticQuery.Statement","name":"QuarticQuery.alphaTot","note":"","plain":"Infimum of powers of 1+Q that bound randomized query complexity","relation":"defines","annotation":"`sInf` applies to the set cut out by `UniversalPower`. Inside that predicate the constant is chosen before the input length and the total function, so the infimum measures a uniform power."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-1","at":"b6102-6173","from_record":false,"lean":true,"lines":[323,326],"module":"QuarticQuery.Statement","name":"QuarticQuery.UniversalPower","origin":"ai","part":0,"phrase":"qr-one-universal-constant","plain":"Powers α with a uniform bound on R(f)/(1+Q(f))^α","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":326,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":323,"lines":[323,326],"module":"QuarticQuery.Statement","name":"QuarticQuery.UniversalPower","note":"","plain":"Powers α with a uniform bound on R(f)/(1+Q(f))^α","relation":"defines","annotation":"Read `∃ C` before `∀ n` and `∀ f`. The wrapper `totalise f` feeds the total function to the promise-model definitions of $R$ and $Q$ with its entire domain intact."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-1","at":"b6319-6366","from_record":false,"lean":true,"lines":[18,18],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.alphaTot_eq_four_unconditional","origin":"ai","part":0,"phrase":"qr-optimal-exponent","plain":"The optimal universal exponent is four","record":null,"relation":"states","role":"statement","rows":[{"end_line":19,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":18,"lines":[18,18],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.alphaTot_eq_four_unconditional","note":"","plain":"The optimal universal exponent is four","proof_lines":[19,19],"relation":"states","annotation":"The result discharges the lower-bound premise of `alphaTot_eq_four_of_bansalSinha` with the formal Forrelation theorem. The real number `alphaTot` is defined using the uniform powers."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-1","at":"b6526-6553","from_record":false,"lean":true,"lines":[82,82],"module":"QuarticQuery.Paper.AppendixA","name":"QuarticQuery.Paper.appendixA_universalPower_four","origin":"ai","part":0,"phrase":"qr-universal-quartic-bound","plain":"One quartic bound works for every total function","record":null,"relation":"states","role":"statement","rows":[{"end_line":90,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":82,"lines":[82,82],"module":"QuarticQuery.Paper.AppendixA","name":"QuarticQuery.Paper.appendixA_universalPower_four","note":"","plain":"One quartic bound works for every total function","proof_lines":[83,90],"relation":"states","annotation":"The universal exponent predicate holds at four: a single positive constant bounds randomized complexity by $(1+Q)^4$ for every total Boolean function of every positive input length (see Appendix A.6 for the exponent-four argument).","annotation_references":[{"start":186,"end":198,"key":"appendix:a.6"}]}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-1","at":"b6779-6896","from_record":false,"lean":true,"lines":[30,40],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_family_named","origin":"ai","part":0,"phrase":"qr-same-family-bounds","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":"The declaration fixes $c=1/400$ and $b=6$, names the realizing circuit, and gives its size; the display allows unspecified positive constants.","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":"The declaration fixes $c=1/400$ and $b=6$, names the realizing circuit, and gives its size. The display allows unspecified positive constants."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-2","at":"b11671-11733","from_record":false,"lean":true,"lines":[44,46],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree","origin":"ai","part":0,"phrase":"qr-classical-tree","plain":"A deterministic tree of bit queries","record":null,"relation":"defines","role":"definition","rows":[{"end_line":46,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":44,"lines":[44,46],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree","note":"","plain":"A deterministic tree of bit queries","relation":"defines","annotation":"A deterministic algorithm whose internal nodes query one input coordinate and branch on its Boolean answer. The constructor `.query i onFalse onTrue` fixes the queried coordinate at that node. Later choices can depend on earlier answers through the branch taken."}],"tone":1,"topic":"query-models"},{"anchor":"sec-2","at":"b11889-11951","from_record":false,"lean":true,"lines":[59,64],"module":"QuarticQuery.Statement","name":"QuarticQuery.RandomizedProgram","origin":"ai","part":0,"phrase":"qr-randomized-tree","plain":"An input-independent finite mixture of query trees","record":null,"relation":"defines","role":"definition","rows":[{"end_line":64,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":59,"lines":[59,64],"module":"QuarticQuery.Statement","name":"QuarticQuery.RandomizedProgram","note":"","plain":"An input-independent finite mixture of query trees","relation":"defines","annotation":"A randomized algorithm represented by finitely many deterministic query trees with positive weights summing to one. `weight_pos` excludes zero-weight support entries."}],"tone":1,"topic":"query-models"},{"anchor":"sec-2","at":"b11952-12085","from_record":false,"lean":true,"lines":[180,185],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_query_oracle","origin":"ai","part":0,"phrase":"qr-bit-oracle","plain":"A bit query flips the answer register","record":null,"relation":"contains","role":"statement","rows":[{"end_line":192,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":180,"lines":[180,185],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_query_oracle","note":"","plain":"A bit query flips the answer register","proof_lines":[186,192],"relation":"contains","annotation":"The oracle sends $|i,b,z\\rangle$ to $|i,b\\oplus x_i,z\\rangle$, preserving the index and workspace."}],"tone":1,"topic":"query-models"},{"anchor":"sec-2","at":"b12482-12544","from_record":false,"lean":true,"lines":[67,69],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.constructionPartial","origin":"ai","part":0,"phrase":"qr-partial-function","plain":"A partial Boolean function with a specified promise","record":null,"relation":"defines","role":"definition","rows":[{"end_line":69,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":67,"lines":[67,69],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.constructionPartial","note":"","plain":"A partial Boolean function with a specified promise","relation":"defines","annotation":"A Boolean function defined only on a domain $D$. On an input in $D$, the Lean value is `some (f x)`. Outside $D$ it is `none`."}],"tone":1,"topic":"query-models"},{"anchor":"sec-2","at":"b12546-12664","from_record":false,"lean":true,"lines":[122,126],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_RLe_domain_iff","origin":"ai","part":0,"phrase":"qr-promise-scope","plain":"Correctness on the promise with a global classical cap","record":null,"relation":"contains","role":"statement","rows":[{"end_line":127,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":122,"lines":[122,126],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_RLe_domain_iff","note":"","plain":"Correctness on the promise with a global classical cap","proof_lines":[127,127],"relation":"contains","annotation":"A randomized budget $t$ is sufficient exactly when one finite tree mixture has maximum depth at most $t$ and succeeds with probability at least $2/3$ at each input in $D$."},{"end_line":146,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":139,"lines":[139,145],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_QLe_domain_iff","note":"","plain":"Correctness on the promise with a global quantum cap","proof_lines":[146,146],"relation":"contains","annotation":"`A.queryCap ≤ budget` is unconditional. Only the success clause has `hx : x ∈ D`."}],"tone":1,"topic":"query-models"},{"anchor":"sec-2","at":"b12859-12876","from_record":false,"lean":true,"lines":[198,199],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_log2_mValue","origin":"ai","part":0,"phrase":"qr-log-identity","plain":"At board size m=4ᵗ, log₂m=2t","record":null,"relation":"states","role":"statement","rows":[{"end_line":200,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":198,"lines":[198,199],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_log2_mValue","note":"","plain":"At board size m=4ᵗ, log₂m=2t","proof_lines":[200,200],"relation":"states","annotation":"For $m=4^t=2^{2t}$, the base-two logarithm is exactly $2t$."}],"tone":1,"topic":"query-models"},{"anchor":"sec-3","at":"b15709-15835","from_record":false,"lean":true,"lines":[28,37],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_walsh_definitions","origin":"ai","part":0,"phrase":"qr-walsh-definitions","plain":"Walsh signs, normalized Walsh matrix and uniform unit vector","record":null,"relation":"contains","role":"definition","rows":[{"end_line":46,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":28,"lines":[28,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 sign convention, Walsh entries, uniform vector and diagonal sign matrices used in the Forrelation product."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-3","at":"b15924-16023","from_record":false,"lean":true,"lines":[50,54],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_equation_3","origin":"ai","part":0,"phrase":"qr-correlation-definition","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":"Lean assumes only $1\\le k$, while this section fixes $k\\ge 2$; the displayed product and threshold agree.","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":"Lean assumes only $1\\le k$, while this section fixes $k\\ge 2$. The displayed product and threshold agree. The hypothesis `hk : 1 ≤ k` permits one sign block as well as the paper's $k\\ge2$."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-3","at":"b16133-16272","from_record":false,"lean":true,"lines":[59,65],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_equation_4","origin":"ai","part":0,"phrase":"qr-promise-cases","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,65],"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 partial function returns one when $\\Phi\\ge\\delta$, zero when $|\\Phi|\\le\\delta/2$, and is undefined otherwise."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-3","at":"b16916-16995","from_record":false,"lean":true,"lines":[72,75],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_equation_5","origin":"ai","part":0,"phrase":"qr-classical-allowance-definition","plain":"One-input query cutoff L = ⌊m^(1−1/k)/(log₂m)²⌋","record":null,"relation":"defines","role":"definition","rows":[{"end_line":75,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":72,"lines":[72,75],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_equation_5","note":"","plain":"One-input query cutoff L = ⌊m^(1−1/k)/(log₂m)²⌋","relation":"defines","annotation":"The integer allowance $L=\\lfloor m^{1-1/k}/(\\log_2m)^2\\rfloor$. `Real.rpow` supplies the real power, and `⌊…⌋₊` is the natural-number floor."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-3","at":"b17364-17439","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":"qr-ingredient-classical","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 every fixed $k\\ge2$, there is a threshold after which $L_{k,m}<R(P_{k,m})$ for all $m=4^t$ (Theorem 8.1). The hypothesis `hk : 2 ≤ k` is explicit. No lower-bound assumption remains.","annotation_references":[{"start":96,"end":107,"key":"theorem:8.1"}]}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-3","at":"b17481-17721","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":"qr-ingredient-quantum","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 permits $k\\ge 1$ and $t\\ge 0$, while the lemma uses $k\\ge 2$ and $t\\ge 1$; it also supplies a retained-state physical continuation.","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":"Lean permits $k\\ge 1$ and $t\\ge 0$, while the lemma uses $k\\ge 2$ and $t\\ge 1$. It also supplies a retained-state physical continuation."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-3","at":"b17743-17958","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":"qr-ingredient-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 allows $k\\ge 1$ rather than the lemma’s $k\\ge 2$; the exact domain/value and size conclusions agree.","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 allows $k\\ge 1$ rather than the lemma’s $k\\ge 2$. The exact domain/value and size conclusions agree. `CircuitRealises C (P k t)` requires the domain output to be correct on every raw input and the value output to be correct on the promise."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-4","at":"b20142-20255","from_record":false,"lean":true,"lines":[228,232],"module":"QuarticQuery.Statement","name":"QuarticQuery.CircuitRealises","origin":"ai","part":0,"phrase":"qr-circuit-contract","plain":"An exact circuit for promise membership and value","record":null,"relation":"defines","role":"definition","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":"An exact circuit for promise membership and value","relation":"defines","annotation":"The circuit has a gate-consistent transcript on every input. The two fields are assumptions when a theorem takes `hC : CircuitRealises C f`."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b21002-21146","from_record":false,"lean":true,"lines":[220,224],"module":"QuarticQuery.Statement","name":"QuarticQuery.GateConsistent","origin":"ai","part":0,"phrase":"qr-gate-consistency-definition","plain":"Every proposed gate value obeys its truth table","record":null,"relation":"defines","role":"definition","rows":[{"end_line":224,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":220,"lines":[220,224],"module":"QuarticQuery.Statement","name":"QuarticQuery.GateConsistent","note":"","plain":"Every proposed gate value obeys its truth table","relation":"defines","annotation":"A proposed transcript is gate-consistent when each stored gate bit equals its gate's Boolean truth table applied to the two predecessor values."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b21147-21254","from_record":false,"lean":true,"lines":[44,48],"module":"QuarticQuery.Construction.Transcript","name":"QuarticQuery.circuitEval","origin":"ai","part":0,"phrase":"qr-true-transcript-definition","plain":"The circuit transcript obtained by topological evaluation","record":null,"relation":"defines","role":"definition","rows":[{"end_line":50,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":44,"lines":[44,48],"module":"QuarticQuery.Construction.Transcript","name":"QuarticQuery.circuitEval","note":"","plain":"The circuit transcript obtained by topological evaluation","relation":"defines","annotation":"The true Boolean value of each non-input gate, computed recursively from the actual input and strictly earlier gate values. As a function on all gate indices, `circuitEval C x` is the entire transcript."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b21602-21716","from_record":false,"lean":true,"lines":[64,65],"module":"QuarticQuery.Construction.Transcript","name":"QuarticQuery.gateConsistent_iff_eq_circuitEval","origin":"ai","part":0,"phrase":"qr-transcript-iff","plain":"Passing every gate equation identifies the true transcript","record":null,"relation":"states","role":"statement","rows":[{"end_line":67,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":64,"lines":[64,65],"module":"QuarticQuery.Construction.Transcript","name":"QuarticQuery.gateConsistent_iff_eq_circuitEval","note":"","plain":"Passing every gate equation identifies the true transcript","proof_lines":[66,67],"relation":"states","annotation":"A proposed transcript passes every gate equation if and only if it equals the circuit's true evaluation."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b22307-22362","from_record":false,"lean":true,"lines":[70,71],"module":"QuarticQuery.Construction.Transcript","name":"QuarticQuery.existsUnique_gateConsistent","origin":"ai","part":0,"phrase":"qr-unique-transcript","plain":"Every input has exactly one consistent transcript","record":null,"relation":"states","role":"statement","rows":[{"end_line":73,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":70,"lines":[70,71],"module":"QuarticQuery.Construction.Transcript","name":"QuarticQuery.existsUnique_gateConsistent","note":"","plain":"Every input has exactly one consistent transcript","proof_lines":[72,73],"relation":"states","annotation":"Every input has one and only one gate-consistent transcript: the circuit's evaluated gate values."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b22990-23065","from_record":false,"lean":true,"lines":[56,58],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_eq6","origin":"ai","part":0,"phrase":"qr-board-parameters","plain":"Address length r = 20 log₂m = 40t bits per column","record":null,"relation":"states","role":"definition","rows":[{"end_line":66,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":56,"lines":[56,58],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_eq6","note":"","plain":"Address length r = 20 log₂m = 40t bits per column","proof_lines":[59,66],"relation":"states","annotation":"At $m=4^t$, the row length is $\\log_2m=2t$ and the number of auxiliary answer bits is $r=\\lceil20\\log_2m\\rceil=40t$."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b23728-23792","from_record":false,"lean":true,"lines":[245,249],"module":"QuarticQuery.Statement","name":"QuarticQuery.BitLoc","origin":"ai","part":0,"phrase":"qr-four-input-blocks","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":"A physical bit coordinate belongs to exactly one of four blocks: a column bit, an auxiliary-input bit, a pointer bit, or a circuit-transcript bit."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b24058-24127","from_record":false,"lean":true,"lines":[80,82],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_pointer_encoding","origin":"ai","part":0,"phrase":"qr-row-pointer-bijection","plain":"Every row has exactly one pointer word","record":null,"relation":"contains","role":"statement","rows":[{"end_line":83,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":80,"lines":[80,82],"module":"QuarticQuery.Paper.ConstructionDefinitions","name":"QuarticQuery.Paper.construction_pointer_encoding","note":"","plain":"Every row has exactly one pointer word","proof_lines":[83,83],"relation":"contains","annotation":"The fixed encoding is a bijection between $\\ell$-bit words and the $2^\\ell$ rows. `Function.Bijective` states injectivity and surjectivity, and `∃!` gives the unique word for each row."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b25291-25342","from_record":false,"lean":true,"lines":[307,309],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.trueAddress","origin":"ai","part":0,"phrase":"qr-true-address","plain":"The vector of defined auxiliary 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 auxiliary answers","relation":"defines","annotation":"The true address of column $i$ is the $r$-bit vector of its auxiliary answers. The required argument `hdef : ∀ h, promised f (readA x i h)` says that every auxiliary input in that column is promised."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b25528-25801","from_record":false,"lean":true,"lines":[318,324],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.PaperWinsAt","origin":"ai","part":0,"phrase":"qr-winning-conditions","plain":"The four conditions for winning at a cell","record":null,"relation":"defines","role":"definition","rows":[{"end_line":324,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":318,"lines":[318,324],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.PaperWinsAt","note":"","plain":"The four conditions for winning at a cell","relation":"defines","annotation":"Column $i$ wins at address $s$ when its column bits are all one, $s$ is the vector of its defined auxiliary answers, every stored transcript is the true circuit evaluation, and each outward pointer finds a zero in its target column."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b26120-26224","from_record":false,"lean":true,"lines":[276,277],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.addressedF_eq_true_iff","origin":"ai","part":0,"phrase":"qr-total-function","plain":"The total function asks whether a winner exists","record":null,"relation":"states","role":"definition","rows":[{"end_line":278,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":276,"lines":[276,277],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.addressedF_eq_true_iff","note":"","plain":"The total function asks whether a winner exists","proof_lines":[278,278],"relation":"states","annotation":"The board's Boolean answer is one exactly when some column and some cell address satisfy the winning conditions."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b26604-26703","from_record":false,"lean":true,"lines":[55,56],"module":"QuarticQuery.Construction.Winner","name":"QuarticQuery.winsAt_unique","origin":"ai","part":0,"phrase":"qr-unique-pair","plain":"A board has at most one winning pair","record":null,"relation":"states","role":"statement","rows":[{"end_line":58,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":55,"lines":[55,56],"module":"QuarticQuery.Construction.Winner","name":"QuarticQuery.winsAt_unique","note":"","plain":"A board has at most one winning pair","proof_lines":[57,58],"relation":"states","annotation":"Two winning pairs on the same board must have both the same column and the same address. The hypotheses `h` and `h'` assert that each pair wins."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b30193-30207","from_record":false,"lean":true,"lines":[143,155],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTest","origin":"ai","part":0,"phrase":"qr-local-test-definition","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":[143,155],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTest","note":"","plain":"Tests for the column, pointers, gate equations and circuit outputs","relation":"defines","annotation":"The Boolean test selected by its label at candidate $(i,s)$."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b32062-32149","from_record":false,"lean":true,"lines":[129,129],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.TestIndex","origin":"ai","part":0,"phrase":"qr-test-labels","plain":"Column, pointer, gate and output test labels","record":null,"relation":"defines","role":"definition","rows":[{"end_line":129,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":129,"lines":[129,129],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.TestIndex","note":"","plain":"Column, pointer, gate and output test labels","relation":"defines","annotation":"`Fin S ⊕ Bool` distinguishes the $S$ gate-consistency tests from the two additional output tests."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b32315-32352","from_record":false,"lean":true,"lines":[131,133],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_K_count","origin":"ai","part":0,"phrase":"qr-test-count","plain":"The certificate has exactly m + (m−1) + r(S+2) tests","record":null,"relation":"states","role":"statement","rows":[{"end_line":134,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":131,"lines":[131,133],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_K_count","note":"","plain":"The certificate has exactly m + (m−1) + r(S+2) tests","proof_lines":[134,134],"relation":"states","annotation":"The test set has $m+(m-1)+40t(S+2)$ elements."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b32406-32460","from_record":false,"lean":true,"lines":[131,133],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_K_count","origin":"ai","part":0,"phrase":"qr-test-count-bound","plain":"The certificate has exactly m + (m−1) + r(S+2) tests","record":null,"relation":"part","role":"statement","rows":[{"end_line":134,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration gives the exact count, which simplifies to the equality shown after $r=20\\ell$. It does not give the displayed cubic upper bound.","fidelity_source":"ai","line":131,"lines":[131,133],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_K_count","note":"","plain":"The certificate has exactly m + (m−1) + r(S+2) tests","proof_lines":[134,134],"relation":"part","annotation":"The type gives the exact count, which simplifies to the equality shown after $r=20\\ell$. It does not give the displayed cubic upper bound."},{"end_line":164,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration gives the cubic upper bound under `ht` and `hS`. The displayed exact equality is supplied by `construction_K_count`.","fidelity_source":"ai","line":139,"lines":[139,142],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_K_bound","note":"","plain":"Circuit size Oₖ(m log²m) gives Oₖ(m log³m) certificate tests","proof_lines":[143,164],"relation":"part","annotation":"The type gives the cubic upper bound under `ht` and `hS`. The displayed exact equality is supplied by `construction_K_count`. The explicit assumptions are `hS : S ≤ A * mValue t * (2 * t)^2` and `ht : 1 ≤ t`."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b32837-32929","from_record":false,"lean":true,"lines":[237,238],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.winsAt_iff_localTests","origin":"ai","part":0,"phrase":"qr-local-verification","plain":"All local tests pass exactly at a winning pair","record":null,"relation":"states","role":"statement","rows":[{"end_line":259,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":237,"lines":[237,238],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.winsAt_iff_localTests","note":"","plain":"All local tests pass exactly at a winning pair","proof_lines":[239,259],"relation":"states","annotation":"The candidate $(i,s)$ wins if and only if every local test passes. The hypothesis `hC : CircuitRealises C f` supplies the meaning of the circuit's two outputs."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b32931-33002","from_record":false,"lean":true,"lines":[22,29],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_lemma_2_2_i","origin":"ai","part":0,"phrase":"qr-exact-local-test-tree","plain":"Every certificate test has an exact tree of depth ≤max(3,ℓ+1)","record":null,"relation":"contains","role":"statement","rows":[{"end_line":35,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":22,"lines":[22,29],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_lemma_2_2_i","note":"","plain":"Every certificate test has an exact tree of depth ≤max(3,ℓ+1)","proof_lines":[30,35],"relation":"contains","annotation":"When `hC : CircuitRealises C f` holds, passing every local test is equivalent to the paper's winning condition."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b33021-33081","from_record":false,"lean":true,"lines":[427,427],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_testCost","origin":"ai","part":0,"phrase":"qr-local-test-depth","plain":"The maximum local test budget is one row length plus one","record":null,"relation":"states","role":"statement","rows":[{"end_line":429,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":427,"lines":[427,427],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_testCost","note":"","plain":"The maximum local test budget is one row length plus one","proof_lines":[428,429],"relation":"states","annotation":"For $t\\ge1$, the local-test budget is $2t+1=\\ell+1$. The hypothesis `ht` ensures $2t+1\\ge3$."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b33954-34066","from_record":false,"lean":true,"lines":[262,263],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTests_iff_eq_of_winsAt","origin":"ai","part":0,"phrase":"qr-winner-unique-cell","plain":"Only the true cell of a winner passes every test","record":null,"relation":"states","role":"statement","rows":[{"end_line":265,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":262,"lines":[262,263],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.localTests_iff_eq_of_winsAt","note":"","plain":"Only the true cell of a winner passes every test","proof_lines":[264,265],"relation":"states","annotation":"If column $i$ wins at $s$, then all local tests at another address $s'$ pass exactly when $s'=s$. Both the winning hypothesis `hw` and circuit correctness `hC` are required."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b34067-34162","from_record":false,"lean":true,"lines":[268,270],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.exists_failing_localTest","origin":"ai","part":0,"phrase":"qr-nonwinner-failed-test","plain":"Every cell of a nonwinning column has a failed test","record":null,"relation":"states","role":"statement","rows":[{"end_line":273,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":268,"lines":[268,270],"module":"QuarticQuery.Construction.LocalTests","name":"QuarticQuery.exists_failing_localTest","note":"","plain":"Every cell of a nonwinning column has a failed test","proof_lines":[271,273],"relation":"states","annotation":"A column that wins at no address has at least one failing local test at every proposed address. `hn : ¬ ∃ s, WinsAt …` rules out winning anywhere, while `hC` supplies circuit correctness."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b36127-36175","from_record":false,"lean":true,"lines":[62,64],"module":"QuarticQuery.Construction.Winner","name":"QuarticQuery.winner_no_incoming_zero","origin":"ai","part":0,"phrase":"qr-winner-incoming","plain":"No incoming pointer finds a zero in a winner","record":null,"relation":"states","role":"statement","rows":[{"end_line":65,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":62,"lines":[62,64],"module":"QuarticQuery.Construction.Winner","name":"QuarticQuery.winner_no_incoming_zero","note":"","plain":"No incoming pointer finds a zero in a winner","proof_lines":[65,65],"relation":"states","annotation":"The only substantive hypothesis is the winning condition `h`. `hne` makes the source and target distinct."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b36388-36438","from_record":false,"lean":true,"lines":[69,70],"module":"QuarticQuery.Construction.Winner","name":"QuarticQuery.winner_finds_zero","origin":"ai","part":0,"phrase":"qr-winner-outgoing","plain":"A winner’s true cell points to every rival’s zero","record":null,"relation":"states","role":"statement","rows":[{"end_line":71,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":69,"lines":[69,70],"module":"QuarticQuery.Construction.Winner","name":"QuarticQuery.winner_finds_zero","note":"","plain":"A winner’s true cell points to every rival’s zero","proof_lines":[71,71],"relation":"states","annotation":"The pointer stored in a winning cell finds a zero in every other column. The hypothesis `h : WinsAt … i s` fixes the correct winning address, and `hne : j ≠ i` chooses a rival."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-4","at":"b36508-36628","from_record":false,"lean":true,"lines":[296,302],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumWinner_dominates","origin":"ai","part":0,"phrase":"qr-comparison-before-list","plain":"A genuine winner beats any rival with high probability","record":null,"relation":"part","role":"statement","rows":[{"end_line":305,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type gives the final comparison success bound $1-\\varepsilon$ under the decoding-repetition hypothesis. It does not state the intermediate inequality against the probability of correct address decoding.","fidelity_source":"ai","line":296,"lines":[296,302],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumWinner_dominates","note":"","plain":"A genuine winner beats any rival with high probability","proof_lines":[303,305],"relation":"part","annotation":"The type gives the final comparison success bound $1-\\varepsilon$ under the decoding-repetition hypothesis. It does not state the intermediate inequality against the probability of correct address decoding. `hw` asserts the winning certificate, and `hn` gives enough repetitions to decode its address accurately."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b39307-39395","from_record":false,"lean":true,"lines":[302,304],"module":"QuarticQuery.Statement","name":"QuarticQuery.Tournament.IsComparison","origin":"ai","part":0,"phrase":"qr-comparison-table","plain":"Complementary comparisons with no self-wins","record":null,"relation":"part","role":"definition","rows":[{"end_line":304,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This structure states complementarity and the zero diagonal, but omits $0\\le a_{ij}\\le 1$; `UnitValued` supplies that clause.","fidelity_source":"ai","line":302,"lines":[302,304],"module":"QuarticQuery.Statement","name":"QuarticQuery.Tournament.IsComparison","note":"","plain":"Complementary comparisons with no self-wins","relation":"part","annotation":"This structure states complementarity and the zero diagonal, but omits $0\\le a_{ij}\\le 1$. `UnitValued` supplies that clause."},{"end_line":29,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This predicate states only $0\\le a_{ij}\\le 1$; `IsComparison` supplies complementarity and the zero diagonal.","fidelity_source":"ai","line":29,"lines":[29,29],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.UnitValued","note":"","plain":"Every comparison probability lies between zero and one","relation":"part","annotation":"This predicate states only $0\\le a_{ij}\\le 1$. `IsComparison` supplies complementarity and the zero diagonal."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b40510-40590","from_record":false,"lean":true,"lines":[57,59],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_parameters","origin":"ai","part":0,"phrase":"qr-tournament-parameters","plain":"Tournament length T = ⌈log₂(1000m)⌉ and error ε = 1/(1000T)","record":null,"relation":"states","role":"definition","rows":[{"end_line":59,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":57,"lines":[57,59],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_parameters","note":"","plain":"Tournament length T = ⌈log₂(1000m)⌉ and error ε = 1/(1000T)","relation":"states","annotation":"The tournament uses $T=\\lceil\\log_2(1000m)\\rceil$ rounds and error allowance $\\varepsilon=1/(1000T)$. `Nat.clog 2` is the integer ceiling logarithm."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b40673-40726","from_record":false,"lean":true,"lines":[63,64],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumDominant_iff","origin":"ai","part":0,"phrase":"qr-dominance","plain":"A dominant candidate beats every distinct opponent reliably","record":null,"relation":"states","role":"definition","rows":[{"end_line":64,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":63,"lines":[63,64],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumDominant_iff","note":"","plain":"A dominant candidate beats every distinct opponent reliably","relation":"states","annotation":"Unfold the predicate to find a condition on the row indexed by $s$, with $j=s$ excluded. The argument makes room for arbitrary complementary comparisons between two other candidates."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b41288-41330","from_record":false,"lean":true,"lines":[270,282],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumTournament_list","origin":"ai","part":0,"phrase":"qr-bounded-list","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":"The witness `law` has output type `QuantumCandidateList Col T` with `T := Tval m`. The length bound is already in the type of the labels it can return."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b41390-41484","from_record":false,"lean":true,"lines":[270,282],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumTournament_list","origin":"ai","part":0,"phrase":"qr-list-success","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":"The success clause applies the predicate `Dominant (a x) ε s` and sums the law over labels whose underlying list contains $s$. The type supplies nonnegativity and normalization for each input."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b41485-41521","from_record":false,"lean":true,"lines":[270,282],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumTournament_list","origin":"ai","part":0,"phrase":"qr-algorithm-independent","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":"The existential `law` and its `Samples` and `Runs` witnesses appear before `∀ x s`. The dominant vertex is used to state the guarantee for the sampler."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b42053-42119","from_record":false,"lean":true,"lines":[35,37],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.weight","origin":"ai","part":0,"phrase":"qr-weight-update","plain":"A candidate’s weight is the product of its past wins","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":"A candidate’s weight is the product of its past wins","relation":"defines","annotation":"Each candidate starts with weight one."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b42417-42471","from_record":false,"lean":true,"lines":[88,89],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumWeight_product","origin":"ai","part":0,"phrase":"qr-weight-product","plain":"The weight after a history is a product","record":null,"relation":"states","role":"statement","rows":[{"end_line":94,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":88,"lines":[88,89],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumWeight_product","note":"","plain":"The weight after a history is a product","proof_lines":[90,94],"relation":"states","annotation":"The weight of candidate $i$ after the pivot history $L$ is the product of $a_{ip}$ over the pivots in $L$. `L.map` lists the factors and `.prod` multiplies them."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b43397-43504","from_record":false,"lean":true,"lines":[69,76],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumDrift","origin":"ai","part":0,"phrase":"qr-weight-drift","plain":"One weighted pivot leaves at most half the weight in expectation","record":null,"relation":"contains","role":"statement","rows":[{"end_line":84,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean proves the algebra for arbitrary real weights with positive total $W$; the probability interpretation here additionally uses nonnegative weights.","fidelity_source":"ai","line":69,"lines":[69,76],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumDrift","note":"","plain":"One weighted pivot leaves at most half the weight in expectation","proof_lines":[77,84],"relation":"contains","annotation":"The identity allows arbitrary real weights with positive total $W$. The probability interpretation also needs nonnegative weights. `ha : IsComparison a` supplies complementarity and a zero diagonal."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b43518-43577","from_record":false,"lean":true,"lines":[71,73],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.expected_weight_le_half","origin":"ai","part":0,"phrase":"qr-half-drift","plain":"A weighted pivot leaves at most half the total weight in expectation","record":null,"relation":"states","role":"statement","rows":[{"end_line":77,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":71,"lines":[71,73],"module":"QuarticQuery.Tournament.Drift","name":"QuarticQuery.Tournament.expected_weight_le_half","note":"","plain":"A weighted pivot leaves at most half the total weight in expectation","proof_lines":[74,77],"relation":"states","annotation":"For positive total weight $W$, the weighted average of the next total weight is at most $W/2$. The hypotheses are complementarity, a zero diagonal, and `hW` identifying $W$ with the sum of current weights."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b43921-43958","from_record":false,"lean":true,"lines":[212,214],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.expected_final_weight","origin":"ai","part":0,"phrase":"qr-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":"Starting from unit weights, the expected total remaining weight after $T$ ideal rounds is at most $m/2^T$. The hypotheses `hc` and `ha` provide complementary comparisons and entries in $[0,1]$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b44492-44590","from_record":false,"lean":true,"lines":[98,105],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumWeight_lower","origin":"ai","part":0,"phrase":"qr-dominant-weight-chain","plain":"An unselected dominant candidate retains positive weight","record":null,"relation":"part","role":"statement","rows":[{"end_line":114,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type gives $(1-\\varepsilon)^h\\le w_s$, $1-T\\varepsilon\\le(1-\\varepsilon)^h$ and $w_s>1/2$. It does not state the intermediate $1-h\\varepsilon$ or the substitution $1-T\\varepsilon=999/1000$ shown here.","fidelity_source":"ai","line":98,"lines":[98,105],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumWeight_lower","note":"","plain":"An unselected dominant candidate retains positive weight","proof_lines":[106,114],"relation":"part","annotation":"The type gives $(1-\\varepsilon)^h\\le w_s$, $1-T\\varepsilon\\le(1-\\varepsilon)^h$ and $w_s>1/2$. It does not state the intermediate $1-h\\varepsilon$ or the substitution $1-T\\varepsilon=999/1000$ shown here. The assumptions include entries in $[0,1]$, $0\\le\\varepsilon\\le1$, and `hT : T * ε < 1/2`."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b45042-45134","from_record":false,"lean":true,"lines":[263,267],"module":"QuarticQuery.Tournament.Ideal","name":"QuarticQuery.Tournament.ideal_miss_le","origin":"ai","part":0,"phrase":"qr-ideal-miss","plain":"Ideal list misses a dominant candidate with probability ≤2m/2ᵀ","record":null,"relation":"part","role":"statement","rows":[{"end_line":291,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states $\\Pr[s\\notin L_T]\\le\\Pr[W_T\\ge 1/2]\\le 2m/2^T$. The intermediate $\\Pr[W_T\\ge 1/2]\\le 2\\,\\mathbb{E}\\, W_T$ is used in its proof, not exposed in its type.","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":"part","annotation":"The theorem states $\\Pr[s\\notin L_T]\\le\\Pr[W_T\\ge 1/2]\\le 2m/2^T$. The intermediate $\\Pr[W_T\\ge 1/2]\\le 2\\,\\mathbb{E}\\, W_T$ is used in its proof, not exposed in its type."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b45780-45875","from_record":false,"lean":true,"lines":[120,131],"module":"QuarticQuery.Paper.QuantumTensor","name":"QuarticQuery.Paper.equation_15","origin":"ai","part":0,"phrase":"qr-fresh-comparison-state","plain":"The comparison history is prepared in fresh registers","record":null,"relation":"contains","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":"The comparison history is prepared in fresh registers","proof_lines":[132,153],"relation":"contains","annotation":"`hF` bounds every comparison by $c$ logical reads, and the preparation uses $hc$ reads for $h$ pivots."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b46613-46759","from_record":false,"lean":true,"lines":[158,167],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumStage_success","origin":"ai","part":0,"phrase":"qr-conditional-pivot-law","plain":"An accepted pivot is drawn in proportion to its weight","record":null,"relation":"contains","role":"statement","rows":[{"end_line":176,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":158,"lines":[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":"contains","annotation":"`ha : UnitValued a` supplies valid comparison probabilities, and `hW` excludes conditioning on an event of zero probability."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b48122-48193","from_record":false,"lean":true,"lines":[270,282],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumTournament_list","origin":"ai","part":0,"phrase":"qr-real-list-miss","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":"The last inequality is phrased as containment probability. Subtract it from the total mass one supplied by the preceding conjunct to recover the missed-list bound."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b48550-48657","from_record":false,"lean":true,"lines":[238,241],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_cost","origin":"ai","part":0,"phrase":"qr-list-cost","plain":"Tournament bit-query bound 6072c√m T² ln(T)","record":null,"relation":"states","role":"statement","rows":[{"end_line":281,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The formal budget is bounded with the explicit factor 6072; fixed $\\varepsilon=1/(1000T)$ converts the printed logarithmic forms.","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 formal budget is bounded with the explicit factor 6072. Fixed $\\varepsilon=1/(1000T)$ converts the printed logarithmic forms. Here $T$ and $\\varepsilon$ have the paper's prescribed values, and `cc` is the uniform logical-read cost of a comparison."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b49907-50067","from_record":false,"lean":true,"lines":[40,42],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumDecode_total","origin":"ai","part":0,"phrase":"qr-off-promise-decoder","plain":"Address decoding returns a probability law on every input","record":null,"relation":"contains","role":"statement","rows":[{"end_line":43,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":40,"lines":[40,42],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumDecode_total","note":"","plain":"Address decoding returns a probability law on every input","proof_lines":[43,43],"relation":"contains","annotation":"The decoder's address probabilities are nonnegative and sum to one on every raw board input. `hk : 1 ≤ k` is required, but no auxiliary input is assumed promised."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b50450-50622","from_record":false,"lean":true,"lines":[65,69],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumDecode_query_bound_real","origin":"ai","part":0,"phrase":"qr-decode-cost-and-accuracy","plain":"Whole-address bit-query upper bound 80tk(1 + 16·2¹⁰ᵏ ln(40t/ε))","record":null,"relation":"part","role":"statement","rows":[{"end_line":89,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem bounds the physical decoder budget but does not assert promised accuracy; `quantumDecode_correct` supplies that separate clause.","fidelity_source":"ai","line":65,"lines":[65,69],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumDecode_query_bound_real","note":"","plain":"Whole-address bit-query upper bound 80tk(1 + 16·2¹⁰ᵏ ln(40t/ε))","proof_lines":[70,89],"relation":"part","annotation":"This theorem bounds the physical decoder budget but does not assert promised accuracy. `quantumDecode_correct` supplies that separate clause."},{"end_line":60,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives the correct-address probability under hs and hn, but not the displayed logarithmic query bound.","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` specifies the true answer vector and `hn` requires repetitions for error $\\varepsilon/(40t)$ per bit. The conclusion bounds correct-address probability. The query cost is proved separately."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b51518-51580","from_record":false,"lean":true,"lines":[167,168],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_rule","origin":"ai","part":0,"phrase":"qr-comparison-tie-rule","plain":"A sole disqualifier wins and ties favour the smaller column","record":null,"relation":"contains","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":"contains","annotation":"For the sorted pair, the first index is selected if it disqualifies the other column or if the two disqualification bits agree. In `firstWins d₁ d₂`, $d_1$ records what the first column does to the second, not whether the first itself was disqualified."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b51581-51647","from_record":false,"lean":true,"lines":[211,212],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_self_zero_reads","origin":"ai","part":0,"phrase":"qr-self-comparison","plain":"Self-comparison always loses and needs no logical read","record":null,"relation":"contains","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 always loses and needs no logical read","proof_lines":[213,214],"relation":"contains","annotation":"Comparing a column with itself has the constant-false output law and can be realized with zero logical reads."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b52896-52931","from_record":false,"lean":true,"lines":[198,200],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_complementary","origin":"ai","part":0,"phrase":"qr-complementary-outcomes","plain":"Opposite orientations of a comparison have complementary probabilities","record":null,"relation":"states","role":"statement","rows":[{"end_line":201,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":198,"lines":[198,200],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumComparison_complementary","note":"","plain":"Opposite orientations of a comparison have complementary probabilities","proof_lines":[201,201],"relation":"states","annotation":"The only pair condition is `hij : i ≠ j`. Neither column is assumed promised or winning."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b53345-53401","from_record":false,"lean":true,"lines":[296,302],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumWinner_dominates","origin":"ai","part":0,"phrase":"qr-winner-dominance","plain":"A genuine winner beats any 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 genuine winner beats any rival with high probability","proof_lines":[303,305],"relation":"states","annotation":"A winning column is selected against any distinct rival with probability at least $1-\\varepsilon$ (the dominance condition for Proposition 5.1). `hw` asserts the winning certificate, and `hn` gives enough repetitions to decode its address accurately.","annotation_references":[{"start":127,"end":142,"key":"proposition:5.1"}]}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b53941-53977","from_record":false,"lean":true,"lines":[131,133],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_K_count","origin":"ai","part":0,"phrase":"qr-verifier-count","plain":"The certificate has exactly m + (m−1) + r(S+2) tests","record":null,"relation":"part","role":"statement","rows":[{"end_line":134,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type gives the exact cardinality. It does not give the $O_k(m\\ell^3)$ bound in this display; `construction_K_bound` supplies that bound under the circuit-size hypothesis.","fidelity_source":"ai","line":131,"lines":[131,133],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_K_count","note":"","plain":"The certificate has exactly m + (m−1) + r(S+2) tests","proof_lines":[134,134],"relation":"part","annotation":"The type gives the exact cardinality. It does not give the $O_k(m\\ell^3)$ bound in this display. `construction_K_bound` supplies that bound under the circuit-size hypothesis."},{"end_line":164,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type gives the cubic logarithmic upper bound under hS, but does not state the exact test-count equality in this display.","fidelity_source":"ai","line":139,"lines":[139,142],"module":"QuarticQuery.Paper.ConstructionTests","name":"QuarticQuery.Paper.construction_K_bound","note":"","plain":"Circuit size Oₖ(m log²m) gives Oₖ(m log³m) certificate tests","proof_lines":[143,164],"relation":"part","annotation":"`construction_K_count` gives the exact equality. This declaration rewrites by it and uses `hS` to bound the circuit contribution by $20A m(2t)^3$."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-5","at":"b54541-54587","from_record":false,"lean":true,"lines":[344,350],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_fixedAddress","origin":"ai","part":0,"phrase":"qr-defect-free-cell","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 accuracy assumption is `hε : 0 < ε`. The tests themselves are exact."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b54978-55083","from_record":false,"lean":true,"lines":[498,507],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify","origin":"ai","part":0,"phrase":"qr-verifier-errors","plain":"Verification accepts winners and rejects nonwinners reliably","record":null,"relation":"contains","role":"statement","rows":[{"end_line":524,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":498,"lines":[498,507],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify","note":"","plain":"Verification accepts winners and rejects nonwinners reliably","proof_lines":[508,524],"relation":"contains","annotation":"One bounded physical verifier accepts each nonwinner with probability at most $\\varepsilon$ and each winner with probability at least $1-\\varepsilon$. `hC` gives exact circuit correctness, and `hn` gives the promised address-decoding accuracy."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b55143-55198","from_record":false,"lean":true,"lines":[433,436],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumVerify_search_query_bound","origin":"ai","part":0,"phrase":"qr-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":"stronger","fidelity_note":"The theorem gives an explicit factor 276 and uses `testCost=ℓ+1` in the stated $t\\ge 1$ range.","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":"The theorem gives an explicit factor 276 and uses `testCost=ℓ+1` in the stated $t\\ge 1$ range. `searchCost` is a physical bit-query budget, while `testCost` bounds the exact adaptive test."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b56559-56800","from_record":false,"lean":true,"lines":[539,549],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumError_bound","origin":"ai","part":0,"phrase":"qr-full-algorithm-errors","plain":"False acceptance ≤ Tε and false rejection ≤ 2m/2ᵀ + (T+1)ε","record":null,"relation":"part","role":"statement","rows":[{"end_line":585,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration gives both zero-input and one-input probability bounds, but omits the final strict comparison with $1/3$; `quantumError_numeric` supplies it.","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":"part","annotation":"The declaration gives both zero-input and one-input probability bounds, but omits the final strict comparison with $1/3$. `quantumError_numeric` supplies it."},{"end_line":591,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration gives only $T\\varepsilon=1/1000$ and the numeric bound below $1/3$; the input-dependent probability inequalities are in `quantumError_bound`.","fidelity_source":"ai","line":588,"lines":[588,590],"module":"QuarticQuery.Paper.QuantumComparison","name":"QuarticQuery.Paper.quantumError_numeric","note":"","plain":"The prescribed error allowances total less than one third","proof_lines":[591,591],"relation":"part","annotation":"The declaration gives only $T\\varepsilon=1/1000$ and the numeric bound below $1/3$. The input-dependent probability inequalities are in `quantumError_bound`."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b57685-57764","from_record":false,"lean":true,"lines":[278,280],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.Q_Fkm_le","origin":"ai","part":0,"phrase":"qr-quantum-upper-bound","plain":"Quantum query cost Oₖ(√m log⁶m) for the Forrelation board","record":null,"relation":"states","role":"statement","rows":[{"end_line":284,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem fixes the logarithmic exponent to 6 and allows $k=l+1\\ge 1$; the paper states $k\\ge 2$ and an unspecified $k$-dependent polylogarithmic power.","fidelity_source":"ai","line":278,"lines":[278,280],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.Q_Fkm_le","note":"","plain":"Quantum query cost Oₖ(√m log⁶m) for the Forrelation board","proof_lines":[281,284],"relation":"states","annotation":"The theorem fixes the logarithmic exponent to 6 and allows $k=l+1\\ge 1$. The paper states $k\\ge 2$ and an unspecified $k$-dependent polylogarithmic power."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-5","at":"b57789-57879","from_record":false,"lean":true,"lines":[272,273],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.Fkm_forrCircuit_QLe","origin":"ai","part":0,"phrase":"qr-logarithmic-power-six","plain":"One quantum program obeys the explicit cap on every branch","record":null,"relation":"states","role":"statement","rows":[{"end_line":275,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":272,"lines":[272,273],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.Fkm_forrCircuit_QLe","note":"","plain":"One quantum program obeys the explicit cap on every branch","proof_lines":[274,275],"relation":"states","annotation":"For $k=l+1$ and $t\\ge1$, one quantum program evaluates the total function from the named circuit with success at least $2/3$ and a global cap $C_k2^t(2t)^6$. The conclusion is `QLe`, which includes a witness program and its syntactic branch bound."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-6","at":"b61322-61450","from_record":false,"lean":true,"lines":[138,140],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.exists_hard_distribution","origin":"ai","part":0,"phrase":"rec-cl-hard-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 computes $P$ within $L$ queries, one probability law on promised inputs makes every deterministic depth-$L$ tree succeed with probability at most $2/3$. The premise `h : ¬ RLe f L` expresses that failure of a randomized budget."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b62290-62322","from_record":false,"lean":true,"lines":[190,192],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.Gvalue_lt_R_addressedF","origin":"ai","part":0,"phrase":"rec-cl-generic-hypotheses","plain":"Addressed certificates multiply classical hardness by the column count","record":null,"relation":"part","role":"explanation","rows":[{"end_line":199,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":190,"lines":[190,192],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.Gvalue_lt_R_addressedF","note":"The binders hL1, hLm, and hLR are the three assumptions.","plain":"Addressed certificates multiply classical hardness by the column count","proof_lines":[193,199],"relation":"part","annotation":"The binders `hL1`, `hLm`, and `hLR` are these three inequalities. `hC` says that the circuit realizes the promise and value of $P$."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b62368-62427","from_record":false,"lean":true,"lines":[190,192],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.Gvalue_lt_R_addressedF","origin":"ai","part":0,"phrase":"rec-cl-generic-lower","plain":"Addressed certificates multiply classical hardness by the column count","record":null,"relation":"states","role":"statement","rows":[{"end_line":199,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The Lean theorem has no $t \\ge 1$ hypothesis; it also permits $t = 0$ whenever its three hardness and allowance premises hold.","fidelity_source":"ai","line":190,"lines":[190,192],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.Gvalue_lt_R_addressedF","note":"","plain":"Addressed certificates multiply classical hardness by the column count","proof_lines":[193,199],"relation":"states","annotation":"The Lean theorem has no $t \\ge 1$ hypothesis. It also permits $t = 0$ whenever its three hardness and allowance premises hold. The binders `hL1`, `hLm`, and `hLR` are these three inequalities. `hC` says that the circuit realizes the promise and value of $P$."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b62599-62656","from_record":false,"lean":true,"lines":[921,922],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_17_floor","origin":"ai","part":0,"phrase":"rec-cl-integer-budget","plain":"The randomized query budget G=⌊mL/100⌋","record":null,"relation":"states","role":"definition","rows":[{"end_line":924,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":921,"lines":[921,922],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_17_floor","note":"","plain":"The randomized query budget G=⌊mL/100⌋","proof_lines":[923,924],"relation":"states","annotation":"The classical budget $G$ is exactly $\\lfloor mL/100\\rfloor$. The arguments `m` and `L` are arbitrary natural numbers."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b63041-63064","from_record":false,"lean":true,"lines":[50,54],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.dummy","origin":"ai","part":0,"phrase":"rec-cl-dummy-object","plain":"The board with one zero per column","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":"The board with one zero per column","relation":"defines","annotation":"`dummy` is a function of the supplied zero rows and address data. Its cases on `BitLoc` choose how to fill each kind of input bit."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b63105-63169","from_record":false,"lean":true,"lines":[50,54],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.dummy","origin":"ai","part":0,"phrase":"rec-cl-dummy-x-bits","plain":"The board with one zero per column","record":null,"relation":"contains","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":"The first case makes the selected zero row false and all other $X$ bits true.","plain":"The board with one zero per column","relation":"contains","annotation":"The column-string branch is `decide (j ≠ J i)`. This leaves exactly one zero at the specified row $J_i$ in each column."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b63228-63278","from_record":false,"lean":true,"lines":[50,54],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.dummy","origin":"ai","part":0,"phrase":"rec-cl-blank-cells","plain":"The board with one zero per column","record":null,"relation":"contains","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":"The board with one zero per column","relation":"contains","annotation":"The nested sum case `.inr (.inr _)` returns `false` at every pointer or transcript coordinate. It covers all addresses in all columns."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b63509-63595","from_record":false,"lean":true,"lines":[27,29],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.coupledAvg","origin":"ai","part":0,"phrase":"rec-cl-selected-column-independent","plain":"Independent averaging over strings, zero rows, and selected 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":"Independent averaging over strings, zero rows, and selected column","relation":"defines","annotation":"The joint average first draws every auxiliary input independently with weights $\\mu$, then every zero row independently and uniformly, then the selected column independently and uniformly."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b63612-63637","from_record":false,"lean":true,"lines":[58,66],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.planted","origin":"ai","part":0,"phrase":"rec-cl-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 planted board turns column $I$ into all ones and fills only its cell at the true address."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b64081-64136","from_record":false,"lean":true,"lines":[123,129],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.dummy_planted_values_on_support","origin":"ai","part":0,"phrase":"rec-cl-coupled-values","plain":"The dummy board is zero and the planted board is one","record":null,"relation":"states","role":"statement","rows":[{"end_line":132,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":123,"lines":[123,129],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.dummy_planted_values_on_support","note":"","plain":"The dummy board is zero and the planted board is one","proof_lines":[130,132],"relation":"states","annotation":"The binder `htr` supplies a gate-consistent transcript on every auxiliary input. The support conditions `hdom` and `hA` ensure that the sampled auxiliary inputs are promised, so their true address bits exist."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b64291-64371","from_record":false,"lean":true,"lines":[70,73],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.eq_of_dummy_ne_planted","origin":"ai","part":0,"phrase":"rec-cl-locations-of-disagreement","plain":"Only the erased zero or the selected cell can change","record":null,"relation":"states","role":"statement","rows":[{"end_line":92,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":70,"lines":[70,73],"module":"QuarticQuery.LowerBound.Planted.Inputs","name":"QuarticQuery.eq_of_dummy_ne_planted","note":"","plain":"Only the erased zero or the selected cell can change","proof_lines":[74,92],"relation":"states","annotation":"If one input bit differs between the dummy and planted boards, its coordinate is either the erased zero $X_I[J_I]$ or a bit of the cell $B_{I,s_I}$. The premise `h` is an actual disagreement of that bit."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b64776-64890","from_record":false,"lean":true,"lines":[142,146],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.output_gap_abs_le_unsplit","origin":"ai","part":0,"phrase":"rec-cl-first-difference","plain":"One run changes output only after one of two visits","record":null,"relation":"states","role":"derivation","rows":[{"end_line":164,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":142,"lines":[142,146],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.output_gap_abs_le_unsplit","note":"","plain":"One run changes output only after one of two visits","proof_lines":[147,164],"relation":"states","annotation":"Lean first compares output indicators on the two fixed boards. Its cell-visit indicator counts any read in the filled cell, including reads of bits that already agree."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b64940-65158","from_record":false,"lean":true,"lines":[168,174],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_18","origin":"ai","part":0,"phrase":"rec-cl-two-event-discrepancy","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":"stronger","fidelity_note":"The weighted inequality assumes only $\\mu\\ge 0$ and allows arbitrary transcript data. The paper additionally normalizes $\\mu$, supports it on promised inputs, and uses valid planted certificates for the probability interpretation.","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":"The proof applies `paperCoupledAvg_abs_le` to the fixed-board estimate, with both event indicators evaluated on the dummy run. The inequality works with any nonnegative weights and arbitrary `tr`. Normalization and valid certificates supply the paper’s probability and board-value interpretation."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b65801-65883","from_record":false,"lean":true,"lines":[182,185],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.discoveredZeros","origin":"ai","part":0,"phrase":"rec-cl-discovered-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$ counts columns whose unique zero appears anywhere on the complete dummy query path."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b65914-65993","from_record":false,"lean":true,"lines":[189,191],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.discoveredZeros_cast","origin":"ai","part":0,"phrase":"rec-cl-discovery-indicator-sum","plain":"The discovery count equals the sum of column indicators","record":null,"relation":"states","role":"definition","rows":[{"end_line":195,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":189,"lines":[189,191],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.discoveredZeros_cast","note":"","plain":"The discovery count equals the sum of column indicators","proof_lines":[192,195],"relation":"states","annotation":"The count of discovered columns equals the sum of their zero-hit indicators."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b66307-66384","from_record":false,"lean":true,"lines":[206,209],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.erasedZero_eq_expectedZeros_div","origin":"ai","part":0,"phrase":"rec-cl-independent-selection-identity","plain":"Erased-zero hit probability equals E[Z]/m","record":null,"relation":"states","role":"statement","rows":[{"end_line":211,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The equality holds algebraically for arbitrary real auxiliary weights $\\mu$. The paper assumes a probability law; independent uniform selection of $I$ is built into `coupledAvg` in both formulations.","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 equality holds algebraically for arbitrary real auxiliary weights $\\mu$. The paper assumes a probability law. Independent uniform selection of $I$ is built into `coupledAvg` in both formulations. In Lean, `2 ^ ℓ` is the number $m$ of rows and columns."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b67586-67636","from_record":false,"lean":true,"lines":[162,164],"module":"QuarticQuery.LowerBound.Planted.ZeroSearch","name":"QuarticQuery.xQueries","origin":"ai","part":0,"phrase":"rec-cl-x-query-count","plain":"All reads of one column’s bit string","record":null,"relation":"defines","role":"definition","rows":[{"end_line":164,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":162,"lines":[162,164],"module":"QuarticQuery.LowerBound.Planted.ZeroSearch","name":"QuarticQuery.xQueries","note":"","plain":"All reads of one column’s bit string","relation":"defines","annotation":"The query cost $Q_i$ counts every occurrence of an $X_i$ coordinate along the complete dummy run."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b67920-68044","from_record":false,"lean":true,"lines":[17,22],"module":"QuarticQuery.LowerBound.Planted.ZeroSearchSuccessor","name":"QuarticQuery.zero_search_sum_successor","origin":"ai","part":0,"phrase":"rec-cl-mplusone-ingredient","plain":"Average column queries are at least (|U|+1)/2 times discovery probability","record":null,"relation":"part","role":"statement","rows":[{"end_line":110,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem proves the one-column inequality $(|U|+1)D_U \\le 2Q_U$. It does not state either averaged bound on $\\mathbb{E}Z$ or selected-column hit probability; those require averaging and the independent-selection identity.","fidelity_source":"ai","line":17,"lines":[17,22],"module":"QuarticQuery.LowerBound.Planted.ZeroSearchSuccessor","name":"QuarticQuery.zero_search_sum_successor","note":"","plain":"Average column queries are at least (|U|+1)/2 times discovery probability","proof_lines":[23,110],"relation":"part","annotation":"This theorem proves the one-column inequality $(|U|+1)D_U \\le 2Q_U$. It does not state either averaged bound on $\\mathbb{E}Z$ or selected-column hit probability. Those require averaging and the independent-selection identity. The maps `e` and `c` identify the column. `hout` fixes every outside answer across the worlds and `hin` gives each world its unique zero."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b68370-68432","from_record":false,"lean":true,"lines":[215,219],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.erasedZero_le_two","origin":"ai","part":0,"phrase":"rec-cl-erased-zero-two","plain":"Erased-zero hit probability is at most two G over m squared","record":null,"relation":"states","role":"statement","rows":[{"end_line":221,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":215,"lines":[215,219],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.erasedZero_le_two","note":"","plain":"Erased-zero hit probability is at most two G over m squared","proof_lines":[220,221],"relation":"states","annotation":"The binders `hμ` and `hμ1` make the auxiliary-input weights a probability law. No promise support or partial-function hardness is required."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b68493-68574","from_record":false,"lean":true,"lines":[250,254],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_19","origin":"ai","part":0,"phrase":"rec-cl-erased-zero-four","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 erased-zero hit probability is at most $4G/m^2$ for a deterministic tree of depth at most $G$."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b69867-69952","from_record":false,"lean":true,"lines":[171,176],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.OutTree.capped","origin":"ai","part":0,"phrase":"rec-cl-per-input-cap","plain":"A separate remaining query allowance for every input","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":176,"exact_lines":true,"fidelity":"different","fidelity_note":"OutTree.capped requires the allowance on every syntactic branch, including inconsistent repeated-answer branches. The quoted prose constrains executions; the source does not prove these two formulations equivalent for an arbitrary tree.","fidelity_source":"ai","line":171,"lines":[171,176],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.OutTree.capped","note":"","plain":"A separate remaining query allowance for every input","relation":"defines","annotation":"At a query `p`, the definition decrements `c p.1` in both children. This imposes separate caps on all syntactic branches, including inconsistent answers to repeated reads."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b69991-70104","from_record":false,"lean":true,"lines":[902,909],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","origin":"ai","part":0,"phrase":"rec-cl-separate-cap-product","plain":"Independent finite advice preserves the separate-cap product bound","record":null,"relation":"states","role":"statement","rows":[{"end_line":913,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem assumes a finite seed type $S$ (`[Fintype S]`) and a structural cap on every syntactic branch. The paper permits unrestricted independent advice and coins and states the cap for executions; transfer to these broader formulations is not in this theorem type.","fidelity_source":"ai","line":902,"lines":[902,909],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","note":"","plain":"Independent finite advice preserves the separate-cap product bound","proof_lines":[910,913],"relation":"states","annotation":"The theorem assumes a finite seed type `S` (`[Fintype S]`) and a structural cap on every syntactic branch. The paper permits unrestricted independent advice and coins and states the cap for executions. Transfer to these broader formulations is not in this theorem type."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b70666-70721","from_record":false,"lean":true,"lines":[188,193],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.address_guess_average","origin":"ai","part":0,"phrase":"rec-cl-whole-address-guess","plain":"Independent side information and coins preserve the (2/3)ʳ address-guessing bound","record":null,"relation":"states","role":"statement","rows":[{"end_line":194,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The Lean endpoint quantifies over finite mixtures of capped predictors; the surrounding application of Lemma 6.1 permits an unrestricted independent seed.","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 Lean endpoint quantifies over finite mixtures of capped predictors. The surrounding application of Lemma 6.1 permits an unrestricted independent seed. The hypotheses `hard` and `hT` give the one-input bound and the separate caps.","annotation_references":[{"start":103,"end":112,"key":"lemma:6.1"}]}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b71008-71139","from_record":false,"lean":true,"lines":[22,23],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.aQueries","origin":"ai","part":0,"phrase":"rec-cl-column-query-count","plain":"Auxiliary queries charged to one column","record":null,"relation":"defines","role":"definition","rows":[{"end_line":23,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":22,"lines":[22,23],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.aQueries","note":"","plain":"Auxiliary queries charged to one column","relation":"defines","annotation":"The number $N_i$ counts every query to one of column $i$’s auxiliary strings along a specified query list."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b71145-71183","from_record":false,"lean":true,"lines":[262,264],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.HeavyColumn","origin":"ai","part":0,"phrase":"rec-cl-heavy-column","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":"A column is heavy when its complete dummy run uses more than $L$ queries to the auxiliary strings of that column."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b71369-71423","from_record":false,"lean":true,"lines":[42,44],"module":"QuarticQuery.LowerBound.Planted.Heavy","name":"QuarticQuery.avg_heavy_le","origin":"ai","part":0,"phrase":"rec-cl-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":"stronger","fidelity_note":"Lean bounds the uniform-column probability for every fixed query list of length at most $G$. The paper averages such lists over the dummy input law, which is not required by this theorem.","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 fixed query list `l` has length at most $G$ by `hl`. `avg_unif` then converts its heavy-column count to a probability, with `hL` making division by $L$ valid."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b71840-71930","from_record":false,"lean":true,"lines":[342,348],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_21","origin":"ai","part":0,"phrase":"rec-cl-fixed-time-joint-event","plain":"Light true-cell visit probability ≤(2/3)ʳ at any fixed time","record":null,"relation":"states","role":"statement","rows":[{"end_line":354,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean permits any natural query position $t$ and any finite tree; the paper restricts $q$ to $1,\\dots,G$ for a depth-$G$ tree. Use $t=q-1$ for zero-based indexing.","fidelity_source":"ai","line":342,"lines":[342,348],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_21","note":"","plain":"Light true-cell visit probability ≤(2/3)ʳ at any fixed time","proof_lines":[349,354],"relation":"states","annotation":"Lean permits any natural query position $t$ and any finite tree. The paper restricts $q$ to $1,\\dots,G$ for a depth-$G$ tree. Use $t=q-1$ for zero-based indexing. Lean numbers query positions from zero, so its `t` is the paper’s $q-1$."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b72873-73020","from_record":false,"lean":true,"lines":[274,277],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.addressSimulator","origin":"ai","part":0,"phrase":"rec-cl-capped-simulator","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 replays the dummy tree up to a specified query position and outputs the address named by that proposed cell query (worked example in Appendix B.3).","annotation_references":[{"start":147,"end":159,"key":"appendix:b.3"}]}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b73070-73180","from_record":false,"lean":true,"lines":[274,277],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.addressSimulator","origin":"ai","part":0,"phrase":"rec-cl-inspect-proposal","plain":"Replay with capped address reads to predict a cell address","record":null,"relation":"defines","role":"explanation","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 replays the dummy tree up to a specified query position and outputs the address named by that proposed cell query. Lean uses zero-based time, so position `t` corresponds to the paper’s query $t+1$."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b73399-73458","from_record":false,"lean":true,"lines":[281,283],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.addressSimulator_depth_le","origin":"ai","part":0,"phrase":"rec-cl-simulator-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":"stronger","fidelity_note":"Lean proves a total cap of $L$ over all target strings, which implies the paper’s separate cap of $L$ for each string.","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":"Lean proves a total cap of $L$ over all target strings, which implies the paper’s separate cap of $L$ for each string."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b73608-73669","from_record":false,"lean":true,"lines":[76,81],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.eval_simTree","origin":"ai","part":0,"phrase":"rec-cl-simulator-replay","plain":"A faithful capped replay outputs the proposed address","record":null,"relation":"part","role":"derivation","rows":[{"end_line":115,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem concludes equality of the output with the proposed address under matching-answer and prefix-count premises. It does not itself assert equality of the complete replay history.","fidelity_source":"ai","line":76,"lines":[76,81],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.eval_simTree","note":"","plain":"A faithful capped replay outputs the proposed address","proof_lines":[82,115],"relation":"part","annotation":"The theorem concludes equality of the output with the proposed address under matching-answer and prefix-count premises. It does not itself assert equality of the complete replay history. The assumptions `hbase` and `hV` say that outside and target answers agree with the original input."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b74151-74251","from_record":false,"lean":true,"lines":[408,414],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_22","origin":"ai","part":0,"phrase":"rec-cl-true-cell-union","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 ever visiting the selected true-address cell is at most $G/(mL)+G(2/3)^r$."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b75722-75763","from_record":false,"lean":true,"lines":[35,36],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.restrictWeight","origin":"ai","part":0,"phrase":"rec-cl-restrict-weight","plain":"Keep only inputs consistent with one observed bit","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":36,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":35,"lines":[35,36],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.restrictWeight","note":"","plain":"Keep only inputs consistent with one observed bit","relation":"defines","annotation":"The restricted weight keeps $\\nu(x)$ when the queried coordinate has answer $b$, and assigns weight zero otherwise."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b75819-76028","from_record":false,"lean":true,"lines":[40,46],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.budgetValue","origin":"ai","part":0,"phrase":"rec-cl-weighted-value-recursion","plain":"Best weighted success with a fixed query allowance","record":null,"relation":"defines","role":"definition","rows":[{"end_line":46,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":40,"lines":[40,46],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.budgetValue","note":"","plain":"Best weighted success with a fixed query allowance","relation":"defines","annotation":"The value $W_c(\\nu)$ is defined recursively."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b76248-76352","from_record":false,"lean":true,"lines":[103,104],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.exists_tree_budgetValue_le","origin":"ai","part":0,"phrase":"rec-cl-weighted-optimum","plain":"A bounded-depth tree attains the recursive value","record":null,"relation":"part","role":"derivation","rows":[{"end_line":130,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration constructs a depth-$c$ tree with success at least $W_c$. The upper bound for all trees is the separate `treeSuccess_le_budgetValue` declaration.","fidelity_source":"ai","line":103,"lines":[103,104],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.exists_tree_budgetValue_le","note":"","plain":"A bounded-depth tree attains the recursive value","proof_lines":[105,130],"relation":"part","annotation":"This declaration constructs a depth-$c$ tree with success at least $W_c$. The upper bound for all trees is the separate `treeSuccess_le_budgetValue` declaration."},{"end_line":147,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration bounds every depth-$c$ tree by $W_c$. Attainment, the other half of being a maximum, is supplied by `exists_tree_budgetValue_le`.","fidelity_source":"ai","line":139,"lines":[139,140],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.treeSuccess_le_budgetValue","note":"","plain":"Every bounded-depth tree stays below the recursive value","proof_lines":[141,147],"relation":"part","annotation":"This declaration bounds every depth-$c$ tree by $W_c$. Attainment, the other half of being a maximum, is supplied by `exists_tree_budgetValue_le`."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b76709-76729","from_record":false,"lean":true,"lines":[82,83],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.budgetValue_nonneg","origin":"ai","part":0,"phrase":"rec-cl-weighted-nonnegative","plain":"Nonnegative weights give a nonnegative continuation value","record":null,"relation":"states","role":"statement","rows":[{"end_line":84,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":82,"lines":[82,83],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.budgetValue_nonneg","note":"","plain":"Nonnegative weights give a nonnegative continuation value","proof_lines":[84,84],"relation":"states","annotation":"The optimal weighted success $W_c(\\nu)$ is nonnegative whenever every input weight is nonnegative. The premise `hν` states this pointwise condition."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b76760-76831","from_record":false,"lean":true,"lines":[56,58],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.budgetValue_add_le","origin":"ai","part":0,"phrase":"rec-cl-weighted-branch-step","plain":"Combining the two answer branches uses one extra query","record":null,"relation":"states","role":"statement","rows":[{"end_line":63,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem does not require nonnegative weights; the paper has imposed that condition throughout this argument.","fidelity_source":"ai","line":56,"lines":[56,58],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.budgetValue_add_le","note":"","plain":"Combining the two answer branches uses one extra query","proof_lines":[59,63],"relation":"states","annotation":"The theorem does not require nonnegative weights. The paper has imposed that condition throughout this argument. Querying coordinate `q` first and then following either optimal continuation is one permitted strategy in the recursion."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b76839-76891","from_record":false,"lean":true,"lines":[759,761],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_weight_zero_of_mass_zero","origin":"ai","part":0,"phrase":"rec-cl-zero-weight-pointwise","plain":"Nonnegative zero-mass weights vanish at every input","record":null,"relation":"states","role":"statement","rows":[{"end_line":764,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":759,"lines":[759,761],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_weight_zero_of_mass_zero","note":"","plain":"Nonnegative zero-mass weights vanish at every input","proof_lines":[762,764],"relation":"states","annotation":"If every weight is nonnegative and their finite sum is zero, the weight of each individual input is zero. The premise `hm` uses `classicalMass`, which is simply that finite sum."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b76893-76924","from_record":false,"lean":true,"lines":[97,99],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_budgetValue_zero_mass","origin":"ai","part":0,"phrase":"rec-cl-zero-success-values","plain":"Zero total weight gives zero optimal success","record":null,"relation":"states","role":"statement","rows":[{"end_line":101,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":97,"lines":[97,99],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_budgetValue_zero_mass","note":"","plain":"Zero total weight gives zero optimal success","proof_lines":[100,101],"relation":"states","annotation":"For nonnegative weights with total mass zero, $W_c(\\nu)=0$ for every allowance. The premises `hν` and `hm` are both needed: signed weights could cancel without vanishing."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b77267-77449","from_record":false,"lean":true,"lines":[258,260],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_le_prod","origin":"ai","part":0,"phrase":"rec-cl-weighted-product","plain":"Separate query allowances bound joint weighted success by a product","record":null,"relation":"states","role":"statement","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":"","plain":"Separate query allowances bound joint weighted success by a product","proof_lines":[261,298],"relation":"states","annotation":"`hν` allows unnormalized but nonnegative weights for each input. `hT` requires the vector of caps on each branch. Only after specializing the factors to a hard probability law does the bound become a product of probabilities."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b77506-77577","from_record":false,"lean":true,"lines":[262,265],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_le_prod","origin":"ai","part":0,"phrase":"rec-cl-weighted-leaf-case","plain":"Separate query allowances bound joint weighted success by a product","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":298,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":258,"lines":[262,265],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_le_prod","note":"The leaf case applies the per-input constant-success bound and multiplies nonnegative factors.","plain":"Separate query allowances bound joint weighted success by a product","proof_lines":[261,298],"relation":"proof","annotation":"The leaf case rewrites with `guessSuccess_leaf`. It bounds each factor by `constSuccess_le_budgetValue` and invokes `prod_le_prod₀` with the nonnegative constant-success factors."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b77663-77803","from_record":false,"lean":true,"lines":[266,284],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_le_prod","origin":"ai","part":0,"phrase":"rec-cl-weighted-factor-update","plain":"Separate query allowances bound joint weighted success by a product","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":298,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":258,"lines":[266,284],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_le_prod","note":"","plain":"Separate query allowances bound joint weighted success by a product","proof_lines":[261,298],"relation":"proof","annotation":"At query `p = (h,q)`, the two child calls use `Function.update` at $h$ for both the budget and the weight. `restrictWeight` zeros out inputs inconsistent with the chosen reply."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b77900-78031","from_record":false,"lean":true,"lines":[285,298],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_le_prod","origin":"ai","part":0,"phrase":"rec-cl-weighted-parent-step","plain":"Separate query allowances bound joint weighted success by a product","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":298,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":258,"lines":[285,298],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_le_prod","note":"","plain":"Separate query allowances bound joint weighted success by a product","proof_lines":[261,298],"relation":"proof","annotation":"The proof extracts the queried factor from each product with `mul_prod_erase`. The common product over the remaining inputs is nonnegative, so `budgetValue_add_le` bounds the sum of the two queried factors."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b78248-78266","from_record":false,"lean":true,"lines":[133,134],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.budgetValue_le_of_forall","origin":"ai","part":0,"phrase":"rec-cl-weighted-root-hardness","plain":"A bound for every allowed tree bounds the optimum","record":null,"relation":"states","role":"derivation","rows":[{"end_line":136,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":133,"lines":[133,134],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.budgetValue_le_of_forall","note":"","plain":"A bound for every allowed tree bounds the optimum","proof_lines":[135,136],"relation":"states","annotation":"If every one-input tree of depth at most $c$ has success weight at most $\\beta$, then $W_c(\\nu)\\le\\beta$. The hypothesis `h` is the universal bound on those trees."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b78442-78507","from_record":false,"lean":true,"lines":[902,909],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","origin":"ai","part":0,"phrase":"rec-cl-independent-seed-average","plain":"Independent finite advice preserves the separate-cap product bound","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":913,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem averages over a finite seed type $S$. The paper’s unqualified independent outside information and coins allow more general random sources.","fidelity_source":"ai","line":902,"lines":[902,909],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_direct_product_average","note":"","plain":"Independent finite advice preserves the separate-cap product bound","proof_lines":[910,913],"relation":"proof","annotation":"The theorem averages over a finite seed type `S`. The paper’s unqualified independent outside information and coins allow more general random sources. The premise `hard` bounds each one-input depth-$L$ tree. `hT` imposes $L$ queries per input on every branch."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-6","at":"b80010-80115","from_record":false,"lean":true,"lines":[419,428],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_23_two","origin":"ai","part":0,"phrase":"rec-cl-gap-two","plain":"The three-term acceptance-gap bound improves the erased-zero coefficient to two","record":null,"relation":"states","role":"statement","rows":[{"end_line":432,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":419,"lines":[419,428],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_23_two","note":"","plain":"The three-term acceptance-gap bound improves the erased-zero coefficient to two","proof_lines":[429,432],"relation":"states","annotation":"The absolute planted-versus-dummy acceptance gap is at most $2G/m^2+G/(mL)+G(2/3)^r$ (the last two terms come from Equation (6.6)). The tree has depth at most $G$, the law is a probability distribution on promised inputs, and `hard` supplies one-input hardness.","annotation_references":[{"start":115,"end":129,"key":"equation:6.6"}]}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b80215-80321","from_record":false,"lean":true,"lines":[436,445],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_23","origin":"ai","part":0,"phrase":"rec-cl-gap-four","plain":"Erased-zero search, heavy columns and address guesses bound the acceptance gap","record":null,"relation":"states","role":"statement","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 acceptance discrepancy is at most $4G/m^2+G/(mL)+G(2/3)^r$ under the same probability, promise-support, hardness, and depth assumptions as the factor-two version."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b80722-80793","from_record":false,"lean":true,"lines":[79,83],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_tail_le","origin":"ai","part":0,"phrase":"rec-cl-tail-display","plain":"The address-guessing term is at most m^(2−20log₂(3/2))/100","record":null,"relation":"part","role":"statement","rows":[{"end_line":95,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The Lean theorem gives $G(2/3)^{40t} \\le m^{2-20\\log_2(3/2)}/100$. It does not include the displayed further inequality $m^{2-20\\log_2(3/2)}/100\\le m^{-8}/100$.","fidelity_source":"ai","line":79,"lines":[79,83],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_tail_le","note":"","plain":"The address-guessing term is at most m^(2−20log₂(3/2))/100","proof_lines":[84,95],"relation":"part","annotation":"The Lean theorem gives $G(2/3)^{40t} \\le m^{2-20\\log_2(3/2)}/100$. It does not include the displayed further inequality $m^{2-20\\log_2(3/2)}/100\\le m^{-8}/100$."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b80831-80881","from_record":false,"lean":true,"lines":[154,162],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_numeric_components","origin":"ai","part":0,"phrase":"rec-cl-numeric-sum","plain":"Distinguishing terms bounded by 4/100, 1/100 and 1/100","record":null,"relation":"contains","role":"statement","rows":[{"end_line":185,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":154,"lines":[154,162],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_numeric_components","note":"","plain":"Distinguishing terms bounded by 4/100, 1/100 and 1/100","proof_lines":[163,185],"relation":"contains","annotation":"The floor choice for $G$ is one way to meet the inequality `hG`."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b81521-81572","from_record":false,"lean":true,"lines":[465,474],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.eq_23_randomized","origin":"ai","part":0,"phrase":"rec-cl-averaging-trees","plain":"The same three-term acceptance-gap bound holds for bounded randomized programs","record":null,"relation":"proof","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":"proof","annotation":"A randomized program of worst-case depth at most $G$ obeys the same absolute discrepancy bound as each deterministic tree in its mixture. The binder `hP` bounds the depths of all positively weighted trees, rather than merely their average depth."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b81758-81854","from_record":false,"lean":true,"lines":[111,115],"module":"QuarticQuery.LowerBound.Planted.Main","name":"QuarticQuery.addressedF_not_RLe","origin":"ai","part":0,"phrase":"rec-cl-contradiction","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":"weaker","fidelity_note":"The theorem concludes `¬ RLe F G` under a discrepancy premise. The conversion to the numeric minimum $R(F)>G$ is supplied by `Gvalue_lt_R_addressedF` and the finite-minimum lemmas, not by this declaration alone.","fidelity_source":"ai","line":111,"lines":[111,115],"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 theorem concludes `¬ RLe F G` under a discrepancy premise. The conversion to the numeric minimum $R(F)>G$ is supplied by `Gvalue_lt_R_addressedF` and the finite-minimum lemmas, not by this declaration alone. The hypotheses `hL` and `hL1` say that the partial function defeats budget $L\\ge1$. `hC` supplies a circuit realizing it."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b82092-82155","from_record":false,"lean":true,"lines":[308,309],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.Lvalue_eq","origin":"ai","part":0,"phrase":"rec-cl-allowance","plain":"The one-input allowance in power-of-four coordinates","record":null,"relation":"states","role":"definition","rows":[{"end_line":310,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":308,"lines":[308,309],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.Lvalue_eq","note":"","plain":"The one-input allowance in power-of-four coordinates","proof_lines":[310,310],"relation":"states","annotation":"The one-input allowance is $L=\\lfloor (4^t)^{1-1/k}/(2t)^2\\rfloor$."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b83382-83493","from_record":false,"lean":true,"lines":[29,32],"module":"QuarticQuery.Paper.Section4","name":"QuarticQuery.Paper.prop_4_2_forrCircuit","origin":"ai","part":0,"phrase":"rec-cl-concrete-classical-lower","plain":"The explicit Forrelation board needs more than ⌊mL/100⌋ randomized queries","record":null,"relation":"states","role":"statement","rows":[{"end_line":34,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":29,"lines":[29,32],"module":"QuarticQuery.Paper.Section4","name":"QuarticQuery.Paper.prop_4_2_forrCircuit","note":"","plain":"The explicit Forrelation board needs more than ⌊mL/100⌋ randomized queries","proof_lines":[33,34],"relation":"states","annotation":"For each fixed $k\\ge2$, all sufficiently large parameters satisfy $R(F_{k,4^t})>\\lfloor mL/100\\rfloor$ for the same explicit circuit used in the construction."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-6","at":"b83578-83692","from_record":false,"lean":true,"lines":[69,73],"module":"QuarticQuery.Paper.Section4","name":"QuarticQuery.Paper.cor_R_omega_log2","origin":"ai","part":0,"phrase":"rec-cl-omega-lower","plain":"For large m, the classical lower bound is m^(2−1/k)/(400(log₂m)²)","record":null,"relation":"states","role":"statement","rows":[{"end_line":79,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean gives the explicit base-two lower bound for every circuit realizing $P$, with one threshold independent of the circuit; the paper states it for its selected circuit family.","fidelity_source":"ai","line":69,"lines":[69,73],"module":"QuarticQuery.Paper.Section4","name":"QuarticQuery.Paper.cor_R_omega_log2","note":"","plain":"For large m, the classical lower bound is m^(2−1/k)/(400(log₂m)²)","proof_lines":[74,79],"relation":"states","annotation":"The type gives the explicit base-two lower bound for every circuit realizing $P$, with one threshold independent of the circuit. The paper states it for its selected circuit family. The coefficient $1/400$ is explicit and independent of $k$. Only the threshold may depend on $k$."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-7","at":"b85198-85344","from_record":false,"lean":true,"lines":[30,40],"module":"QuarticQuery.Paper.ConstructionFamily","name":"QuarticQuery.Paper.construction_family_named","origin":"ai","part":0,"phrase":"rec-cl-same-family-bounds","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":"The theorem supplies the same explicit circuit, the coefficient $1/400$, and the logarithmic exponent $6$, as well as circuit correctness and size. The paper display leaves the constant $C_k$ and exponent $b_k$ unspecified.","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":"The theorem supplies the same explicit circuit, the coefficient $1/400$, and the logarithmic exponent $6$, as well as circuit correctness and size. The paper display leaves the constant $C_k$ and exponent $b_k$ unspecified."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-7","at":"b86525-86703","from_record":false,"lean":true,"lines":[234,240],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_ratio_arithmetic","origin":"ai","part":0,"phrase":"rec-cl-finite-ratio","plain":"Combining the bounds gives a finite quotient inequality","record":null,"relation":"states","role":"statement","rows":[{"end_line":277,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean proves the algebra for arbitrary real lower exponent $s$, coefficient $c$, nonnegative $q$, and scale $W\\ge 1$. The displayed statement specializes $c=1/400$, $s=2-1/k$, and $W=\\log_2 m$.","fidelity_source":"ai","line":234,"lines":[234,240],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_ratio_arithmetic","note":"","plain":"Combining the bounds gives a finite quotient inequality","proof_lines":[241,277],"relation":"states","annotation":"Lean proves the algebra for arbitrary real lower exponent $s$, coefficient $c$, nonnegative $q$, and scale $W\\ge 1$. The displayed statement specializes $c=1/400$, $s=2-1/k$, and $W=\\log_2 m$."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-7","at":"b86705-86828","from_record":false,"lean":true,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","origin":"ai","part":0,"phrase":"rec-cl-power-beats-log","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","record":null,"relation":"contains","role":"statement","rows":[{"end_line":410,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":372,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","note":"","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","proof_lines":[387,410],"relation":"contains","annotation":"For the explicit circuit family at fixed $k=l+1\\ge2$, the ratio $R(F)/(1+Q(F))^\\alpha$ tends to infinity whenever $0\\le\\alpha<4-2/k$. The hypotheses `hα` and `hs` give the nonnegative proposed power and the strict exponent gap."},{"end_line":312,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem proves divergence of the scalar lower bound $d\\, m^\\delta/(\\log_2 m)^e$. It does not itself state divergence of the query-complexity quotient; `classical_Fkm_ratio` supplies that conclusion.","fidelity_source":"ai","line":281,"lines":[281,283],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_power_log_tendsto","note":"","plain":"A positive power outruns every fixed logarithmic power","proof_lines":[284,312],"relation":"part","annotation":"This theorem proves divergence of the scalar lower bound $d\\, m^\\delta/(\\log_2 m)^e$. It does not itself state divergence of the query-complexity quotient. `classical_Fkm_ratio` supplies that conclusion. The premises `hd` and `hδ` require strictly positive coefficient and power gap."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-7","at":"b87113-87149","from_record":false,"lean":true,"lines":[160,161],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.exists_nat_exponent","origin":"ai","part":0,"phrase":"rec-cl-choose-fixed-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 only assumes $\\alpha<4$, while the surrounding section fixes $0\\le\\alpha<4$.","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 only assumes $\\alpha<4$, while the surrounding section fixes $0\\le\\alpha<4$."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-7","at":"b87291-87397","from_record":false,"lean":true,"lines":[42,44],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.cubic_bound_fails_unconditional","origin":"ai","part":0,"phrase":"rec-cl-cubic-refuted","plain":"No universal cubic bound relates randomized and quantum queries","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 bound relates randomized and quantum queries","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 nonempty finite cube."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-7","at":"b87807-87877","from_record":false,"lean":true,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","origin":"ai","part":0,"phrase":"rec-cl-ratio-eventually-exceeds-constant","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","record":null,"relation":"contains","role":"derivation","rows":[{"end_line":410,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":372,"lines":[372,386],"module":"QuarticQuery.Paper.ClassicalAsymptotics","name":"QuarticQuery.Paper.classical_Fkm_ratio","note":"","plain":"R/(1+Q)^α diverges for fixed k and 0≤α<4−2/k","proof_lines":[387,410],"relation":"contains","annotation":"For the explicit circuit family at fixed $k=l+1\\ge2$, the ratio $R(F)/(1+Q(F))^\\alpha$ tends to infinity whenever $0\\le\\alpha<4-2/k$. The hypotheses `hα` and `hs` give the nonnegative proposed power and the strict exponent gap."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-7","at":"b88562-88587","from_record":false,"lean":true,"lines":[18,18],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.alphaTot_eq_four_unconditional","origin":"ai","part":0,"phrase":"rec-cl-exponent-four","plain":"The optimal universal exponent is four","record":null,"relation":"states","role":"statement","rows":[{"end_line":19,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":18,"lines":[18,18],"module":"QuarticQuery.Results.Unconditional","name":"QuarticQuery.alphaTot_eq_four_unconditional","note":"","plain":"The optimal universal exponent is four","proof_lines":[19,19],"relation":"states","annotation":"Once `ForrelationLower.bansalSinhaLower` is available, the conditional separation gives the lower inequality for `alphaTot` and the universal comparison gives the upper inequality."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-8","at":"b91374-91490","from_record":false,"lean":true,"lines":[134,135],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.W","origin":"ai","part":0,"phrase":"fr-walsh-objects","plain":"Unnormalized Walsh matrix","record":null,"relation":"defines","role":"definition","rows":[{"end_line":135,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This definition supplies the unnormalized matrix $W$; the selected sentence defines four objects. The other three objects have separate definition links.","fidelity_source":"ai","line":134,"lines":[134,135],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.W","note":"","plain":"Unnormalized Walsh matrix","relation":"defines","annotation":"`W` casts each integer Walsh sign to a real. Its two indices range over `Fin (mValue t)` and the normalization is applied later in `H`."},{"end_line":140,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This definition supplies the normalized matrix $H$; the selected sentence defines four objects. The other three objects have separate definition links.","fidelity_source":"ai","line":139,"lines":[139,140],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.H","note":"","plain":"Normalized Walsh matrix","relation":"defines","annotation":"`H` scales `W` by the reciprocal of $2^t$, which is $1/\\sqrt m$ for $m=4^t$. The orthogonality proof uses that normalization."},{"end_line":88,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This definition supplies the uniform vector $u$; the selected sentence defines four objects. The other three objects have separate definition links.","fidelity_source":"ai","line":88,"lines":[88,88],"module":"QuarticQuery.Forrelation.Product","name":"QuarticQuery.Forrelation.u","note":"","plain":"Uniform unit vector","relation":"defines","annotation":"`u` is a constant function on `Fin (mValue t)`, with every coordinate set to the reciprocal of $2^t$. Its squared norm sums $4^t$ equal terms."},{"end_line":93,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This definition supplies the sign diagonal $D_z$; the selected sentence defines four objects. The other three objects have separate definition links.","fidelity_source":"ai","line":91,"lines":[91,93],"module":"QuarticQuery.Forrelation.Product","name":"QuarticQuery.Forrelation.signDiag","note":"","plain":"Diagonal matrix of one sign block","relation":"defines","annotation":"`signDiag z h` converts the Boolean entries of block `h : Fin k` to real signs on the diagonal. Multiplying by the matrix applies the signs without mixing coordinates."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-8","at":"b91492-91531","from_record":false,"lean":true,"lines":[210,211],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.H_mem_orthogonalGroup","origin":"ai","part":0,"phrase":"fr-walsh-orthogonal","plain":"The normalized Walsh matrix is orthogonal","record":null,"relation":"states","role":"statement","rows":[{"end_line":212,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":210,"lines":[210,211],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.H_mem_orthogonalGroup","note":"","plain":"The normalized Walsh matrix is orthogonal","proof_lines":[212,212],"relation":"states","annotation":"The normalized Walsh matrix belongs to the real orthogonal group in dimension $m=4^t$. The type states membership in `Matrix.orthogonalGroup`. This is the usual matrix identity $H^{\\mathsf T}H=I$."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-8","at":"b91926-92032","from_record":false,"lean":true,"lines":[180,181],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.W_mul_transpose","origin":"ai","part":0,"phrase":"fr-normalization-identities","plain":"Walsh rows have orthogonal sign patterns","record":null,"relation":"part","role":"statement","rows":[{"end_line":191,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration supplies only $WW^\\top=mI$. The complete selected display also asserts the other matrix and vector normalization identities, which are separate declarations.","fidelity_source":"ai","line":180,"lines":[180,181],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.W_mul_transpose","note":"The first matrix identity.","plain":"Walsh rows have orthogonal sign patterns","proof_lines":[182,191],"relation":"part","annotation":"This declaration supplies only $WW^\\top=mI$. The complete selected display also asserts the other matrix and vector normalization identities, which are separate declarations."},{"end_line":194,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration supplies only $H^\\top=H$. The complete selected display also asserts the other matrix and vector normalization identities, which are separate declarations.","fidelity_source":"ai","line":193,"lines":[193,193],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.H_transpose","note":"Symmetry of the normalized transform.","plain":"The normalized Walsh matrix is symmetric","proof_lines":[194,194],"relation":"part","annotation":"This declaration supplies only $H^\\top=H$. The complete selected display also asserts the other matrix and vector normalization identities, which are separate declarations."},{"end_line":207,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration supplies only $H^2=I$. The complete selected display also asserts the other matrix and vector normalization identities, which are separate declarations.","fidelity_source":"ai","line":200,"lines":[200,200],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.H_mul_H","note":"The square of the transform.","plain":"Two Walsh transforms give the identity","proof_lines":[201,207],"relation":"part","annotation":"This declaration supplies only $H^2=I$. The complete selected display also asserts the other matrix and vector normalization identities, which are separate declarations."},{"end_line":246,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration supplies only $\\|u\\|_2=1$, expressed as $u\\cdot u=1$. The complete selected display also asserts the other matrix and vector normalization identities, which are separate declarations.","fidelity_source":"ai","line":242,"lines":[242,242],"module":"QuarticQuery.Forrelation.Product","name":"QuarticQuery.Forrelation.u_dot_self","note":"Unit norm, stated as squared norm one.","plain":"The uniform vector has unit norm","proof_lines":[243,246],"relation":"part","annotation":"This declaration supplies only $\\|u\\|_2=1$, expressed as $u\\cdot u=1$. The complete selected display also asserts the other matrix and vector normalization identities, which are separate declarations."},{"end_line":236,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration supplies only $D_z^\\top D_z=I$. The complete selected display also asserts the other matrix and vector normalization identities, which are separate declarations.","fidelity_source":"ai","line":229,"lines":[229,230],"module":"QuarticQuery.Forrelation.Product","name":"QuarticQuery.Forrelation.isOrth_signDiag","note":"Orthogonality of each sign diagonal.","plain":"Sign diagonals preserve Euclidean norm","proof_lines":[231,236],"relation":"part","annotation":"This declaration supplies only $D_z^\\top D_z=I$. The complete selected display also asserts the other matrix and vector normalization identities, which are separate declarations."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-8","at":"b92327-92416","from_record":false,"lean":true,"lines":[158,160],"module":"QuarticQuery.Forrelation.Product","name":"QuarticQuery.Forrelation.Phi_eq_matrix_product","origin":"ai","part":0,"phrase":"fr-forrelation-overlap","plain":"Forrelation equals the alternating matrix overlap","record":null,"relation":"part","role":"definition","rows":[{"end_line":183,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states the matrix-overlap identity for $\\Phi$ under $k\\ge 1$. The selected display also defines $\\delta=32^{-k}$; that threshold is supplied by the separate `delta` definition.","fidelity_source":"ai","line":158,"lines":[158,160],"module":"QuarticQuery.Forrelation.Product","name":"QuarticQuery.Forrelation.Phi_eq_matrix_product","note":"The identity defining the matrix overlap.","plain":"Forrelation equals the alternating matrix overlap","proof_lines":[161,183],"relation":"part","annotation":"The theorem states the matrix-overlap identity for $\\Phi$ under $k\\ge 1$. The selected display also defines $\\delta=32^{-k}$. That threshold is supplied by the separate `delta` definition. Lean packages the diagonal list using `List.ofFn` and alternates it with $H$."},{"end_line":18,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This definition gives $\\delta=2^{-5k}=32^{-k}$. It does not state the matrix identity for $\\Phi$ that occupies the other half of the selected display.","fidelity_source":"ai","line":18,"lines":[18,18],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.delta","note":"The promise threshold in the same display.","plain":"The Forrelation promise threshold δ=2⁻⁵ᵏ","relation":"defines","annotation":"This definition gives $\\delta=2^{-5k}=32^{-k}$. It does not state the matrix identity for $\\Phi$ that occupies the other half of the selected display. The promise threshold in the same display."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-8","at":"b92471-92554","from_record":false,"lean":true,"lines":[95,100],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.P_eq_cases","origin":"ai","part":0,"phrase":"fr-promise-classes","plain":"The two promise classes and the undefined region","record":null,"relation":"contains","role":"statement","rows":[{"end_line":104,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The paper names only the two promised preimages. `P_eq_cases` additionally states that every remaining input has output `none`.","fidelity_source":"ai","line":95,"lines":[95,100],"module":"QuarticQuery.Forrelation.Promise","name":"QuarticQuery.Forrelation.P_eq_cases","note":"","plain":"The two promise classes and the undefined region","proof_lines":[101,104],"relation":"contains","annotation":"The paper names only the two promised preimages. `P_eq_cases` additionally states that every remaining input has output `none`."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-8","at":"b92744-92854","from_record":false,"lean":true,"lines":[525,525],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.bansalSinhaLower","origin":"ai","part":0,"phrase":"fr-fixed-order-hardness","plain":"For fixed k≥2, Forrelation eventually needs more than L randomized queries","record":null,"relation":"states","role":"statement","rows":[{"end_line":562,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":525,"lines":[525,525],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.bansalSinhaLower","note":"","plain":"For fixed k≥2, Forrelation eventually needs more than L randomized queries","proof_lines":[526,562],"relation":"states","annotation":"For every fixed $k\\ge2$, there is a threshold $t_0$ such that $L_{k,4^t}<R(P_{k,4^t})$ for every $t\\ge t_0$. The conclusion is the proposition `BansalSinhaLower`, whose definition contains these quantifiers."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b92991-93047","from_record":false,"lean":true,"lines":[644,645],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.lvalue_lt_R_explicit","origin":"ai","part":0,"phrase":"fr-explicit-threshold-scope","plain":"Forrelation needs more than L queries when k≥2 and t≥3499200k²","record":null,"relation":"states","role":"statement","rows":[{"end_line":677,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The paper gives $t_0(k)=13669k^2$. The named theorem instead assumes `ht : 3499200 * k ^ 2 ≤ t`. It proves the desired floor conclusion only above that larger sufficient threshold; the sharp uniform supplier is linked separately.","fidelity_source":"ai","line":644,"lines":[644,645],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.lvalue_lt_R_explicit","note":"","plain":"Forrelation needs more than L queries when k≥2 and t≥3499200k²","proof_lines":[646,677],"relation":"states","annotation":"The paper gives $t_0(k)=13669k^2$. The named theorem instead assumes `ht : 3499200 * k ^ 2 ≤ t`. It proves the desired floor conclusion only above that larger sufficient threshold. The sharp uniform supplier is linked separately."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b93361-93421","from_record":false,"lean":true,"lines":[527,532],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.forrelation_lower_uniform_sharp","origin":"ai","part":0,"phrase":"fr-uniform-hardness","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":"For $k\\ge2$ and $15k+2\\le2t$, the randomized query complexity exceeds $\\frac{2}{18225}\\frac{m^{1-1/k}}{k^2\\ln(4km)}$, where $m=4^t$. The binders `hk` and `ht` state these two conditions."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b95261-95369","from_record":false,"lean":true,"lines":[54,54],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.ext","origin":"ai","part":0,"phrase":"fr-multilinear-extension","plain":"Multilinear extension as a product-weighted sum","record":null,"relation":"defines","role":"definition","rows":[{"end_line":54,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":54,"lines":[54,54],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.ext","note":"","plain":"Multilinear extension as a product-weighted sum","relation":"defines","annotation":"The multilinear extension $F_g(\\mu)$ is the finite sum of $g(z)$ against independent sign weights $(1+\\mu_i z_i)/2$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b95371-95431","from_record":false,"lean":true,"lines":[61,61],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.bw_nonneg","origin":"ai","part":0,"phrase":"fr-probability-weights","plain":"Product sign weights are nonnegative","record":null,"relation":"part","role":"statement","rows":[{"end_line":62,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem gives nonnegative weights when every $|\\mu_i|\\le 1$. The selected phrase also says that their sum is one; that separate claim is supplied by `sum_bw`.","fidelity_source":"ai","line":61,"lines":[61,61],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.bw_nonneg","note":"Nonnegativity needs the bias box.","plain":"Product sign weights are nonnegative","proof_lines":[62,62],"relation":"part","annotation":"The theorem gives nonnegative weights when every $|\\mu_i|\\le 1$. The selected phrase also says that their sum is one. That separate claim is supplied by `sum_bw`. The hypothesis `h : ∀ a, |μ a| ≤ 1` supplies this restriction coordinate by coordinate."},{"end_line":71,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states that the weights sum to one, even for arbitrary real biases. It does not establish the nonnegativity also asserted by the selected phrase.","fidelity_source":"ai","line":65,"lines":[65,65],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.sum_bw","note":"","plain":"Product sign weights sum to one","proof_lines":[66,71],"relation":"part","annotation":"The theorem states that the weights sum to one, even for arbitrary real biases. It does not establish the nonnegativity also asserted by the selected phrase."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b95540-95567","from_record":false,"lean":true,"lines":[90,91],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.abs_ext_le","origin":"ai","part":0,"phrase":"fr-extension-bound","plain":"An expectation preserves a uniform absolute bound","record":null,"relation":"states","role":"statement","rows":[{"end_line":96,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The prose takes $B=\\max_z |g(z)|$. The theorem permits any real upper bound $B$ supplied by `hg`, with the same probability-box hypothesis `hμ`.","fidelity_source":"ai","line":90,"lines":[90,91],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.abs_ext_le","note":"","plain":"An expectation preserves a uniform absolute bound","proof_lines":[92,96],"relation":"states","annotation":"The prose takes $B=\\max_z |g(z)|$. The theorem permits any real upper bound $B$ supplied by `hg`, with the same probability-box hypothesis `hμ`."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b95569-95670","from_record":false,"lean":true,"lines":[328,329],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.ext_affine","origin":"ai","part":0,"phrase":"fr-coordinate-affinity","plain":"The extension is affine in each bias","record":null,"relation":"states","role":"statement","rows":[{"end_line":344,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The source statement gives the exact one-coordinate affine decomposition for arbitrary real $\\mu$. It does not separately assert that the full multivariate function is a polynomial, as the selected sentence also does.","fidelity_source":"ai","line":328,"lines":[328,329],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.ext_affine","note":"","plain":"The extension is affine in each bias","proof_lines":[330,344],"relation":"states","annotation":"The source statement gives the exact one-coordinate affine decomposition for arbitrary real $\\mu$. It does not separately assert that the full multivariate function is a polynomial, as the selected sentence also does."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b95721-95793","from_record":false,"lean":true,"lines":[57,58],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.D","origin":"ai","part":0,"phrase":"fr-discrete-difference","plain":"Discrete derivative in one sign coordinate","record":null,"relation":"defines","role":"definition","rows":[{"end_line":58,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":57,"lines":[57,58],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.D","note":"","plain":"Discrete derivative in one sign coordinate","relation":"defines","annotation":"The discrete derivative in coordinate $a$ is half the difference between setting its sign to $+1$ and setting it to $-1$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b95920-96058","from_record":false,"lean":true,"lines":[221,223],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.hasDerivAt_ext","origin":"ai","part":0,"phrase":"fr-extension-derivative-identities","plain":"Chain rule for the multilinear extension","record":null,"relation":"part","role":"statement","rows":[{"end_line":244,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem gives the chain rule for differentiable bias paths, yielding the first partial-derivative identity by a one-coordinate path. It does not state the repeated-derivative zero identity or commutation of distinct partials in the same selected display.","fidelity_source":"ai","line":221,"lines":[221,223],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.hasDerivAt_ext","note":"The first equality by the one-coordinate chain-rule specialization.","plain":"Chain rule for the multilinear extension","proof_lines":[224,244],"relation":"part","annotation":"The theorem gives the chain rule for differentiable bias paths, yielding the first partial-derivative identity by a one-coordinate path. It does not state the repeated-derivative zero identity or commutation of distinct partials in the same selected display. The assumption `hc` gives the derivative of each coordinate path at the chosen point."},{"end_line":249,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states that the repeated same-coordinate discrete derivative is zero. Combined with the extension derivative identity this supplies the second clause, but it does not state the first clause or the commutation clause.","fidelity_source":"ai","line":247,"lines":[247,247],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.D_D","note":"The vanishing same-coordinate second derivative.","plain":"Repeated differentiation in one coordinate gives zero","proof_lines":[248,249],"relation":"part","annotation":"The theorem states that the repeated same-coordinate discrete derivative is zero. Combined with the extension derivative identity this supplies the second clause, but it does not state the first clause or the commutation clause."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b96486-96531","from_record":false,"lean":true,"lines":[260,260],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.xi","origin":"ai","part":0,"phrase":"fr-centered-character","plain":"Centered character for a biased sign","record":null,"relation":"defines","role":"definition","rows":[{"end_line":260,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":260,"lines":[260,260],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.xi","note":"","plain":"Centered character for a biased sign","relation":"defines","annotation":"The centered character is $\\xi_i(z_i)=(z_i-\\mu_i)/(1-\\mu_i^2)$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b96562-96615","from_record":false,"lean":true,"lines":[263,264],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.piB_mul_xi","origin":"ai","part":0,"phrase":"fr-character-cancellation","plain":"A sign weight cancels its centered denominator","record":null,"relation":"states","role":"statement","rows":[{"end_line":270,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":263,"lines":[263,264],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.piB_mul_xi","note":"","plain":"A sign weight cancels its centered denominator","proof_lines":[265,270],"relation":"states","annotation":"For $|\\mu_i|<1$, multiplying the sign probability $(1+\\mu_i z_i)/2$ by its centered character gives $z_i/2$. The binder `h` excludes zero denominator at the two endpoint biases."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b96676-96857","from_record":false,"lean":true,"lines":[690,692],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.ext_Dl","origin":"ai","part":0,"phrase":"fr-derivative-moment","plain":"Mixed derivatives are moments of centered characters","record":null,"relation":"part","role":"statement","rows":[{"end_line":715,"exact_lines":true,"fidelity":"weaker","fidelity_note":"Under distinct derivative coordinates and $|\\mu_i|<1$, the theorem gives the mixed-derivative expectation identity. It does not state the separate centering or magnitude-two assertions in the selected display.","fidelity_source":"ai","line":690,"lines":[690,692],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.ext_Dl","note":"The mixed-derivative expectation for distinct coordinates.","plain":"Mixed derivatives are moments of centered characters","proof_lines":[693,715],"relation":"part","annotation":"Under distinct derivative coordinates and $|\\mu_i|<1$, the theorem gives the mixed-derivative expectation identity. It does not state the separate centering or magnitude-two assertions in the selected display. The hypotheses `hL : L.Nodup` and `hμ` require no repeated coordinate and $|\\mu_i|<1$."},{"end_line":734,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The paper introduces centering under $|\\mu_i|<1$. The named centering lemma assumes `hμ : ∀ a, |μ a| ≤ 1/2`, the narrower bias range used later.","fidelity_source":"ai","line":729,"lines":[729,730],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.xi_mean","note":"","plain":"A centered biased character has mean zero","proof_lines":[731,734],"relation":"part","annotation":"The paper introduces centering under $|\\mu_i|<1$. The named centering lemma assumes `hμ : ∀ a, |μ a| ≤ 1/2`, the narrower bias range used later."},{"end_line":726,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem proves only $|\\xi_i|\\le 2$ under $|\\mu_i|\\le 1/2$. It does not give either the mixed-derivative identity or the centering identity in the selected display.","fidelity_source":"ai","line":718,"lines":[718,718],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.abs_xi_le","note":"The bound two in the narrower bias box.","plain":"Centered biased characters are bounded by two","proof_lines":[719,726],"relation":"part","annotation":"The theorem proves only $|\\xi_i|\\le 2$ under $|\\mu_i|\\le 1/2$. It does not give either the mixed-derivative identity or the centering identity in the selected display."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b98096-98202","from_record":false,"lean":true,"lines":[22,22],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.qf","origin":"ai","part":0,"phrase":"fr-gaussian-functions","plain":"The Gaussian rounding denominator √(2+x²)","record":null,"relation":"defines","role":"definition","rows":[{"end_line":22,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This definition supplies $q(x)=\\sqrt{2+x^2}$. The selected display introduces three functions; the other definitions are separate links.","fidelity_source":"ai","line":22,"lines":[22,22],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.qf","note":"","plain":"The Gaussian rounding denominator √(2+x²)","relation":"defines","annotation":"`qf` computes `Real.sqrt (2 + x ^ 2)`. The radicand is at least two, so the shared denominator in `psiS` and `phiS` is positive."},{"end_line":24,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This definition supplies $\\Psi(x)=1/(2q(x))$. The selected display introduces three functions; the other definitions are separate links.","fidelity_source":"ai","line":24,"lines":[24,24],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.psiS","note":"","plain":"The Gaussian integration weight","relation":"defines","annotation":"`psiS` uses one power of `qf` in its denominator. This function is the weight on the derivative after Gaussian integration by parts (Equation (8.10)).","annotation_references":[{"start":133,"end":148,"key":"equation:8.10"}]},{"end_line":26,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This definition supplies $\\varphi(x)=x(3+x^2)/(2q(x)^3)$. The selected display introduces three functions; the other definitions are separate links.","fidelity_source":"ai","line":26,"lines":[26,26],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.phiS","note":"","plain":"Bounded algebraic rounding of a Gaussian","relation":"defines","annotation":"`phiS` is the real function used to convert a Gaussian coordinate to a sign bias. The bound in `abs_phiS_le` is what lets the subsequent construction use it as a bias."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b98227-98332","from_record":false,"lean":true,"lines":[76,76],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.hasDerivAt_phiS","origin":"ai","part":0,"phrase":"fr-gaussian-derivatives","plain":"Derivative of the Gaussian rounding function","record":null,"relation":"part","role":"statement","rows":[{"end_line":95,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states only $\\varphi'(x)=3/q(x)^5$. The selected display also states the derivative of $\\Psi$ and the identity $\\varphi=x\\Psi-\\Psi'$.","fidelity_source":"ai","line":76,"lines":[76,76],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.hasDerivAt_phiS","note":"Derivative of the rounding function.","plain":"Derivative of the Gaussian rounding function","proof_lines":[77,95],"relation":"part","annotation":"The conclusion is $\\varphi'(x)=3/q(x)^5$. The selected display also states the derivative of $\\Psi$ and the identity $\\varphi=x\\Psi-\\Psi'$."},{"end_line":73,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states only $\\Psi'(x)=-x/(2q(x)^3)$. The selected display also states the derivative of $\\varphi$ and the identity $\\varphi=x\\Psi-\\Psi'$.","fidelity_source":"ai","line":66,"lines":[66,66],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.hasDerivAt_psiS","note":"Derivative of the integration weight.","plain":"Derivative of the Gaussian integration weight","proof_lines":[67,73],"relation":"part","annotation":"The conclusion is $\\Psi'(x)=-x/(2q(x)^3)$. The selected display also states the derivative of $\\varphi$ and the identity $\\varphi=x\\Psi-\\Psi'$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b98334-98385","from_record":false,"lean":true,"lines":[113,113],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.phiS_neg","origin":"ai","part":0,"phrase":"fr-rounding-odd-bounded","plain":"Gaussian rounding is odd","record":null,"relation":"part","role":"statement","rows":[{"end_line":114,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives oddness, $\\varphi(-x)=-\\varphi(x)$. The selected phrase also asserts the bound $|\\varphi|\\le 1/2$, supplied by `abs_phiS_le`.","fidelity_source":"ai","line":113,"lines":[113,113],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.phiS_neg","note":"","plain":"Gaussian rounding is odd","proof_lines":[114,114],"relation":"part","annotation":"The type gives oddness, $\\varphi(-x)=-\\varphi(x)$. The selected phrase also asserts the bound $|\\varphi|\\le 1/2$, supplied by `abs_phiS_le`."},{"end_line":110,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives $|\\varphi(x)|\\le 1/2$. The selected phrase also asserts oddness, supplied by `phiS_neg`.","fidelity_source":"ai","line":98,"lines":[98,98],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.abs_phiS_le","note":"","plain":"Gaussian rounding stays within one half","proof_lines":[99,110],"relation":"part","annotation":"The type gives $|\\varphi(x)|\\le 1/2$. The selected phrase also asserts oddness, supplied by `phiS_neg`."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b98625-98714","from_record":false,"lean":true,"lines":[137,137],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.psi_dphi_le_sharp","origin":"ai","part":0,"phrase":"fr-sharp-edge-bound","plain":"One Gaussian edge contributes at most three sixteenths","record":null,"relation":"part","role":"statement","rows":[{"end_line":153,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states the upper inequality $\\Psi(x)\\varphi'(y)\\le 3/16$. The selected display additionally asserts strict positivity and an explicit product formula; those are not conjuncts of this theorem’s type.","fidelity_source":"ai","line":137,"lines":[137,137],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.psi_dphi_le_sharp","note":"The sharp upper inequality; the product formula and positivity come from the definitions and positivity lemmas.","plain":"One Gaussian edge contributes at most three sixteenths","proof_lines":[138,153],"relation":"part","annotation":"The theorem states the upper inequality $\\Psi(x)\\varphi'(y)\\le 3/16$. The selected display additionally asserts strict positivity and an explicit product formula. Those are not conjuncts of this theorem’s type."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b98716-98742","from_record":false,"lean":true,"lines":[156,156],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.psi_dphi_eq_sharp_at_zero","origin":"ai","part":0,"phrase":"fr-sharp-edge-equality","plain":"The sharp Gaussian edge bound is attained at the origin","record":null,"relation":"states","role":"statement","rows":[{"end_line":164,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":156,"lines":[156,156],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.psi_dphi_eq_sharp_at_zero","note":"","plain":"The sharp Gaussian edge bound is attained at the origin","proof_lines":[157,164],"relation":"states","annotation":"At $x=y=0$, the product $\\Psi(x)\\varphi'(y)$ is exactly $3/16$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b99195-99283","from_record":false,"lean":true,"lines":[167,169],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.stein_one","origin":"ai","part":0,"phrase":"fr-gaussian-integration-identity","plain":"Gaussian integration by parts with bounded rounding","record":null,"relation":"states","role":"statement","rows":[{"end_line":235,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":167,"lines":[167,169],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.stein_one","note":"","plain":"Gaussian integration by parts with bounded rounding","proof_lines":[170,235],"relation":"states","annotation":"Lean records continuity as `hg`, `hg'`, uniform bounds as `hb`, `hb'`, and the derivative identity as `hd`."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b99406-99495","from_record":false,"lean":true,"lines":[298,301],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.stein_pi","origin":"ai","part":0,"phrase":"fr-coordinate-gaussian-identity","plain":"Gaussian integration by parts in one coordinate","record":null,"relation":"states","role":"statement","rows":[{"end_line":324,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":298,"lines":[298,301],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.stein_pi","note":"","plain":"Gaussian integration by parts in one coordinate","proof_lines":[302,324],"relation":"states","annotation":"The same identity holds in a selected coordinate of a finite product of standard Gaussians. The functions $G$ and its coordinate derivative must be continuous and uniformly bounded, and `hd` identifies that derivative after replacing the chosen coordinate."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b99699-99783","from_record":false,"lean":true,"lines":[336,338],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.integral_reflect","origin":"ai","part":0,"phrase":"fr-gaussian-reflection","plain":"A unit-vector reflection preserves Gaussian expectations","record":null,"relation":"states","role":"statement","rows":[{"end_line":379,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":336,"lines":[336,338],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.integral_reflect","note":"","plain":"A unit-vector reflection preserves Gaussian expectations","proof_lines":[339,379],"relation":"states","annotation":"Reflecting a standard Gaussian vector across a unit direction preserves the integral of every measurable real test function. The binder `he` states $\\sum_i e_i^2=1$, and `hF` gives measurability."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b99936-99998","from_record":false,"lean":true,"lines":[401,402],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.integral_dot_sq","origin":"ai","part":0,"phrase":"fr-gaussian-projection-moment","plain":"A unit Gaussian projection has second moment one","record":null,"relation":"states","role":"statement","rows":[{"end_line":421,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":401,"lines":[401,402],"module":"QuarticQuery.ForrelationLower.Stein","name":"QuarticQuery.ForrelationLower.integral_dot_sq","note":"","plain":"A unit Gaussian projection has second moment one","proof_lines":[403,421],"relation":"states","annotation":"If $\\sum_i e_i^2=1$, then the second moment of $\\langle e,U\\rangle$ under the product standard Gaussian law is one. The binder `he` supplies the unit-length condition."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b101043-101158","from_record":false,"lean":true,"lines":[51,52],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.wv","origin":"ai","part":0,"phrase":"fr-interpolated-bias","plain":"Bias vector along the Gaussian interpolation","record":null,"relation":"defines","role":"definition","rows":[{"end_line":52,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":51,"lines":[51,52],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.wv","note":"","plain":"Bias vector along the Gaussian interpolation","relation":"defines","annotation":"The bias in each sign block is the product of the adjoining rounded Gaussian factors. Its parameter `l` counts links: the paper has $k=l+1$ sign blocks."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b101631-101733","from_record":false,"lean":true,"lines":[152,153],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.abs_wv_le_half","origin":"ai","part":0,"phrase":"fr-bias-range","plain":"Every interpolated bias stays within one half","record":null,"relation":"part","role":"statement","rows":[{"end_line":169,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The selected sentence distinguishes endpoint $|w|\\le 1/2$ and interior $|w|\\le 1/4$. The theorem proves $|w|\\le 1/2$ for every coordinate under $l\\ge 1$ and $|s|\\le 1$; it does not state the sharper interior bound.","fidelity_source":"ai","line":152,"lines":[152,153],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.abs_wv_le_half","note":"","plain":"Every interpolated bias stays within one half","proof_lines":[154,169],"relation":"part","annotation":"The selected sentence distinguishes endpoint $|w|\\le 1/2$ and interior $|w|\\le 1/4$. The theorem proves $|w|\\le 1/2$ for every coordinate under $l\\ge 1$ and $|s|\\le 1$. It does not state the sharper interior bound."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b103423-103478","from_record":false,"lean":true,"lines":[256,257],"module":"QuarticQuery.ForrelationLower.Cascade","name":"QuarticQuery.ForrelationLower.integral_ext_wv_zero","origin":"ai","part":0,"phrase":"fr-uniform-endpoint","plain":"The zero endpoint has the uniform sign law","record":null,"relation":"states","role":"statement","rows":[{"end_line":286,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The paper uses the normalized Walsh matrix. The theorem proves the same test-function identity for every matrix $H$ with orthonormal rows, under `hH : RowsOrth H`.","fidelity_source":"ai","line":256,"lines":[256,257],"module":"QuarticQuery.ForrelationLower.Cascade","name":"QuarticQuery.ForrelationLower.integral_ext_wv_zero","note":"","plain":"The zero endpoint has the uniform sign law","proof_lines":[258,286],"relation":"states","annotation":"The hypothesis `hH : RowsOrth H` lets the identity use any matrix with orthonormal rows. The normalized Walsh matrix in the passage is one such choice of $H$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b104748-104840","from_record":false,"lean":true,"lines":[436,438],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.hasDerivAt_ext_s","origin":"ai","part":0,"phrase":"fr-interpolation-derivative","plain":"Differentiate the first-block interpolation before averaging","record":null,"relation":"part","role":"statement","rows":[{"end_line":458,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem differentiates $F_g(w_s(U))$ for fixed $U$. Equation (8.15) differentiates its Gaussian average. The latter interchange is proved separately inside `exists_identity` for $0<s<1$.","fidelity_source":"ai","line":436,"lines":[436,438],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.hasDerivAt_ext_s","note":"","plain":"Differentiate the first-block interpolation before averaging","proof_lines":[439,458],"relation":"part","annotation":"This theorem differentiates $F_g(w_s(U))$ for fixed $U$. Equation (8.15) differentiates its Gaussian average. The latter interchange is proved separately inside `exists_identity` for $0<s<1$. The hypothesis `hl : 0 < l` requires at least two sign blocks.","annotation_references":[{"start":57,"end":72,"key":"equation:8.15"}]},{"end_line":519,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The selected proof slice establishes the averaged derivative for $0<s<1$ using a dominated derivative bound. It does not export the polynomial-in-$s$ claim or the endpoint derivative formula.","fidelity_source":"ai","line":461,"lines":[481,515],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.exists_identity","note":"The local derivative-under-the-integral step.","plain":"One interior interpolation point gives the difference of the two expectations","proof_lines":[465,519],"relation":"proof","annotation":"The selected proof slice establishes the averaged derivative for $0<s<1$ using a dominated derivative bound. It does not export the polynomial-in-$s$ claim or the endpoint derivative formula."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b105681-105787","from_record":false,"lean":true,"lines":[247,247],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.D_D","origin":"ai","part":0,"phrase":"fr-chain-second-derivative-zero","plain":"Repeated differentiation in one coordinate gives zero","record":null,"relation":"states","role":"statement","rows":[{"end_line":249,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":247,"lines":[247,247],"module":"QuarticQuery.ForrelationLower.Cube","name":"QuarticQuery.ForrelationLower.D_D","note":"","plain":"Repeated differentiation in one coordinate gives zero","proof_lines":[248,249],"relation":"states","annotation":"Taking the discrete derivative twice in the same coordinate gives the zero function."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b106913-107074","from_record":false,"lean":true,"lines":[272,275],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.sum_dw_eq","origin":"ai","part":0,"phrase":"fr-three-block-chain-rule","plain":"The chain rule leaves only the next block","record":null,"relation":"part","role":"derivation","rows":[{"end_line":312,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem is the algebraic bias-chain sum after assuming `hE : E (cn j a)=0`; it does not itself assert that $E$ is this mixed derivative or state the full $k=3$ derivative formula. `hasDerivAt_ext` and `D_D` supply those additional steps.","fidelity_source":"ai","line":272,"lines":[272,275],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.sum_dw_eq","note":"","plain":"The chain rule leaves only the next block","proof_lines":[276,312],"relation":"part","annotation":"The theorem is the algebraic bias-chain sum after assuming `hE : E (cn j a)=0`. It does not itself assert that $E$ is this mixed derivative or state the full $k=3$ derivative formula. `hasDerivAt_ext` and `D_D` supply those additional steps. The binder `hE` supplies that vanishing coefficient, and `hj` requires an existing Gaussian layer."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b107807-107893","from_record":false,"lean":true,"lines":[317,318],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.EarlyOnly","origin":"ai","part":0,"phrase":"fr-earlier-layer-coefficient","plain":"A coefficient depends only on earlier Gaussian layers","record":null,"relation":"defines","role":"explanation","rows":[{"end_line":318,"exact_lines":true,"fidelity":"weaker","fidelity_note":"EarlyOnly defines the condition that a coefficient ignores the current and later Gaussian layers. It does not prove that the particular accumulated coefficient in this sentence satisfies that condition; the iteration proof supplies that verification.","fidelity_source":"ai","line":317,"lines":[317,318],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.EarlyOnly","note":"","plain":"A coefficient depends only on earlier Gaussian layers","relation":"defines","annotation":"`EarlyOnly` defines independence from the current and later Gaussian layers as invariance under replacing those coordinates. The iteration proof verifies the condition for its accumulated coefficient."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b109498-109696","from_record":false,"lean":true,"lines":[364,367],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.integral_walk","origin":"ai","part":0,"phrase":"fr-iterated-gaussian-identity","plain":"Iterate integration by parts through the remaining blocks","record":null,"relation":"part","role":"statement","rows":[{"end_line":431,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem replaces a remaining rounded factor under the integral by `Int`, assuming a continuous bounded coefficient that satisfies `EarlyOnly`. It is one induction ingredient, not the full derivative-of-$h_g$ path formula.","fidelity_source":"ai","line":364,"lines":[364,367],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.integral_walk","note":"","plain":"Iterate integration by parts through the remaining blocks","proof_lines":[368,431],"relation":"part","annotation":"The theorem replaces a remaining rounded factor under the integral by `Int`, assuming a continuous bounded coefficient that satisfies `EarlyOnly`. It is one induction ingredient, not the full derivative-of-$h_g$ path formula. The coefficient must be continuous and bounded, and `EarlyOnly j θ` requires it to ignore the current and later Gaussian layers."},{"end_line":553,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem expands `Int` as a finite path sum for arbitrary $s$. It has no derivative or Gaussian-average conclusion; those come from the separate analytic identity.","fidelity_source":"ai","line":541,"lines":[541,543],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.Int_eq_paths","note":"","plain":"Expand the iterated Gaussian expression into paths","proof_lines":[544,553],"relation":"part","annotation":"The theorem expands `Int` as a finite path sum for arbitrary $s$. The separate analytic identity supplies the derivative and Gaussian average."},{"end_line":519,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This proof slice identifies the averaged derivative with the iterated Gaussian sum only for $s\\in(0,1)$. The paper’s display is asserted for every $s\\in[0,1]$, including both endpoints.","fidelity_source":"ai","line":461,"lines":[481,515],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.exists_identity","note":"","plain":"One interior interpolation point gives the difference of the two expectations","proof_lines":[465,519],"relation":"proof","annotation":"The theorem gives the averaged derivative for $s\\in(0,1)$. The paper’s display includes the endpoints $s=0$ and $s=1$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b110254-110324","from_record":false,"lean":true,"lines":[516,519],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.exists_identity","origin":"ai","part":0,"phrase":"fr-common-mean-value-point","plain":"One interior interpolation point gives the difference of the two expectations","record":null,"relation":"proof","role":"statement","rows":[{"end_line":519,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":461,"lines":[516,519],"module":"QuarticQuery.ForrelationLower.Walk","name":"QuarticQuery.ForrelationLower.exists_identity","note":"","plain":"One interior interpolation point gives the difference of the two expectations","proof_lines":[465,519],"relation":"proof","annotation":"For any test function and at least one Gaussian link, one common $s\\in(0,1)$ expresses the difference of endpoint expectations as the sum of the fully expanded integrals at that $s$. Lean uses `Int` for the iterated Gaussian expression."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b110925-111049","from_record":false,"lean":true,"lines":[183,184],"module":"QuarticQuery.Statement","name":"QuarticQuery.Phi","origin":"ai","part":0,"phrase":"fr-forrelation-path-expansion","plain":"Forrelation as a normalized integer correlation","record":null,"relation":"defines","role":"definition","rows":[{"end_line":184,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":183,"lines":[183,184],"module":"QuarticQuery.Statement","name":"QuarticQuery.Phi","note":"","plain":"Forrelation as a normalized integer correlation","relation":"defines","annotation":"The real statistic is the integer path numerator divided by its integer normalization, with both integers cast to the reals."},{"end_line":177,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This definition gives the integer path sum with unnormalized Walsh signs. The selected display is the normalized real $\\Phi$ expansion; it additionally needs the denominator and the definition of $H$.","fidelity_source":"ai","line":172,"lines":[172,177],"module":"QuarticQuery.Statement","name":"QuarticQuery.forrelationNumerator","note":"","plain":"The integer path sum defining Forrelation","relation":"part","annotation":"This definition gives the integer path sum with unnormalized Walsh signs. The selected display is the normalized real $\\Phi$ expansion. It additionally needs the denominator and the definition of $H$."},{"end_line":181,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This definition gives only the normalization $m(\\sqrt{m})^{k-1}$. The selected display also contains the path numerator and its real correlation, which are separate definitions.","fidelity_source":"ai","line":180,"lines":[180,181],"module":"QuarticQuery.Statement","name":"QuarticQuery.forrelationDenominator","note":"","plain":"The Forrelation denominator m(√m)ᵏ⁻¹","relation":"part","annotation":"This definition gives only the normalization $m(\\sqrt{m})^{k-1}$. The selected display also contains the path numerator and its real correlation, which are separate definitions."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b111589-111679","from_record":false,"lean":true,"lines":[559,559],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.ext_PhiF_zero","origin":"ai","part":0,"phrase":"fr-uniform-forrelation-moments","plain":"Forrelation has zero mean under uniform signs","record":null,"relation":"part","role":"statement","rows":[{"end_line":561,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives the uniform first moment zero. The selected display also gives the second moment $1/m$, which is a separate theorem.","fidelity_source":"ai","line":559,"lines":[559,559],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.ext_PhiF_zero","note":"","plain":"Forrelation has zero mean under uniform signs","proof_lines":[560,561],"relation":"part","annotation":"The type gives the uniform first moment zero. The selected display also gives the second moment $1/m$, which is a separate theorem. Lean uses `PhiF` for a real nested-sum form already identified with $\\Phi$."},{"end_line":574,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives the uniform second moment $1/m$. The selected display also gives the first moment zero, which is a separate theorem.","fidelity_source":"ai","line":564,"lines":[564,565],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.ext_PhiF_sq","note":"","plain":"Uniform Forrelation has second moment one over dimension","proof_lines":[566,574],"relation":"part","annotation":"The type gives the uniform second moment $1/m$. The selected display also gives the first moment zero, which is a separate theorem. Lean expresses the result as the reciprocal of $2^{2t}$ and uses `PhiF`, the real nested-sum form of the same statistic."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b112632-112770","from_record":false,"lean":true,"lines":[254,254],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.qf_le_exp","origin":"ai","part":0,"phrase":"fr-gaussian-edge-lower-estimates","plain":"An exponential upper bound for the Gaussian denominator","record":null,"relation":"part","role":"statement","rows":[{"end_line":268,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives the upper bound for $q(x)$. The selected display also gives the lower bound for $\\Psi(x)\\varphi'(y)$, supplied by a separate theorem.","fidelity_source":"ai","line":254,"lines":[254,254],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.qf_le_exp","note":"","plain":"An exponential upper bound for the Gaussian denominator","proof_lines":[255,268],"relation":"part","annotation":"The type gives the upper bound for $q(x)$. The selected display also gives the lower bound for $\\Psi(x)\\varphi'(y)$, supplied by a separate theorem."},{"end_line":304,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives the lower bound for $\\Psi(x)\\varphi'(y)$. It uses, but does not itself state, the separate $q(x)$ bound also printed in the selected display.","fidelity_source":"ai","line":271,"lines":[271,272],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.psi_dphi_ge","note":"","plain":"A Gaussian edge weight has an exponential lower bound","proof_lines":[273,304],"relation":"part","annotation":"The type gives the lower bound for $\\Psi(x)\\varphi'(y)$. It uses, but does not itself state, the separate $q(x)$ bound also printed in the selected display."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b113103-113246","from_record":false,"lean":true,"lines":[401,402],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.integral_Uc_sq","origin":"ai","part":0,"phrase":"fr-selected-gaussian-moments","plain":"Each Gaussian coordinate has second moment one","record":null,"relation":"part","role":"statement","rows":[{"end_line":404,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives the selected U-coordinate second moment. The phrase also asserts the V-coordinate second moment; that requires the separate transformed-coordinate theorem.","fidelity_source":"ai","line":401,"lines":[401,402],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.integral_Uc_sq","note":"","plain":"Each Gaussian coordinate has second moment one","proof_lines":[403,404],"relation":"part","annotation":"The type gives the selected $U$-coordinate second moment. The phrase also asserts the $V$-coordinate second moment. That requires the separate transformed-coordinate theorem. The condition `hj : j < l` ensures that $j$ is an actual Gaussian layer."},{"end_line":416,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives the selected V-coordinate second moment. The phrase also asserts the U-coordinate second moment, which has its own declaration.","fidelity_source":"ai","line":413,"lines":[413,414],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.integral_Vc_sq","note":"","plain":"Each Walsh-transformed Gaussian coordinate has second moment one","proof_lines":[415,416],"relation":"part","annotation":"The type gives the selected $V$-coordinate second moment. The phrase also asserts the $U$-coordinate second moment, which has its own declaration. The hypothesis `hj : j < l` rules out the padded coordinate convention outside the layers."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b113804-113887","from_record":false,"lean":true,"lines":[499,502],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.mass_ge","origin":"ai","part":0,"phrase":"fr-positive-forrelation-mean","plain":"The correlated signs give Forrelation a positive mean","record":null,"relation":"part","role":"statement","rows":[{"end_line":542,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem gives correlated mean minus uniform mean is at least $18^{-(k-1)}$. The selected display additionally identifies the uniform mean as zero and compares $18^{-(k-1)}$ with $32\\delta$; those are supplied by the other two links.","fidelity_source":"ai","line":499,"lines":[499,502],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.mass_ge","note":"The increase over the uniform mean is at least aₖ.","plain":"The correlated signs give Forrelation a positive mean","proof_lines":[503,542],"relation":"part","annotation":"The theorem gives correlated mean minus uniform mean is at least $18^{-(k-1)}$. The selected display additionally identifies the uniform mean as zero and compares $18^{-(k-1)}$ with $32\\delta$. Those are supplied by the other two links."},{"end_line":561,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem supplies only the zero uniform mean needed to turn `mass_ge` into an absolute correlated-mean bound. It does not state either inequality in the selected lower-mean chain.","fidelity_source":"ai","line":559,"lines":[559,559],"module":"QuarticQuery.ForrelationLower.Promise","name":"QuarticQuery.ForrelationLower.ext_PhiF_zero","note":"The uniform mean to subtract is zero.","plain":"Forrelation has zero mean under uniform signs","proof_lines":[560,561],"relation":"part","annotation":"The proof supplies only the zero uniform mean needed to turn `mass_ge` into an absolute correlated-mean bound. It does not state either inequality in the selected lower-mean chain. Lean uses `PhiF` for a real nested-sum form already identified with $\\Phi$."},{"end_line":76,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem gives the numerical inequality $32\\delta\\le 18^{-(k-1)}$. It does not state the correlated-distribution mean inequality in the selected display.","fidelity_source":"ai","line":67,"lines":[67,67],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.dl_le","note":"The numerical margin $a_k\\ge 32\\delta$.","plain":"The promise threshold is small relative to the hard mean","proof_lines":[68,76],"relation":"part","annotation":"The theorem gives the numerical inequality $32\\delta\\le 18^{-(k-1)}$. It does not state the correlated-distribution mean inequality in the selected display."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b116027-116127","from_record":false,"lean":true,"lines":[59,70],"module":"QuarticQuery.ForrelationLower.RealLeafExplicit","name":"QuarticQuery.ForrelationLower.sum_abs_ext_Dl_le_real_leaves_explicit","origin":"ai","part":0,"phrase":"fr-real-leaf-derivative-growth","plain":"Mixed derivative growth for bounded real-valued trees","record":null,"relation":"states","role":"statement","rows":[{"end_line":74,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":59,"lines":[59,70],"module":"QuarticQuery.ForrelationLower.RealLeafExplicit","name":"QuarticQuery.ForrelationLower.sum_abs_ext_Dl_le_real_leaves_explicit","note":"","plain":"Mixed derivative growth for bounded real-valued trees","proof_lines":[71,74],"relation":"states","annotation":"The lists representing derivative sets must be duplicate-free, all have length $k\\ge1$, and determine distinct sets (`hnd`, `hlen`, `hinj`)."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b116479-116555","from_record":false,"lean":true,"lines":[362,362],"module":"QuarticQuery.ForrelationLower.Cascade","name":"QuarticQuery.ForrelationLower.Lpath_inj","origin":"ai","part":0,"phrase":"fr-paths-have-distinct-coordinate-sets","plain":"A path is determined by its coordinate set","record":null,"relation":"states","role":"statement","rows":[{"end_line":381,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":362,"lines":[362,362],"module":"QuarticQuery.ForrelationLower.Cascade","name":"QuarticQuery.ForrelationLower.Lpath_inj","note":"","plain":"A path is determined by its coordinate set","proof_lines":[363,381],"relation":"states","annotation":"Two coordinate paths with the same set of visited block-coordinate pairs are equal."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b116803-116970","from_record":false,"lean":true,"lines":[76,86],"module":"QuarticQuery.ForrelationLower.RealLeafExplicit","name":"QuarticQuery.ForrelationLower.advantage_le_sharp_real_leaves_explicit","origin":"ai","part":0,"phrase":"fr-real-leaf-sharp-advantage","plain":"Sharp expectation-gap bound for bounded real-valued trees","record":null,"relation":"states","role":"statement","rows":[{"end_line":91,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The paper specializes to the Walsh matrix with $|H_{ab}|=m^{-1/2}$. The theorem allows any row-orthogonal $H$ with entry bound $\\varepsilon\\ge 0$ and uses $(3\\varepsilon/16)^{k-1}$; its real-leaf and depth hypotheses match the paper’s tree setting.","fidelity_source":"ai","line":76,"lines":[76,86],"module":"QuarticQuery.ForrelationLower.RealLeafExplicit","name":"QuarticQuery.ForrelationLower.advantage_le_sharp_real_leaves_explicit","note":"","plain":"Sharp expectation-gap bound for bounded real-valued trees","proof_lines":[87,91],"relation":"states","annotation":"The paper specializes to the Walsh matrix with $|H_{ab}|=m^{-1/2}$. The theorem allows any row-orthogonal $H$ with entry bound $\\varepsilon\\ge 0$ and uses $(3\\varepsilon/16)^{k-1}$. Its real-leaf and depth hypotheses match the paper’s tree setting. Here `hH` requires orthonormal matrix rows and `hHb` bounds each matrix entry by $\\varepsilon$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b119807-119902","from_record":false,"lean":true,"lines":[26,28],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.chaos","origin":"ai","part":0,"phrase":"fr-revealed-polynomial","plain":"Polynomial in the signs already revealed","record":null,"relation":"defines","role":"definition","rows":[{"end_line":28,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":26,"lines":[26,28],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.chaos","note":"","plain":"Polynomial in the signs already revealed","relation":"defines","annotation":"The degree-$r$ polynomial formed from all $r$-element subsets of the revealed coordinate set $Q$. Lean calls this finite sum `chaos`. It is the paper’s $Y_r^c(Q,z)$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b120035-120113","from_record":false,"lean":true,"lines":[38,41],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.chaos_insert","origin":"ai","part":0,"phrase":"fr-fresh-query-increment","plain":"One fresh query adds a contracted lower-degree polynomial","record":null,"relation":"states","role":"statement","rows":[{"end_line":57,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The paper assumes centered factors and bounded coefficients in this section. The insertion identity itself holds for arbitrary factors and coefficients; its essential hypothesis is only that $q$ is fresh.","fidelity_source":"ai","line":38,"lines":[38,41],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.chaos_insert","note":"","plain":"One fresh query adds a contracted lower-degree polynomial","proof_lines":[42,57],"relation":"states","annotation":"The paper assumes centered factors and bounded coefficients in this section. The insertion identity itself holds for arbitrary factors and coefficients. Its essential hypothesis is only that $q$ is fresh."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b121543-121704","from_record":false,"lean":true,"lines":[158,162],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.ext_prod_merge","origin":"ai","part":0,"phrase":"fr-unrevealed-coordinate-cancellation","plain":"An unrevealed centered coordinate kills a monomial expectation","record":null,"relation":"states","role":"statement","rows":[{"end_line":194,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":158,"lines":[158,162],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.ext_prod_merge","note":"","plain":"An unrevealed centered coordinate kills a monomial expectation","proof_lines":[163,194],"relation":"states","annotation":"The hypothesis `hm` gives mean zero separately for each coordinate function. Lean’s `merge` keeps the recorded answers on $Q$ and redraws the other coordinates under the product weights."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b121773-121854","from_record":false,"lean":true,"lines":[215,219],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.walk_chaos","origin":"ai","part":0,"phrase":"fr-leaf-pairing-identity","plain":"The tree output pairs only with revealed monomials","record":null,"relation":"states","role":"statement","rows":[{"end_line":227,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The paper allows an independent real value in $[-1,1]$ at every leaf. `walk_chaos` uses `T : QueryTree ι` with Boolean leaves and one postprocessing map `v : Bool → ℝ`. The full real-leaf endpoint growth theorem is separately linked at (8.28).","fidelity_source":"ai","line":215,"lines":[215,219],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.walk_chaos","note":"","plain":"The tree output pairs only with revealed monomials","proof_lines":[220,227],"relation":"states","annotation":"The paper allows an independent real value in $[-1,1]$ at every leaf. `walk_chaos` uses `T : QueryTree ι` with Boolean leaves and one postprocessing map `v : Bool → ℝ`. The full real-leaf endpoint growth theorem is separately linked at Equation (8.28). Lean uses a single map `v : Bool → ℝ` for the output.","annotation_references":[{"start":236,"end":251,"key":"equation:8.28"}]}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b122761-122859","from_record":false,"lean":true,"lines":[414,424],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.hit_azuma","origin":"ai","part":0,"phrase":"fr-maximal-inequality-scope","plain":"An exponential crossing bound along an adaptive query tree","record":null,"relation":"part","role":"statement","rows":[{"end_line":511,"exact_lines":true,"fidelity":"different","fidelity_note":"The paper quantifies over arbitrary zero-start martingales and gives a two-sided maximum bound with deterministic increment bound $B$. `hit_azuma` quantifies over a finite `QueryTree`, fixed product biases and the specific fresh-query increment identity `hY`; its conclusion is one-sided and adds the probability of a bad coefficient event.","fidelity_source":"ai","line":414,"lines":[414,424],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.hit_azuma","note":"","plain":"An exponential crossing bound along an adaptive query tree","proof_lines":[425,511],"relation":"part","annotation":"The operator `hit` measures a one-sided crossing along a finite query tree started from `Q` and `x`. The proof uses the product-bias increment identity `hY` and adds the mass of a crossing of the coefficient cutoff. Equation (8.33) states a two-sided bound for general martingales.","annotation_references":[{"start":216,"end":231,"key":"equation:8.33"}]}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b123384-123474","from_record":false,"lean":true,"lines":[514,520],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.hit_chaos_le","origin":"ai","part":0,"phrase":"fr-revealed-polynomial-crossing","plain":"Running revealed polynomials rarely exceed their degree bound","record":null,"relation":"states","role":"statement","rows":[{"end_line":598,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The paper uses centered factors bounded by 2 and $K^2=8d\\Lambda$. The theorem allows any factor bound $B_0>0$ with $K^2=2dB_0^2\\Lambda$, and specializes to the paper at $B_0=2$.","fidelity_source":"ai","line":514,"lines":[514,520],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.hit_chaos_le","note":"","plain":"Running revealed polynomials rarely exceed their degree bound","proof_lines":[521,598],"relation":"states","annotation":"The paper uses centered factors bounded by 2 and $K^2=8d\\Lambda$. The theorem allows any factor bound $B_0>0$ with $K^2=2dB_0^2\\Lambda$, and specializes to the paper at $B_0=2$. Lean’s recursive `hit` includes early leaves and repeated queries, so a fixed horizon is handled without extending the tree."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b125034-125088","from_record":false,"lean":true,"lines":[69,71],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.abs_chaos_le","origin":"ai","part":0,"phrase":"fr-crude-polynomial-bound","plain":"A crude absolute bound for the revealed polynomial","record":null,"relation":"states","role":"statement","rows":[{"end_line":92,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The paper uses factors bounded by 2 and a revealed set at a leaf. The theorem permits factors bounded by any $B\\ge 0$ and any revealed set, with bound $(nB)^r$.","fidelity_source":"ai","line":69,"lines":[69,71],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.abs_chaos_le","note":"","plain":"A crude absolute bound for the revealed polynomial","proof_lines":[72,92],"relation":"states","annotation":"The paper uses factors bounded by 2 and a revealed set at a leaf. The theorem permits factors bounded by any $B\\ge 0$ and any revealed set, with bound $(nB)^r$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b125247-125343","from_record":false,"lean":true,"lines":[658,665],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.abs_ext_tree_chaos_le","origin":"ai","part":0,"phrase":"fr-terminal-polynomial-moment","plain":"Bound the derivative moment by its usual and exceptional parts","record":null,"relation":"states","role":"statement","rows":[{"end_line":680,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The paper’s $g$ may have arbitrary real leaf labels. This intermediate theorem uses a Boolean `QueryTree` and a single bounded map `v : Bool → ℝ`. It also permits a general factor bound $B_0$, specialized to 2 here; the lost real-leaf generality is the reason for the weaker classification.","fidelity_source":"ai","line":658,"lines":[658,665],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.abs_ext_tree_chaos_le","note":"","plain":"Bound the derivative moment by its usual and exceptional parts","proof_lines":[666,680],"relation":"states","annotation":"The paper’s $g$ may have arbitrary real leaf labels. This intermediate theorem uses a Boolean `QueryTree` and a single bounded map `v : Bool → ℝ`. It also permits a general factor bound $B_0$, specialized to 2 here. The lost real-leaf generality is the reason for the weaker classification."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b125599-125643","from_record":false,"lean":true,"lines":[21,24],"module":"QuarticQuery.ForrelationLower.RealLeafExplicit","name":"QuarticQuery.ForrelationLower.real_leaf_residual","origin":"ai","part":0,"phrase":"fr-exact-residual","plain":"The derivative-growth remainder is exactly two to minus degree","record":null,"relation":"states","role":"statement","rows":[{"end_line":42,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":21,"lines":[21,24],"module":"QuarticQuery.ForrelationLower.RealLeafExplicit","name":"QuarticQuery.ForrelationLower.real_leaf_residual","note":"","plain":"The derivative-growth remainder is exactly two to minus degree","proof_lines":[25,42],"relation":"states","annotation":"For $n\\ge1$, substituting $\\Lambda=2r\\ln(4n)$ makes $(2n)^r(4n)^r e^{-\\Lambda}$ exactly $2^{-r}$. The hypothesis `hn` ensures the logarithm and reciprocal powers have positive arguments."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b127319-127400","from_record":false,"lean":true,"lines":[80,83],"module":"QuarticQuery.ForrelationLower.Amplify","name":"QuarticQuery.ForrelationLower.exists_amplified","origin":"ai","part":0,"phrase":"fr-majority-error","plain":"Majority reduces promise error with a fixed query cap","record":null,"relation":"contains","role":"statement","rows":[{"end_line":174,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":80,"lines":[80,83],"module":"QuarticQuery.ForrelationLower.Amplify","name":"QuarticQuery.ForrelationLower.exists_amplified","note":"","plain":"Majority reduces promise error with a fixed query cap","proof_lines":[84,174],"relation":"contains","annotation":"From an error-$1/3$ randomized algorithm of cap $L$, $2\\tau$ independent repetitions give a finite mixture of trees of depth at most $2\\tau L$ and promise error at most $(8/9)^\\tau$. The assumption `h : RLe f L` supplies the initial algorithm."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b127402-127483","from_record":false,"lean":true,"lines":[80,83],"module":"QuarticQuery.ForrelationLower.Amplify","name":"QuarticQuery.ForrelationLower.exists_amplified","origin":"ai","part":0,"phrase":"fr-amplified-cap","plain":"Majority reduces promise error with a fixed query cap","record":null,"relation":"contains","role":"statement","rows":[{"end_line":174,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":80,"lines":[80,83],"module":"QuarticQuery.ForrelationLower.Amplify","name":"QuarticQuery.ForrelationLower.exists_amplified","note":"","plain":"Majority reduces promise error with a fixed query cap","proof_lines":[84,174],"relation":"contains","annotation":"From an error-$1/3$ randomized algorithm of cap $L$, $2\\tau$ independent repetitions give a finite mixture of trees of depth at most $2\\tau L$ and promise error at most $(8/9)^\\tau$. The assumption `h : RLe f L` supplies the initial algorithm."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b127962-128063","from_record":false,"lean":true,"lines":[132,154],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.not_RLe_of_gap_sharp","origin":"ai","part":0,"phrase":"fr-off-promise-pointwise-comparison","plain":"A positive acceptance gap rules out a proposed query cap","record":null,"relation":"proof","role":"statement","rows":[{"end_line":218,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The paper quantifies over every acceptance function $A$ in $[0,1]$ with any promise error $\\varepsilon$ in $[0,1]$. The proof slice establishes these comparisons only for its constructed amplified acceptance $a$, with $\\varepsilon=(8/9)^\\tau$, fixed $\\delta=dl(l+1)$, and `Φ=PhiF t`.","fidelity_source":"ai","line":81,"lines":[132,154],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.not_RLe_of_gap_sharp","note":"","plain":"A positive acceptance gap rules out a proposed query cap","proof_lines":[90,218],"relation":"proof","annotation":"The paper quantifies over every acceptance function $A$ in $[0,1]$ with any promise error $\\varepsilon$ in $[0,1]$. The proof slice establishes these comparisons only for its constructed amplified acceptance $a$, with $\\varepsilon=(8/9)^\\tau$, fixed $\\delta=dl(l+1)$, and `Φ=PhiF t`."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b128474-128604","from_record":false,"lean":true,"lines":[165,218],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.not_RLe_of_gap_sharp","origin":"ai","part":0,"phrase":"fr-acceptance-expectation-gap","plain":"A positive acceptance gap rules out a proposed query cap","record":null,"relation":"proof","role":"statement","rows":[{"end_line":218,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The displayed inequality applies to arbitrary $A$ and $\\varepsilon$ satisfying the preceding promise assumptions. The local proof uses its finite amplified tree mixture $a$ and the fixed error $\\varepsilon=(8/9)^\\tau$; `hE1`, `hE0`, and `mass_ge` yield this specialized gap.","fidelity_source":"ai","line":81,"lines":[165,218],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.not_RLe_of_gap_sharp","note":"","plain":"A positive acceptance gap rules out a proposed query cap","proof_lines":[90,218],"relation":"proof","annotation":"The displayed inequality applies to arbitrary $A$ and $\\varepsilon$ satisfying the preceding promise assumptions. The local proof uses its finite amplified tree mixture $a$ and the fixed error $\\varepsilon=(8/9)^\\tau$. `hE1`, `hE0`, and `mass_ge` yield this specialized gap."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b129309-129384","from_record":false,"lean":true,"lines":[527,532],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.forrelation_lower_uniform_sharp","origin":"ai","part":0,"phrase":"fr-uniform-sharp-bound-conclusion","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 theorem requires $k\\ge2$ and $15k+2\\le2t$ and uses `Real.log` in the denominator. Explicit parameter dependence matters when the growing-family argument in Section 7.3 of the reconstruction lets $k$ vary with $t$.","annotation_references":[{"start":160,"end":171,"key":"section:7.3"}]}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-8","at":"b130102-130233","from_record":false,"lean":true,"lines":[446,498],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.not_RLe_uniform_sharp","origin":"ai","part":0,"phrase":"fr-positive-cap-contradiction","plain":"No algorithm attains a cap below the sharp bound","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":498,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":405,"lines":[446,498],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.not_RLe_uniform_sharp","note":"","plain":"No algorithm attains a cap below the sharp bound","proof_lines":[411,498],"relation":"proof","annotation":"For $k=l+1\\ge2$ and $15k+2\\le2t$, no error-$1/3$ promise algorithm has an integer cap $L$ at most the sharp real lower-bound expression. The numerical cap assumption is `hL`."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-conclusion","at":"b131583-131820","from_record":false,"lean":true,"lines":[514,520],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.hit_chaos_le","origin":"ai","part":0,"phrase":"fr-conclusion-forrelation-adaptivity","plain":"Running revealed polynomials rarely exceed their degree bound","record":null,"relation":"part","role":"explanation","rows":[{"end_line":598,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem bounds revealed-polynomial crossings under centered-factor hypotheses. The selected summary also asserts the final mixed-derivative expectation-gap estimate and its Walsh scaling, which this theorem does not state.","fidelity_source":"ai","line":514,"lines":[514,520],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.hit_chaos_le","note":"","plain":"Running revealed polynomials rarely exceed their degree bound","proof_lines":[521,598],"relation":"part","annotation":"The theorem bounds revealed-polynomial crossings under centered-factor hypotheses. The selected summary also asserts the final mixed-derivative expectation-gap estimate and its Walsh scaling, which this theorem does not state. Lean’s recursive `hit` includes early leaves and repeated queries, so a fixed horizon is handled without extending the tree."},{"end_line":91,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem supplies the final real-leaf advantage bound and its matrix-entry factor. The selected summary also describes the fresh-sign centered-increment mechanism, which is part of its supporting argument rather than this theorem’s type.","fidelity_source":"ai","line":76,"lines":[76,86],"module":"QuarticQuery.ForrelationLower.RealLeafExplicit","name":"QuarticQuery.ForrelationLower.advantage_le_sharp_real_leaves_explicit","note":"","plain":"Sharp expectation-gap bound for bounded real-valued trees","proof_lines":[87,91],"relation":"part","annotation":"The theorem supplies the final real-leaf advantage bound and its matrix-entry factor. The selected summary also describes the fresh-sign centered-increment mechanism of Equation (8.31), which is part of its supporting argument rather than this theorem’s type. Here `hH` requires orthonormal matrix rows and `hHb` bounds each matrix entry by $\\varepsilon$.","annotation_references":[{"start":169,"end":184,"key":"equation:8.31"}]}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-a","at":"b132883-132958","from_record":false,"lean":true,"lines":[61,63],"module":"QuarticQuery.Paper.AppendixA","name":"QuarticQuery.Paper.appendixA_D_le_Q_pow_four","origin":"ai","part":0,"phrase":"qm-a1","plain":"The spectral route gives D(f) ≤ 1500625Q(f)⁴","record":null,"relation":"part","role":"statement","rows":[{"end_line":63,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration states the $D \\le 1{,}500{,}625\\, Q^4$ component. The $R \\le D$ component is the separate linked theorem; neither declaration alone states the whole displayed chain.","fidelity_source":"ai","line":61,"lines":[61,63],"module":"QuarticQuery.Paper.AppendixA","name":"QuarticQuery.Paper.appendixA_D_le_Q_pow_four","note":"","plain":"The spectral route gives D(f) ≤ 1500625Q(f)⁴","proof_lines":[63,63],"relation":"part","annotation":"The type states the $D \\le 1{,}500{,}625\\, Q^4$ component. The $R \\le D$ component is the separate linked theorem. Neither declaration alone states the whole displayed chain. Lean writes `totalise f` to treat a total function as a promise defined everywhere."},{"end_line":287,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration states $R \\le D$ for every partial function, but does not supply the displayed quartic bound on $D$. The companion link supplies that component.","fidelity_source":"ai","line":286,"lines":[286,287],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.R_le_D","note":"","plain":"Randomness never increases the optimal query cost","proof_lines":[287,287],"relation":"part","annotation":"The type states $R \\le D$ for every partial function, but does not supply the displayed quartic bound on $D$. The companion link supplies that component."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b134752-134861","from_record":false,"lean":true,"lines":[44,47],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_degree_le_iff_fourier","origin":"ai","part":0,"phrase":"qm-degree","plain":"Degree bounds exclude larger Fourier supports","record":null,"relation":"states","role":"definition","rows":[{"end_line":48,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":44,"lines":[44,47],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_degree_le_iff_fourier","note":"","plain":"Degree bounds exclude larger Fourier supports","proof_lines":[48,48],"relation":"states","annotation":"`#S` is the number of coordinates in the finite support $S$, and `fourierCoeff` refers to the standard characters on the Boolean cube."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b134974-135107","from_record":false,"lean":true,"lines":[60,61],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_degree_eq_sign","origin":"ai","part":0,"phrase":"qm-degree-sign","plain":"Changing Boolean output to its sign preserves degree","record":null,"relation":"states","role":"statement","rows":[{"end_line":62,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The Lean degree equality holds for all total Boolean functions, including constants; this sentence restricts the output-change argument to nonconstant functions.","fidelity_source":"ai","line":60,"lines":[60,61],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_degree_eq_sign","note":"","plain":"Changing Boolean output to its sign preserves degree","proof_lines":[62,62],"relation":"states","annotation":"The Lean degree equality holds for all total Boolean functions, including constants. This sentence restricts the output-change argument to nonconstant functions. In Lean, `signVal (f x)` is the sign representation, while `degree f` is the query-complexity library’s degree of the Boolean function."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b135213-135284","from_record":false,"lean":true,"lines":[66,68],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_isSensitiveBlock_iff","origin":"ai","part":0,"phrase":"qm-sensitive-block","plain":"A sensitive block changes the function value","record":null,"relation":"states","role":"definition","rows":[{"end_line":69,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":66,"lines":[66,68],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_isSensitiveBlock_iff","note":"","plain":"A sensitive block changes the function value","proof_lines":[69,69],"relation":"states","annotation":"The theorem exposes exactly those two conditions: `B.Nonempty` and `f (flipBlock B x) ≠ f x`."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b135286-135448","from_record":false,"lean":true,"lines":[73,76],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_blockSensitivity_eq","origin":"ai","part":0,"phrase":"qm-block-sensitivity","plain":"Block sensitivity maximizes disjoint sensitive families","record":null,"relation":"states","role":"definition","rows":[{"end_line":76,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":73,"lines":[73,76],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_blockSensitivity_eq","note":"","plain":"Block sensitivity maximizes disjoint sensitive families","relation":"states","annotation":"Block sensitivity is the maximum size of a family of pairwise disjoint sensitive blocks, maximized again over inputs. Lean computes both maxima as finite suprema: the outer `Finset.univ.sup` ranges over cube inputs, and `sensitiveFamilies f x` contains the eligible block families at $x$."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b135450-135613","from_record":false,"lean":true,"lines":[95,98],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_sensitivityGraph_adj_iff","origin":"ai","part":0,"phrase":"qm-sensitivity-graph","plain":"Sensitivity edges flip one bit and change the output","record":null,"relation":"states","role":"definition","rows":[{"end_line":110,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":95,"lines":[95,98],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_sensitivityGraph_adj_iff","note":"","plain":"Sensitivity edges flip one bit and change the output","proof_lines":[99,110],"relation":"states","annotation":"The existential index `i` chooses that coordinate. `Function.update x i (!x i)` performs the flip."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b135685-135711","from_record":false,"lean":true,"lines":[114,116],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_spectralSensitivity_eq","origin":"ai","part":0,"phrase":"qm-spectral-sensitivity","plain":"Spectral sensitivity is the Euclidean adjacency norm","record":null,"relation":"states","role":"definition","rows":[{"end_line":116,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":114,"lines":[114,116],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_spectralSensitivity_eq","note":"","plain":"Spectral sensitivity is the Euclidean adjacency norm","relation":"states","annotation":"Spectral sensitivity is the operator norm of the real adjacency matrix of the sensitivity graph. `Matrix.toEuclideanCLM` turns that matrix into a linear operator on Euclidean space, so the norm is the largest expansion factor for the Euclidean vector norm."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b135819-135976","from_record":false,"lean":true,"lines":[370,372],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_blockSensitivity_star_le_Q_sq","origin":"ai","part":0,"phrase":"qm-a2-roadmap","plain":"The star adversary bounds block sensitivity by 1225 Q squared","record":null,"relation":"part","role":"statement","rows":[{"end_line":372,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives $\\mathrm{bs}(f)\\le 1225\\, Q(f)^2$ only; the other three roadmap inequalities are the separate linked results.","fidelity_source":"ai","line":370,"lines":[370,372],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_blockSensitivity_star_le_Q_sq","note":"","plain":"The star adversary bounds block sensitivity by 1225 Q squared","proof_lines":[372,372],"relation":"part","annotation":"The type gives $\\mathrm{bs}(f)\\le 1225\\, Q(f)^2$ only. The other three roadmap inequalities are the separate linked results."},{"end_line":478,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives $\\lambda(f)\\le 35\\, Q(f)$ only; it does not also state the block-sensitivity, degree, or deterministic bounds.","fidelity_source":"ai","line":476,"lines":[476,478],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_spectralSensitivity_adversary_le_Q","note":"","plain":"The sensitivity graph gives $\\lambda$ at most $35Q$","proof_lines":[478,478],"relation":"part","annotation":"The type gives $\\lambda(f)\\le 35\\, Q(f)$ only. It does not also state the block-sensitivity, degree, or deterministic bounds."},{"end_line":174,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives $\\deg(f)\\le\\lambda(f)^2$ only; it does not state either query bound or the deterministic product bound.","fidelity_source":"ai","line":116,"lines":[116,117],"module":"QuarticQuery.Paper.AppendixAHuangRoute","name":"QuarticQuery.Paper.appendixA4_paper_route","note":"","plain":"Degree is at most spectral sensitivity squared","proof_lines":[118,174],"relation":"part","annotation":"The type gives $\\deg(f)\\le\\lambda(f)^2$ only. It does not state either query bound or the deterministic product bound."},{"end_line":294,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives $D(f)\\le\\mathrm{bs}(f)\\deg(f)$ only; the spectral and query inequalities in the display require the other declarations.","fidelity_source":"ai","line":290,"lines":[290,294],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_lemmaA5","note":"","plain":"Deterministic cost is at most degree times block sensitivity","proof_lines":[292,294],"relation":"part","annotation":"The type gives $D(f)\\le\\mathrm{bs}(f)\\deg(f)$ only. The spectral and query inequalities in the display require the other declarations."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b136702-136762","from_record":false,"lean":true,"lines":[49,51],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixAGammaCoord_apply","origin":"ai","part":0,"phrase":"qm-gamma-mask","plain":"Keep adversary entries distinguished by one coordinate","record":null,"relation":"states","role":"definition","rows":[{"end_line":51,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":49,"lines":[49,51],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixAGammaCoord_apply","note":"","plain":"Keep adversary entries distinguished by one coordinate","relation":"states","annotation":"The coordinate mask $\\Gamma_i$ retains $\\Gamma_{xy}$ when $x_i\\ne y_i$ and sets the entry to zero otherwise."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b136764-136793","from_record":false,"lean":true,"lines":[62,64],"module":"QuarticQuery.Paper.AppendixASpectralAdversary","name":"QuarticQuery.Paper.appendixACoordinateMax","origin":"ai","part":0,"phrase":"qm-coordinate-max","plain":"Largest norm of an adversary coordinate mask","record":null,"relation":"defines","role":"definition","rows":[{"end_line":64,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":62,"lines":[62,64],"module":"QuarticQuery.Paper.AppendixASpectralAdversary","name":"QuarticQuery.Paper.appendixACoordinateMax","note":"","plain":"Largest norm of an adversary coordinate mask","relation":"defines","annotation":"The maximum masked norm $M$ used in the adversary bound."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b136799-136902","from_record":false,"lean":true,"lines":[108,113],"module":"QuarticQuery.Paper.AppendixASpectralAdversary","name":"QuarticQuery.Paper.appendixA_lemmaA2","origin":"ai","part":0,"phrase":"qm-adversary","plain":"The nonnegative adversary lower bound with coefficient 1/35","record":null,"relation":"states","role":"statement","rows":[{"end_line":117,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration states $Q(f) \\ge (1/35)\\|\\Gamma\\|/M$, the weaker end of (A.3). It does not state the displayed sharper coefficient $(1-2\\sqrt{2}/3)/2$. That coefficient appears before division in `appendixA_adversary_of_perron`.","fidelity_source":"ai","line":108,"lines":[108,113],"module":"QuarticQuery.Paper.AppendixASpectralAdversary","name":"QuarticQuery.Paper.appendixA_lemmaA2","note":"","plain":"The nonnegative adversary lower bound with coefficient 1/35","proof_lines":[114,117],"relation":"states","annotation":"The declaration states $Q(f) \\ge (1/35)\\|\\Gamma\\|/M$, the weaker end of Equation (A.3). It does not state the displayed sharper coefficient $(1-2\\sqrt{2}/3)/2$. That coefficient appears before division in `appendixA_adversary_of_perron`.","annotation_references":[{"start":72,"end":86,"key":"equation:a.3"}]}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b136903-137065","from_record":false,"lean":true,"lines":[91,95],"module":"QuarticQuery.Paper.AppendixASpectralAdversary","name":"QuarticQuery.Paper.appendixACoordinateMax_pos","origin":"ai","part":0,"phrase":"qm-mask-positive","plain":"A nonzero admissible adversary has positive masked norm","record":null,"relation":"states","role":"explanation","rows":[{"end_line":103,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states positivity of the maximum masked norm. It does not state the sentence’s selected-entry and distinguishing-coordinate explanation as separate conclusions.","fidelity_source":"ai","line":91,"lines":[91,95],"module":"QuarticQuery.Paper.AppendixASpectralAdversary","name":"QuarticQuery.Paper.appendixACoordinateMax_pos","note":"","plain":"A nonzero admissible adversary has positive masked norm","proof_lines":[96,103],"relation":"states","annotation":"The theorem states positivity of the maximum masked norm. It does not state the sentence’s selected-entry and distinguishing-coordinate explanation as separate conclusions."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b137150-137228","from_record":false,"lean":true,"lines":[153,155],"module":"QuarticQuery.Paper.AppendixAPerron","name":"QuarticQuery.Paper.appendixA_perron","origin":"ai","part":0,"phrase":"qm-perron","plain":"Choose a nonnegative unit vector at the operator norm","record":null,"relation":"states","role":"statement","rows":[{"end_line":169,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The paper’s standing adversary hypotheses require $\\Gamma \\ne 0$; the Lean eigenvector theorem needs only symmetry and entrywise nonnegativity and also covers $\\Gamma = 0$.","fidelity_source":"ai","line":153,"lines":[153,155],"module":"QuarticQuery.Paper.AppendixAPerron","name":"QuarticQuery.Paper.appendixA_perron","note":"","plain":"Choose a nonnegative unit vector at the operator norm","proof_lines":[156,169],"relation":"states","annotation":"The paper’s standing adversary hypotheses require $\\Gamma \\ne 0$. The Lean eigenvector theorem needs only symmetry and entrywise nonnegativity and also covers $\\Gamma = 0$. The result produces `AppendixAPerronWitness`, which packages the unit norm, nonnegative coordinates, and eigenvector equation."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b139379-139461","from_record":false,"lean":true,"lines":[155,158],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixAProgress","origin":"ai","part":0,"phrase":"qm-progress","plain":"Weighted overlaps measure adversary progress","record":null,"relation":"defines","role":"definition","rows":[{"end_line":158,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":155,"lines":[155,158],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixAProgress","note":"","plain":"Weighted overlaps measure adversary progress","relation":"defines","annotation":"Lean defines it as a complex number, using `inner ℂ`. The real coefficients are cast into $\\mathbb C$."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b139584-139634","from_record":false,"lean":true,"lines":[299,303],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixAProgress_isometry","origin":"ai","part":0,"phrase":"qm-progress-isometry","plain":"Input independent isometries preserve adversary progress","record":null,"relation":"states","role":"statement","rows":[{"end_line":304,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The declaration permits arbitrary state vectors and arbitrary $\\Gamma,v$, whereas the paper uses unit states and a nonnegative Perron vector.","fidelity_source":"ai","line":299,"lines":[299,303],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixAProgress_isometry","note":"","plain":"Input independent isometries preserve adversary progress","proof_lines":[304,304],"relation":"states","annotation":"The declaration permits arbitrary state vectors and arbitrary $\\Gamma,v$, whereas the paper uses unit states and a nonnegative Perron vector. The gate `U` is chosen once and applied to each `Ψ x`. A different gate for each input would not satisfy this statement."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b140253-140348","from_record":false,"lean":true,"lines":[210,218],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixAProgress_query_quadratic","origin":"ai","part":0,"phrase":"qm-progress-quadratic","plain":"One phase query changes progress by a masked quadratic sum","record":null,"relation":"states","role":"statement","rows":[{"end_line":269,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":210,"lines":[210,218],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixAProgress_query_quadratic","note":"","plain":"One phase query changes progress by a masked quadratic sum","proof_lines":[219,269],"relation":"states","annotation":"The hypotheses `hΓ` and `hv` say that the matrix entries and weights are nonnegative."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b140350-140446","from_record":false,"lean":true,"lines":[188,191],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixA_query_weights_le_one","origin":"ai","part":0,"phrase":"qm-active-mass","plain":"Active query components have total weighted mass at most one","record":null,"relation":"states","role":"statement","rows":[{"end_line":206,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":188,"lines":[188,191],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixA_query_weights_le_one","note":"","plain":"Active query components have total weighted mass at most one","proof_lines":[192,206],"relation":"states","annotation":"`hv` normalizes the squared coordinates of $v$, and `hΨ` normalizes each input state. The oracle can also have mass in the inactive control component, which permits a strict inequality for the active sum."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b140448-140555","from_record":false,"lean":true,"lines":[273,281],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixAProgress_query_le","origin":"ai","part":0,"phrase":"qm-progress-2m","plain":"Each oracle query changes progress by at most twice M","record":null,"relation":"states","role":"statement","rows":[{"end_line":296,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":273,"lines":[273,281],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixAProgress_query_le","note":"","plain":"Each oracle query changes progress by at most twice M","proof_lines":[282,296],"relation":"states","annotation":"A controlled phase query changes the progress quantity by at most $2M$. Here `hcoord` bounds every coordinate-mask operator norm by $M$, and `hM` makes $M$ nonnegative."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b140768-140859","from_record":false,"lean":true,"lines":[372,377],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixA_unit_states_final_overlap","origin":"ai","part":0,"phrase":"qm-final-overlap","plain":"Successful opposite outputs limit the final state overlap","record":null,"relation":"states","role":"statement","rows":[{"end_line":385,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration gives the final bound $|\\langle\\psi,\\varphi\\rangle| \\le 2\\sqrt{2}/3$. It does not include the displayed intermediate expression $\\sqrt{ab}+\\sqrt{(1-a)(1-b)}$.","fidelity_source":"ai","line":372,"lines":[372,377],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixA_unit_states_final_overlap","note":"","plain":"Successful opposite outputs limit the final state overlap","proof_lines":[378,385],"relation":"states","annotation":"The declaration gives the final bound $|\\langle\\psi,\\varphi\\rangle| \\le 2\\sqrt{2}/3$. It does not include the displayed intermediate expression $\\sqrt{ab}+\\sqrt{(1-a)(1-b)}$. The hypotheses `hψ`, `hφ`, `hp`, and `hq` spell out normalization and those endpoint probabilities."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b141228-141265","from_record":false,"lean":true,"lines":[402,414],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixAProgress_final","origin":"ai","part":0,"phrase":"qm-final-progress","plain":"The final progress is at most the overlap factor","record":null,"relation":"states","role":"statement","rows":[{"end_line":418,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":402,"lines":[402,414],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixAProgress_final","note":"","plain":"The final progress is at most the overlap factor","proof_lines":[415,418],"relation":"states","annotation":"The input state is normalized, `h` gives the error bound on every input, and `hv` packages a nonnegative unit eigenvector of $\\Gamma$. Equal-output pairs have zero matrix entry by `hzero`, so only the opposite-output overlap estimate contributes."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b141341-141393","from_record":false,"lean":true,"lines":[480,494],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixA_adversary_of_perron","origin":"ai","part":0,"phrase":"qm-telescope-adversary","plain":"A Perron eigenvector gives the nonnegative adversary lower bound","record":null,"relation":"states","role":"statement","rows":[{"end_line":504,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration states the outer inequality $(1-2\\sqrt{2}/3)\\|\\Gamma\\| \\le 2TM$ under the displayed algorithm/Perron hypotheses, but omits the intermediate $|W_0-W_q|$ term. Its parameter $T$ is the cap before the paper substitutes $q=Q(f)$.","fidelity_source":"ai","line":480,"lines":[480,494],"module":"QuarticQuery.Paper.AppendixAAdversary","name":"QuarticQuery.Paper.appendixA_adversary_of_perron","note":"","plain":"A Perron eigenvector gives the nonnegative adversary lower bound","proof_lines":[495,504],"relation":"states","annotation":"The declaration states the outer inequality $(1-2\\sqrt{2}/3)\\|\\Gamma\\| \\le 2TM$ under the displayed algorithm/Perron hypotheses, but omits the intermediate $|W_0-W_q|$ term. Its parameter $T$ is the cap before the paper substitutes $q=Q(f)$."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b142985-143018","from_record":false,"lean":true,"lines":[212,214],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_star_norm_eq_sqrt_card","origin":"ai","part":0,"phrase":"qm-star-norm","plain":"A star with b leaves has operator norm square root b","record":null,"relation":"states","role":"statement","rows":[{"end_line":216,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The Lean result applies to any finite star with center outside its leaf set, including zero leaves; the paper applies it to a nonempty sensitive-block star.","fidelity_source":"ai","line":212,"lines":[212,214],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_star_norm_eq_sqrt_card","note":"","plain":"A star with b leaves has operator norm square root b","proof_lines":[215,216],"relation":"states","annotation":"The Lean result applies to any finite star with center outside its leaf set, including zero leaves. The paper applies it to a nonempty sensitive-block star. The condition `hc : c ∉ L` keeps the center distinct from every leaf."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b143084-143220","from_record":false,"lean":true,"lines":[270,273],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_mask_star_norm_le_one","origin":"ai","part":0,"phrase":"qm-star-mask","plain":"A coordinate mask retaining at most one star edge has norm ≤1","record":null,"relation":"states","role":"statement","rows":[{"end_line":287,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration assumes `hcount`, that at most one leaf survives the mask. It proves the norm conclusion but not the sentence’s derivation of `hcount` from block disjointness; that is provided by `appendixA_sensitiveFamily_star_properties`.","fidelity_source":"ai","line":270,"lines":[270,273],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_mask_star_norm_le_one","note":"","plain":"A coordinate mask retaining at most one star edge has norm ≤1","proof_lines":[274,287],"relation":"states","annotation":"The declaration assumes `hcount`, that at most one leaf survives the mask. It proves the norm conclusion but not the sentence’s derivation of `hcount` from block disjointness. That is provided by `appendixA_sensitiveFamily_star_properties`. `hcount` states that bound on the retained leaf set, and `hx` keeps the center out of the leaves."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b143370-143421","from_record":false,"lean":true,"lines":[370,372],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_blockSensitivity_star_le_Q_sq","origin":"ai","part":0,"phrase":"qm-bs-bound","plain":"The star adversary bounds block sensitivity by 1225 Q squared","record":null,"relation":"states","role":"statement","rows":[{"end_line":372,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":370,"lines":[370,372],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_blockSensitivity_star_le_Q_sq","note":"","plain":"The star adversary bounds block sensitivity by 1225 Q squared","proof_lines":[372,372],"relation":"states","annotation":"For every total Boolean function, block sensitivity is at most $1225Q(f)^2$."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b143824-143970","from_record":false,"lean":true,"lines":[419,420],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_sensitivity_mask_norm_le_one","origin":"ai","part":0,"phrase":"qm-sensitivity-mask","plain":"Each sensitivity coordinate mask has norm at most one","record":null,"relation":"states","role":"statement","rows":[{"end_line":448,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration proves the norm bound. It does not state the sentence’s explicit direct-sum decomposition, although its proof uses the matching structure.","fidelity_source":"ai","line":419,"lines":[419,420],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_sensitivity_mask_norm_le_one","note":"","plain":"Each sensitivity coordinate mask has norm at most one","proof_lines":[421,448],"relation":"states","annotation":"The declaration proves the norm bound. It does not state the sentence’s explicit direct-sum decomposition, although its proof uses the matching structure."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b144110-144147","from_record":false,"lean":true,"lines":[476,478],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_spectralSensitivity_adversary_le_Q","origin":"ai","part":0,"phrase":"qm-lambda-bound","plain":"The sensitivity graph gives $\\lambda$ at most $35Q$","record":null,"relation":"states","role":"statement","rows":[{"end_line":478,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":476,"lines":[476,478],"module":"QuarticQuery.Paper.AppendixAStar","name":"QuarticQuery.Paper.appendixA_spectralSensitivity_adversary_le_Q","note":"","plain":"The sensitivity graph gives $\\lambda$ at most $35Q$","proof_lines":[478,478],"relation":"states","annotation":"Every total Boolean function satisfies $\\lambda(f)\\leq35Q(f)$."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b144612-144652","from_record":false,"lean":true,"lines":[116,117],"module":"QuarticQuery.Paper.AppendixAHuangRoute","name":"QuarticQuery.Paper.appendixA4_paper_route","origin":"ai","part":0,"phrase":"qm-degree-lambda","plain":"Degree is at most spectral sensitivity squared","record":null,"relation":"states","role":"statement","rows":[{"end_line":174,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":116,"lines":[116,117],"module":"QuarticQuery.Paper.AppendixAHuangRoute","name":"QuarticQuery.Paper.appendixA4_paper_route","note":"","plain":"Degree is at most spectral sensitivity squared","proof_lines":[118,174],"relation":"states","annotation":"For every total Boolean function, $\\deg(f)\\leq\\lambda(f)^2$."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b145043-145137","from_record":false,"lean":true,"lines":[178,181],"module":"QuarticQuery.Paper.AppendixARestriction","name":"QuarticQuery.Paper.appendixA_topFourier_survives","origin":"ai","part":0,"phrase":"qm-top-coefficient","plain":"A maximum-degree coefficient survives every outside assignment","record":null,"relation":"states","role":"statement","rows":[{"end_line":183,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The Lean equality needs only `#S = degree f`, whereas the paper has additionally chosen a nonzero coefficient on $S$.","fidelity_source":"ai","line":178,"lines":[178,181],"module":"QuarticQuery.Paper.AppendixARestriction","name":"QuarticQuery.Paper.appendixA_topFourier_survives","note":"","plain":"A maximum-degree coefficient survives every outside assignment","proof_lines":[182,183],"relation":"states","annotation":"The Lean equality needs only `#S = degree f`, whereas the paper has additionally chosen a nonzero coefficient on $S$. The hypothesis `hS : #S = degree f` excludes larger nonzero supports that could contribute to that coefficient."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b145414-145505","from_record":false,"lean":true,"lines":[226,236],"module":"QuarticQuery.Paper.AppendixARestriction","name":"QuarticQuery.Paper.appendixA_restriction_parity_face","origin":"ai","part":0,"phrase":"qm-parity-fiber","plain":"A degree-dimensional face has a strict parity-agreement majority","record":null,"relation":"contains","role":"statement","rows":[{"end_line":244,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":226,"lines":[226,236],"module":"QuarticQuery.Paper.AppendixARestriction","name":"QuarticQuery.Paper.appendixA_restriction_parity_face","note":"","plain":"A degree-dimensional face has a strict parity-agreement majority","proof_lines":[237,244],"relation":"contains","annotation":"For a nonconstant total function, there is a face support $S$ of size $\\deg(f)$ whose full Fourier coefficient stays nonzero under every outside assignment. `hf : degree f ≠ 0` excludes constants."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b145912-146032","from_record":false,"lean":true,"lines":[198,200],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huangMatrix","origin":"ai","part":0,"phrase":"qm-huang-matrix","plain":"Huang’s recursively signed cube adjacency matrix","record":null,"relation":"defines","role":"definition","rows":[{"end_line":200,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":198,"lines":[198,200],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huangMatrix","note":"","plain":"Huang’s recursively signed cube adjacency matrix","relation":"defines","annotation":"The signed cube matrix is defined by $H'_{d+1}=\\begin{pmatrix}H'_d&I\\\\I&-H'_d\\end{pmatrix}$, starting with the one-by-one zero matrix at $d=0$."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b146034-146113","from_record":false,"lean":true,"lines":[241,242],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.abs_huangMatrix","origin":"ai","part":0,"phrase":"qm-huang-abs","plain":"Taking absolute values recovers ordinary cube adjacency","record":null,"relation":"states","role":"statement","rows":[{"end_line":248,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":241,"lines":[241,242],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.abs_huangMatrix","note":"","plain":"Taking absolute values recovers ordinary cube adjacency","proof_lines":[243,248],"relation":"states","annotation":"Each entry of Huang’s matrix has absolute value equal to the corresponding ordinary cube adjacency entry."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b146115-146146","from_record":false,"lean":true,"lines":[251,251],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huangMatrix_transpose","origin":"ai","part":0,"phrase":"qm-huang-symmetric","plain":"Huang’s signed cube matrix is symmetric","record":null,"relation":"states","role":"statement","rows":[{"end_line":258,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":251,"lines":[251,251],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huangMatrix_transpose","note":"","plain":"Huang’s signed cube matrix is symmetric","proof_lines":[252,258],"relation":"states","annotation":"Transposing Huang’s signed adjacency matrix leaves it unchanged in every dimension."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b146175-146190","from_record":false,"lean":true,"lines":[261,262],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huangMatrix_square","origin":"ai","part":0,"phrase":"qm-huang-square","plain":"The signed cube matrix squares to d times identity","record":null,"relation":"states","role":"statement","rows":[{"end_line":275,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":261,"lines":[261,262],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huangMatrix_square","note":"","plain":"The signed cube matrix squares to d times identity","proof_lines":[263,275],"relation":"states","annotation":"In dimension $d$, Huang’s matrix satisfies $(H'_d)^2=dI$. Lean writes scalar multiplication as `(d : ℝ) • 1`."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b146231-146274","from_record":false,"lean":true,"lines":[278,278],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huangMatrix_trace","origin":"ai","part":0,"phrase":"qm-huang-trace","plain":"Huang’s signed cube matrix has trace zero","record":null,"relation":"states","role":"statement","rows":[{"end_line":285,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":278,"lines":[278,278],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huangMatrix_trace","note":"","plain":"Huang’s signed cube matrix has trace zero","proof_lines":[279,285],"relation":"states","annotation":"The trace of Huang’s matrix is zero in every dimension."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b146336-146472","from_record":false,"lean":true,"lines":[300,302],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huangEnd_eigenvalue","origin":"ai","part":0,"phrase":"qm-huang-eigenvalues","plain":"Every signed cube eigenvalue is plus or minus square root d","record":null,"relation":"states","role":"statement","rows":[{"end_line":314,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The eigenvalue alternative is proved also for $d=0$. The paper assumes $j\\ge 1$ to say the two possible eigenvalues are distinct; distinctness is not asserted by this declaration.","fidelity_source":"ai","line":300,"lines":[300,302],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huangEnd_eigenvalue","note":"","plain":"Every signed cube eigenvalue is plus or minus square root d","proof_lines":[303,314],"relation":"states","annotation":"The eigenvalue alternative is proved also for $d=0$. The paper assumes $j\\ge 1$ to say the two possible eigenvalues are distinct. Distinctness is not asserted by this declaration. The conditions are `hv0 : v ≠ 0` and the eigenvector equation `hv`."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b146474-146529","from_record":false,"lean":true,"lines":[446,448],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huangEnd_eigenspaces_half","origin":"ai","part":0,"phrase":"qm-huang-multiplicity","plain":"Each signed cube eigenspace occupies half the vertices","record":null,"relation":"states","role":"statement","rows":[{"end_line":458,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":446,"lines":[446,448],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huangEnd_eigenspaces_half","note":"","plain":"Each signed cube eigenspace occupies half the vertices","proof_lines":[449,458],"relation":"states","annotation":"For $d>0$, the $\\sqrt d$ and $-\\sqrt d$ eigenspaces of Huang’s matrix each have dimension $2^{d-1}$. The hypothesis `hd : 0 < d` is essential: at dimension zero there is a single zero eigenspace."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b147011-147113","from_record":false,"lean":true,"lines":[463,466],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huang_supported_positive_eigenvector","origin":"ai","part":0,"phrase":"qm-huang-supported","plain":"A strict majority supports a positive eigenvector","record":null,"relation":"states","role":"statement","rows":[{"end_line":484,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem produces the nonzero eigenvector supported on $U$. It does not state the sentence’s preceding inequality for the sum of the two subspace dimensions.","fidelity_source":"ai","line":463,"lines":[463,466],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huang_supported_positive_eigenvector","note":"","plain":"A strict majority supports a positive eigenvector","proof_lines":[467,484],"relation":"states","annotation":"The conclusion gives a nonzero eigenvector with support in $U$. The hypotheses `hd` and `hU` require positive dimension and more than $2^{d-1}$ labels in the support set."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b147232-147330","from_record":false,"lean":true,"lines":[511,515],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huang_absolute_rayleigh_supported","origin":"ai","part":0,"phrase":"qm-huang-rayleigh","plain":"The absolute eigenvector gives a large induced quadratic form","record":null,"relation":"states","role":"statement","rows":[{"end_line":525,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states the outer Rayleigh inequality $\\sqrt{d}\\,\\||v|\\|^2 \\le |v|^\\top A_U|v|$ under the eigenvector/support hypotheses. It omits the displayed intermediate equalities through $v^\\top H'dv$.","fidelity_source":"ai","line":511,"lines":[511,515],"module":"QuarticQuery.Paper.AppendixAHuangMatrix","name":"QuarticQuery.Paper.huang_absolute_rayleigh_supported","note":"","plain":"The absolute eigenvector gives a large induced quadratic form","proof_lines":[516,525],"relation":"states","annotation":"The theorem states the outer Rayleigh inequality $\\sqrt{d}\\,\\||v|\\|^2 \\le |v|^\\top A_U|v|$ under the eigenvector/support hypotheses. It omits the displayed intermediate equalities through $v^\\top H'dv$."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b148433-148486","from_record":false,"lean":true,"lines":[290,294],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_lemmaA5","origin":"ai","part":0,"phrase":"qm-midrijanis","plain":"Deterministic cost is at most degree times block sensitivity","record":null,"relation":"states","role":"statement","rows":[{"end_line":294,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":290,"lines":[290,294],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_lemmaA5","note":"","plain":"Deterministic cost is at most degree times block sensitivity","proof_lines":[292,294],"relation":"states","annotation":"Every total Boolean function satisfies $D(f)\\leq\\operatorname{bs}(f)\\deg(f)$."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b149388-149600","from_record":false,"lean":true,"lines":[196,202],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_sensitiveBlock_of_maximal_support","origin":"ai","part":0,"phrase":"qm-maximal-support-block","plain":"A maximal Fourier support contains a sensitive block at every input","record":null,"relation":"states","role":"statement","rows":[{"end_line":212,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem concludes existence of a nonempty sensitive $B\\subseteq S$ under maximal-support hypotheses. It does not state the sentence’s intermediate restricted-function nonconstancy or identify $B$ as the difference set of a particular witness assignment.","fidelity_source":"ai","line":196,"lines":[196,202],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_sensitiveBlock_of_maximal_support","note":"","plain":"A maximal Fourier support contains a sensitive block at every input","proof_lines":[202,212],"relation":"states","annotation":"Under the maximal-support hypotheses the theorem produces a nonempty sensitive block $B\\subseteq S$. The intermediate claim about nonconstancy of the restricted function is part of the argument."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b149723-149748","from_record":false,"lean":true,"lines":[228,231],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_sensitiveBlock_of_restriction","origin":"ai","part":0,"phrase":"qm-sensitive-lift","plain":"A fresh sensitive block remains sensitive in the original input","record":null,"relation":"contains","role":"statement","rows":[{"end_line":242,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":228,"lines":[228,231],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_sensitiveBlock_of_restriction","note":"","plain":"A fresh sensitive block remains sensitive in the original input","proof_lines":[232,242],"relation":"contains","annotation":"`F` is the fixed set, `hBF : Disjoint B F` expresses freshness, and `hB` is sensitivity for `fun y => f (F.piecewise x y)`."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b149750-149857","from_record":false,"lean":true,"lines":[246,249],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_roundBlocks_pairwise_disjoint","origin":"ai","part":0,"phrase":"qm-round-disjoint","plain":"Blocks inside disjoint round supports remain disjoint","record":null,"relation":"states","role":"statement","rows":[{"end_line":251,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem applies to arbitrary finite families of supports and contained blocks; it needs no query-tree or sensitivity hypotheses.","fidelity_source":"ai","line":246,"lines":[246,249],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_roundBlocks_pairwise_disjoint","note":"","plain":"Blocks inside disjoint round supports remain disjoint","proof_lines":[250,251],"relation":"states","annotation":"The theorem applies to arbitrary finite families of supports and contained blocks. It needs no query-tree or sensitivity hypotheses."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b149859-149931","from_record":false,"lean":true,"lines":[255,258],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_round_count_le","origin":"ai","part":0,"phrase":"qm-round-count","plain":"Disjoint sensitive blocks bound the number of rounds","record":null,"relation":"states","role":"statement","rows":[{"end_line":276,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":255,"lines":[255,258],"module":"QuarticQuery.Paper.AppendixASensitivity","name":"QuarticQuery.Paper.appendixA_round_count_le","note":"","plain":"Disjoint sensitive blocks bound the number of rounds","proof_lines":[259,276],"relation":"states","annotation":"A family of $r$ pairwise disjoint sensitive blocks at the same input $x$ has $r\\leq\\operatorname{bs}(f,x)$. `hB` states pairwise disjointness and `hs` states sensitivity of every block."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b150880-150947","from_record":false,"lean":true,"lines":[61,63],"module":"QuarticQuery.Paper.AppendixA","name":"QuarticQuery.Paper.appendixA_D_le_Q_pow_four","origin":"ai","part":0,"phrase":"qm-a-assembled","plain":"The spectral route gives D(f) ≤ 1500625Q(f)⁴","record":null,"relation":"states","role":"statement","rows":[{"end_line":63,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem gives $D \\le 1{,}500{,}625\\, Q^4$ directly. The display additionally shows the factorization into two $1225\\, Q^2$ terms; this intermediate product is in `appendixA_D_le_of_QLe`’s proof, not in this theorem’s statement.","fidelity_source":"ai","line":61,"lines":[61,63],"module":"QuarticQuery.Paper.AppendixA","name":"QuarticQuery.Paper.appendixA_D_le_Q_pow_four","note":"","plain":"The spectral route gives D(f) ≤ 1500625Q(f)⁴","proof_lines":[63,63],"relation":"states","annotation":"The theorem gives $D \\le 1{,}500{,}625\\, Q^4$ directly. The display additionally shows the factorization into two $1225\\, Q^2$ terms. This intermediate product is in `appendixA_D_le_of_QLe`’s proof, not in this theorem’s statement. Lean writes `totalise f` to treat a total function as a promise defined everywhere."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-a","at":"b150948-151064","from_record":false,"lean":true,"lines":[286,287],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.R_le_D","origin":"ai","part":0,"phrase":"qm-r-le-d","plain":"Randomness never increases the optimal query cost","record":null,"relation":"states","role":"statement","rows":[{"end_line":287,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem applies to all finite partial Boolean functions, while Appendix A’s standing scope is total functions.","fidelity_source":"ai","line":286,"lines":[286,287],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.R_le_D","note":"","plain":"Randomness never increases the optimal query cost","proof_lines":[287,287],"relation":"states","annotation":"The theorem applies to all finite partial Boolean functions, while Appendix A’s standing scope is total functions.","annotation_references":[{"start":67,"end":77,"key":"appendix:a"}]}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-b","at":"b152475-152570","from_record":false,"lean":true,"lines":[173,173],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.ClassicalTranscript","origin":"ai","part":0,"phrase":"rec-cl-history-record","plain":"An ordered record of input, coordinate, and answer","record":null,"relation":"defines","role":"definition","rows":[{"end_line":173,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":173,"lines":[173,173],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.ClassicalTranscript","note":"","plain":"An ordered record of input, coordinate, and answer","relation":"defines","annotation":"A transcript is a finite list of observations."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b152711-152825","from_record":false,"lean":true,"lines":[177,178],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalLocalConsistent","origin":"ai","part":0,"phrase":"rec-cl-local-history-constraints","plain":"One input agrees with all its recorded answers","record":null,"relation":"defines","role":"definition","rows":[{"end_line":178,"exact_lines":true,"fidelity":"different","fidelity_note":"`classicalLocalConsistent` tests the recorded answer equalities on the full Boolean cube; it does not itself require $x\\in D$. Promise support is supplied by the prior $\\mu$.","fidelity_source":"ai","line":177,"lines":[177,178],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalLocalConsistent","note":"","plain":"One input agrees with all its recorded answers","relation":"defines","annotation":"The predicate selects transcript entries with `e.1.1 = h` and compares the recorded answer with `x e.1.2`. It is defined on the whole Boolean cube. The prior supplies the restriction to the promised set $D$."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b153003-153237","from_record":false,"lean":true,"lines":[218,222],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_prefix_iff","origin":"ai","part":0,"phrase":"rec-cl-adaptive-rectangle","plain":"A compatible transcript imposes separate constraints on each input","record":null,"relation":"contains","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":"contains","annotation":"A tuple follows the given history precisely when its local answers match and the proposed query schedule is compatible with the deterministic tree."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b153372-153581","from_record":false,"lean":true,"lines":[218,222],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_prefix_iff","origin":"ai","part":0,"phrase":"rec-cl-conditional-product-law","plain":"A compatible transcript imposes separate constraints on each input","record":null,"relation":"part","role":"statement","rows":[{"end_line":231,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem gives the prefix-event equivalence with compatible schedule and local constraints. It does not give either probability identity in the rest of display (B.1).","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":"part","annotation":"The theorem gives the prefix-event equivalence with compatible schedule and local constraints. It does not give either probability identity in the rest of Equation (B.1).","annotation_references":[{"start":155,"end":169,"key":"equation:b.1"}]},{"end_line":261,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This is the finite product-mass identity after the transcript weight is factored. It does not itself identify the adaptive prefix event or state its normalized conditional law.","fidelity_source":"ai","line":256,"lines":[256,258],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_mass_product","note":"","plain":"The total mass of independent weights is the product of masses","proof_lines":[259,261],"relation":"part","annotation":"This is the finite product-mass identity after the transcript weight is factored. It does not itself identify the adaptive prefix event or state its normalized conditional law."},{"end_line":301,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states the final conditional-law factorization in (B.1), deriving schedule compatibility from positive prefix mass. It does not package the preceding event equality and mass identity in its conclusion.","fidelity_source":"ai","line":275,"lines":[275,284],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_product_law","note":"","plain":"Conditioning on a possible complete history preserves input independence","proof_lines":[285,301],"relation":"part","annotation":"The theorem states the final conditional-law factorization in Equation (B.1), deriving schedule compatibility from positive prefix mass. It does not package the preceding event equality and mass identity in its conclusion.","annotation_references":[{"start":62,"end":76,"key":"equation:b.1"}]}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b153746-153817","from_record":false,"lean":true,"lines":[350,355],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_mass_pos","origin":"ai","part":0,"phrase":"rec-cl-positive-local-denominators","plain":"A possible joint history gives positive mass to every local constraint","record":null,"relation":"states","role":"derivation","rows":[{"end_line":378,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":350,"lines":[350,355],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_mass_pos","note":"","plain":"A possible joint history gives positive mass to every local constraint","proof_lines":[356,378],"relation":"states","annotation":"If the input weights are nonnegative and a history has positive joint mass, every local restricted input weight has positive mass. The premises `hμ` and `hm` enforce those two conditions."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b154772-154851","from_record":false,"lean":true,"lines":[382,383],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalQueriesTo","origin":"ai","part":0,"phrase":"rec-cl-history-query-count","plain":"Queries charged to one input in the recorded history","record":null,"relation":"defines","role":"definition","rows":[{"end_line":383,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":382,"lines":[382,383],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalQueriesTo","note":"","plain":"Queries charged to one input in the recorded history","relation":"defines","annotation":"The count $q_h(\\tau)$ is the number of transcript entries assigned to input $h$."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b155041-155171","from_record":false,"lean":true,"lines":[387,390],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue","origin":"ai","part":0,"phrase":"rec-cl-conditional-optimum","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":"The definition is a ratio of weighted optimum to local mass; the attained-maximum theorem justifies the max notation.","plain":"Optimal success for one input after its transcript, using its remaining budget","relation":"defines","annotation":"The continuation value uses allowance $L-q_h(\\tau)$ and the prior restricted by input $h$’s recorded answers, then divides optimal weighted success by that restricted mass."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b155440-155469","from_record":false,"lean":true,"lines":[395,400],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue_attained","origin":"ai","part":0,"phrase":"rec-cl-conditional-maximum-attained","plain":"An allowed continuation tree attains the conditional optimum","record":null,"relation":"states","role":"derivation","rows":[{"end_line":401,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":395,"lines":[395,400],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue_attained","note":"","plain":"An allowed continuation tree attains the conditional optimum","proof_lines":[401,401],"relation":"states","annotation":"For a specified transcript and input index, a tree using at most $L-q_h(\\tau)$ queries attains the continuation value under the normalized restricted weight."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b156104-156218","from_record":false,"lean":true,"lines":[439,447],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_16_transcript","origin":"ai","part":0,"phrase":"rec-cl-conditional-one-query-step","plain":"One more answer cannot improve the average continuation value","record":null,"relation":"states","role":"statement","rows":[{"end_line":453,"exact_lines":true,"fidelity":"stronger","fidelity_note":"Lean sums both Boolean answers, with zero-mass branches contributing zero, and does not require positive transcript mass. Under the paper’s positive-history context this is the same conditional inequality.","fidelity_source":"ai","line":439,"lines":[439,447],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_eq_16_transcript","note":"","plain":"One more answer cannot improve the average continuation value","proof_lines":[448,453],"relation":"states","annotation":"Lean sums both Boolean answers, with zero-mass branches contributing zero, and does not require positive transcript mass. Under the paper’s positive-history context this is the same conditional inequality. The hypothesis `hc` says this input still has a query available, and `hμ` requires nonnegative prior weights."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b156833-156939","from_record":false,"lean":true,"lines":[457,461],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue_unchanged","origin":"ai","part":0,"phrase":"rec-cl-other-values-fixed","plain":"A query leaves every other input’s continuation value unchanged","record":null,"relation":"states","role":"statement","rows":[{"end_line":463,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The identity holds algebraically for every transcript and answer, including impossible children; the paper restricts the assertion to positive-probability children.","fidelity_source":"ai","line":457,"lines":[457,461],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalTranscriptValue_unchanged","note":"","plain":"A query leaves every other input’s continuation value unchanged","proof_lines":[462,463],"relation":"states","annotation":"The identity holds algebraically for every transcript and answer, including impossible children. The paper restricts the assertion to positive-probability children. Appending a query to input $h$ leaves input $j$’s continuation value unchanged when `hj : j ≠ h`."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b157070-157104","from_record":false,"lean":true,"lines":[467,469],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalProductValue","origin":"ai","part":0,"phrase":"rec-cl-product-potential","plain":"The product of the separate conditional continuation values","record":null,"relation":"defines","role":"definition","rows":[{"end_line":469,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":467,"lines":[467,469],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalProductValue","note":"","plain":"The product of the separate conditional continuation values","relation":"defines","annotation":"The product potential multiplies each input’s normalized optimum at its remaining allowance."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b157248-157308","from_record":false,"lean":true,"lines":[615,627],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_conditional_expectation","origin":"ai","part":0,"phrase":"rec-cl-conditional-product-step","plain":"The conditional expectation of the product of continuation values cannot increase","record":null,"relation":"states","role":"statement","rows":[{"end_line":653,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":615,"lines":[615,627],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_transcript_conditional_expectation","note":"","plain":"The conditional expectation of the product of continuation values cannot increase","proof_lines":[628,653],"relation":"states","annotation":"At a positive-mass history, the expected product after querying one input is at most its current product. The assumptions are nonnegative input weights, positive prefix mass `hm`, and a remaining query `hc` for the chosen input."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b157566-157602","from_record":false,"lean":true,"lines":[725,727],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_capped_depth_uniform","origin":"ai","part":0,"phrase":"rec-cl-finite-total-horizon","plain":"A cap of L per input allows at most rL queries","record":null,"relation":"states","role":"statement","rows":[{"end_line":728,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":725,"lines":[725,727],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_capped_depth_uniform","note":"","plain":"A cap of L per input allows at most rL queries","proof_lines":[728,728],"relation":"states","annotation":"If every branch uses at most $L$ queries to each of $r$ inputs, the whole tree has depth at most $rL$. The premise `hT` is the structural separate-cap predicate, including branches whose repeated answers are inconsistent."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b157735-157793","from_record":false,"lean":true,"lines":[675,679],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_terminalValue_le","origin":"ai","part":0,"phrase":"rec-cl-terminal-expectation","plain":"The expected terminal product stays below its initial value","record":null,"relation":"states","role":"derivation","rows":[{"end_line":692,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":675,"lines":[675,679],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_terminalValue_le","note":"","plain":"The expected terminal product stays below its initial value","proof_lines":[680,692],"relation":"states","annotation":"The recursively averaged product at the tree’s terminal leaves is at most the initial product of continuation values."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b158218-158470","from_record":false,"lean":true,"lines":[220,221],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_leaf","origin":"ai","part":0,"phrase":"rec-cl-terminal-conditional-success","plain":"A fixed output vector has product success weight","record":null,"relation":"part","role":"statement","rows":[{"end_line":232,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration gives the fixed-output product equality for independent weights. The conditional transcript law is supplied by (B.1), and the two upper bounds are separate.","fidelity_source":"ai","line":220,"lines":[220,221],"module":"QuarticQuery.LowerBound.DirectProduct","name":"QuarticQuery.guessSuccess_leaf","note":"","plain":"A fixed output vector has product success weight","proof_lines":[222,232],"relation":"part","annotation":"The declaration gives the fixed-output product equality for independent weights. The conditional transcript law is supplied by Equation (B.1), and the two upper bounds are separate.","annotation_references":[{"start":127,"end":141,"key":"equation:b.1"}]},{"end_line":756,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states the two inequalities for the separately normalized local laws. It does not include the first equality or the explicit conditional-prefix notation in display (B.5).","fidelity_source":"ai","line":733,"lines":[733,741],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classical_final_bound","note":"","plain":"Terminal success is bounded by the product of remaining optima","proof_lines":[742,756],"relation":"part","annotation":"The theorem states the two inequalities for the separately normalized local laws. It does not include the first equality or the explicit conditional-prefix notation in Equation (B.5).","annotation_references":[{"start":168,"end":182,"key":"equation:b.5"}]}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b159216-159372","from_record":false,"lean":true,"lines":[39,40],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalValue","origin":"ai","part":0,"phrase":"rec-cl-normalized-weight-identity","plain":"Optimal weighted success divided by the remaining prior mass","record":null,"relation":"part","role":"statement","rows":[{"end_line":40,"exact_lines":true,"fidelity":"weaker","fidelity_note":"`classicalValue` defines the first ratio in (B.6). The second identity also needs the prefix mass product from (B.1) and cancellation of positive masses; it is not a conjunct of this declaration.","fidelity_source":"ai","line":39,"lines":[39,40],"module":"QuarticQuery.Paper.ClassicalDirectProduct","name":"QuarticQuery.Paper.classicalValue","note":"","plain":"Optimal weighted success divided by the remaining prior mass","relation":"part","annotation":"`classicalValue` defines the first ratio in Equation (B.6). The second identity also uses the prefix mass product from Equation (B.1) and cancellation of positive masses.","annotation_references":[{"start":44,"end":58,"key":"equation:b.6"},{"start":119,"end":133,"key":"equation:b.1"}]}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b161148-161287","from_record":false,"lean":true,"lines":[252,257],"module":"QuarticQuery.Paper.ClassicalUniformZero","name":"QuarticQuery.Paper.uniform_zero_given_transcript","origin":"ai","part":0,"phrase":"rec-cl-posterior-zero-location","plain":"An undiscovered zero is uniform among the remaining 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 undiscovered zero is uniform among the remaining rows","proof_lines":[258,271],"relation":"states","annotation":"The premises require a probability law for the independent auxiliary inputs, `hτ` for no discovered zero, and `hpos` for positive transcript mass."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b","at":"b162356-162480","from_record":false,"lean":true,"lines":[240,243],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.expectedZeros_le_four","origin":"ai","part":0,"phrase":"rec-cl-early-late-total-endpoint","plain":"Expected discovered columns are at most four times the search budget ratio","record":null,"relation":"part","role":"statement","rows":[{"end_line":247,"exact_lines":true,"fidelity":"weaker","fidelity_note":"Lean proves only the final total bound $\\mathbb{E}Z\\le 4G/m$. It does not define $Z_{\\mathrm{early}}$ or $Z_{\\mathrm{late}}$ and does not prove the two separately displayed early/late bounds.","fidelity_source":"ai","line":240,"lines":[240,243],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.expectedZeros_le_four","note":"","plain":"Expected discovered columns are at most four times the search budget ratio","proof_lines":[244,247],"relation":"part","annotation":"Lean proves only the final total bound $\\mathbb{E}Z\\le 4G/m$. It does not define $Z_{\\mathrm{early}}$ or $Z_{\\mathrm{late}}$ and does not prove the two separately displayed early/late bounds."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b","at":"b162594-162699","from_record":false,"lean":true,"lines":[23,31],"module":"QuarticQuery.Paper.Eq19Complete","name":"QuarticQuery.Paper.eq_19_complete","origin":"ai","part":0,"phrase":"rec-cl-full-erased-zero-display","plain":"Erased-zero probability equals E[Z]/m and is at most 4G/m²","record":null,"relation":"states","role":"statement","rows":[{"end_line":39,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":23,"lines":[23,31],"module":"QuarticQuery.Paper.Eq19Complete","name":"QuarticQuery.Paper.eq_19_complete","note":"","plain":"Erased-zero probability equals E[Z]/m and is at most 4G/m²","proof_lines":[32,39],"relation":"states","annotation":"The theorem states both clauses: the selected erased-zero hit probability equals $\\mathbb E Z/m$, and $\\mathbb E Z/m\\le4G/m^2$. The auxiliary weights are nonnegative and sum to one, while `hT` bounds the tree’s depth."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b","at":"b163608-163634","from_record":false,"lean":true,"lines":[37,42],"module":"QuarticQuery.LowerBound.Planted.ZeroSearch","name":"QuarticQuery.zero_search_sum","origin":"ai","part":0,"phrase":"rec-cl-finite-world-search","plain":"Average column queries are at least |U|/2 times discovery probability","record":null,"relation":"states","role":"statement","rows":[{"end_line":130,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":37,"lines":[37,42],"module":"QuarticQuery.LowerBound.Planted.ZeroSearch","name":"QuarticQuery.zero_search_sum","note":"","plain":"Average column queries are at least |U|/2 times discovery probability","proof_lines":[43,130],"relation":"states","annotation":"The hypotheses `hout` and `hin` require identical outside answers and exactly one zero at its designated row in each world."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b","at":"b164714-164799","from_record":false,"lean":true,"lines":[192,194],"module":"QuarticQuery.LowerBound.Planted.ZeroSearch","name":"QuarticQuery.avg_foundZero_le","origin":"ai","part":0,"phrase":"rec-cl-one-column-average","plain":"One column’s discovery probability is controlled by its expected query cost","record":null,"relation":"states","role":"statement","rows":[{"end_line":207,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":192,"lines":[192,194],"module":"QuarticQuery.LowerBound.Planted.ZeroSearch","name":"QuarticQuery.avg_foundZero_le","note":"","plain":"One column’s discovery probability is controlled by its expected query cost","proof_lines":[195,207],"relation":"states","annotation":"The auxiliary strings are fixed parameters `A`. They are not conditioned on a search event."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b","at":"b164973-165032","from_record":false,"lean":true,"lines":[225,228],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.expectedZeros_le_two","origin":"ai","part":0,"phrase":"rec-cl-total-discovery-factor-two","plain":"Expected discovered columns are at most two times the search budget ratio","record":null,"relation":"part","role":"statement","rows":[{"end_line":236,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states $\\mathbb{E}Z\\le 2G/m$. The displayed intermediate bound $\\mathbb{E}Z\\le(2/m)\\,\\mathbb{E}\\, Q_X$ is used through the per-column estimate and summed query-count proof, but is not a conjunct of this endpoint.","fidelity_source":"ai","line":225,"lines":[225,228],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.expectedZeros_le_two","note":"","plain":"Expected discovered columns are at most two times the search budget ratio","proof_lines":[229,236],"relation":"part","annotation":"The theorem states $\\mathbb{E}Z\\le 2G/m$. The displayed intermediate bound $\\mathbb{E}Z\\le(2/m)\\,\\mathbb{E}\\, Q_X$ is used through the per-column estimate and summed query-count proof, but is not a conjunct of this endpoint."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b","at":"b165110-165183","from_record":false,"lean":true,"lines":[215,219],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.erasedZero_le_two","origin":"ai","part":0,"phrase":"rec-cl-appendix-erased-zero-two","plain":"Erased-zero hit probability is at most two G over m squared","record":null,"relation":"states","role":"statement","rows":[{"end_line":221,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":215,"lines":[215,219],"module":"QuarticQuery.Paper.ClassicalPlanted","name":"QuarticQuery.Paper.erasedZero_le_two","note":"","plain":"Erased-zero hit probability is at most two G over m squared","proof_lines":[220,221],"relation":"states","annotation":"The binders `hμ` and `hμ1` make the auxiliary-input weights a probability law. No promise support or partial-function hardness is required."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b","at":"b166976-167054","from_record":false,"lean":true,"lines":[104,107],"module":"QuarticQuery.LowerBound.RealizedCaps","name":"QuarticQuery.OutTree.actualCount","origin":"ai","part":0,"phrase":"rec-cl-original-terminal-count","plain":"Terminal queries to one input, including repetitions","record":null,"relation":"defines","role":"definition","rows":[{"end_line":107,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":104,"lines":[104,107],"module":"QuarticQuery.LowerBound.RealizedCaps","name":"QuarticQuery.OutTree.actualCount","note":"","plain":"Terminal queries to one input, including repetitions","relation":"defines","annotation":"The terminal count filters the actual ordered query path for calls to input $h$."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b167145-167227","from_record":false,"lean":true,"lines":[159,166],"module":"QuarticQuery.LowerBound.RealizedCaps","name":"QuarticQuery.direct_product_realized_caps_average","origin":"ai","part":0,"phrase":"rec-cl-joint-success-and-cap","plain":"Independent coins and advice preserve the product bound on compliant success","record":null,"relation":"states","role":"statement","rows":[{"end_line":171,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem covers finite independent seeds and uses recursive `actualComplies`. Display (B.8) uses terminal count inequalities and permits unrestricted independent advice; neither the count-equivalence wrapper nor arbitrary measurable-seed transfer is stated here.","fidelity_source":"ai","line":159,"lines":[159,166],"module":"QuarticQuery.LowerBound.RealizedCaps","name":"QuarticQuery.direct_product_realized_caps_average","note":"","plain":"Independent coins and advice preserve the product bound on compliant success","proof_lines":[167,171],"relation":"states","annotation":"The theorem uses finite independent seeds and the recursive cap predicate `actualComplies`. Applying it to Equation (B.8) requires linking the terminal counts to that predicate and restricting the advice to a finite seed.","annotation_references":[{"start":107,"end":121,"key":"equation:b.8"}]}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b167229-167425","from_record":false,"lean":true,"lines":[28,36],"module":"QuarticQuery.LowerBound.RealizedCaps","name":"QuarticQuery.OutTree.clip","origin":"ai","part":0,"phrase":"rec-cl-clip-before-excess","plain":"Stop immediately before the first query that exceeds a separate cap","record":null,"relation":"defines","role":"definition","rows":[{"end_line":36,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":28,"lines":[28,36],"module":"QuarticQuery.LowerBound.RealizedCaps","name":"QuarticQuery.OutTree.clip","note":"","plain":"Stop immediately before the first query that exceeds a separate cap","relation":"defines","annotation":"The clipped tree follows the original while the queried input has positive remaining allowance."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b167426-167542","from_record":false,"lean":true,"lines":[39,41],"module":"QuarticQuery.LowerBound.RealizedCaps","name":"QuarticQuery.OutTree.clip_capped","origin":"ai","part":0,"phrase":"rec-cl-clipped-tree-caps","plain":"Clipping enforces every cap on every branch","record":null,"relation":"states","role":"statement","rows":[{"end_line":48,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":39,"lines":[39,41],"module":"QuarticQuery.LowerBound.RealizedCaps","name":"QuarticQuery.OutTree.clip_capped","note":"","plain":"Clipping enforces every cap on every branch","proof_lines":[42,48],"relation":"states","annotation":"For any original finite tree and vector of allowances, the clipped tree satisfies the structural separate caps."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b167543-167675","from_record":false,"lean":true,"lines":[65,69],"module":"QuarticQuery.LowerBound.RealizedCaps","name":"QuarticQuery.OutTree.clip_eval_eq_of_actualComplies","origin":"ai","part":0,"phrase":"rec-cl-clipped-original-output","plain":"Clipping preserves the output on an originally compliant run","record":null,"relation":"part","role":"derivation","rows":[{"end_line":77,"exact_lines":true,"fidelity":"weaker","fidelity_note":"Lean proves output preservation from recursive `actualComplies`. The paper derives that premise from the terminal-count event $E$; no count-compliance equivalence theorem is supplied in the packet.","fidelity_source":"ai","line":65,"lines":[65,69],"module":"QuarticQuery.LowerBound.RealizedCaps","name":"QuarticQuery.OutTree.clip_eval_eq_of_actualComplies","note":"","plain":"Clipping preserves the output on an originally compliant run","proof_lines":[70,77],"relation":"part","annotation":"If the original execution satisfies `actualComplies`, clipping preserves its output on that input. The paper invokes the recursive premise after its terminal-count event $E$."}],"tone":6,"topic":"separate-cap-direct-product"},{"anchor":"sec-appendix-b","at":"b168760-169005","from_record":false,"lean":true,"lines":[76,81],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.eval_simTree","origin":"ai","part":0,"phrase":"rec-cl-appendix-fixed-time-inclusion","plain":"A faithful capped replay outputs the proposed address","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":115,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem proves correct simulator output assuming compatible answers and a prefix target-count bound. The specific nonheavy true-cell event implies those premises in the proof of `eq_21`; that event inclusion is not the general simulator theorem’s statement.","fidelity_source":"ai","line":76,"lines":[76,81],"module":"QuarticQuery.LowerBound.Planted.Simulator","name":"QuarticQuery.eval_simTree","note":"","plain":"A faithful capped replay outputs the proposed address","proof_lines":[82,115],"relation":"proof","annotation":"The theorem proves correct simulator output assuming compatible answers and a prefix target-count bound. The specific nonheavy true-cell event implies those premises in the proof of `eq_21`. That event inclusion is not the general simulator theorem’s statement. The assumptions `hbase` and `hV` say that outside and target answers agree with the original input."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b","at":"b179848-179910","from_record":false,"lean":true,"lines":[88,88],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.finite_depth_le","origin":"ai","part":0,"phrase":"rec-cl-finite-depth-trees","plain":"There are finitely many decision trees of bounded depth","record":null,"relation":"states","role":"derivation","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 of bounded depth","proof_lines":[89,103],"relation":"states","annotation":"On a finite coordinate set, the set of deterministic Boolean-output trees with depth at most $n$ is finite."}],"tone":7,"topic":"classical-lower-bound"},{"anchor":"sec-appendix-b","at":"b181750-181767","from_record":false,"lean":true,"lines":[312,312],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.four_mul_sq_le_two_pow","origin":"ai","part":0,"phrase":"rec-cl-exponential-base-estimate","plain":"The inequality 4t²≤2ᵗ for t≥8","record":null,"relation":"states","role":"statement","rows":[{"end_line":317,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":312,"lines":[312,312],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.four_mul_sq_le_two_pow","note":"","plain":"The inequality 4t²≤2ᵗ for t≥8","proof_lines":[313,317],"relation":"states","annotation":"For every natural number $t\\ge8$, $4t^2\\le2^t$. The premise `ht` gives the exact starting threshold."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-b","at":"b182229-182244","from_record":false,"lean":true,"lines":[339,339],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.one_le_Lvalue","origin":"ai","part":0,"phrase":"rec-cl-allowance-range","plain":"The Forrelation query cutoff is at least one when k≥2 and t≥8","record":null,"relation":"part","role":"derivation","rows":[{"end_line":342,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration gives $1\\le L$ under $k\\ge 2$ and $t\\ge 8$; the upper bound $L\\le m$ is the separate `Lvalue_le_mValue` theorem.","fidelity_source":"ai","line":339,"lines":[339,339],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.one_le_Lvalue","note":"","plain":"The Forrelation query cutoff is at least one when k≥2 and t≥8","proof_lines":[340,342],"relation":"part","annotation":"The type gives $1\\le L$ under $k\\ge 2$ and $t\\ge 8$. The upper bound $L\\le m$ is the separate `Lvalue_le_mValue` theorem."},{"end_line":361,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration gives $L\\le m$ (already under $k\\ge 1,t\\ge 1$), not the lower bound $1\\le L$. The two declarations together establish the displayed interval.","fidelity_source":"ai","line":345,"lines":[345,345],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.Lvalue_le_mValue","note":"","plain":"The floored one-input allowance never exceeds the column count","proof_lines":[346,361],"relation":"part","annotation":"The type gives $L\\le m$ (already under $k\\ge 1,t\\ge 1$), not the lower bound $1\\le L$. The two declarations together establish the displayed interval."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-b","at":"b182547-182720","from_record":false,"lean":true,"lines":[365,367],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.Gvalue_ge","origin":"ai","part":0,"phrase":"rec-cl-explicit-double-floor","plain":"Two floors lose at most a factor four","record":null,"relation":"states","role":"statement","rows":[{"end_line":406,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":365,"lines":[365,367],"module":"QuarticQuery.Results.Exponent","name":"QuarticQuery.Gvalue_ge","note":"","plain":"Two floors lose at most a factor four","proof_lines":[368,406],"relation":"states","annotation":"For every $k\\ge2$ and $t\\ge8$, the integer budget $G=\\lfloor m\\lfloor m^{1-1/k}/(\\log_2m)^2\\rfloor/100\\rfloor$ is at least $m^{2-1/k}/(400(\\log_2m)^2)$, with $m=4^t$. The theorem uses the construction’s `Gvalue`, `Lvalue`, and `mValue`. Their definitions translate to the displayed floors."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-c","at":"b183488-183646","from_record":false,"lean":true,"lines":[76,86],"module":"QuarticQuery.ForrelationLower.RealLeafExplicit","name":"QuarticQuery.ForrelationLower.advantage_le_sharp_real_leaves_explicit","origin":"ai","part":0,"phrase":"fr-coarse-advantage","plain":"Sharp expectation-gap bound for bounded real-valued trees","record":null,"relation":"part","role":"statement","rows":[{"end_line":91,"exact_lines":true,"fidelity":"different","fidelity_note":"The theorem gives a sharper bound for one arbitrary bounded real-leaf tree and permits any row-orthogonal matrix $H$. The selected display, with its following quantifier, covers every tree or convex mixture for the Walsh matrix. Mixture closure is a further averaging argument, not a quantifier of this theorem.","fidelity_source":"ai","line":76,"lines":[76,86],"module":"QuarticQuery.ForrelationLower.RealLeafExplicit","name":"QuarticQuery.ForrelationLower.advantage_le_sharp_real_leaves_explicit","note":"","plain":"Sharp expectation-gap bound for bounded real-valued trees","proof_lines":[87,91],"relation":"part","annotation":"The bound is for one tree with leaves in $[-1,1]$ and $1\\le d$ bounding its depth. `hH` and `hHb` allow any matrix with orthonormal rows and entries bounded by $\\varepsilon$. Specialize to Walsh and average the result to handle the paper’s finite mixtures."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b184060-184151","from_record":false,"lean":true,"lines":[373,382],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.exists_threshold","origin":"ai","part":0,"phrase":"fr-coarse-threshold-constants","plain":"An eventual dimension makes the coarse advantage small","record":null,"relation":"proof","role":"definition","rows":[{"end_line":522,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":366,"lines":[373,382],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.exists_threshold","note":"","plain":"An eventual dimension makes the coarse advantage small","proof_lines":[373,522],"relation":"proof","annotation":"The proof sets `c₃` to $16k(2\\tau+1)(\\ln(4k)+2)$ after writing $k=l+1$. Its `η` is the displayed $\\eta_0$, and `hη0` makes the ceiling involving their ratio meaningful."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b184158-184310","from_record":false,"lean":true,"lines":[382,389],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.exists_threshold","origin":"ai","part":0,"phrase":"fr-coarse-threshold-witness","plain":"An eventual dimension makes the coarse advantage small","record":null,"relation":"proof","role":"definition","rows":[{"end_line":522,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":366,"lines":[382,389],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.exists_threshold","note":"","plain":"An eventual dimension makes the coarse advantage small","proof_lines":[373,522],"relation":"proof","annotation":"The `refine` line supplies the maximum of four thresholds as the witness. The next inequalities `ht8`, `ht1`, `ht2` and `ht3` extract the respective consequences of $t\\ge t_0$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b184417-184540","from_record":false,"lean":true,"lines":[509,522],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.exists_threshold","origin":"ai","part":0,"phrase":"fr-coarse-threshold-effect","plain":"An eventual dimension makes the coarse advantage small","record":null,"relation":"proof","role":"statement","rows":[{"end_line":522,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":366,"lines":[509,522],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.exists_threshold","note":"The local coarse-expression estimate and exceptional-mass estimate at the chosen threshold.","plain":"An eventual dimension makes the coarse advantage small","proof_lines":[373,522],"relation":"proof","annotation":"After the threshold is chosen, the proof supplies witnesses `Λ` and `K` for each $t$. The last two conjuncts bound the advantage expression and $4/(m\\delta^2)$ separately."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b184549-184573","from_record":false,"lean":true,"lines":[248,248],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.four_sq_le_two_pow","origin":"ai","part":0,"phrase":"fr-exponential-beats-polynomial","plain":"The inequality 4t²≤2ᵗ for t≥8","record":null,"relation":"states","role":"statement","rows":[{"end_line":256,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":248,"lines":[248,248],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.four_sq_le_two_pow","note":"","plain":"The inequality 4t²≤2ᵗ for t≥8","proof_lines":[249,256],"relation":"states","annotation":"For every integer $t\\ge8$, $4t^2\\le2^t$. The hypothesis `ht` marks the beginning of the induction range."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b184674-184681","from_record":false,"lean":true,"lines":[259,260],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.Xk_facts","origin":"ai","part":0,"phrase":"fr-allowance-positive","plain":"The unfloored cutoff is at least one for k≥2 and t≥8","record":null,"relation":"contains","role":"statement","rows":[{"end_line":305,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":259,"lines":[259,260],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.Xk_facts","note":"","plain":"The unfloored cutoff is at least one for k≥2 and t≥8","proof_lines":[263,305],"relation":"contains","annotation":"The hypotheses require $k=l+1\\ge2$ and $t\\ge8$. The same lemma also gives the $k$th power of the allowance and compares the integer floor with that real allowance."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b184700-184762","from_record":false,"lean":true,"lines":[444,467],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.exists_threshold","origin":"ai","part":0,"phrase":"fr-coarse-depth-and-logarithm","plain":"An eventual dimension makes the coarse advantage small","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":522,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":366,"lines":[444,467],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.exists_threshold","note":"","plain":"An eventual dimension makes the coarse advantage small","proof_lines":[373,522],"relation":"proof","annotation":"The depth term in the `K ^ 2` equation is `2 * τ * Lvalue (l + 1) t + 1`. The proof uses the real allowance from `Xk_facts` to replace its floor when deriving the bound."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b186232-186275","from_record":false,"lean":true,"lines":[525,525],"module":"QuarticQuery.ForrelationLower.Main","name":"QuarticQuery.ForrelationLower.bansalSinhaLower","origin":"ai","part":0,"phrase":"fr-historical-hardness-closure","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":"weaker","fidelity_note":"The selected sentence uses the explicit $t_0$ from (C.2) with the paper’s choice $\\tau=30k$. `bansalSinhaLower` exports only existence of a sufficient $t_0$ and its proof chooses $\\tau$ existentially. The general threshold witness is separately linked, but this theorem does not specify that repetition count or threshold.","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":"The selected sentence uses the explicit $t_0$ from Equation (C.2) with the paper’s choice $\\tau=30k$. `bansalSinhaLower` exports only existence of a sufficient $t_0$ and its proof chooses $\\tau$ existentially. The general threshold witness is separately linked, but this theorem does not specify that repetition count or threshold.","annotation_references":[{"start":51,"end":65,"key":"equation:c.2"}]}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b186804-186826","from_record":false,"lean":true,"lines":[67,68],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budgetConst_le_exponential","origin":"ai","part":0,"phrase":"fr-quantum-constant-envelope","plain":"An exponential envelope for the quantum-budget constant","record":null,"relation":"states","role":"statement","rows":[{"end_line":84,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":67,"lines":[67,68],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budgetConst_le_exponential","note":"","plain":"An exponential envelope for the quantum-budget constant","proof_lines":[69,84],"relation":"states","annotation":"For $k\\ge1$, the quantum-budget constant is at most $2^{53}k2^{10k}$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-c","at":"b187012-187104","from_record":false,"lean":true,"lines":[60,62],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budgetConst_eq_expanded","origin":"ai","part":0,"phrase":"fr-quantum-constant-expansion","plain":"The exact quantum-budget constant as a function of k","record":null,"relation":"states","role":"statement","rows":[{"end_line":64,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":60,"lines":[60,62],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budgetConst_eq_expanded","note":"","plain":"The exact quantum-budget constant as a function of k","proof_lines":[63,64],"relation":"states","annotation":"The existing algorithm’s budget constant equals the displayed sum of one exponential term and two polynomial terms in $k$. Lean’s `budgetConst k` is defined from the previously chosen repetition and search costs. This theorem expands those definitions by arithmetic."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-c","at":"b187405-187487","from_record":false,"lean":true,"lines":[287,290],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.Q_Fkm_le_exponential","origin":"ai","part":0,"phrase":"fr-quantum-growing-k-bound","plain":"Quantum query bound with order factor 2⁵³·k·2¹⁰ᵏ","record":null,"relation":"states","role":"statement","rows":[{"end_line":296,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The paper states $k\\ge 2$ and $t\\ge 1$. The theorem uses $k=l+1$ with arbitrary natural $l$, so it also includes $k=1$; the $t\\ge 1$ condition and the fixed `forrCircuit` agree.","fidelity_source":"ai","line":287,"lines":[287,290],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.Q_Fkm_le_exponential","note":"","plain":"Quantum query bound with order factor 2⁵³·k·2¹⁰ᵏ","proof_lines":[291,296],"relation":"states","annotation":"The paper states $k\\ge 2$ and $t\\ge 1$. The theorem uses $k=l+1$ with arbitrary natural $l$, so it also includes $k=1$. The $t\\ge 1$ condition and the fixed `forrCircuit` agree. For $t\\ge1$ and $k=l+1\\ge1$, the particular total function built with `forrCircuit` has quantum cost at most $2^{53}k2^{10k}2^t(2t)^6$."}],"tone":0,"topic":"quartic-exponent"},{"anchor":"sec-appendix-c","at":"b191682-191766","from_record":false,"lean":true,"lines":[376,378],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.two_point_exp_le","origin":"ai","part":0,"phrase":"fr-centered-exponential-moment","plain":"A centered two-point law has a Gaussian exponential bound","record":null,"relation":"states","role":"statement","rows":[{"end_line":408,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The paper allows every centered $W$ in $[-B,B]$. The theorem allows only a two-point law with probabilities $p_0,p_1$, values $a_0,a_1$, and $B>0$. It states the final exponential bound; the cosh comparison appears inside its proof.","fidelity_source":"ai","line":376,"lines":[376,378],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.two_point_exp_le","note":"","plain":"A centered two-point law has a Gaussian exponential bound","proof_lines":[379,408],"relation":"states","annotation":"The paper allows every centered $W$ in $[-B,B]$. The theorem allows only a two-point law with probabilities $p_0,p_1$, values $a_0,a_1$, and $B>0$. It states the final exponential bound. The cosh comparison appears inside its proof. The binders `hp0`, `hp1`, `hp`, and `hm` state the probability and centering conditions."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b192866-192953","from_record":false,"lean":true,"lines":[414,424],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.hit_azuma","origin":"ai","part":0,"phrase":"fr-appendix-maximal-inequality","plain":"An exponential crossing bound along an adaptive query tree","record":null,"relation":"part","role":"statement","rows":[{"end_line":511,"exact_lines":true,"fidelity":"different","fidelity_note":"This is the general two-sided martingale maximum bound. The named declaration instead gives a one-sided crossing estimate for a finite query tree with product-biased fresh signs and an explicit additive bad-coefficient probability; it is an implementation ingredient, not this generic theorem.","fidelity_source":"ai","line":414,"lines":[414,424],"module":"QuarticQuery.ForrelationLower.TreeGrowth","name":"QuarticQuery.ForrelationLower.hit_azuma","note":"","plain":"An exponential crossing bound along an adaptive query tree","proof_lines":[425,511],"relation":"part","annotation":"The Lean inequality keeps the parameter `lam` in the exponential and adds `hit` of the bad-coefficient event. It bounds upper crossings on a product-biased finite query tree with the fresh-query identity `hY`. The displayed two-sided statement has a broader martingale domain."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b193617-193737","from_record":false,"lean":true,"lines":[137,137],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.eps_le","origin":"ai","part":0,"phrase":"fr-uniform-small-errors","plain":"The amplified error satisfies (8/9)²⁵ᵏ≤18⁻ᵏ","record":null,"relation":"part","role":"statement","rows":[{"end_line":139,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem supplies only $\\varepsilon\\le 18^{-k}$; the selected display states three separate numerical estimates. The other two are linked independently with their own hypotheses.","fidelity_source":"ai","line":137,"lines":[137,137],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.eps_le","note":"","plain":"The amplified error satisfies (8/9)²⁵ᵏ≤18⁻ᵏ","proof_lines":[138,139],"relation":"part","annotation":"The proof supplies only $\\varepsilon\\le 18^{-k}$. The selected display states three separate numerical estimates. The other two are linked independently with their own hypotheses."},{"end_line":76,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem supplies only $\\delta\\le a_k/32$; the selected display states three separate numerical estimates. The other two are linked independently with their own hypotheses.","fidelity_source":"ai","line":67,"lines":[67,67],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.dl_le","note":"","plain":"The promise threshold is small relative to the hard mean","proof_lines":[68,76],"relation":"part","annotation":"The proof supplies only $\\delta\\le a_k/32$. The selected display states three separate numerical estimates. The other two are linked independently with their own hypotheses."},{"end_line":157,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem supplies only $4/(m\\delta^2)\\le\\delta$; the selected display states three separate numerical estimates. The other two are linked independently with their own hypotheses.","fidelity_source":"ai","line":142,"lines":[142,143],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.q_le","note":"","plain":"Exceptional probability 4/(mδ²) is at most δ when m≥2¹⁵ᵏ⁺²","proof_lines":[144,157],"relation":"part","annotation":"The proof supplies only $4/(m\\delta^2)\\le\\delta$. The selected display states three separate numerical estimates. The other two are linked independently with their own hypotheses."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b194468-194578","from_record":false,"lean":true,"lines":[160,161],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.padding_pow_le","origin":"ai","part":0,"phrase":"fr-depth-padding","plain":"Query-depth padding adds a factor at most 50/49","record":null,"relation":"part","role":"statement","rows":[{"end_line":176,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":160,"lines":[160,161],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.padding_pow_le","note":"The statement gives the bound $50/49$. The finite binomial sum is a step in the paper’s derivation.","plain":"Query-depth padding adds a factor at most 50/49","proof_lines":[162,176],"relation":"part","annotation":"For every integer $k=l+1\\ge1$, $(1+1/(50k))^k\\le50/49$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b194686-194927","from_record":false,"lean":true,"lines":[270,275],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.main_term_le_sharp","origin":"ai","part":0,"phrase":"fr-sharp-main-term","plain":"The sharp main term is at most 18⁻⁽ᵏ⁻¹⁾/3","record":null,"relation":"part","role":"statement","rows":[{"end_line":290,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":270,"lines":[270,275],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.main_term_le_sharp","note":"The first expression is at most aₖ/3; the intervening displayed chain is not the theorem’s statement.","plain":"The sharp main term is at most 18⁻⁽ᵏ⁻¹⁾/3","proof_lines":[276,290],"relation":"part","annotation":"Read `hL` as the proposed cap bound and `hKsq` as the formula for the squared growth parameter. The conclusion bounds the main advantage term by $18^{-(k-1)}/3$, the endpoint of the displayed chain."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b195174-195250","from_record":false,"lean":true,"lines":[293,295],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.tail_le","origin":"ai","part":0,"phrase":"fr-sharp-residual","plain":"Even the coarse residual is at most one quarter","record":null,"relation":"states","role":"statement","rows":[{"end_line":322,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The paper uses $b=3/16$. For $t\\ge 6$, Lean bounds the larger residual using edge coefficient 3 and the same final $2^{-k}$; the paper’s dimension condition implies $t\\ge 6$. The remaining expression is algebraically $2^{-k}$ for every $cd\\ge 1$.","fidelity_source":"ai","line":293,"lines":[293,295],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.tail_le","note":"","plain":"Even the coarse residual is at most one quarter","proof_lines":[296,322],"relation":"states","annotation":"The paper uses $b=3/16$. For $t\\ge 6$, Lean bounds the larger residual using edge coefficient 3 and the same final $2^{-k}$. The paper’s dimension condition implies $t\\ge 6$. The remaining expression is algebraically $2^{-k}$ for every $cd\\ge 1$."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b195671-195730","from_record":false,"lean":true,"lines":[539,540],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.log_four_k_m_le","origin":"ai","part":0,"phrase":"fr-logarithm-bound","plain":"The lower-bound logarithm is at most six times t","record":null,"relation":"part","role":"statement","rows":[{"end_line":552,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":539,"lines":[539,540],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.log_four_k_m_le","note":"The endpoint inequality $\\ln(4km)\\le 6t$ under $1\\le k\\le t$.","plain":"The lower-bound logarithm is at most six times t","proof_lines":[541,552],"relation":"part","annotation":"If $1\\le k\\le t$ and $m=4^t$, then $\\ln(4km)\\le6t$. The binders `hk` and `hkt` state the range."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b195952-196178","from_record":false,"lean":true,"lines":[527,532],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.forrelation_lower_uniform_sharp","origin":"ai","part":0,"phrase":"fr-fixed-threshold-comparison","plain":"A uniform Forrelation lower bound with coefficient 2/18225","record":null,"relation":"part","role":"statement","rows":[{"end_line":536,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem gives the first sharp lower bound under $15k+2\\le 2t$. The selected chain additionally bounds its denominator, compares $54675k^2t$ with $4t^2$, and passes to the floor under $t\\ge 13669k^2$; those later comparisons are not its conclusion.","fidelity_source":"ai","line":527,"lines":[527,532],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.forrelation_lower_uniform_sharp","note":"The first strict lower bound under the dimension condition.","plain":"A uniform Forrelation lower bound with coefficient 2/18225","proof_lines":[533,536],"relation":"part","annotation":"The theorem gives the first sharp lower bound (Equation (8.39)) under $15k+2\\le 2t$. The selected chain additionally bounds its denominator, compares $54675k^2t$ with $4t^2$, and passes to the floor under $t\\ge 13669k^2$. Those later comparisons are not its conclusion.","annotation_references":[{"start":47,"end":62,"key":"equation:8.39"}]},{"end_line":552,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states only $\\ln(4km)\\le 6t$ for $1\\le k\\le t$. It helps the second line of the selected chain, but does not assert a query lower bound or either final floor comparison.","fidelity_source":"ai","line":539,"lines":[539,540],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.log_four_k_m_le","note":"The logarithmic estimate for the next comparison.","plain":"The lower-bound logarithm is at most six times t","proof_lines":[541,552],"relation":"part","annotation":"The conclusion is $\\ln(4km)\\le 6t$ for $1\\le k\\le t$. It helps the second line of the selected chain, but does not assert a query lower bound or either final floor comparison. The logarithmic estimate for the next comparison."},{"end_line":677,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The displayed chain assumes $k\\ge 2$ and $t\\ge 13669k^2$ and ends at the floor allowance. The named floor theorem assumes the larger threshold $t\\ge 3499200k^2$. Neither 13669 nor the optional ceiling threshold is exported in that theorem; the sharp suppliers are separate links.","fidelity_source":"ai","line":644,"lines":[644,645],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.lvalue_lt_R_explicit","note":"","plain":"Forrelation needs more than L queries when k≥2 and t≥3499200k²","proof_lines":[646,677],"relation":"part","annotation":"The displayed chain assumes $k\\ge 2$ and $t\\ge 13669k^2$ and ends at the floor allowance. The named floor theorem assumes the larger threshold $t\\ge 3499200k^2$. Neither 13669 nor the optional ceiling threshold is exported in that theorem. The sharp suppliers are separate links."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-c","at":"b196494-196571","from_record":false,"lean":true,"lines":[82,83],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.exists_P_yes","origin":"ai","part":0,"phrase":"fr-promise-values-exist","plain":"The Walsh promise has a one-input","record":null,"relation":"part","role":"statement","rows":[{"end_line":101,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives a one-input for every $t$ when $k\\ge 2$. The selected phrase asserts that both promise values occur; the zero-input existence is a separate theorem with a dimension hypothesis.","fidelity_source":"ai","line":82,"lines":[82,83],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.exists_P_yes","note":"","plain":"The Walsh promise has a one-input","proof_lines":[84,101],"relation":"part","annotation":"The type gives a one-input for every $t$ when $k\\ge 2$. The selected phrase asserts that both promise values occur. The zero-input existence is a separate theorem with a dimension hypothesis."},{"end_line":132,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem gives a zero-input when $10k+3\\le 2t$. The selected phrase asserts that both promise values occur; the one-input existence is supplied separately.","fidelity_source":"ai","line":104,"lines":[104,105],"module":"QuarticQuery.ForrelationLower.Uniform","name":"QuarticQuery.ForrelationLower.exists_P_no","note":"","plain":"Forrelation has a promised zero-input when m≥2¹⁰ᵏ⁺³","proof_lines":[106,132],"relation":"part","annotation":"The type gives a zero-input when $10k+3\\le 2t$. The selected phrase asserts that both promise values occur. The one-input existence is supplied separately."}],"tone":5,"topic":"forrelation-hardness"},{"anchor":"sec-appendix-e","at":"b215159-215231","from_record":false,"lean":true,"lines":[107,109],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.vall","origin":"ai","part":0,"phrase":"qm-verify-recursion","plain":"Acceptance probability when a list is verified sequentially","record":null,"relation":"defines","role":"definition","rows":[{"end_line":109,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":107,"lines":[107,109],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.vall","note":"","plain":"Acceptance probability when a list is verified sequentially","relation":"defines","annotation":"`vall v L` is the probability that at least one candidate in the list $L$ accepts when fresh verifiers are run in order."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b215636-215669","from_record":false,"lean":true,"lines":[135,136],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.le_vall_of_mem","origin":"ai","part":0,"phrase":"qm-verify-member","plain":"A listed candidate contributes its full verification chance","record":null,"relation":"states","role":"statement","rows":[{"end_line":147,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":135,"lines":[135,136],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.le_vall_of_mem","note":"","plain":"A listed candidate contributes its full verification chance","proof_lines":[137,147],"relation":"states","annotation":"If candidate $s$ occurs in $L$, sequential verification accepts with probability at least $v(s)$. The premise `h` bounds every verifier probability between zero and one, and `hs` states list membership."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b215675-215735","from_record":false,"lean":true,"lines":[149,150],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.vall_le","origin":"ai","part":0,"phrase":"qm-verify-union","plain":"An n-candidate list accepts with probability ≤nε when each accepts with ≤ε","record":null,"relation":"states","role":"statement","rows":[{"end_line":159,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":149,"lines":[149,150],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.vall_le","note":"","plain":"An n-candidate list accepts with probability ≤nε when each accepts with ≤ε","proof_lines":[151,159],"relation":"states","annotation":"If each fresh verifier accepts with probability at most $\\varepsilon$, the probability that any verification in $L$ accepts is at most $|L|\\varepsilon$. `h` supplies the probability bounds and `hε` supplies the common error bound."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b215970-216125","from_record":false,"lean":true,"lines":[112,116],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.tval","origin":"ai","part":0,"phrase":"qm-acceptance-recursion","plain":"Acceptance probability with tournament stages still available","record":null,"relation":"defines","role":"definition","rows":[{"end_line":116,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The definition gives the first two lines algebraically. The $W=0$ line additionally uses the paper’s premise $f(L)=1$; that premise is not part of the definition.","fidelity_source":"ai","line":112,"lines":[112,116],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.tval","note":"","plain":"Acceptance probability with tournament stages still available","relation":"defines","annotation":"The definition gives the first two lines algebraically. The $W=0$ line additionally uses the paper’s premise $f(L)=1$. That premise is not part of the definition. `tval a v f n L` combines candidate generation with eventual sequential verification."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b216437-216522","from_record":false,"lean":true,"lines":[178,180],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.tval_le","origin":"ai","part":0,"phrase":"qm-acceptance-upper","plain":"Continuation acceptance ≤(n+T)ε when each candidate accepts with probability ≤ε","record":null,"relation":"states","role":"statement","rows":[{"end_line":202,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem does not require the surrounding $W=0 \\Rightarrow f(L)=1$ condition; its upper bound remains valid with any stopping probabilities in $[0,1]$.","fidelity_source":"ai","line":178,"lines":[178,180],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.tval_le","note":"","plain":"Continuation acceptance ≤(n+T)ε when each candidate accepts with probability ≤ε","proof_lines":[181,202],"relation":"states","annotation":"The theorem does not require the surrounding $W=0 \\Rightarrow f(L)=1$ condition. Its upper bound remains valid with any stopping probabilities in $[0,1]$. `ha` bounds comparison entries in $[0,1]$, `hv` bounds verifier probabilities, `hf` bounds stopping probabilities, and `hε0` makes the error nonnegative."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b217155-217242","from_record":false,"lean":true,"lines":[239,244],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.tval_lower","origin":"ai","part":0,"phrase":"qm-acceptance-lower","plain":"Continuation acceptance is at least (1−ε)(1−P[miss]−Tε)","record":null,"relation":"states","role":"statement","rows":[{"end_line":303,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":239,"lines":[239,244],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.tval_lower","note":"","plain":"Continuation acceptance is at least (1−ε)(1−P[miss]−Tε)","proof_lines":[245,303],"relation":"states","annotation":"The lower bound is $(1-\\varepsilon)(1-I_n(L)-n\\varepsilon)$. Besides probability bounds `ha`, `hv`, and `hf`, it requires `hd` for dominance, `hvs` for verifier success at least $1-\\varepsilon$, and `hz` for certain stopping when total weight vanishes."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b218488-218711","from_record":false,"lean":true,"lines":[367,378],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.tournament_runs","origin":"ai","part":0,"phrase":"qm-acceptance-final","plain":"Tournament and verification cost at most T times their combined per-round cost","record":null,"relation":"contains","role":"statement","rows":[{"end_line":492,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem contains the final acceptance inequality and a realizing bounded program. It does not state the sentence’s intermediate ideal-miss estimate or the product-expansion step.","fidelity_source":"ai","line":367,"lines":[367,378],"module":"QuarticQuery.Upper.Tournament","name":"QuarticQuery.Upper.tournament_runs","note":"","plain":"Tournament and verification cost at most T times their combined per-round cost","proof_lines":[379,492],"relation":"contains","annotation":"The theorem contains the final acceptance inequality and a realizing bounded program. It does not state the sentence’s intermediate ideal-miss estimate in Equation (5.5) or the product-expansion step. The comparison assumptions are `hc`, `hu`, and `hcmp`. `hv` realizes each fresh verifier.","annotation_references":[{"start":155,"end":169,"key":"equation:5.5"}]}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b218856-219139","from_record":false,"lean":true,"lines":[175,180],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumList_coupling","origin":"ai","part":0,"phrase":"qm-list-indicator-bound","plain":"With certain verification, sampling failures add at most ε per stage","record":null,"relation":"states","role":"statement","rows":[{"end_line":236,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem needs only $v(s)=1$ and $0\\le v\\le 1$, not the stronger requirement that $v$ be the exact indicator of $s$. It proves the numerical continuation bound, with the membership interpretation supplied by that choice.","fidelity_source":"ai","line":175,"lines":[175,180],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumList_coupling","note":"","plain":"With certain verification, sampling failures add at most ε per stage","proof_lines":[181,236],"relation":"states","annotation":"The theorem needs only $v(s)=1$ and $0\\le v\\le 1$, not the stronger requirement that $v$ be the exact indicator of $s$. It proves the numerical continuation bound, with the membership interpretation supplied by that choice."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b220394-220580","from_record":false,"lean":true,"lines":[242,257],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.bounded_amplification","origin":"ai","part":0,"phrase":"qm-amplifier-uniform","plain":"Amplification preserves the successful state with failure ≤η when p≥γ","record":"quartic.lemma-4","relation":"contains","role":"statement","rows":[{"end_line":293,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem quantifies one abstract Proc before every Preparation and proves its state-observation laws and call cap. It does not itself give a physical AdaptiveProgram implementation on the stated finite interface.","fidelity_source":"ai","line":242,"lines":[242,257],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.bounded_amplification","note":"","plain":"Amplification preserves the successful state with failure ≤η when p≥γ","proof_lines":[258,293],"relation":"contains","annotation":"For the stated ranges of $\\gamma$ and $\\eta$, one abstract `Proc` precedes every `Preparation`. It bounds call count and specifies the state observations. A physical `AdaptiveProgram` requires a further compilation theorem."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b220822-221042","from_record":false,"lean":true,"lines":[18,53],"module":"QuarticQuery.Upper.UniformEndpoint","name":"QuarticQuery.Upper.uniformOpaqueAmplifier","origin":"ai","part":0,"phrase":"qm-retained-subsystem","plain":"Uniform amplification retains the original successful register","record":null,"relation":"contains","role":"statement","rows":[{"end_line":95,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The concrete factorization theorem assumes a Boolean basis-label success predicate $S$ and a basis origin $o$. The lemma’s surrounding statement allows any fixed free success projector; conversion of that interface is not in this declaration.","fidelity_source":"ai","line":18,"lines":[18,53],"module":"QuarticQuery.Upper.UniformEndpoint","name":"QuarticQuery.Upper.uniformOpaqueAmplifier","note":"","plain":"Uniform amplification retains the original successful register","proof_lines":[54,95],"relation":"contains","annotation":"The concrete factorization theorem assumes a Boolean basis-label success predicate `S` and a basis origin `o`. The lemma’s surrounding statement allows any fixed free success projector. Conversion of that interface is not in this declaration. The successful enlarged state factors as `retainedProduct ξ A.goodState`: auxiliary records times the original successful register."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b221158-221264","from_record":false,"lean":true,"lines":[242,257],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.bounded_amplification","origin":"ai","part":0,"phrase":"qm-amplifier-failure","plain":"Amplification preserves the successful state with failure ≤η when p≥γ","record":"quartic.lemma-4","relation":"contains","role":"statement","rows":[{"end_line":293,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":242,"lines":[242,257],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.bounded_amplification","note":"","plain":"Amplification preserves the successful state with failure ≤η when p≥γ","proof_lines":[258,293],"relation":"contains","annotation":"Fix $0<\\gamma\\leq1/2$ and $0<\\eta<1/2$, as stated by `hγ`, `hγ1`, `hη`, and `hη1`."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b221267-221377","from_record":false,"lean":true,"lines":[242,257],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.bounded_amplification","origin":"ai","part":0,"phrase":"qm-amplifier-all-branches","plain":"Amplification preserves the successful state with failure ≤η when p≥γ","record":"quartic.lemma-4","relation":"contains","role":"statement","rows":[{"end_line":293,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The declaration supplies the explicit constant 138 in place of the big-O call bound and requires no success-probability premise for that cap.","fidelity_source":"ai","line":242,"lines":[242,257],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.bounded_amplification","note":"","plain":"Amplification preserves the successful state with failure ≤η when p≥γ","proof_lines":[258,293],"relation":"contains","annotation":"The declaration supplies the explicit constant 138 in place of the big-$O$ call bound and requires no success-probability premise for that cap. Fix $0<\\gamma\\leq1/2$ and $0<\\eta<1/2$, as stated by `hγ`, `hγ1`, `hη`, and `hη1`."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b221447-221666","from_record":false,"lean":true,"lines":[202,210],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_label_law","origin":"ai","part":0,"phrase":"qm-amplified-label","plain":"The physical amplifier preserves relative probabilities of all successful labels","record":null,"relation":"states","role":"statement","rows":[{"end_line":211,"exact_lines":true,"fidelity":"different","fidelity_note":"The theorem constructs a bounded physical sampler with this classical label law from a Samples witness. It does not identify its measured register as the retained subsystem of the general-projector procedure in Lemma E.1.","fidelity_source":"ai","line":202,"lines":[202,210],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_amplified_label_law","note":"","plain":"The physical amplifier preserves relative probabilities of all successful labels","proof_lines":[211,211],"relation":"states","annotation":"The theorem turns `Samples n L` into a bounded `Runs` witness for `ampLaw`. Its observation is the classical output label. The general-projector claim about an unmeasured subsystem needs a state-level theorem."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b223259-223401","from_record":false,"lean":true,"lines":[38,50],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_state","origin":"ai","part":0,"phrase":"qm-grover-geometry","plain":"Grover iteration stays in the good and bad plane","record":null,"relation":"contains","role":"statement","rows":[{"end_line":70,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":38,"lines":[38,50],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_state","note":"","plain":"Grover iteration stays in the good and bad plane","proof_lines":[51,70],"relation":"contains","annotation":"For a preparation with `h0 : 0 < A.prob` and `h1 : A.prob < 1`, the good and bad normalized components are orthogonal unit vectors."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b223709-223735","from_record":false,"lean":true,"lines":[63,63],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.groverStep","origin":"ai","part":0,"phrase":"qm-grover-step","plain":"One Grover step uses two reflections and the preparation","record":null,"relation":"defines","role":"definition","rows":[{"end_line":63,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":63,"lines":[63,63],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.groverStep","note":"","plain":"One Grover step uses two reflections and the preparation","relation":"defines","annotation":"The step is the ordered gate list: reflect the successful subspace, undo the preparation, reflect the initial state, prepare again, and apply a global minus sign."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b224503-224616","from_record":false,"lean":true,"lines":[38,50],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_state","origin":"ai","part":0,"phrase":"qm-grover-state","plain":"Grover iteration stays in the good and bad plane","record":null,"relation":"part","role":"statement","rows":[{"end_line":70,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem contains the displayed state expansion for $0<p<1$, but does not state the displayed squared-norm probability formula; the companion declaration supplies it.","fidelity_source":"ai","line":38,"lines":[38,50],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_state","note":"","plain":"Grover iteration stays in the good and bad plane","proof_lines":[51,70],"relation":"part","annotation":"The theorem contains the displayed state expansion for $0<p<1$, but does not state the displayed squared-norm probability formula. The companion declaration supplies it. For a preparation with `h0 : 0 < A.prob` and `h1 : A.prob < 1`, the good and bad normalized components are orthogonal unit vectors."},{"end_line":413,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem gives the probability equality, including endpoint probabilities, but does not give the display’s full state expansion.","fidelity_source":"ai","line":407,"lines":[407,408],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.Preparation.norm_good_iterate_sq","note":"","plain":"After j Grover steps, success probability is sin²((2j+1)θ)","proof_lines":[409,413],"relation":"part","annotation":"The theorem gives the probability equality, including endpoint probabilities, but does not give the display’s full state expansion."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b224618-224745","from_record":false,"lean":true,"lines":[38,50],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_state","origin":"ai","part":0,"phrase":"qm-grover-success-state","plain":"Grover iteration stays in the good and bad plane","record":null,"relation":"contains","role":"statement","rows":[{"end_line":70,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration concludes `PhaseEq`, allowing any unit complex phase. The sentence identifies the phase more specifically as the real sign $+1$ or $-1$; that specificity is not in this theorem’s conclusion.","fidelity_source":"ai","line":38,"lines":[38,50],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_state","note":"","plain":"Grover iteration stays in the good and bad plane","proof_lines":[51,70],"relation":"contains","annotation":"The declaration concludes `PhaseEq`, allowing any unit complex phase. The sentence identifies the phase more specifically as the real sign $+1$ or $-1$. That specificity is not in this theorem’s conclusion. For a preparation with `h0 : 0 < A.prob` and `h1 : A.prob < 1`, the good and bad normalized components are orthogonal unit vectors."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b224948-225132","from_record":false,"lean":true,"lines":[74,75],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_zero","origin":"ai","part":0,"phrase":"qm-grover-zero","plain":"Zero initial success remains zero under every Grover iterate","record":null,"relation":"states","role":"statement","rows":[{"end_line":76,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration proves the zero successful projection for every iterate. It does not state the sentence’s separate fixed-vector explanations for the two reflections.","fidelity_source":"ai","line":74,"lines":[74,75],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_zero","note":"","plain":"Zero initial success remains zero under every Grover iterate","proof_lines":[76,76],"relation":"states","annotation":"The declaration proves the zero successful projection for every iterate. It does not state the sentence’s separate fixed-vector explanations for the two reflections. The hypothesis `h : A.prob = 0` is explicit, and `ℓ` is arbitrary."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b225867-225985","from_record":false,"lean":true,"lines":[125,128],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_parameters","origin":"ai","part":0,"phrase":"qm-amplifier-parameters","plain":"Choose the iteration range and bounded trial count","record":null,"relation":"contains","role":"definition","rows":[{"end_line":129,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":125,"lines":[125,128],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_parameters","note":"","plain":"Choose the iteration range and bounded trial count","proof_lines":[129,129],"relation":"contains","annotation":"The iteration range is $M=\\lceil10/\\sqrt\\gamma\\rceil$ and the trial count is $N=\\lceil\\log(1/\\eta)/\\log(40/31)\\rceil$. Lean uses natural-number ceilings, and `amplify γ η` is exactly `attempts M N`."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b226318-226499","from_record":false,"lean":true,"lines":[133,137],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_trial_distribution","origin":"ai","part":0,"phrase":"qm-trial-mixture","plain":"Mix a zero-iteration trial and a uniform iteration count with equal probability","record":null,"relation":"contains","role":"statement","rows":[{"end_line":138,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":133,"lines":[133,137],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_trial_distribution","note":"","plain":"Mix a zero-iteration trial and a uniform iteration count with equal probability","proof_lines":[138,138],"relation":"contains","annotation":"For a nonempty iteration range `hM : M ≠ 0`, each $j<M$ receives weight $1/(2M)$, and $j=0$ receives an additional $1/2$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b226690-226767","from_record":false,"lean":true,"lines":[71,71],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.calls_groverCircuit","origin":"ai","part":0,"phrase":"qm-grover-call-count","plain":"Preparing then iterating j times costs 2j plus one calls","record":null,"relation":"states","role":"statement","rows":[{"end_line":77,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":71,"lines":[71,71],"module":"QuarticQuery.Amplification.Geometry","name":"QuarticQuery.Amplification.calls_groverCircuit","note":"","plain":"Preparing then iterating j times costs 2j plus one calls","proof_lines":[72,77],"relation":"states","annotation":"Preparing once and applying $j$ Grover steps uses exactly $2j+1$ calls to the preparation or its inverse."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b227523-227657","from_record":false,"lean":true,"lines":[41,43],"module":"QuarticQuery.Amplification.Average","name":"QuarticQuery.Amplification.average_sin_sq","origin":"ai","part":0,"phrase":"qm-exact-average","plain":"The randomized Grover success average has an exact formula","record":null,"relation":"states","role":"statement","rows":[{"end_line":50,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":41,"lines":[41,43],"module":"QuarticQuery.Amplification.Average","name":"QuarticQuery.Amplification.average_sin_sq","note":"","plain":"The randomized Grover success average has an exact formula","proof_lines":[44,50],"relation":"states","annotation":"The average of $\\sin^2((2j+1)\\theta)$ for $0\\leq j<M$ is exactly $1/2-\\sin(4M\\theta)/(4M\\sin(2\\theta))$. The assumptions `hM : M ≠ 0` and `hs : sin(2θ) ≠ 0` justify both divisions."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b228546-228596","from_record":false,"lean":true,"lines":[81,84],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_sin_two_angle","origin":"ai","part":0,"phrase":"qm-double-angle","plain":"Small success probability gives the required double-angle lower bound","record":null,"relation":"states","role":"statement","rows":[{"end_line":89,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem requires $\\gamma\\le p\\le 1/2$ but not $\\gamma>0$, whereas the amplification section has the standing premise $\\gamma>0$.","fidelity_source":"ai","line":81,"lines":[81,84],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_sin_two_angle","note":"","plain":"Small success probability gives the required double-angle lower bound","proof_lines":[85,89],"relation":"states","annotation":"The theorem requires $\\gamma\\le p\\le 1/2$ but not $\\gamma>0$, whereas Appendix E.2 has the standing premise $\\gamma>0$.","annotation_references":[{"start":70,"end":82,"key":"appendix:e.2"}]}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b228951-229056","from_record":false,"lean":true,"lines":[93,99],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_eq_9","origin":"ai","part":0,"phrase":"qm-eq-nine","plain":"Random Grover iteration succeeds with probability ≥9/20 when γ≤p≤1/2","record":null,"relation":"states","role":"statement","rows":[{"end_line":117,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":93,"lines":[93,99],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_eq_9","note":"","plain":"Random Grover iteration succeeds with probability ≥9/20 when γ≤p≤1/2","proof_lines":[100,117],"relation":"states","annotation":"For `hγ : 0 < γ` and $\\gamma\\leq p\\leq1/2$, choose the paper’s $M=\\lceil10/\\sqrt\\gamma\\rceil$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b229350-229438","from_record":false,"lean":true,"lines":[150,151],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.Preparation.trialFail_le","origin":"ai","part":0,"phrase":"qm-trial-failure","plain":"Mixed-trial failure probability ≤31/40 when p≥γ","record":null,"relation":"states","role":"statement","rows":[{"end_line":153,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":150,"lines":[150,151],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.Preparation.trialFail_le","note":"","plain":"Mixed-trial failure probability ≤31/40 when p≥γ","proof_lines":[152,153],"relation":"states","annotation":"A trial using the prescribed iteration range has failure probability at most $31/40$ whenever `hγ : 0 < γ` and `hp : γ ≤ A.prob`."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b229729-229796","from_record":false,"lean":true,"lines":[211,212],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.failProb_attempts","origin":"ai","part":0,"phrase":"qm-repeated-failure","plain":"Fresh trials give a power of the single-trial failure probability","record":null,"relation":"states","role":"statement","rows":[{"end_line":215,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem proves the exact $f^N$ identity under $M\\ne 0$. The inequalities additionally use `trialFail_le` and the chosen $N$; neither numerical inequality is in this declaration.","fidelity_source":"ai","line":211,"lines":[211,212],"module":"QuarticQuery.Amplification.Bounded","name":"QuarticQuery.Amplification.failProb_attempts","note":"","plain":"Fresh trials give a power of the single-trial failure probability","proof_lines":[213,215],"relation":"states","annotation":"The theorem proves the exact $f^N$ identity under $M\\ne 0$. The inequalities additionally use `trialFail_le` and the chosen $N$. Neither numerical inequality is in this declaration. The premise `hM : M ≠ 0` makes the trial distribution valid."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b230891-230978","from_record":false,"lean":true,"lines":[149,150],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_call_cap","origin":"ai","part":0,"phrase":"qm-amplification-cap","plain":"At most N(2M+1) preparation or inverse calls on every branch","record":null,"relation":"part","role":"statement","rows":[{"end_line":151,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem proves $\\mathrm{calls}\\le N(2M+1)$, without the logarithmic estimate. The companion declaration proves the second inequality.","fidelity_source":"ai","line":149,"lines":[149,150],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_grover_call_cap","note":"","plain":"At most N(2M+1) preparation or inverse calls on every branch","proof_lines":[151,151],"relation":"part","annotation":"The cap is the product of `trialCount η` and `2 * iterationBound γ + 1`. The companion `amplification_budget_le` converts that product to a bound logarithmic in the target failure probability."},{"end_line":195,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem proves $N(2M+1)\\le 138\\,\\gamma^{-1/2}\\log(1/\\eta)$. It does not itself relate the product to the procedure’s `callCap`.","fidelity_source":"ai","line":156,"lines":[156,159],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.amplification_budget_le","note":"","plain":"Amplification uses at most 138 ln(1/η)/√γ padded calls","proof_lines":[160,195],"relation":"part","annotation":"This theorem proves $N(2M+1)\\le 138\\,\\gamma^{-1/2}\\log(1/\\eta)$. It does not itself relate the product to the procedure’s `callCap`. Under `hγ : 0 < γ`, `hγ1 : γ ≤ 1/2`, `hη : 0 < η`, and `hη1 : η < 1/2`, the full padded product $N(2M+1)$ is at most $138\\gamma^{-1/2}\\log(1/\\eta)$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b231678-231735","from_record":false,"lean":true,"lines":[18,53],"module":"QuarticQuery.Upper.UniformEndpoint","name":"QuarticQuery.Upper.uniformOpaqueAmplifier","origin":"ai","part":0,"phrase":"qm-positive-amplified-success","plain":"Uniform amplification retains the original successful register","record":null,"relation":"contains","role":"statement","rows":[{"end_line":95,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The concrete theorem gives the stronger numerical bound $\\mathrm{success}\\ge p/2$, but only for a basis-label success predicate $S$; the surrounding paper statement allows an arbitrary fixed success projector.","fidelity_source":"ai","line":18,"lines":[18,53],"module":"QuarticQuery.Upper.UniformEndpoint","name":"QuarticQuery.Upper.uniformOpaqueAmplifier","note":"","plain":"Uniform amplification retains the original successful register","proof_lines":[54,95],"relation":"contains","annotation":"The concrete theorem gives the stronger numerical bound of at least $p/2$ for the success probability, but only for a basis-label success predicate $S$. The surrounding paper statement allows an arbitrary fixed success projector. For a fixed basis origin `o`, Boolean success predicate `S`, and positive parameters with `η < 1/2`, one choice unitary `V` works for every preparation unitary `U`."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b232451-232701","from_record":false,"lean":true,"lines":[18,53],"module":"QuarticQuery.Upper.UniformEndpoint","name":"QuarticQuery.Upper.uniformOpaqueAmplifier","origin":"ai","part":0,"phrase":"qm-retained-factor","plain":"Uniform amplification retains the original successful register","record":null,"relation":"contains","role":"statement","rows":[{"end_line":95,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem proves the factorization for a Boolean basis-label success predicate $S$, with auxiliary and original factors ordered $\\xi\\otimes g$. The general-projector interface in the paper is not established by this declaration; equality of auxiliary norm and success is asserted when $p>0$.","fidelity_source":"ai","line":18,"lines":[18,53],"module":"QuarticQuery.Upper.UniformEndpoint","name":"QuarticQuery.Upper.uniformOpaqueAmplifier","note":"","plain":"Uniform amplification retains the original successful register","proof_lines":[54,95],"relation":"contains","annotation":"The theorem proves the factorization for a Boolean basis-label success predicate $S$, with auxiliary and original factors ordered $\\xi\\otimes g$. The general-projector interface in the paper is not established by this declaration. Equality of auxiliary norm and success is asserted when $p>0$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b233336-233458","from_record":false,"lean":true,"lines":[35,40],"module":"QuarticQuery.Upper.OpaqueSlot","name":"QuarticQuery.Upper.slice_opaqueSlot","origin":"ai","part":0,"phrase":"qm-controlled-grover","plain":"Control only the fixed reflections in a Grover step","record":null,"relation":"states","role":"statement","rows":[{"end_line":45,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The slice identity proves this controlled product for coordinate-subspace reflection `signU S` and a basis origin $o$. The paper’s display is stated under the broader fixed-projector interface.","fidelity_source":"ai","line":35,"lines":[35,40],"module":"QuarticQuery.Upper.OpaqueSlot","name":"QuarticQuery.Upper.slice_opaqueSlot","note":"","plain":"Control only the fixed reflections in a Grover step","proof_lines":[41,45],"relation":"states","annotation":"The slice identity uses the coordinate-subspace reflection `signU S` and basis origin `o`. The selected paper display uses a more general fixed projector."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b235198-235309","from_record":false,"lean":true,"lines":[152,154],"module":"QuarticQuery.Upper.Amplify","name":"QuarticQuery.Upper.ampLaw","origin":"ai","part":0,"phrase":"qm-pivot-kernel","plain":"Amplified labels keep normalized successful weights","record":null,"relation":"defines","role":"definition","rows":[{"end_line":154,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":152,"lines":[152,154],"module":"QuarticQuery.Upper.Amplify","name":"QuarticQuery.Upper.ampLaw","note":"","plain":"Amplified labels keep normalized successful weights","relation":"defines","annotation":"`ampLaw f q` assigns mass $f$ to failure and mass $(1-f)q_b/\\sum_cq_c$ to successful label $b$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b240683-240783","from_record":false,"lean":true,"lines":[238,241],"module":"QuarticQuery.Paper.QuantumTournamentFacts","name":"QuarticQuery.Paper.quantumTournament_cost","origin":"ai","part":0,"phrase":"qm-list-budget","plain":"Tournament bit-query bound 6072c√m T² ln(T)","record":null,"relation":"states","role":"statement","rows":[{"end_line":281,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem proves the displayed upper bound for `T·stageCost`. The displayed equality to $2T^2 c_{rd} N(2M_0+1)$ requires unfolding `stageCost` and the parameter definitions; it is not an explicit equality in the theorem statement.","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 expression on the left multiplies `stageCost` by `Tval m`. Unfold the stage budget and its parameters to recover the displayed product $2T^2 c_{rd}N(2M_0+1)$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b241797-241872","from_record":false,"lean":true,"lines":[30,30],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.QuantumCandidateList","origin":"ai","part":0,"phrase":"qm-candidate-list-type","plain":"Candidate lists whose length is bounded by the horizon","record":null,"relation":"defines","role":"definition","rows":[{"end_line":30,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":30,"lines":[30,30],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.QuantumCandidateList","note":"","plain":"Candidate lists whose length is bounded by the horizon","relation":"defines","annotation":"This type contains lists of candidates together with a proof that their length is at most $T$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b241929-242098","from_record":false,"lean":true,"lines":[270,282],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumTournament_list","origin":"ai","part":0,"phrase":"qm-list-uniform-law","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":"The witnesses give the same input-indexed law both a retained-workspace `Samples` implementation and a `Runs` implementation with a physical cap. The cap and law are fixed before the input varies."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b242129-242201","from_record":false,"lean":true,"lines":[270,282],"module":"QuarticQuery.Paper.QuantumTournament","name":"QuarticQuery.Paper.quantumTournament_list","origin":"ai","part":0,"phrase":"qm-list-success","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":"In the sum, `o.1` is the list carried by the bounded label `o`. The indicator `if s ∈ o.1` counts exactly the successful labels, even if their lists contain further candidates."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b245119-245300","from_record":false,"lean":true,"lines":[79,85],"module":"QuarticQuery.Paper.ConstructionPointerSupport","name":"QuarticQuery.Paper.construction_pointer_every_physical_coordinate","origin":"ai","part":0,"phrase":"qm-pointer-essential","plain":"Every pointer and target bit can change a pointer test","record":null,"relation":"states","role":"statement","rows":[{"end_line":99,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem proves that every listed physical coordinate is essential. It does not also state that no other coordinate is relevant; that upper-support conclusion comes from the pointer-test definition.","fidelity_source":"ai","line":79,"lines":[79,85],"module":"QuarticQuery.Paper.ConstructionPointerSupport","name":"QuarticQuery.Paper.construction_pointer_every_physical_coordinate","note":"","plain":"Every pointer and target bit can change a pointer test","proof_lines":[86,99],"relation":"states","annotation":"The theorem proves that every listed physical coordinate is essential. It does not also state that no other coordinate is relevant. That upper-support conclusion comes from the pointer-test definition. For any chosen pointer bit or target-column bit `q`, the theorem produces two physical inputs that differ only at that coordinate and give different pointer-test outputs."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-appendix-e","at":"b246631-246754","from_record":false,"lean":true,"lines":[99,114],"module":"QuarticQuery.Paper.ConstructionCoherent","name":"QuarticQuery.Paper.construction_lemma_2_2_ii","origin":"ai","part":0,"phrase":"qm-coherent-local-tests","plain":"All certificate tests act coherently on arbitrary index superpositions","record":null,"relation":"contains","role":"statement","rows":[{"end_line":122,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":99,"lines":[99,114],"module":"QuarticQuery.Paper.ConstructionCoherent","name":"QuarticQuery.Paper.construction_lemma_2_2_ii","note":"","plain":"All certificate tests act coherently on arbitrary index superpositions","proof_lines":[115,122],"relation":"contains","annotation":"For fixed circuit, column, and address, one family of finite workspaces and unitaries evaluates all local tests."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-appendix-e","at":"b246756-246893","from_record":false,"lean":true,"lines":[99,114],"module":"QuarticQuery.Paper.ConstructionCoherent","name":"QuarticQuery.Paper.construction_lemma_2_2_ii","origin":"ai","part":0,"phrase":"qm-arbitrary-index-coefficients","plain":"All certificate tests act coherently on arbitrary index superpositions","record":null,"relation":"contains","role":"statement","rows":[{"end_line":122,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":99,"lines":[99,114],"module":"QuarticQuery.Paper.ConstructionCoherent","name":"QuarticQuery.Paper.construction_lemma_2_2_ii","note":"","plain":"All certificate tests act coherently on arbitrary index superpositions","proof_lines":[115,122],"relation":"contains","annotation":"For fixed circuit, column, and address, one family of finite workspaces and unitaries evaluates all local tests."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-appendix-e","at":"b248593-248746","from_record":false,"lean":true,"lines":[127,134],"module":"QuarticQuery.Paper.ConstructionCoherent","name":"QuarticQuery.Paper.construction_controlled_compile","origin":"ai","part":0,"phrase":"qm-coherent-local-physical","plain":"Compile the controlled test family with two queries per read","record":null,"relation":"states","role":"statement","rows":[{"end_line":135,"exact_lines":true,"fidelity":"different","fidelity_note":"The theorem compiles any given indexed `IsCirc n` family with cap $2n$. It does not itself supply local-test circuits or simplify $\\max\\{3,\\ell+1\\}=\\ell+1$; `construction_lemma_2_2_ii` and $\\ell\\ge 2$ provide those steps.","fidelity_source":"ai","line":127,"lines":[127,134],"module":"QuarticQuery.Paper.ConstructionCoherent","name":"QuarticQuery.Paper.construction_controlled_compile","note":"","plain":"Compile the controlled test family with two queries per read","proof_lines":[135,135],"relation":"states","annotation":"`IsCirc.sigma hF` combines the indexed circuits, and `compile_circ` adds at most $2n$ queries to any continuation. To use the bound for local tests, take the read cap from `construction_lemma_2_2_ii` and simplify it under $\\ell\\ge2$."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-appendix-e","at":"b250348-250480","from_record":false,"lean":true,"lines":[34,36],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.testLaw","origin":"ai","part":0,"phrase":"qm-uniform-test-law","plain":"Sample one local test uniformly and report its failure label","record":null,"relation":"defines","role":"definition","rows":[{"end_line":36,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The definition explicitly sums the uniform exact-test law. The $h/K$ count and its coherent orthogonality explanation are consequences, not separate conclusions of this definition.","fidelity_source":"ai","line":34,"lines":[34,36],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.testLaw","note":"","plain":"Sample one local test uniformly and report its failure label","relation":"defines","annotation":"Each test has weight $1/K$. `testRes` returns `some e` for a failed test and `none` for a passed test, so the total `some` mass is $h/K$ when $h$ tests fail."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b252706-252768","from_record":false,"lean":true,"lines":[377,379],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_inverse_reads","origin":"ai","part":0,"phrase":"qm-inverse-read-cost","plain":"Reversing a logical circuit preserves its read count","record":null,"relation":"states","role":"statement","rows":[{"end_line":379,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":377,"lines":[377,379],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_inverse_reads","note":"","plain":"Reversing a logical circuit preserves its read count","relation":"states","annotation":"If `hF : IsCirc n F` witnesses an input-dependent unitary using at most $n$ logical reads, the inverse family has the same bound."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-e","at":"b253085-253190","from_record":false,"lean":true,"lines":[392,397],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_controlled_bit_query","origin":"ai","part":0,"phrase":"qm-two-query-read","plain":"One logical read has a two-query continuation implementation","record":null,"relation":"states","role":"statement","rows":[{"end_line":398,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":392,"lines":[392,397],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_controlled_bit_query","note":"","plain":"One logical read has a two-query continuation implementation","proof_lines":[398,398],"relation":"states","annotation":"For a logical read `R` and register embedding `e`, the theorem constructs a physical continuation transformer. For every input, arbitrary vector `ψ`, and Boolean outcome, applying the transformer has the same output mass as applying `R.op` before the continuation."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-e","at":"b253192-253439","from_record":false,"lean":true,"lines":[402,408],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_compile_circuit","origin":"ai","part":0,"phrase":"qm-two-query-circuit","plain":"Compile every logical circuit within twice its read count","record":null,"relation":"states","role":"statement","rows":[{"end_line":409,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states the physical $2q$ compilation bound and continuation-mass equality. The sentence’s separate equal-cost claim for logical inversion is supplied by `quantum_inverse_reads`.","fidelity_source":"ai","line":402,"lines":[402,408],"module":"QuarticQuery.Paper.QuantumAmplification","name":"QuarticQuery.Paper.quantum_compile_circuit","note":"","plain":"Compile every logical circuit within twice its read count","proof_lines":[409,409],"relation":"states","annotation":"The theorem states the physical $2q$ compilation bound and continuation-mass equality. The sentence’s separate equal-cost claim for logical inversion is supplied by `quantum_inverse_reads`. Given `hF : IsCirc n F` and an embedding of its finite register, the theorem composes the two-query read implementations."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-e","at":"b255197-255236","from_record":false,"lean":true,"lines":[50,50],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.addrCost","origin":"ai","part":0,"phrase":"qm-address-cost","plain":"Logical reads used to decode one complete address","record":null,"relation":"defines","role":"definition","rows":[{"end_line":50,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":50,"lines":[50,50],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.addrCost","note":"","plain":"Logical reads used to decode one complete address","relation":"defines","annotation":"`addrCost k t n` is $40t\\,nk$: there are $40t$ address bits, each uses $n$ repetitions, and each repetition uses $k$ logical reads."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b255237-255288","from_record":false,"lean":true,"lines":[126,126],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpCost","origin":"ai","part":0,"phrase":"qm-comparison-cost","plain":"A comparison decodes two addresses and checks both directions","record":null,"relation":"defines","role":"definition","rows":[{"end_line":126,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":126,"lines":[126,126],"module":"QuarticQuery.Upper.Columns","name":"QuarticQuery.Upper.cmpCost","note":"","plain":"A comparison decodes two addresses and checks both directions","relation":"defines","annotation":"The logical-read cost of one comparison is twice the address cost plus two pointer checks of depth $2t+1$. Lean groups the additions as `addrCost + (addrCost + ((2*t+1)+(2*t+1)))`, which is the paper’s $2a+2(2t+1)$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b255289-255350","from_record":false,"lean":true,"lines":[39,39],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.testCost","origin":"ai","part":0,"phrase":"qm-local-test-cost","plain":"Uniform local tests have logical read cap max(3,2t+1)","record":null,"relation":"defines","role":"definition","rows":[{"end_line":39,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":39,"lines":[39,39],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.testCost","note":"","plain":"Uniform local tests have logical read cap max(3,2t+1)","relation":"defines","annotation":"The common local-test read budget is $\\max\\{3,2t+1\\}$. Physical compilation and amplification multiply this logical-read count later. They are not included in `testCost`."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b255646-255724","from_record":false,"lean":true,"lines":[132,134],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.budget","origin":"ai","part":0,"phrase":"qm-finite-budget","plain":"Total physical budget for the tournament and fresh verifiers","record":null,"relation":"defines","role":"definition","rows":[{"end_line":134,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":132,"lines":[132,134],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.budget","note":"","plain":"Total physical budget for the tournament and fresh verifiers","relation":"defines","annotation":"The integer budget adds $T$ padded tournament stages and $T$ fresh candidate verifications."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b256321-256568","from_record":false,"lean":true,"lines":[138,140],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.Fkm_QLe","origin":"ai","part":0,"phrase":"qm-finite-budget-correctness","plain":"Any realizing circuit has the stated finite quantum budget","record":null,"relation":"states","role":"statement","rows":[{"end_line":218,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":138,"lines":[138,140],"module":"QuarticQuery.Upper.Verify","name":"QuarticQuery.Upper.Fkm_QLe","note":"","plain":"Any realizing circuit has the stated finite quantum budget","proof_lines":[141,218],"relation":"states","annotation":"For `hk : 1 ≤ k`, `ht : 1 ≤ t`, and a circuit satisfying `hC : CircuitRealises C (P k t)`, the constructed total Boolean function has an error-$1/3$ quantum algorithm within `budget`. The chosen repetition count `n` must be at least the prescribed count, as stated by `hn`."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b257139-257192","from_record":false,"lean":true,"lines":[278,280],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.Q_Fkm_le","origin":"ai","part":0,"phrase":"qm-quantum-log-six","plain":"Quantum query cost Oₖ(√m log⁶m) for the Forrelation board","record":null,"relation":"states","role":"statement","rows":[{"end_line":284,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":278,"lines":[278,280],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.Q_Fkm_le","note":"","plain":"Quantum query cost Oₖ(√m log⁶m) for the Forrelation board","proof_lines":[281,284],"relation":"states","annotation":"For the explicit Forrelation circuit with $k=l+1$ and $t\\ge1$, the total function has quantum query complexity at most $C_k2^t(2t)^6$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b257324-257437","from_record":false,"lean":true,"lines":[87,90],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budget_le","origin":"ai","part":0,"phrase":"qm-budget-simplification","plain":"Circuit-size bound gives budget Cₖ√m log₂⁶m","record":null,"relation":"contains","role":"statement","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 hypothesis `hSz` bounds circuit size by `forrConstant k * mValue t * (2*t)^2`, and `ht` requires $t\\geq1$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-e","at":"b259259-259337","from_record":false,"lean":true,"lines":[53,57],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budgetConst","origin":"ai","part":0,"phrase":"qm-budget-constant","plain":"An explicit constant depending only on Forrelation order","record":null,"relation":"defines","role":"definition","rows":[{"end_line":57,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":53,"lines":[53,57],"module":"QuarticQuery.Upper.Bound","name":"QuarticQuery.Upper.budgetConst","note":"","plain":"An explicit constant depending only on Forrelation order","relation":"defines","annotation":"The definition sets $R=1+1920000\\,2^{10k}$, $C_c=40Rk+4$, and $C_K=42+20C_F(k)$, then combines the tournament and verifier coefficients as $6(48002\\cdot258C_c)+6(40Rk+48002\\cdot69C_K)$."}],"tone":2,"topic":"quantum-search"},{"anchor":"sec-appendix-f","at":"b260071-260189","from_record":false,"lean":true,"lines":[73,76],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.constructionPartial_eq_some_iff","origin":"ai","part":0,"phrase":"qm-partial-domain","plain":"The domain representation gives exactly the prescribed optional label","record":null,"relation":"states","role":"statement","rows":[{"end_line":90,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":73,"lines":[73,76],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.constructionPartial_eq_some_iff","note":"","plain":"The domain representation gives exactly the prescribed optional label","proof_lines":[77,90],"relation":"states","annotation":"The domain-and-value description and the optional-value description agree pointwise. `constructionPartial 𝒟 f x = some b` holds exactly when there is a proof `hx` that $x$ belongs to the domain and the supplied value at that domain element equals $b$."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b260190-260383","from_record":false,"lean":true,"lines":[30,30],"module":"QuarticQuery.Statement","name":"QuarticQuery.PartialBool","origin":"ai","part":0,"phrase":"qm-partial-bool","plain":"A partial Boolean function may leave inputs undefined","record":null,"relation":"defines","role":"definition","rows":[{"end_line":30,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":30,"lines":[30,30],"module":"QuarticQuery.Statement","name":"QuarticQuery.PartialBool","note":"","plain":"A partial Boolean function may leave inputs undefined","relation":"defines","annotation":"A partial Boolean function maps every bit input to an optional Boolean value."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b260946-261009","from_record":false,"lean":true,"lines":[32,33],"module":"QuarticQuery.Statement","name":"QuarticQuery.totalise","origin":"ai","part":0,"phrase":"qm-total-function","plain":"Embed a total Boolean function as an everywhere defined promise","record":null,"relation":"defines","role":"definition","rows":[{"end_line":33,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":32,"lines":[32,33],"module":"QuarticQuery.Statement","name":"QuarticQuery.totalise","note":"","plain":"Embed a total Boolean function as an everywhere defined promise","relation":"defines","annotation":"`totalise f` returns `some (f x)` on every input. The repeated appearance of `totalise` in the quartic bound therefore imposes correctness on every bit string."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b261470-261580","from_record":false,"lean":true,"lines":[44,46],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree","origin":"ai","part":0,"phrase":"qm-query-tree","plain":"A deterministic tree of bit queries","record":null,"relation":"defines","role":"definition","rows":[{"end_line":46,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":44,"lines":[44,46],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree","note":"","plain":"A deterministic tree of bit queries","relation":"defines","annotation":"A deterministic algorithm whose internal nodes query one input coordinate and branch on its Boolean answer. The constructor `.query i onFalse onTrue` fixes the queried coordinate at that node. Later choices can depend on earlier answers through the branch taken."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b261581-261686","from_record":false,"lean":true,"lines":[48,50],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree.eval","origin":"ai","part":0,"phrase":"qm-query-evaluation","plain":"Evaluate a query tree by following the observed input bits","record":null,"relation":"defines","role":"definition","rows":[{"end_line":50,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":48,"lines":[48,50],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree.eval","note":"","plain":"Evaluate a query tree by following the observed input bits","relation":"defines","annotation":"Evaluation returns a leaf’s stored answer or recursively follows the child selected by the queried input bit."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b261718-261896","from_record":false,"lean":true,"lines":[53,55],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree.depth","origin":"ai","part":0,"phrase":"qm-query-depth","plain":"Tree depth charges the longest syntactic query path","record":null,"relation":"defines","role":"definition","rows":[{"end_line":55,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":53,"lines":[53,55],"module":"QuarticQuery.Statement","name":"QuarticQuery.QueryTree.depth","note":"","plain":"Tree depth charges the longest syntactic query path","relation":"defines","annotation":"A leaf has depth zero, and a query node has one plus the larger depth of its children."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b262441-262636","from_record":false,"lean":true,"lines":[78,80],"module":"QuarticQuery.Statement","name":"QuarticQuery.DLe","origin":"ai","part":0,"phrase":"qm-deterministic-budget","plain":"One exact tree must work on every promised input","record":null,"relation":"defines","role":"definition","rows":[{"end_line":80,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":78,"lines":[78,80],"module":"QuarticQuery.Statement","name":"QuarticQuery.DLe","note":"","plain":"One exact tree must work on every promised input","relation":"defines","annotation":"`DLe f budget` means that one tree has depth at most `budget` and returns the prescribed label at every input where $f$ is defined. The implication from `f x = some b` limits correctness to the promise."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b262645-262692","from_record":false,"lean":true,"lines":[87,88],"module":"QuarticQuery.Statement","name":"QuarticQuery.D","origin":"ai","part":0,"phrase":"qm-deterministic-minimum","plain":"Deterministic complexity is the least admissible exact budget","record":null,"relation":"defines","role":"definition","rows":[{"end_line":88,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":87,"lines":[87,88],"module":"QuarticQuery.Statement","name":"QuarticQuery.D","note":"","plain":"Deterministic complexity is the least admissible exact budget","relation":"defines","annotation":"The deterministic complexity is the natural-number infimum of budgets satisfying `DLe`."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b262694-262802","from_record":false,"lean":true,"lines":[59,64],"module":"QuarticQuery.Statement","name":"QuarticQuery.RandomizedProgram","origin":"ai","part":0,"phrase":"qm-random-mixture","plain":"An input-independent finite mixture of query trees","record":null,"relation":"defines","role":"definition","rows":[{"end_line":64,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":59,"lines":[59,64],"module":"QuarticQuery.Statement","name":"QuarticQuery.RandomizedProgram","note":"","plain":"An input-independent finite mixture of query trees","relation":"defines","annotation":"A randomized algorithm represented by finitely many deterministic query trees with positive weights summing to one. `weight_pos` excludes zero-weight support entries."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b262861-262907","from_record":false,"lean":true,"lines":[66,67],"module":"QuarticQuery.Statement","name":"QuarticQuery.RandomizedProgram.depth","origin":"ai","part":0,"phrase":"qm-random-depth","plain":"Randomized depth is the largest supported tree depth","record":null,"relation":"defines","role":"definition","rows":[{"end_line":67,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":66,"lines":[66,67],"module":"QuarticQuery.Statement","name":"QuarticQuery.RandomizedProgram.depth","note":"","plain":"Randomized depth is the largest supported tree depth","relation":"defines","annotation":"A randomized program’s depth is the finite maximum of the depths of its component trees."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b262913-262986","from_record":false,"lean":true,"lines":[69,71],"module":"QuarticQuery.Statement","name":"QuarticQuery.RandomizedProgram.success","origin":"ai","part":0,"phrase":"qm-random-success","plain":"Success sums the weights of trees returning the requested bit","record":null,"relation":"defines","role":"definition","rows":[{"end_line":71,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":69,"lines":[69,71],"module":"QuarticQuery.Statement","name":"QuarticQuery.RandomizedProgram.success","note":"","plain":"Success sums the weights of trees returning the requested bit","relation":"defines","annotation":"For a fixed input $x$ and requested answer $b$, success is the sum of the weights of trees whose evaluation returns $b$."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b263105-263236","from_record":false,"lean":true,"lines":[74,76],"module":"QuarticQuery.Statement","name":"QuarticQuery.RLe","origin":"ai","part":0,"phrase":"qm-random-budget","plain":"One capped random mixture succeeds on every promised input","record":null,"relation":"defines","role":"definition","rows":[{"end_line":76,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":74,"lines":[74,76],"module":"QuarticQuery.Statement","name":"QuarticQuery.RLe","note":"","plain":"One capped random mixture succeeds on every promised input","relation":"defines","annotation":"`RLe f budget` requires one finite positive mixture of trees with depth at most `budget` and success at least $2/3$ at every defined input."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b263339-263616","from_record":false,"lean":true,"lines":[84,85],"module":"QuarticQuery.Statement","name":"QuarticQuery.R","origin":"ai","part":0,"phrase":"qm-random-minimum","plain":"Randomized queries needed for error at most one third","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 needed for error at most one third","relation":"defines","annotation":"`RLe f t` describes one algorithm whose maximum tree depth is at most $t$. It is not an average query cost."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b263732-263805","from_record":false,"lean":true,"lines":[88,88],"module":"QuarticQuery.LowerBound.Minimax","name":"QuarticQuery.finite_depth_le","origin":"ai","part":0,"phrase":"qm-bounded-trees-finite","plain":"There are finitely many decision trees of bounded depth","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 of bounded depth","proof_lines":[89,103],"relation":"states","annotation":"On a finite coordinate set, the set of deterministic Boolean-output trees with depth at most $n$ is finite."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b264411-264573","from_record":false,"lean":true,"lines":[239,240],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.DLe_card","origin":"ai","part":0,"phrase":"qm-read-all","plain":"Reading every coordinate gives an exact admissible budget","record":null,"relation":"states","role":"statement","rows":[{"end_line":241,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":239,"lines":[239,240],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.DLe_card","note":"","plain":"Reading every coordinate gives an exact admissible budget","proof_lines":[240,241],"relation":"states","annotation":"Every partial Boolean function on a finite coordinate type can be computed exactly using at most the number of coordinates."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b264715-264815","from_record":false,"lean":true,"lines":[278,279],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.R_le_iff","origin":"ai","part":0,"phrase":"qm-classical-minima","plain":"A randomized complexity bound is equivalent to an admissible program","record":null,"relation":"part","role":"statement","rows":[{"end_line":279,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration proves only $R(f)\\le q$ iff `RLe f q`; the display also contains the deterministic equivalence and $R\\le D\\le|I|$.","fidelity_source":"ai","line":278,"lines":[278,279],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.R_le_iff","note":"","plain":"A randomized complexity bound is equivalent to an admissible program","proof_lines":[279,279],"relation":"part","annotation":"The proof gives only $R(f)\\le q$ iff `RLe f q`. The display also contains the deterministic equivalence and $R\\le D\\le|I|$. The inequality $R(f)\\leq q$ holds exactly when there is a randomized program satisfying `RLe f q`."},{"end_line":283,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration proves only $D(f)\\le q$ iff `DLe f q`; the display also contains the randomized equivalence and $R\\le D\\le|I|$.","fidelity_source":"ai","line":282,"lines":[282,283],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.D_le_iff","note":"","plain":"A deterministic complexity bound is equivalent to an exact tree","proof_lines":[283,283],"relation":"part","annotation":"The proof gives only $D(f)\\le q$ iff `DLe f q`. The display also contains the randomized equivalence and $R\\le D\\le|I|$."},{"end_line":287,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration proves only $R(f)\\le D(f)$; the two budget equivalences and the cardinality upper bound are supplied by the other links.","fidelity_source":"ai","line":286,"lines":[286,287],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.R_le_D","note":"","plain":"Randomness never increases the optimal query cost","proof_lines":[287,287],"relation":"part","annotation":"The proof gives only $R(f)\\le D(f)$. The two budget equivalences and the cardinality upper bound are supplied by the other links."},{"end_line":291,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This declaration proves only $D(f)\\le|I|$; it does not state $R\\le D$ or either budget equivalence.","fidelity_source":"ai","line":290,"lines":[290,291],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.D_le_card","note":"","plain":"Deterministic complexity never exceeds the number of coordinates","proof_lines":[291,291],"relation":"part","annotation":"The proof gives only $D(f)\\le|I|$. It does not state $R\\le D$ or either budget equivalence."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b265145-265252","from_record":false,"lean":true,"lines":[67,68],"module":"QuarticQuery.Bridge.DecisionTree","name":"QuarticQuery.D_totalise_eq_complexity","origin":"ai","part":0,"phrase":"qm-deterministic-library","plain":"The project and complexitylib have the same deterministic complexity","record":null,"relation":"states","role":"statement","rows":[{"end_line":80,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":67,"lines":[67,68],"module":"QuarticQuery.Bridge.DecisionTree","name":"QuarticQuery.D_totalise_eq_complexity","note":"","plain":"The project and complexitylib have the same deterministic complexity","proof_lines":[69,80],"relation":"states","annotation":"The conclusion identifies `D (totalise f)` with `DecisionTree.complexity f`. Both directions convert a tree to the other representation while preserving its evaluation and depth."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b265428-265581","from_record":false,"lean":true,"lines":[95,95],"module":"QuarticQuery.Statement","name":"QuarticQuery.Basis","origin":"ai","part":0,"phrase":"qm-query-basis","plain":"A query basis records coordinate, answer bit, and workspace","record":null,"relation":"defines","role":"definition","rows":[{"end_line":95,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":95,"lines":[95,95],"module":"QuarticQuery.Statement","name":"QuarticQuery.Basis","note":"","plain":"A query basis records coordinate, answer bit, and workspace","relation":"defines","annotation":"A basis label consists of an input coordinate, one Boolean answer bit, and a workspace label from `Fin (workspace+1)`."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b265918-265965","from_record":false,"lean":true,"lines":[180,185],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_query_oracle","origin":"ai","part":0,"phrase":"qm-bit-oracle","plain":"A bit query flips the answer register","record":null,"relation":"contains","role":"statement","rows":[{"end_line":192,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":180,"lines":[180,185],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_query_oracle","note":"","plain":"A bit query flips the answer register","proof_lines":[186,192],"relation":"contains","annotation":"The oracle sends $|i,b,z\\rangle$ to $|i,b\\oplus x_i,z\\rangle$, preserving the index and workspace."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b265967-266041","from_record":false,"lean":true,"lines":[180,185],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_query_oracle","origin":"ai","part":0,"phrase":"qm-bit-oracle-unitary","plain":"A bit query flips the answer register","record":null,"relation":"contains","role":"statement","rows":[{"end_line":192,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":180,"lines":[180,185],"module":"QuarticQuery.Paper.ConstructionModels","name":"QuarticQuery.Paper.construction_query_oracle","note":"","plain":"A bit query flips the answer register","proof_lines":[186,192],"relation":"contains","annotation":"The oracle sends $|i,b,z\\rangle$ to $|i,b\\oplus x_i,z\\rangle$, preserving the index and workspace."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b266417-266473","from_record":false,"lean":true,"lines":[101,102],"module":"QuarticQuery.Bridge.Oracle","name":"QuarticQuery.hadamard_phaseOracle_hadamard","origin":"ai","part":0,"phrase":"qm-phase-bit-equivalence","plain":"Hadamard conjugation converts controlled phase into a bit query","record":null,"relation":"states","role":"statement","rows":[{"end_line":112,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":101,"lines":[101,102],"module":"QuarticQuery.Bridge.Oracle","name":"QuarticQuery.hadamard_phaseOracle_hadamard","note":"","plain":"Hadamard conjugation converts controlled phase into a bit query","proof_lines":[103,112],"relation":"states","annotation":"Applying a Hadamard to the answer bit, then the controlled phase oracle, then another Hadamard gives exactly the bit-oracle action on every state vector."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b267004-267160","from_record":false,"lean":true,"lines":[123,124],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.norm_sq_eq_project_add","origin":"ai","part":0,"phrase":"qm-projection-mass","plain":"A binary projection splits squared norm without losing mass","record":null,"relation":"states","role":"statement","rows":[{"end_line":128,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration states the squared-norm sum identity for the displayed two components. It does not separately assert their orthogonality or define the measurement branches.","fidelity_source":"ai","line":123,"lines":[123,124],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.norm_sq_eq_project_add","note":"","plain":"A binary projection splits squared norm without losing mass","proof_lines":[125,128],"relation":"states","annotation":"The declaration states the squared-norm sum identity for the displayed two components. It does not separately assert their orthogonality or define the measurement branches. For a basis subset $S$ and any vector $\\psi$, the squared norm is the sum of the squared norms of `project S ψ` and its complementary component."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b268070-268285","from_record":false,"lean":true,"lines":[114,118],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram","origin":"ai","part":0,"phrase":"qm-quantum-syntax","plain":"A quantum program has gates, queries, measurements, and outputs","record":null,"relation":"defines","role":"definition","rows":[{"end_line":118,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":114,"lines":[114,118],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram","note":"","plain":"A quantum program has gates, queries, measurements, and outputs","relation":"defines","annotation":"A finite adaptive program has four constructors: output a Boolean value, apply a fixed linear isometry, query the input oracle, or measure a basis subset and choose between two continuations."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b268286-268436","from_record":false,"lean":true,"lines":[122,127],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram.queryCap","origin":"ai","part":0,"phrase":"qm-quantum-cap","plain":"The quantum cap counts every syntactic branch","record":null,"relation":"defines","role":"definition","rows":[{"end_line":127,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":122,"lines":[122,127],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram.queryCap","note":"","plain":"The quantum cap counts every syntactic branch","relation":"defines","annotation":"An output costs zero, a gate preserves the continuation’s cap, a query adds one, and a measurement takes the maximum of its two continuation caps."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b269246-269319","from_record":false,"lean":true,"lines":[130,137],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram.outputMass","origin":"ai","part":0,"phrase":"qm-measurement-mass-recursion","plain":"Output mass keeps each branch probability in its vector norm","record":null,"relation":"contains","role":"definition","rows":[{"end_line":137,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":130,"lines":[130,137],"module":"QuarticQuery.Statement","name":"QuarticQuery.AdaptiveProgram.outputMass","note":"","plain":"Output mass keeps each branch probability in its vector norm","relation":"contains","annotation":"The mass of an output bit is computed recursively from an unnormalized starting vector."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b269409-269481","from_record":false,"lean":true,"lines":[135,136],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.AdaptiveProgram.outputMass_nonneg","origin":"ai","part":0,"phrase":"qm-quantum-mass-laws","plain":"Every quantum output mass is nonnegative","record":null,"relation":"part","role":"statement","rows":[{"end_line":143,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem proves nonnegativity of each output mass, but not the display’s total-mass equality.","fidelity_source":"ai","line":135,"lines":[135,136],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.AdaptiveProgram.outputMass_nonneg","note":"","plain":"Every quantum output mass is nonnegative","proof_lines":[137,143],"relation":"part","annotation":"The theorem proves nonnegativity of each output mass, but not the display’s total-mass equality."},{"end_line":161,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem proves the total-mass equality, but does not separately state nonnegativity of each output mass.","fidelity_source":"ai","line":146,"lines":[146,147],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.AdaptiveProgram.outputMass_true_add_false","note":"","plain":"The two output masses sum to the starting squared norm","proof_lines":[148,161],"relation":"part","annotation":"The theorem proves the total-mass equality, but does not separately state nonnegativity of each output mass."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b270532-270777","from_record":false,"lean":true,"lines":[144,148],"module":"QuarticQuery.Statement","name":"QuarticQuery.QLe","origin":"ai","part":0,"phrase":"qm-quantum-budget","plain":"One uniform quantum program must meet the error and cap bounds","record":null,"relation":"defines","role":"definition","rows":[{"end_line":148,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":144,"lines":[144,148],"module":"QuarticQuery.Statement","name":"QuarticQuery.QLe","note":"","plain":"One uniform quantum program must meet the error and cap bounds","relation":"defines","annotation":"An admissible budget allows either a constant answer on the promise or a finite workspace, unit starting vector, and adaptive program with the stated cap and success at least $2/3$. All existential choices precede `∀ x b`, so the algorithm is uniform over inputs."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b271141-271255","from_record":false,"lean":true,"lines":[382,383],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.constantOnPromise_of_isEmpty","origin":"ai","part":0,"phrase":"qm-empty-coordinate-promise","plain":"An empty coordinate set permits only a constant promise","record":null,"relation":"states","role":"statement","rows":[{"end_line":386,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":382,"lines":[382,383],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.constantOnPromise_of_isEmpty","note":"","plain":"An empty coordinate set permits only a constant promise","proof_lines":[383,386],"relation":"states","annotation":"If the coordinate type is empty, every partial Boolean function is constant on its promise."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b271329-271394","from_record":false,"lean":true,"lines":[150,151],"module":"QuarticQuery.Statement","name":"QuarticQuery.Q","origin":"ai","part":0,"phrase":"qm-quantum-minimum","plain":"Quantum queries needed for error at most one third","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 needed for error at most one third","relation":"defines","annotation":"`QLe f t` requires a single input-independent program with a syntactic cap on every branch, even off promise."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b271780-271842","from_record":false,"lean":true,"lines":[360,361],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.AdaptiveProgram.outputMass_ofTree","origin":"ai","part":0,"phrase":"qm-tree-quantum-simulation","plain":"A quantum tree simulation returns exactly the classical answer","record":null,"relation":"states","role":"statement","rows":[{"end_line":377,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem gives the exact output law of the tree simulation. Its cap equality is a separate theorem `queryCap_ofTree` and is not stated here.","fidelity_source":"ai","line":360,"lines":[360,361],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.AdaptiveProgram.outputMass_ofTree","note":"","plain":"A quantum tree simulation returns exactly the classical answer","proof_lines":[362,377],"relation":"states","annotation":"The theorem gives the exact output law of the tree simulation. Its cap equality is a separate theorem `queryCap_ofTree` and is not stated here."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b271926-272006","from_record":false,"lean":true,"lines":[418,419],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.Q_le_D","origin":"ai","part":0,"phrase":"qm-quantum-minima","plain":"Quantum query complexity is at most deterministic depth","record":null,"relation":"part","role":"statement","rows":[{"end_line":419,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem supplies $Q(f)\\le D(f)$, but not $D(f)\\le|I|$ or the admissible-budget equivalence.","fidelity_source":"ai","line":418,"lines":[418,419],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.Q_le_D","note":"","plain":"Quantum query complexity is at most deterministic depth","proof_lines":[419,419],"relation":"part","annotation":"The theorem supplies $Q(f)\\le D(f)$, but not $D(f)\\le|I|$ or the admissible-budget equivalence."},{"end_line":291,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem supplies $D(f)\\le|I|$, but not $Q(f)\\le D(f)$ or the quantum-budget equivalence.","fidelity_source":"ai","line":290,"lines":[290,291],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.D_le_card","note":"","plain":"Deterministic complexity never exceeds the number of coordinates","proof_lines":[291,291],"relation":"part","annotation":"The theorem supplies $D(f)\\le|I|$, but not $Q(f)\\le D(f)$ or the quantum-budget equivalence."},{"end_line":415,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem supplies $Q(f)\\le q$ iff `QLe f q`, but not the comparison with $D$ or the coordinate count.","fidelity_source":"ai","line":414,"lines":[414,415],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.Q_le_iff","note":"","plain":"A quantum complexity bound is equivalent to an admissible witness","proof_lines":[415,415],"relation":"part","annotation":"The theorem supplies $Q(f)\\le q$ iff `QLe f q`, but not the comparison with $D$ or the coordinate count. The numerical inequality $Q(f)\\leq q$ holds exactly when `QLe f q` holds."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b272781-272801","from_record":false,"lean":true,"lines":[39,40],"module":"QuarticQuery.Statement","name":"QuarticQuery.reindex","origin":"ai","part":0,"phrase":"qm-coordinate-reindex","plain":"Rename coordinates by precomposing the input with a bijection","record":null,"relation":"defines","role":"definition","rows":[{"end_line":40,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":39,"lines":[39,40],"module":"QuarticQuery.Statement","name":"QuarticQuery.reindex","note":"","plain":"Rename coordinates by precomposing the input with a bijection","relation":"defines","annotation":"For a coordinate bijection `e : ι ≃ κ`, the renamed function on a $\\kappa$-input evaluates the original function at `fun i => x (e i)`."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b273182-273238","from_record":false,"lean":true,"lines":[353,354],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.R_reindex","origin":"ai","part":0,"phrase":"qm-reindex-complexities","plain":"Renaming coordinates preserves randomized query complexity","record":null,"relation":"part","role":"statement","rows":[{"end_line":355,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem states only randomized invariance; the other two displayed equalities require the companion declarations.","fidelity_source":"ai","line":353,"lines":[353,354],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.R_reindex","note":"","plain":"Renaming coordinates preserves randomized query complexity","proof_lines":[355,355],"relation":"part","annotation":"This theorem states only randomized invariance. The other two displayed equalities require the companion declarations. The theorem uses `reindex e f`, which also transports undefined inputs correctly."},{"end_line":360,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem states only deterministic invariance; the other two displayed equalities require the companion declarations.","fidelity_source":"ai","line":358,"lines":[358,359],"module":"QuarticQuery.Model.Classical","name":"QuarticQuery.D_reindex","note":"","plain":"Renaming coordinates preserves deterministic query complexity","proof_lines":[360,360],"relation":"part","annotation":"This theorem states only deterministic invariance. The other two displayed equalities require the companion declarations."},{"end_line":277,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem states only quantum invariance; the other two displayed equalities require the companion declarations.","fidelity_source":"ai","line":276,"lines":[276,276],"module":"QuarticQuery.Model.Quantum","name":"QuarticQuery.Q_reindex","note":"","plain":"Renaming coordinates preserves quantum query complexity","proof_lines":[277,277],"relation":"part","annotation":"This theorem states only quantum invariance. The other two displayed equalities require the companion declarations."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b273737-273907","from_record":false,"lean":true,"lines":[148,157],"module":"QuarticQuery.Bridge.Deferred","name":"QuarticQuery.FixedSim","origin":"ai","part":0,"phrase":"qm-fixed-simulation-embedding","plain":"A fixed simulation retains an oracle-compatible embedding","record":null,"relation":"defines","role":"definition","rows":[{"end_line":157,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":148,"lines":[148,157],"module":"QuarticQuery.Bridge.Deferred","name":"QuarticQuery.FixedSim","note":"","plain":"A fixed simulation retains an oracle-compatible embedding","relation":"defines","annotation":"A `FixedSim A T` packages the enlarged finite workspace, an oracle-compatible embedding `embed`, a separate entry isometry, fixed gates, and an accepting basis subset. `embed_phase` says the embedding commutes with the controlled phase oracle."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b274064-274187","from_record":false,"lean":true,"lines":[286,290],"module":"QuarticQuery.Bridge.Deferred","name":"QuarticQuery.exists_fixedSequence","origin":"ai","part":0,"phrase":"qm-fixed-sequence-mass","plain":"Deferred measurements with exactly T phase queries under cap T","record":null,"relation":"states","role":"statement","rows":[{"end_line":292,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":286,"lines":[286,290],"module":"QuarticQuery.Bridge.Deferred","name":"QuarticQuery.exists_fixedSequence","note":"","plain":"Deferred measurements with exactly T phase queries under cap T","proof_lines":[291,292],"relation":"states","annotation":"Given `hT : A.queryCap ≤ T`, the theorem produces one enlarged finite workspace, entry isometry, sequence of fixed gates, and accepting projector."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b274713-274771","from_record":false,"lean":true,"lines":[249,259],"module":"QuarticQuery.Bridge.Deferred","name":"QuarticQuery.FixedSim.measure","origin":"ai","part":0,"phrase":"qm-deferred-direct-sum","plain":"A deferred measurement enters two orthogonal workspace blocks","record":null,"relation":"proof","role":"derivation","rows":[{"end_line":265,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":227,"lines":[249,259],"module":"QuarticQuery.Bridge.Deferred","name":"QuarticQuery.FixedSim.measure","note":"","plain":"A deferred measurement enters two orthogonal workspace blocks","relation":"proof","annotation":"To combine two continuation simulations with the same padded query count, the measurement construction enters their direct-sum workspace with `s.entry (project S ψ)` and `t.entry (ψ - project S ψ)`."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b275048-275186","from_record":false,"lean":true,"lines":[135,137],"module":"QuarticQuery.Bridge.Deferred","name":"QuarticQuery.exists_gate","origin":"ai","part":0,"phrase":"qm-deferred-gate-extension","plain":"Two finite-dimensional isometric embeddings differ by a free gate","record":null,"relation":"states","role":"statement","rows":[{"end_line":142,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The theorem permits any two isometries $c,L$ into the finite target. The paper applies it to the oracle-compatible $J$ and the particular entry map composed with a Hadamard.","fidelity_source":"ai","line":135,"lines":[135,137],"module":"QuarticQuery.Bridge.Deferred","name":"QuarticQuery.exists_gate","note":"","plain":"Two finite-dimensional isometric embeddings differ by a free gate","proof_lines":[138,142],"relation":"states","annotation":"The theorem permits any two isometries `c` and `L` into the finite target. The paper applies it to the oracle-compatible `J` and the particular entry map composed with a Hadamard. For two isometries `c` and `L` into the same finite query space, there is an input-independent isometry `Z` satisfying $Z(c\\phi)=L\\phi$ for every source vector."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b275470-275637","from_record":false,"lean":true,"lines":[286,290],"module":"QuarticQuery.Bridge.Deferred","name":"QuarticQuery.exists_fixedSequence","origin":"ai","part":0,"phrase":"qm-deferred-padding","plain":"Deferred measurements with exactly T phase queries under cap T","record":null,"relation":"contains","role":"statement","rows":[{"end_line":292,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem concludes the exactly-T mass identity. Its statement does not include the sentence’s structural-induction explanation or the padding construction for individual branches.","fidelity_source":"ai","line":286,"lines":[286,290],"module":"QuarticQuery.Bridge.Deferred","name":"QuarticQuery.exists_fixedSequence","note":"","plain":"Deferred measurements with exactly T phase queries under cap T","proof_lines":[291,292],"relation":"contains","annotation":"The theorem concludes the mass for exactly $T$ queries identity. Its statement does not include the sentence’s structural-induction explanation or the padding construction for individual branches. Given `hT : A.queryCap ≤ T`, the theorem produces one enlarged finite workspace, entry isometry, sequence of fixed gates, and accepting projector."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b276758-276910","from_record":false,"lean":true,"lines":[104,107],"module":"QuarticCorpus.Independent.ModelZero.Proof","name":"QuarticQuery.Independent.ModelZero.zero_query_characterization","origin":"ai","part":0,"phrase":"qm-zero-complexity","plain":"Zero queries are possible exactly when promised labels agree","record":null,"relation":"states","role":"statement","rows":[{"end_line":108,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":104,"lines":[104,107],"module":"QuarticCorpus.Independent.ModelZero.Proof","name":"QuarticQuery.Independent.ModelZero.zero_query_characterization","note":"","plain":"Zero queries are possible exactly when promised labels agree","proof_lines":[108,108],"relation":"states","annotation":"For every partial Boolean function on a finite coordinate type, deterministic, randomized, and quantum complexity are each zero exactly when all promised labels agree. The predicate `LabelsAgree` also holds for an empty promise. `labelsAgree_iff_constant` identifies it with `ConstantOnPromise`."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b277077-277291","from_record":false,"lean":true,"lines":[31,34],"module":"QuarticCorpus.Independent.ModelZero.Proof","name":"QuarticQuery.Independent.ModelZero.zero_quantum_mass_input_independent","origin":"ai","part":0,"phrase":"qm-zero-input-independence","plain":"A zero-query quantum program cannot distinguish any inputs","record":null,"relation":"states","role":"statement","rows":[{"end_line":49,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":31,"lines":[31,34],"module":"QuarticCorpus.Independent.ModelZero.Proof","name":"QuarticQuery.Independent.ModelZero.zero_quantum_mass_input_independent","note":"","plain":"A zero-query quantum program cannot distinguish any inputs","proof_lines":[35,49],"relation":"states","annotation":"If `hA : A.queryCap ≤ 0`, the output mass is identical on any two inputs $x$ and $y$, for every starting vector and either output bit."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b277803-277862","from_record":false,"lean":true,"lines":[117,117],"module":"QuarticCorpus.Independent.ModelZero.Proof","name":"QuarticQuery.Independent.ModelZero.identity_Q_eq_one","origin":"ai","part":0,"phrase":"qm-identity-values","plain":"One-bit identity has quantum query complexity exactly one","record":null,"relation":"part","role":"example","rows":[{"end_line":122,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration states only $Q(\\mathrm{id}_1)=1$. It does not state the displayed deterministic or randomized equalities.","fidelity_source":"ai","line":117,"lines":[117,117],"module":"QuarticCorpus.Independent.ModelZero.Proof","name":"QuarticQuery.Independent.ModelZero.identity_Q_eq_one","note":"","plain":"One-bit identity has quantum query complexity exactly one","proof_lines":[118,122],"relation":"part","annotation":"The declaration states only $Q(\\mathrm{id}_1)=1$. It does not state the displayed deterministic or randomized equalities."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b278029-278143","from_record":false,"lean":true,"lines":[81,86],"module":"QuarticCorpus.Independent.Semantics","name":"QuarticQuery.SemanticReview.orMixture","origin":"ai","part":0,"phrase":"qm-or-mixture","plain":"Choose equally between constant one and either input bit","record":null,"relation":"defines","role":"example","rows":[{"end_line":86,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":81,"lines":[81,86],"module":"QuarticCorpus.Independent.Semantics","name":"QuarticQuery.SemanticReview.orMixture","note":"","plain":"Choose equally between constant one and either input bit","relation":"defines","annotation":"This randomized program on two input bits has three trees, each with weight $1/3$: output true immediately, read the first bit, or read the second bit."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b278324-278453","from_record":false,"lean":true,"lines":[97,99],"module":"QuarticCorpus.Independent.Semantics","name":"QuarticQuery.SemanticReview.orMixture_success","origin":"ai","part":0,"phrase":"qm-or-success-table","plain":"The three-tree OR mixture succeeds with probability at least 2/3","record":null,"relation":"part","role":"example","rows":[{"end_line":105,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem states exactly the four success-probability values. The selected table also lists the OR value and each component tree’s output, which follow from their definitions rather than this theorem’s conclusion.","fidelity_source":"ai","line":97,"lines":[97,99],"module":"QuarticCorpus.Independent.Semantics","name":"QuarticQuery.SemanticReview.orMixture_success","note":"","plain":"The three-tree OR mixture succeeds with probability at least 2/3","proof_lines":[100,105],"relation":"part","annotation":"The theorem states exactly the four success-probability values. The selected table also lists the $\\mathrm{OR}$ value and each component tree’s output, which follow from their definitions rather than this theorem’s conclusion."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b278629-278680","from_record":false,"lean":true,"lines":[120,123],"module":"QuarticCorpus.Independent.Semantics","name":"QuarticQuery.SemanticReview.orTwo_R_eq_one","origin":"ai","part":0,"phrase":"qm-or-complexities","plain":"Two-bit OR has randomized capped query complexity one","record":null,"relation":"part","role":"example","rows":[{"end_line":123,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The declaration proves $R(\\mathrm{OR}_2)=1$ only. It does not prove the display’s $D(\\mathrm{OR}_2)=2$ component.","fidelity_source":"ai","line":120,"lines":[120,123],"module":"QuarticCorpus.Independent.Semantics","name":"QuarticQuery.SemanticReview.orTwo_R_eq_one","note":"","plain":"Two-bit OR has randomized capped query complexity one","proof_lines":[121,123],"relation":"part","annotation":"The declaration proves $R(\\mathrm{OR}_2)=1$ only. It does not prove the display’s $D(\\mathrm{OR}_2)=2$ component."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b280211-280263","from_record":false,"lean":true,"lines":[125,125],"module":"QuarticCorpus.Independent.Semantics","name":"QuarticQuery.SemanticReview.trueOnly","origin":"ai","part":0,"phrase":"qm-one-sided-promise","plain":"A one-sided promise defines only the true input","record":null,"relation":"defines","role":"definition","rows":[{"end_line":125,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":125,"lines":[125,125],"module":"QuarticCorpus.Independent.Semantics","name":"QuarticQuery.SemanticReview.trueOnly","note":"","plain":"A one-sided promise defines only the true input","relation":"defines","annotation":"The one-bit partial function returns `some true` when its input bit is true and `none` when it is false."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-f","at":"b280350-280382","from_record":false,"lean":true,"lines":[145,145],"module":"QuarticCorpus.Independent.Semantics","name":"QuarticQuery.SemanticReview.trueOnly_R_eq_zero","origin":"ai","part":0,"phrase":"qm-one-sided-values","plain":"The one-sided promise has randomized complexity zero","record":null,"relation":"part","role":"example","rows":[{"end_line":147,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem states only $R(\\mathtt{trueOnly})=0$. The displayed $D$ and $Q$ values are separate; $Q$ has the companion direct declaration, while $D$ follows from the general zero-query characterization.","fidelity_source":"ai","line":145,"lines":[145,145],"module":"QuarticCorpus.Independent.Semantics","name":"QuarticQuery.SemanticReview.trueOnly_R_eq_zero","note":"","plain":"The one-sided promise has randomized complexity zero","proof_lines":[146,147],"relation":"part","annotation":"This theorem states only $R(\\mathtt{trueOnly})=0$. The displayed $D$ and $Q$ values are separate. $Q$ has the companion direct declaration, while $D$ follows from the general zero-query characterization."},{"end_line":155,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem states only $Q(\\mathtt{trueOnly})=0$. The displayed $D$ and $R$ values are separate; $R$ has the companion direct declaration, while $D$ follows from the general zero-query characterization.","fidelity_source":"ai","line":153,"lines":[153,153],"module":"QuarticCorpus.Independent.Semantics","name":"QuarticQuery.SemanticReview.trueOnly_Q_eq_zero","note":"","plain":"The one-sided promise has quantum complexity zero","proof_lines":[154,155],"relation":"part","annotation":"This theorem states only $Q(\\mathtt{trueOnly})=0$. The displayed $D$ and $R$ values are separate. $R$ has the companion direct declaration, while $D$ follows from the general zero-query characterization."}],"tone":1,"topic":"query-models"},{"anchor":"sec-appendix-g","at":"b282930-283183","from_record":false,"lean":true,"lines":[141,152],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_N_phi","origin":"ai","part":0,"phrase":"qr-integer-normalization","plain":"The integer Walsh path sum divided by its positive normalization","record":null,"relation":"part","role":"statement","rows":[{"end_line":164,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type gives $N$ as the unnormalized matrix product, $\\Phi=N/M$, positivity and $M=m(\\sqrt{m})^{k-1}$. The path sum is the definition of $N$; the additional equality $M=2^{t(k+1)}$ is in `denominator_eq`.","fidelity_source":"ai","line":141,"lines":[141,152],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_N_phi","note":"","plain":"The integer Walsh path sum divided by its positive normalization","proof_lines":[153,164],"relation":"part","annotation":"The type gives $N$ as the unnormalized matrix product, $\\Phi=N/M$, positivity and $M=m(\\sqrt{m})^{k-1}$. The path sum is the definition of $N$. The additional equality $M=2^{t(k+1)}$ is in `denominator_eq`."},{"end_line":200,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This type gives only $M=2^{t(k+1)}$ after $k=l+1$; it omits the numerator, positivity and real normalization clauses.","fidelity_source":"ai","line":195,"lines":[195,196],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.denominator_eq","note":"","plain":"The Forrelation normalization denominator is 2ᵗ⁽ᵏ⁺¹⁾","proof_lines":[197,200],"relation":"part","annotation":"This type gives only $M=2^{t(k+1)}$ after $k=l+1$. It omits the numerator, positivity and real normalization clauses."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b283501-283568","from_record":false,"lean":true,"lines":[203,204],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.abs_numerator_le","origin":"ai","part":0,"phrase":"qr-final-numerator-bound","plain":"The final numerator is bounded by its denominator","record":null,"relation":"states","role":"statement","rows":[{"end_line":209,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":203,"lines":[203,204],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.abs_numerator_le","note":"","plain":"The final numerator is bounded by its denominator","proof_lines":[205,209],"relation":"states","annotation":"For every raw input to the $k=l+1$ block problem, the integer numerator satisfies $|N|\\le M$."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b283694-283826","from_record":false,"lean":true,"lines":[168,178],"module":"QuarticQuery.Paper.ConstructionForrelationDefinitions","name":"QuarticQuery.Paper.construction_integer_tests","origin":"ai","part":0,"phrase":"qr-exact-integer-tests","plain":"Two exact integer comparisons give the Forrelation domain and value bits","record":null,"relation":"contains","role":"statement","rows":[{"end_line":181,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":168,"lines":[168,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":"contains","annotation":"The positive and near-zero promise conditions are equivalent to $2^{5k}N\\ge M$ and $2^{5k+1}|N|\\le M$."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b283986-284019","from_record":false,"lean":true,"lines":[58,69],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_forr_output_bits","origin":"ai","part":0,"phrase":"qr-exact-output-bits","plain":"The exact Forrelation circuit’s domain and value bits on every input","record":null,"relation":"states","role":"statement","rows":[{"end_line":81,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":58,"lines":[58,69],"module":"QuarticQuery.Paper.ConstructionForrelationCircuit","name":"QuarticQuery.Paper.construction_forr_output_bits","note":"","plain":"The exact Forrelation circuit’s domain and value bits on every input","proof_lines":[70,81],"relation":"states","annotation":"In any gate-consistent transcript of the constructed circuit, the value output equals the positive-case comparison and the domain output equals the disjunction of the two promise comparisons."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b285416-285486","from_record":false,"lean":true,"lines":[76,91],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_physical","origin":"ai","part":0,"phrase":"qr-one-trial-physical-cap","plain":"A Walsh projection trial uses one bit query per block","record":null,"relation":"contains","role":"statement","rows":[{"end_line":104,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":76,"lines":[76,91],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.forr_walsh_physical","note":"Matching signature in an explicitly unverified candidate module.","plain":"A Walsh projection trial uses one bit query per block","proof_lines":[92,104],"relation":"contains","annotation":"The candidate signature returns $H\\psi_z$, so applying the query-free Walsh gate gives $\\psi_z$ using $H^2=I$. The one-query-per-read compiler in `ReadSpecOneQuery` still lacks a native elaboration check."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b285665-285801","from_record":false,"lean":true,"lines":[26,33],"module":"QuarticQuery.Paper.ConstructionForrelationQuantum","name":"QuarticQuery.Paper.construction_projection_test","origin":"ai","part":0,"phrase":"qr-projection-probability","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,33],"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":"For $k\\ge1$, projecting the Walsh state onto the uniform vector succeeds with probability $\\Phi^2$."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b287157-287199","from_record":false,"lean":true,"lines":[88,89],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.sum_binomWeight_mul","origin":"ai","part":0,"phrase":"qr-binomial-moment","plain":"The binomial exponential moment as a finite sum","record":null,"relation":"states","role":"statement","rows":[{"end_line":93,"exact_lines":true,"fidelity":"stronger","fidelity_note":"The finite-sum identity holds for all real $p$ and $a$; the probability reading here uses $0\\le p\\le 1$ and $a>0$.","fidelity_source":"ai","line":88,"lines":[88,89],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.sum_binomWeight_mul","note":"","plain":"The binomial exponential moment as a finite sum","proof_lines":[90,93],"relation":"states","annotation":"The finite-sum identity holds for all real $p$ and $a$. The probability reading here uses $0\\le p\\le 1$ and $a>0$."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b287260-287390","from_record":false,"lean":true,"lines":[141,142],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.binomTail_small","origin":"ai","part":0,"phrase":"qr-small-binomial-tail","plain":"For p≤c/4, binomial probability of reaching nc/2 is at most e^(−nc/16)","record":null,"relation":"part","role":"statement","rows":[{"end_line":157,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type states the final error bound $\\exp(-qc/16)$; the intermediate exponential-moment inequalities in the selected display occur in supporting lemmas and proof steps.","fidelity_source":"ai","line":141,"lines":[141,142],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.binomTail_small","note":"","plain":"For p≤c/4, binomial probability of reaching nc/2 is at most e^(−nc/16)","proof_lines":[143,157],"relation":"part","annotation":"The type states the final error bound $\\exp(-qc/16)$. The intermediate exponential-moment inequalities in the selected display occur in supporting lemmas and proof steps. `binomTail` uses a real threshold and includes equality, so it has the intended integer-ceiling interpretation without changing the event."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b287518-287665","from_record":false,"lean":true,"lines":[160,161],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.binomTail_large","origin":"ai","part":0,"phrase":"qr-large-binomial-tail","plain":"For p≥c, binomial probability below nc/2 is at most e^(−nc/16)","record":null,"relation":"part","role":"statement","rows":[{"end_line":182,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type states $\\exp(-qc/16)$; it does not state the stronger intermediate $\\exp(-qc/10)$ bound or the displayed moment chain.","fidelity_source":"ai","line":160,"lines":[160,161],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.binomTail_large","note":"","plain":"For p≥c, binomial probability below nc/2 is at most e^(−nc/16)","proof_lines":[162,182],"relation":"part","annotation":"The type states $\\exp(-qc/16)$. It does not state the stronger intermediate $\\exp(-qc/10)$ bound or the displayed moment chain. The complement of `binomTail` uses the strict lower-tail event, matching the decision rule that accepts equality."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b287809-287863","from_record":false,"lean":true,"lines":[192,193],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.repetitions","origin":"ai","part":0,"phrase":"qr-repetition-count","plain":"The projection trial count for promised error at most η","record":null,"relation":"defines","role":"definition","rows":[{"end_line":193,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":192,"lines":[192,193],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.repetitions","note":"","plain":"The projection trial count for promised error at most η","relation":"defines","annotation":"The natural-number ceiling of $16\\,2^{10k}\\ln(1/\\eta)$."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b287896-287938","from_record":false,"lean":true,"lines":[218,221],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.threshold_correct","origin":"ai","part":0,"phrase":"qr-promised-repetition-error","plain":"On the promise, projection threshold δ²/2 gives error ≤η with enough trials","record":null,"relation":"contains","role":"statement","rows":[{"end_line":230,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":218,"lines":[218,221],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.threshold_correct","note":"","plain":"On the promise, projection threshold δ²/2 gives error ≤η with enough trials","proof_lines":[222,230],"relation":"contains","annotation":"If $k\\ge1$, $\\eta>0$, and the number of independent trials is at least `repetitions k η`, thresholding at half the promised success gap has error at most $\\eta$ on either promised value."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b287944-287974","from_record":false,"lean":true,"lines":[196,197],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.repetitions_le","origin":"ai","part":0,"phrase":"qr-repetition-rounding","plain":"Rounding adds at most one trial","record":null,"relation":"states","role":"statement","rows":[{"end_line":201,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":196,"lines":[196,197],"module":"QuarticQuery.Forrelation.Repetition","name":"QuarticQuery.Forrelation.repetitions_le","note":"","plain":"Rounding adds at most one trial","proof_lines":[198,201],"relation":"states","annotation":"For $0<\\eta\\le1$, the chosen natural-number ceiling is at most $1+16\\,2^{10k}\\ln(1/\\eta)$."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b289945-290117","from_record":false,"lean":true,"lines":[361,363],"module":"QuarticQuery.Upper.Decode","name":"QuarticQuery.Upper.decode_samples","origin":"ai","part":0,"phrase":"qr-coherent-decoder-law","plain":"The coherent decoder uses nk reads for the exact binomial threshold law","record":null,"relation":"contains","role":"statement","rows":[{"end_line":368,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":361,"lines":[361,363],"module":"QuarticQuery.Upper.Decode","name":"QuarticQuery.Upper.decode_samples","note":"","plain":"The coherent decoder uses nk reads for the exact binomial threshold law","proof_lines":[364,368],"relation":"contains","annotation":"For $k\\ge1$, any placement of the auxiliary input coordinates and any number $n$ of trials, a finite coherent preparation has the Boolean law `bern (decodeProb k t n z)` and uses $nk$ logical reads. `decodeProb` is the binomial tail at $n\\delta^2/2$."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b290641-290735","from_record":false,"lean":true,"lines":[140,158],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.construction_decoder_sharp","origin":"ai","part":0,"phrase":"qr-sharp-physical-decoder-cap","plain":"A coherent n-trial Forrelation decoder uses at most nk bit queries","record":null,"relation":"part","role":"statement","rows":[{"end_line":176,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The candidate type supplies the explicit $nk$ cap with `n=repetitions k η` and promised accuracy, but not the displayed asymptotic $O_k$ reformulation. Its compiler is explicitly not native-checked.","fidelity_source":"ai","line":140,"lines":[140,158],"module":"QuarticQuery.Paper.ConstructionForrelationSharp","name":"QuarticQuery.Paper.construction_decoder_sharp","note":"Sharp candidate; native elaboration is not established.","plain":"A coherent n-trial Forrelation decoder uses at most nk bit queries","proof_lines":[159,176],"relation":"part","annotation":"The candidate relates output masses for every embedded input state and continuation, with query cap increased by `n * k` and `n = repetitions k η`. Its one-query-per-read compiler still lacks a native elaboration check."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b291054-291182","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":"qr-retained-decoder-and-inverse","plain":"Coherent Forrelation decoding uses Oₖ(1+log(1/η)) bit queries","record":null,"relation":"part","role":"statement","rows":[{"end_line":61,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The theorem supplies the accurate forward isometry and retained physical continuation, but does not state an inverse implementation in its conclusion.","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":"part","annotation":"The theorem supplies the accurate forward isometry and retained physical continuation, but does not state an inverse implementation in its conclusion."},{"end_line":386,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This theorem supplies the inverse logical preparation with the same read count; it assumes the forward IsCirc witness and does not assert its accuracy or physical cap.","fidelity_source":"ai","line":379,"lines":[379,380],"module":"QuarticQuery.Upper.Circuit","name":"QuarticQuery.Upper.IsCirc.symm","note":"","plain":"Reversing a coherent circuit uses the same logical read count","proof_lines":[381,386],"relation":"part","annotation":"The lemma turns `IsCirc n F` into the corresponding circuit witness for the inverse family, keeping the logical read count. Accuracy and physical query cost are checked at other declarations."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b292528-292622","from_record":false,"lean":true,"lines":[71,74],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.sum_walshN_succ","origin":"ai","part":0,"phrase":"qr-walsh-butterfly","plain":"A Walsh transform splits into sums and differences","record":null,"relation":"states","role":"statement","rows":[{"end_line":80,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":71,"lines":[71,74],"module":"QuarticQuery.Forrelation.Walsh","name":"QuarticQuery.Forrelation.sum_walshN_succ","note":"","plain":"A Walsh transform splits into sums and differences","proof_lines":[75,80],"relation":"states","annotation":"Each output coordinate of a Walsh transform on $2^{n+1}$ integers is the transform of the first half plus a signed transform of the second half."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b293216-293286","from_record":false,"lean":true,"lines":[57,59],"module":"QuarticQuery.Paper.ConstructionArithmetic","name":"QuarticQuery.Paper.construction_walkN_bound","origin":"ai","part":0,"phrase":"qr-ideal-walk-magnitude","plain":"Magnitude after a fixed number of Walsh transforms","record":null,"relation":"states","role":"statement","rows":[{"end_line":80,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":57,"lines":[57,59],"module":"QuarticQuery.Paper.ConstructionArithmetic","name":"QuarticQuery.Paper.construction_walkN_bound","note":"","plain":"Magnitude after a fixed number of Walsh transforms","proof_lines":[60,80],"relation":"states","annotation":"After $l$ transforms on $2^n$ coordinates, each ideal integer walk value has magnitude at most $(2^n)^l$, provided every sign-layer multiplier has magnitude at most one."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b293314-293421","from_record":false,"lean":true,"lines":[95,99],"module":"QuarticQuery.Paper.ConstructionArithmetic","name":"QuarticQuery.Paper.construction_butterfly_block_bound","origin":"ai","part":0,"phrase":"qr-butterfly-magnitude","plain":"For input magnitudes ≤B, 2ᑫ-point Walsh blocks have magnitude ≤2ᑫB","record":null,"relation":"states","role":"statement","rows":[{"end_line":103,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":95,"lines":[95,99],"module":"QuarticQuery.Paper.ConstructionArithmetic","name":"QuarticQuery.Paper.construction_butterfly_block_bound","note":"","plain":"For input magnitudes ≤B, 2ᑫ-point Walsh blocks have magnitude ≤2ᑫB","proof_lines":[100,103],"relation":"states","annotation":"The offset selects a recursive subblock, and `hv` gives the bound only on that block."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b293463-293523","from_record":false,"lean":true,"lines":[85,87],"module":"QuarticQuery.Paper.ConstructionArithmetic","name":"QuarticQuery.Paper.construction_walkN_prefix_bound","origin":"ai","part":0,"phrase":"qr-final-prefix-magnitude","plain":"Magnitude of a prefix of the final integer sum","record":null,"relation":"states","role":"statement","rows":[{"end_line":90,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":85,"lines":[85,87],"module":"QuarticQuery.Paper.ConstructionArithmetic","name":"QuarticQuery.Paper.construction_walkN_prefix_bound","note":"","plain":"Magnitude of a prefix of the final integer sum","proof_lines":[88,90],"relation":"states","annotation":"A prefix containing $a$ entries of the ideal Walsh walk is bounded in magnitude by $a(2^n)^l$, under the same unit-magnitude assumption on all sign layers."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b293841-293903","from_record":false,"lean":true,"lines":[193,194],"module":"QuarticQuery.Forrelation.Arithmetic","name":"QuarticQuery.Forrelation.Enc","origin":"ai","part":0,"phrase":"qr-residue-invariant","plain":"A word represents an integer residue modulo a power of two","record":null,"relation":"defines","role":"definition","rows":[{"end_line":194,"exact_lines":true,"fidelity":"weaker","fidelity_note":"Enc defines the modular representation condition. The selected clause says the implemented circuit maintains it; that preservation is established by the separate arithmetic constructor specifications.","fidelity_source":"ai","line":193,"lines":[193,194],"module":"QuarticQuery.Forrelation.Arithmetic","name":"QuarticQuery.Forrelation.Enc","note":"","plain":"A word represents an integer residue modulo a power of two","relation":"defines","annotation":"`Enc` defines the relation between a word of Boolean wires and its integer value modulo a power of two. The arithmetic constructors each supply lemmas preserving that relation."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b294532-294589","from_record":false,"lean":true,"lines":[70,75],"module":"QuarticQuery.Forrelation.Arithmetic","name":"QuarticQuery.Forrelation.fullAdd_spec","origin":"ai","part":0,"phrase":"qr-full-adder-identity","plain":"Five gates implement one full adder","record":null,"relation":"contains","role":"statement","rows":[{"end_line":93,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":70,"lines":[70,75],"module":"QuarticQuery.Forrelation.Arithmetic","name":"QuarticQuery.Forrelation.fullAdd_spec","note":"","plain":"Five gates implement one full adder","proof_lines":[76,93],"relation":"contains","annotation":"From three valid existing wires, the constructor adds exactly five gates and returns a valid sum wire and carry wire. `Ext p p' 5` says that the new program extends the old one by five gates while preserving its earlier values."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b295446-295613","from_record":false,"lean":true,"lines":[269,272],"module":"QuarticQuery.Forrelation.Arithmetic","name":"QuarticQuery.Forrelation.addV_spec","origin":"ai","part":0,"phrase":"qr-word-arithmetic-costs","plain":"Word addition uses six gates per bit","record":null,"relation":"part","role":"statement","rows":[{"end_line":274,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This constructor supplies only the addition row, with modular correctness and exactly 6w added gates.","fidelity_source":"ai","line":269,"lines":[269,272],"module":"QuarticQuery.Forrelation.Arithmetic","name":"QuarticQuery.Forrelation.addV_spec","note":"","plain":"Word addition uses six gates per bit","proof_lines":[273,274],"relation":"part","annotation":"This constructor supplies only the addition row, with modular correctness and exactly $6w$ added gates."},{"end_line":291,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This constructor supplies only the subtraction row, with modular correctness and exactly 6w+1 added gates.","fidelity_source":"ai","line":281,"lines":[281,284],"module":"QuarticQuery.Forrelation.Arithmetic","name":"QuarticQuery.Forrelation.subV_spec","note":"","plain":"Word subtraction adds one constant gate","proof_lines":[285,291],"relation":"part","annotation":"This constructor supplies only the subtraction row, with modular correctness and exactly $6w+1$ added gates."},{"end_line":336,"exact_lines":true,"fidelity":"weaker","fidelity_note":"This constructor supplies only the sign-multiplication row, with modular correctness and exactly 6w added gates.","fidelity_source":"ai","line":331,"lines":[331,334],"module":"QuarticQuery.Forrelation.Arithmetic","name":"QuarticQuery.Forrelation.signMul_spec","note":"","plain":"Conditional sign multiplication uses six gates per bit","proof_lines":[335,336],"relation":"part","annotation":"This constructor supplies only the sign-multiplication row, with modular correctness and exactly $6w$ added gates."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b295797-295845","from_record":false,"lean":true,"lines":[83,83],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.whtCost_le","origin":"ai","part":0,"phrase":"qr-walsh-gate-bound","plain":"Gate cost of a modular Walsh transform","record":null,"relation":"states","role":"statement","rows":[{"end_line":89,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":83,"lines":[83,83],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.whtCost_le","note":"","plain":"Gate cost of a modular Walsh transform","proof_lines":[84,89],"relation":"states","annotation":"The recursive transform on $2^n$ words of width $w$ uses at most $n2^n(6w+1)$ gates."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b296480-296580","from_record":false,"lean":true,"lines":[212,215],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.test_bounds","origin":"ai","part":0,"phrase":"qr-final-signed-range","plain":"All three final comparisons fit the signed range","record":null,"relation":"part","role":"statement","rows":[{"end_line":227,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type gives membership in the required signed interval, not the preceding absolute-value estimate with coefficient $2^{s+1}+1$.","fidelity_source":"ai","line":212,"lines":[212,215],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.test_bounds","note":"","plain":"All three final comparisons fit the signed range","proof_lines":[216,227],"relation":"part","annotation":"The type gives membership in the required signed interval, not the preceding absolute-value estimate with coefficient $2^{s+1}+1$."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b296665-296759","from_record":false,"lean":true,"lines":[409,411],"module":"QuarticQuery.Forrelation.Arithmetic","name":"QuarticQuery.Forrelation.sign_wire","origin":"ai","part":0,"phrase":"qr-recovering-a-sign","plain":"The high residue bit recovers a bounded integer’s sign","record":null,"relation":"states","role":"statement","rows":[{"end_line":475,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":409,"lines":[409,411],"module":"QuarticQuery.Forrelation.Arithmetic","name":"QuarticQuery.Forrelation.sign_wire","note":"","plain":"The high residue bit recovers a bounded integer’s sign","proof_lines":[412,475],"relation":"states","annotation":"Lean indexes the top wire at $w$ in a word of width $w+1$. The signed interval is then $[-2^w,2^w)$, and the range premise makes the modular representation determine the sign."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b298094-298148","from_record":false,"lean":true,"lines":[466,467],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.forrCircuit_size_le","origin":"ai","part":0,"phrase":"qr-explicit-circuit-size","plain":"The exact Forrelation circuit has Oₖ(m log²m) gates","record":null,"relation":"states","role":"statement","rows":[{"end_line":469,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":466,"lines":[466,467],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.forrCircuit_size_le","note":"","plain":"The exact Forrelation circuit has Oₖ(m log²m) gates","proof_lines":[468,469],"relation":"states","annotation":"For $k=l+1$ and $t\\ge1$, the named circuit has at most $200(k+1)^2m(2t)^2$ non-input gates. Unfolding `forrConstant` supplies the coefficient 200, and $2t=\\log_2m$."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b299166-299226","from_record":false,"lean":true,"lines":[462,462],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.forrCircuit_size_eq","origin":"ai","part":0,"phrase":"qr-expanded-circuit-count","plain":"The circuit size is its arithmetic core plus three gates","record":null,"relation":"part","role":"statement","rows":[{"end_line":463,"exact_lines":true,"fidelity":"weaker","fidelity_note":"The type states `S=coreSize+3`. The displayed closed expression additionally unfolds `coreSize`, `layerCost` and `whtCost` and solves their arithmetic recurrences.","fidelity_source":"ai","line":462,"lines":[462,462],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.forrCircuit_size_eq","note":"","plain":"The circuit size is its arithmetic core plus three gates","proof_lines":[463,463],"relation":"part","annotation":"`forrProg_length` gives `coreSize l t + 3`, where the three final gates produce the domain and value outputs. Expand `coreSize`, `layerCost` and `whtCost` to recover the displayed polynomial."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b299952-300060","from_record":false,"lean":true,"lines":[479,482],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.exists_circuit","origin":"ai","part":0,"phrase":"qr-circuit-domain-value-contract","plain":"A circuit computes the exact promise and value outputs","record":null,"relation":"contains","role":"statement","rows":[{"end_line":486,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":479,"lines":[479,482],"module":"QuarticQuery.Forrelation.Circuit","name":"QuarticQuery.Forrelation.exists_circuit","note":"","plain":"A circuit computes the exact promise and value outputs","proof_lines":[483,486],"relation":"contains","annotation":"For every $k\\ge1$ and $t\\ge1$, there is a fan-in-at-most-two circuit realizing the partial Forrelation function with the explicit size bound $200(k+1)^2m(\\log_2m)^2$. `CircuitRealises` means that every input has a consistent transcript, its domain output is correct on every input, and its value output is correct whenever the domain bit is true."}],"tone":4,"topic":"walsh-promise"},{"anchor":"sec-appendix-g","at":"b300131-300214","from_record":false,"lean":true,"lines":[70,71],"module":"QuarticQuery.Construction.Transcript","name":"QuarticQuery.existsUnique_gateConsistent","origin":"ai","part":0,"phrase":"qr-topological-transcript","plain":"Every input has exactly one consistent transcript","record":null,"relation":"contains","role":"statement","rows":[{"end_line":73,"exact_lines":true,"fidelity":"same","fidelity_source":"ai","line":70,"lines":[70,71],"module":"QuarticQuery.Construction.Transcript","name":"QuarticQuery.existsUnique_gateConsistent","note":"","plain":"Every input has exactly one consistent transcript","proof_lines":[72,73],"relation":"contains","annotation":"Every input has one and only one gate-consistent transcript: the circuit's evaluated gate values."}],"tone":3,"topic":"addressed-certificates"},{"anchor":"sec-appendix-g","at":"b303740-303843","from_record":false,"lean":true,"lines":[20,21],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.census_true","origin":"ai","part":0,"phrase":"qr-small-promise-census","plain":"The smallest instance has 104 one-inputs","record":null,"relation":"part","role":"example","rows":[{"end_line":22,"exact_lines":true,"fidelity":"weaker","fidelity_note":"Only the 104 one-inputs are counted; the other two selected counts have separate declarations.","fidelity_source":"ai","line":20,"lines":[20,21],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.census_true","note":"","plain":"The smallest instance has 104 one-inputs","proof_lines":[22,22],"relation":"part","annotation":"The filter tests `P 2 1` for `some true` on all $2^8$ inputs. The false and undefined counts use their own filters."},{"end_line":27,"exact_lines":true,"fidelity":"weaker","fidelity_note":"Only the 48 zero-inputs are counted; the other two selected counts have separate declarations.","fidelity_source":"ai","line":25,"lines":[25,26],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.census_false","note":"","plain":"The smallest instance has 48 zero-inputs","proof_lines":[27,27],"relation":"part","annotation":"The filter tests for `some false` specifically. Undefined inputs are excluded, so the count is smaller than the complement of the true-input set."},{"end_line":32,"exact_lines":true,"fidelity":"weaker","fidelity_note":"Only the 104 undefined inputs are counted; the other two selected counts have separate declarations.","fidelity_source":"ai","line":30,"lines":[30,31],"module":"QuarticQuery.Forrelation.Sanity","name":"QuarticQuery.Forrelation.census_none","note":"","plain":"The smallest instance has 104 undefined inputs","proof_lines":[32,32],"relation":"part","annotation":"The filter tests for `none`, the value returned when neither exact threshold test passes. Both promised preimages are excluded from its count."}],"tone":4,"topic":"walsh-promise"}],"topics":[{"dark":"oklch(0.595 0.123 340.1)","description":"Combine the bounds for one fixed-parameter family with the universal upper bound and distinguish the growing-parameter consequence.","family":"family-query-models","id":"quartic-exponent","light":"oklch(0.380 0.081 340.1)","name":"The optimal exponent","part":0,"tone":0},{"dark":"oklch(0.680 0.110 354.5)","description":"What an input query reveals, which inputs require correctness, and how the maximum query budget is counted.","family":"family-query-models","id":"query-models","light":"oklch(0.465 0.072 354.5)","name":"Query models and promises","part":0,"tone":1},{"dark":"oklch(0.765 0.097 8.9)","description":"How complementary comparisons yield a short candidate list and how each candidate is verified.","family":"family-query-models","id":"quantum-search","light":"oklch(0.550 0.063 8.9)","name":"Quantum comparisons and verification","part":0,"tone":2},{"dark":"oklch(0.580 0.123 111.6)","description":"The board layout, the unique winning pair and the local checks that certify it.","family":"family-walsh-promise","id":"addressed-certificates","light":"oklch(0.365 0.081 111.6)","name":"Columns and addressed certificates","part":0,"tone":3},{"dark":"oklch(0.665 0.110 126.0)","description":"The Walsh correlation, its one-sided promise, the quantum decoder and the exact certificate circuit.","family":"family-walsh-promise","id":"walsh-promise","light":"oklch(0.450 0.072 126.0)","name":"The Forrelation address bit","part":0,"tone":4},{"dark":"oklch(0.750 0.097 140.4)","description":"The Gaussian interpolation, derivative estimates and decision-tree bounds that make an address bit classically hard.","family":"family-walsh-promise","id":"forrelation-hardness","light":"oklch(0.535 0.063 140.4)","name":"The Forrelation lower bound","part":0,"tone":5},{"dark":"oklch(0.623 0.117 223.8)","description":"Why predicting independent answers has a product bound when every input has its own query cap.","family":"family-classical-lower-bound","id":"separate-cap-direct-product","light":"oklch(0.408 0.076 223.8)","name":"Prediction with a separate cap","part":0,"tone":6},{"dark":"oklch(0.708 0.103 238.2)","description":"Couple a zero input with a planted one and bound how a classical algorithm can discover the change.","family":"family-classical-lower-bound","id":"classical-lower-bound","light":"oklch(0.492 0.068 238.2)","name":"The classical planting argument","part":0,"tone":7}]}