Skip to content

Instantly share code, notes, and snippets.

View jan-ferdinand's full-sized avatar

Jan Ferdinand Sauer jan-ferdinand

View GitHub Profile
@jan-ferdinand
jan-ferdinand / dlubarov_fri_folds.sage
Last active June 26, 2023 08:20
A sprinkle of assert statements on Daniel Lubarov's counterexample to Alan Szepieniec's attempt at proving FRI sound.
# Credit: https://gist.github.com/dlubarov/9341afc247afbfc798be847a2f59f6a8
p = 2^8 + 1
F = GF(p)
g_full = F.multiplicative_generator()
# A generator of an order n subgroup (undefined if one doesn't exist).
def g_n(n):
return g_full^((p - 1) / n)