Packed integer tables for the degree-251 cubic–quintic certificate
DefinitionGrothendieckLB_Supplement_cqDegree251Tablesfunctional-analysisinterval-arithmetic
Each Hermite weight row and covariance-polynomial row at cutoff 251 has simple integer interval endpoints. Two nonnegative integers encode the positive and negative lower endpoints as base digits. The spacing allows exact recovery of the signed convolution from a single evaluation. A third encodes the widths, using base two for the weights and 256 for the polynomial powers. The published definitions reconstruct ordinary interval arrays and list the candidate signed convolution coefficients before rounding. These data support independent verification of both the recurrences and the endpoint comparisons.
Definition code
import Definitions.Def_GrothendieckLB_Supplement_cqNonlinearHeadCheck
import Mathlib.Tactic.Eval
namespace GrothendieckLB.Supplement.CQDegree251
open CQHeadArithmetic
/-- A polynomial row encoded by nonnegative magnitudes in two sign classes
and its outward interval widths. All fields contain ordinary natural numbers. -/
structure PackedRow where
pos : ℕ
neg : ℕ
wid : ℕ
deriving Inhabited, Lean.ToExpr
def radix : ℕ := 2^320
def digit (base word i : ℕ) := word / base^i % base
def low (alternating : Bool) (r : PackedRow) (i : ℕ) : ℤ :=
(if alternating then (-1:ℤ)^i else 1) *
((digit radix r.pos i : ℤ) - digit radix r.neg i)
def cell (alternating : Bool) (sizeWidth : ℕ) (r : PackedRow) (i : ℕ) : Interval :=
let a := low alternating r i
⟨a, a + (digit sizeWidth r.wid i : ℤ)⟩
private def pack (alternating : Bool) (sizeWidth : ℕ) (xs : Array Interval) : PackedRow := Id.run do
let mut pos := 0
let mut neg := 0
let mut wid := 0
for j in [:xs.size] do
let i := xs.size-1-j
let x := xs[i]!
let v := if alternating && i%2=1 then -x.lo else x.lo
pos := v.toNat + radix*pos
neg := (-v).toNat + radix*neg
wid := (x.hi-x.lo).toNat + sizeWidth*wid
return ⟨pos,neg,wid⟩
private def initFast (N : Nat) (raw : Array MomentCombination) : Array MomentCombination := Id.run do
let len := 3*N+1
let mut fact := #[1]
let mut dbl := #[1,1]
for i in [:len] do
fact := fact.push ((i+1)*fact[i]!)
dbl := dbl.push ((i+2)*dbl[i]!)
let mut ini := #[]
for b in [:len] do
let mut sum := zeroCombination
if b%2=0 then
for t in [:b/2+1] do
let k := 2*t
let d := b-k
let mag : Nat := dbl[d-1]! * (fact[b]! / (fact[k]! * fact[d]!))
let coeff : Int := if d%4 = 0 then mag else -(mag:Int)
sum := addCombination sum (scaleCombination coeff raw[k]!)
ini := ini.push sum
return ini
private def weightCandidates (N : ℕ) : Array PackedRow :=
let xs := initFast N (momentRows (3*N-5))
(grid N xs N).weights.map (pack true 2)
set_option maxRecDepth 150000
set_option exponentiation.threshold 50000
set_option maxHeartbeats 300000000
/-- Candidate Hermite weight rows through degree 251. -/
noncomputable def wp : Array PackedRow := eval% (weightCandidates 251)
/-- Candidate rows for powers of the covariance polynomial through degree 251. -/
noncomputable def rp : Array PackedRow := eval% ((rhoPowers 251 251).map (pack false 256))
def wrow (p : PackedRow) (n : ℕ) := tab n (cell true 2 p)
def rrow (p : PackedRow) (n : ℕ) := tab n (cell false 256 p)
noncomputable def weights : Array (Array Interval) := tab 252 (fun a => wrow (entry default wp a) (252-a))
noncomputable def powers : Array (Array Interval) := tab 252 (fun a => rrow (entry default rp a) 252)
/-- Unrounded integer convolutions of the lower endpoints in the candidate tables,
including all degrees of their polynomial product. -/
def convolution : List ℤ :=
[0, 2754719004000437162250940801719046454436729437886475441896688225665961168406461413597540, 0, 10792573803690937653531214477385933233984351274314234657440293516998999164862274, 0,
-282590616932286084779006076929428661606300830671679651632200035394382075578034, 0, 366046139080110209255650847164406673788458660502370673468171134538328879745608406, 0, -4670245808429885389533753341803067552833266856811554146238457177918075715856478,
0, -17946150777994587494781740896429690921703416202062599973254479914155187547790022652, 0, -4527644580087160754362403189388748545506467727393734351641567598202703642752013680, 0,
2950351122880657663968016327531202943949085994870357419040431879206453954737648379, 0, 3450385775118629249066075750155244720958280271455965713974281561448661848815327025, 0, 2641043549020850137736053904399069863284809339523966851983288181741894235205275035,
0, 1759422316563749430455989164379076049570610513819575083087364484300131009573406230, 0, 978997150157278293349501493415102086067349873846346380634325554516242422072200860, 0,
458887040799032838506687348885443583741571305080208481138963462183822027616000891, 0, 188170803631856740469035719952192035961942447353066793720011495017163653309015401, 0, 64323438609649429402656435528961069017832381288256594564340097928489137305640217,
0, 10714314711834426232521102366362629865446195966727996889886691464099711646444164, 0, -8866847488624152191718279492442936534835764488880465962485563177531803866977852, 0,
-12081299226324021828154552005104374506336703368345089162475478465633140469317857, 0, -9302601274857231517158870667021957999789910900576813684442421327150507457605709, 0, -5803461050550203945304158208077664516787933301769396236742064812484472114316482,
0, -3229367652344555191664811753969130330888540466769033038381619162161952932453735, 0, -1605650923401365544855838634616382437552454971109429083488664275949511387215534, 0,
-644149873402974064452299278221138244222848452583669743806225013084455741420193, 0, -130502280420235873793965959193527164981773646280814144862967003776489493875762, 0, 88651180043940391412777403997178153677470526887710228070675309611966536765613,
0, 141881797895975551861975062128476105260239380191998458464754704974162250405718, 0, 124831256700892166165518292564546752494958943511425206494468386546365103959235, 0,
90787970598944329605083629963323867158354591473589587772435046803191641430389, 0, 59949975094779132046565139254624683416149269483258985952516803076631996254007, 0, 36321776771209526366647973103211258762162895908620852647077588936644466936642,
0, 19395274843533966700801813158717574183562526586148136056181416565777685911848, 0, 8267827361366478692574297042924622310996661878490913432803186984204135888298, 0,
1922342502062805016074366446506059854912941549599300258324337626150755169464, 0, -988164462728845009621042274356885272358178654479129954988490412024639403802, 0, -1880427517879949463735743254682584580886945441737793966334074457592546715462,
0, -1848042221459667666215593101676523888389334700590092267572057635704908027233, 0, -1513462271147297076086854799596283169410341991258593754906728675040948616036, 0,
-1134719897669740831177514185997228818780072182235559110856868383926143390891, 0, -788893330956194157882407686145196024529770536308377260842613708555882298384, 0, -498178229383244558634297130587049121212435932528387950106043598768959974089,
0, -274975204345125747298353262126217416421496189496435417957598626190330306421, 0, -123458006376938658494827654958672330172985776254684411699846113392746461704, 0,
-35164023337657186224991728717785145077717456828323884447592233545328966583, 0, 7551769405201841329038221089871845538308931839452961919723818681693837812, 0, 23485666784361409910906603959142036701359718225825969517240534894662968159,
0, 26587350600729341024292068511475173056193755244797123464617968543320724303, 0, 24564736503004691218014352867205156479723145942814773416879963274978574461, 0,
20657027668913634144524887016961443379231601337658841342462456327905772035, 0, 16046136958586813128854565453702425274547239290706726369841507641620414896, 0, 11381328351924973443105736386172113940532920099140475181222109326947154115,
0, 7240030617137767609742127923021575306565531106919949627446177530480270902, 0, 4037599908455280780741682400706959502665395433816864374234953665705587038, 0,
1892054957806616413081901005489876430385071967583298722202102219492960214, 0, 648793757872579591729613650269041085528110278728546732176401321663669641, 0, 23682544565451874557598334677708795846953520190662792064565611675142012,
0, -252219238738864090099088870288697274081044983786232708547125228216438964, 0, -358560502208464810691362072655096110518039218529091969592305323754799598, 0,
-384489029694913747367445627462831697357730678949978699241572754499619816, 0, -364018976459868143922609403314599860262529006206810705547946640103489339, 0, -311641474124167193421584983374497809925937707906434367685494196960712840,
0, -241013090762704824556202594524604477949701170595239618365560437290330655, 0, -167661873600218006417274295022474065604985054369559958383864957793116029, 0,
-104557135064272291824401097215513625535817401633059460360633613479833829, 0, -58281916167850985173734766232399557235096400391139133097166833744819054, 0, -28825380040482651259632201558320134759634637734857896189342361591908210,
0, -12147399339048757083934016779729852730344101344052352140308600943678999, 0, -3304969729290458568548121883656270472684858120346782246764189572290049, 0,
1489312046298203935796125647842906009001100755535530073045831759338046, 0, 4288699481427628851998223721652721762667172923003779270191323056285001, 0, 5844300698599913826030410762016936648004131151425779417323836188915591,
0, 6336127664668563770044908616467773398016362897613558025329256366978738, 0, 5907278690797766019258495421425050892484869711444142262150682356429814, 0,
4852081166411650712260819339429365440254162508884395289738668252307099, 0, 3554368852634590850829738206301305003596914925716607331447185442325194, 0, 2347388967806834844727262696652368179069355037705498088430160499660393,
0, 1420034756986476739921057757991587562496942214312808261348808352964658, 0, 808498259725080979631138058513937459024225476347032263734449130999145, 0,
448917233002131185809572966304315447208999568586505900728475423576819, 0, 245426056319730059070239511717222521289658453091302826639937376281751, 0, 119207884630512050002119760212017334094293375679019440701144853020946,
0, 27018163763035932609624191307668176312545354751582448941656461436900, 0, -44134224380732513644254971885035259801452539089764357183022457491517, 0,
-92317568425131566339416457509138188034577484186345223397941793733059, 0, -114366355759468392394662524866177932118271919438954716929905813211623, 0, -112550863078657566919462884618699525446975014848480263919642855887091,
0, -94558194668910102106945313241780036360661663132620018275759646321574, 0, -70002319327451832950431401796360205638217537545492973311425816019639, 0,
-46783710069405064189126389060052077630570056741802280217752737636470, 0, -29184330378537517161963112958645535153966297013422202232137472341998, 0, -17953874283011000602239895283723522400109683651645683404299545737319,
0, -11626441786582161300890673773971296707424292579726731977017731377518, 0, -8073021066541216164574842149689150404821460490438061024022349685592, 0,
-5596861888273938707488670598545623741615167229755270214850233034886, 0, -3349404962143117891778887089315945766891709991572787016661663771396, 0, -1209203786365285416102483798542361853647419816118212804287496735727,
0, 582431843796162738860065339642703724231934339213649966743425820121, 0, 1767982615382500222066506606497366606000332567458132405348635522369, 0,
2264944707678304121996662993179048222283221927811661056548391071510, 0, 2189078575233767368123043324696247673296409015641344984912729924965, 0, 1772213065135702903237977169188393620592370360938996410537502486276,
0, 1254060145607875749961135182107210066829101278579564368469412259777, 0, 804737562343547679358908967296733798409992961991477525334931019620, 0,
498608305982371993058058775288425224506580367535051972747272283789, 0, 330829236246846554665803227528399322624533142069198073028463365981, 0, 254382749889685524318432790882741026131513219849306264459039873917,
0, 216149237830850888434269175211108728550230179133095986853642433745, 0, 179418687242541463749655208487904465426237908753022563084009814545, 0,
130341716571022281193563638522503837365174596026586476100685744855, 0, 72768775914848394245809338179510728159467060512616552494950029472, 0, 18372650365831325616241389731755475158641459409366064291581810461,
0, -22175045825473606233511527959058839058029541036032168086278425678, 0, -44005298520501361872666374339851305578639003783879194794350353375, 0,
-48608713381720215091963695384362548793324772885046271580193617923, 0, -41621102351357352207793957878245909734312903986224841579379860726, 0, -29762557762028774254862014741723037864670012081110962039938155589,
0, -18408283649475120411069383411429139365853413480816331456395562697, 0, -10456070268198321806858071463931848770140019337622912593984739492, 0,
-6422080811697712666279276322364784678711339791726719545531163742, 0, -5278214657817593453425902966564595620653690339470193254940299310, 0, -5465812620165194180352227676204280315050705003193525100914023921,
0, -5674513233730450874770321160566913889359306763263197192800136087, 0, -5214477885115467356917030472591062130581854462211758824305805590, 0,
-4016597123283219592781281973081255770601286429052825627886869342, 0, -2409290332372896830268890826797173014279912346919015617693367383, 0, -838772791879526050771342988433198313134102992566473246869627397,
0, 346512062379957275876006679927383681713412539621550127990638458, 0, 56572774986800457647193594491949046227006138406374290523545885705014172, 0,
209276875229239847315737459281223582691164462013871007572262328815909494, 0, -21642477871866571236240750043177515813042292666712030699402353921007387881, 0, 287217834255865777352003924369482009305901432175854728067103884901763893626,
0, -2064508893549107427875587851174993015206361420497389098125754137543884987096, 0, 9795779196830852791662108865984658669865716013430322134640594550999454690513, 0,
-32438489099480842467026377513825585291748904083225012075770067655190579962005, 0, 71718557837765352563825896652870536948516325893377102499988687611496060304633, 0, -69240013412021465223485220341894532630817448164700391932630615045419622750831,
0, -208854211599851618327272276305493909458570510728058145255424143223422550974828, 0, 1288069263970706678820684165022017468158250446302867696549970278744844197120103, 0,
-3884727892811699418950366736471873422631240785599856983162379010616961140210419, 0, 8332562973633862876331808311700384703515272228281539593177373345859282447606225, 0, -13663230561788870688757816434529207396747919640728323833164922686811076171615162,
0, 17182162841901922425610736211672768546857211434565390158841525823034228790707046, 0, -15575933174576891733475909298159297388673415634009843424576064424503896884110118, 0,
7405937031502220441458348802066928373632480512802119649264947556904186118901931, 0, 5007983322722053354325401057171702678488930493628240292054479887652388603593623, 0, -16561142889705372484022675269475109238338926212718412794795909045690613301149244,
0, 22970335135165578690802261066570227071307144684514199190794136306151623737799036, 0, -23870631427010054585722236630347379832180610430010627886210045547196610280603917, 0,
22433002314303449400321522715125051128816086619318340254661359115575033303873844, 0, -22002774961156329389332611158191927111362292438994767379588317218973793631355910, 0, 23187242385815478410199513172061323318856662777836301209300217922384689620214946,
0, -23983162275682736137173794709049207830481411152909389204401515185719580962014788, 0, 22211048578605844571971131143681992729784112390853440900340147663406885952966768, 0,
-17554015718192430451139052817936799233002046679373982296746960691937197122667664, 0, 11556827193981743983629427123273187246305441023255947671399975603218522114708911, 0, -6193970803939130313419703172416199218822845281952223474936476590867428985135424,
0, 2590726491664179459788044737509498363593200690173922264673501266065579099254235, 0, -760252094062993737581495240464298045167100866487210364362900935446623793778056, 0,
100161495655850722849932297106520501011272839325783873612656814799843429623880, 0, 24299196607257854022682511844189324933654239411493487524867990137660218997834, 0, -760289734255077040923370877061349019855075826031874106264318192112333183716,
0, -22624375894365466345597548994587985566375291425853469170110846203012617461627, 0, 23518240782261294719921904186518441405695410639459394797152201050302715062351, 0,
-14809567714394394546693633828651120908443875165326274415780751321461359393920, 0, 6923569133417730182535459061510492266775078966167895668215679301581663350250, 0, -2551030341511111039971054871546457424604714658945826545508722787499944231031,
0, 751274208420324738827424385984583704812825236523232314252444188783261721330, 0, -173917713042969951053815111957897709437417303134191015878187713717104678411, 0,
29769078090522949669287217991099503095288046765031820740749443630050337293, 0, -3131135204239436221948195132289740074844232438343202536526858828393390266, 0, 72002150040587030450252415431723913227275979539014751621142806451215629,
0, -22986516630399318202219942705436130270525439549595750778982634991403831, 0, 46010128782339336690056638137292753951229036454861689635272577888153111, 0,
-23931432521694704186615521691458709866522425519624586701606947016191437, 0, 7779857789370227106633351899555649580316672295631851763805811874421940, 0, -1874811322427637750052229251349805752894970483100261216842419614575449,
0, 354501553443523671895667394774334563997249530380554611432842740891332, 0, -53394317930030689732894323140070887393605779147056910678748118019038, 0,
6322544831374454225564042285148186910510465994221927062091339041412, 0, -559157175974590042224100396476944873602932308645265570333606789886, 0, 31857233698037301477493310251042115589806121063498556425409322477,
0, -597856424064314662116231687213170279628852909814792269675543160, 0, 6446621478399149504881136222462824196850779150267353795648891, 0,
-28314942521252723835046465706862873059599988326875800790992721, 0, 7850011000441864690189042429810780603760166068220997224519518, 0, -1230294010299409709133695238333832176105336370522746231324587,
0, 136844562304123095452082134029915519346463430011523089248616, 0, -11569501398734479742679457248241574062409060431870384014781, 0,
755904167941136031290603092949896367048534807566326299972, 0, -37516984918049890663739110565523757688047761102592973541, 0, 1326293611745139846993758459962533841758411723692426378,
0, -27454211773792369432560692206074590863333774225168850, 0, 98494941466323776462828193980637021288441216923029, 0,
-7532896385845532824425081176169842191144031714717, 0, 2697129319898249917168183429237503582572060829655, 0, -234168519999662346554496326417502451880281351357,
0, 12021869026011584097157470725988519784815215654, 0, -428605705416969963211487979050255523767862590, 0,
11078622711245478209090686524038211877001466, 0, -206778564506983003495052210831765233807284, 0, 2208574377794920770052971894829776716558,
0, -331822591360750059156349844524668343686, 0, -319211347975932767283038287927086782757, 0,
-410739952139959301532728528036131850549, 0, -484986574393207525851608223064519090466, 0, -530411957253488031972747898987418981768,
0, -425771711398576459467844375864589532555, 0, -369466521222851166801940260048074590197, 0,
-184874330808228669552390352151334293237, 0, -127155779194044155512457510917190500706, 0, -51071409696895929986905756612236396287,
0, -54104877915094559362177980305044344542, 0, -72227137518157967583274200853550331306, 0,
-93403693135452541460659924894087504652, 0, -86570232857547054719762518038675104853, 0, -83238663810192805408292762690930842779,
0, -39060101553904821185584689863043095725, 0, -26704334166433988217917351349031543285, 0,
-4332136529741189530102165735929878328, 0, -3048978691290436501042247407910636879, 0, -4727424607100423378035063402508989315,
0, -7462847213430324264797549237654868745, 0, -5340101742277436382945677825164213686, 0,
-5206915747809698481312190338874233410, 0, -876036609354289757852921668594362634, 0, -482125257904053348246588112720930266,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0]
end GrothendieckLB.Supplement.CQDegree251
Source
Degree-251 fixed-point Hermite certificate for the cubic–quintic scheme of Saha et al., arXiv:2608.11158v2, and Prove2Me fc28e7f8-2588-498a-8ea6-e8d0e220ae2b.