cfahlgren1's picture
download
raw
3.45 kB
import Mathlib.Data.Nat.Choose.Basic
namespace OAI
namespace Laughlin.Certificate.RowCompute
def rows : List (ℕ × ℤ × List (ℕ × ℕ × ℤ)) :=
[(0, 7181518, [(0, 5, -849651), (0, 7, -2958744), (1, 5, 751659), (1, 6, -43084), (1, 7, -146216), (3, 2, 720949), (3, 5, -127514), (4, 2, 222437), (4, 3, -262822), (5, 3, -117700), (6, 1, -55024), (7, 1, -166049)]),
(1, -112991, [(0, 5, 142772), (0, 6, -142342), (0, 7, 527055), (0, 8, 50742), (1, 6, 197917), (1, 8, -18343), (2, 4, 5764), (2, 7, -21183), (3, 2, 75832), (3, 5, -6115), (4, 5, 2660), (5, 3, -9455), (6, 1, -27091), (6, 3, -3494), (7, 1, 479), (7, 2, -15331)]),
(1, -4247311, [(0, 5, -12207250), (0, 6, -14064191), (0, 7, -14063663), (0, 8, -15662679), (1, 6, 483831), (1, 8, 3987214), (2, 4, -814558), (2, 7, 888887), (3, 2, 966462), (3, 5, 145978), (4, 5, -171722), (5, 3, 34350), (6, 1, 389319), (6, 3, 97603), (7, 1, 412447), (7, 2, -53786)]),
(2, 3438746, [(1, 4, 6689266), (1, 5, 6620205), (1, 6, 6625065), (1, 7, 4969272), (1, 8, 4878238), (2, 7, -1387380), (3, 6, -586188), (3, 7, 344087), (4, 2, -1120634), (4, 5, -318530), (4, 6, 559169), (5, 5, 157455), (6, 1, 1207103), (6, 3, 211617), (6, 4, 33240), (7, 1, 577001), (7, 3, -142578)]),
(5, -98645, [(0, 5, -2719776), (0, 8, -8519913), (1, 4, -949523), (1, 7, -1952105), (1, 8, -1562606), (2, 8, -8919966), (3, 2, 248826), (3, 5, -1017623), (3, 7, 3656005), (3, 8, -2081871), (4, 2, -33163), (4, 3, -305905), (4, 6, 35677), (4, 7, -1320749), (4, 8, -1040378), (5, 3, 502094), (5, 5, 1060633), (5, 8, -998003), (6, 1, -113617), (6, 3, 184919), (6, 4, 209239), (6, 5, -68198), (6, 7, -266297), (7, 2, -606696), (7, 3, -563620), (7, 4, 437345), (7, 6, -432189)]),
(5, -3160276, [(0, 5, -1698129), (0, 8, 10575875), (1, 4, -252576), (1, 7, -8002616), (1, 8, 22592844), (2, 8, 7370640), (3, 2, 289294), (3, 5, 1400647), (3, 7, 1987740), (3, 8, 4030699), (4, 2, -1731401), (4, 3, -1034062), (4, 6, -1106371), (4, 7, -1257051), (4, 8, 1461735), (5, 3, 1408149), (5, 5, 1136847), (5, 8, 1878501), (6, 1, -2838516), (6, 3, -734099), (6, 4, 1062416), (6, 5, 11745), (6, 7, 611312), (7, 2, -480776), (7, 3, 20459), (7, 4, 316925), (7, 6, 37092)]),
(7, 1441784, [(0, 7, 3441286), (0, 8, -6097155), (3, 7, -1002399), (4, 7, -251321), (5, 8, 1143225), (6, 6, -17397), (7, 1, -1007464), (7, 3, -662286), (7, 6, -344621), (7, 8, -1115284)])]
def UFast (c z T p : ℕ) : ℤ :=
if z ≤ T ∧ p ≤ T then
(((List.range (min p z + 1)).filter (fun h => p + z ≤ T + h)).map
(fun h => (-1 : ℤ) ^ (z-h) * (Nat.fast_choose z h : ℤ) *
(Nat.fast_choose (T-z) (p-h) : ℤ) * (c : ℤ) ^ (p-h))).sum
else 0
def VFast (r D T p j k : ℕ) : ℤ :=
if r ≤ j+k then UFast 1 r (j+k) j * UFast 1 (D-r) (T-r) p else 0
def yEntryIntegralFast (D r s t : ℕ) (e f : ℕ × ℕ × ℤ) : ℤ :=
let (p,j,a) := e
let (q,l,b) := f
let i := p+j-t
let k := q+l-t
let T := p+j+k
if D ≤ T then
a*b*VFast r D T p j k*VFast s D T q l i *
(2 : ℤ)^((65-2*(T : ℤ)+(p : ℤ)+(q : ℤ)-(t : ℤ)+((r+s)/2 : ℕ)).toNat) *
(i.factorial : ℤ)*(k.factorial : ℤ)*(t.factorial : ℤ) *
((24 : ℕ).descFactorial (24-(T-D)) : ℤ)
else 0
def yRowIntegralFast (D r s : ℕ) (row : ℕ × ℤ × List (ℕ × ℕ × ℤ)) : ℤ :=
(row.2.2.map (fun e => (row.2.2.map (fun f => yEntryIntegralFast D r s row.1 e f)).sum)).sum
end Laughlin.Certificate.RowCompute
end OAI

Xet Storage Details

Size:
3.45 kB
·
Xet hash:
b9fe81ff38c601a56f8969c240dcc3679d88b4e9dcbd7ff12fbfb11f877e006c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.