Equations
- BlrPcp.IsLinear f = ∃ (a : BlrPcp.Vec F Idx), ∀ (x : BlrPcp.Vec F Idx), f x = BlrPcp.linearFn a x
Instances For
Equations
- BlrPcp.LinearSet = {f : BlrPcp.ScalarFn F Idx | BlrPcp.IsLinear f}
Instances For
The real-valued indicator of membership in the set of linear scalar functions.
Equations
- BlrPcp.linearSetIndicator f = if f ∈ BlrPcp.LinearSet then 1 else 0
Instances For
The nonzero field elements used as BLR scalar samples.
Equations
- BlrPcp.nonzeroScalars = {a : F | a ≠ 0}
Instances For
The uniform acceptance probability of the finite-field BLR test:
a,b are sampled uniformly from F \ {0} and x,y from F^Idx.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
The relative Hamming distance between two scalar functions, i.e. the
uniform probability that they disagree on a point of F^Idx.
Equations
- BlrPcp.distance f g = (↑(Fintype.card (BlrPcp.Vec F Idx)))⁻¹ * ∑ x : BlrPcp.Vec F Idx, if f x ≠ g x then 1 else 0
Instances For
The distance from a scalar function to linearity, namely the minimum of
distance f g over all g ∈ LinearSet.
Equations
- BlrPcp.distanceToLinear f = BlrPcp.linearFunctionsFinset✝.inf' ⋯ fun (g : BlrPcp.ScalarFn F Idx) => BlrPcp.distance f g
Instances For
Completeness of the finite-field BLR verifier: linear functions are accepted with probability one.
The standard bilinear pairing on F^Idx.
Equations
- BlrPcp.dotProduct a x = ∑ i : Idx, a i * x i
Instances For
Notation for the standard bilinear pairing on F^Idx.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The uniform expectation of a complex-valued function on F^Idx.
Equations
- BlrPcp.expectation f = ↑(↑(Fintype.card (BlrPcp.Vec F Idx)))⁻¹ * ∑ x : BlrPcp.Vec F Idx, f x
Instances For
The expectation-based Hermitian inner product on complex-valued functions on F^Idx.
Equations
- BlrPcp.fnInner f g = BlrPcp.expectation fun (x : BlrPcp.Vec F Idx) => f x * star (g x)
Instances For
The squared L² norm associated to fnInner.
Equations
- BlrPcp.fnNormSq f = (↑(Fintype.card (BlrPcp.Vec F Idx)))⁻¹ * ∑ x : BlrPcp.Vec F Idx, ‖f x‖ ^ 2
Instances For
The L² norm associated to the expectation inner product.
Equations
- BlrPcp.fnNorm f = √(BlrPcp.fnNormSq f)
Instances For
Notation for the expectation-based Hermitian inner product on F^Idx → ℂ.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Notation for the expectation-based L² norm on F^Idx → ℂ.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The additive character indexed by α : F^Idx, defined by
χ_α(x) = ω_p^{Tr(∑ i, α i * x i)} where p = ringChar F.
Equations
- BlrPcp.charFn α x = ZMod.stdAddChar ((Algebra.trace (ZMod (ringChar F)) F) (BlrPcp.dotProduct α x))
Instances For
The c-phase of f : F^Idx → F, defined by
f_c(x) = ω_p^{Tr(c * f(x))} where p = ringChar F.
Equations
- BlrPcp.phaseLift f c x = ZMod.stdAddChar ((Algebra.trace (ZMod (ringChar F)) F) (c * f x))
Instances For
The Fourier coefficient \hat f(\alpha) is the expectation inner product
of f with the character χ_α.
Equations
- BlrPcp.fourierCoeff f α = BlrPcp.fnInner f (BlrPcp.charFn α)
Instances For
Postfix notation for the Fourier transform f ↦ \hat f.
Equations
- BlrPcp.«term_̂» = Lean.ParserDescr.trailingNode `BlrPcp.«term_̂» 1024 1024 (Lean.ParserDescr.symbol "̂")
Instances For
Application notation for Fourier coefficients, allowing f̂(α).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Character-sum indicator for equality in F: baseChar is the Lean
encoding of ω_p^{Tr(·)}.
The c-phase of the linear function ℓ_α is the character χ_{cα}.
Fourier expansion of a linear function: the c-phase of ℓ_α has a
single Fourier coefficient, at cα.
Pointwise Fourier inversion for the character basis χ_α.
Relative Hamming distance in terms of the Fourier coefficients of the
nonzero phase lifts of f and g.
The Fourier score of f against the linear function ℓ_α.
Equations
- BlrPcp.linearFourierScore f α = ∑ c ∈ BlrPcp.nonzeroScalars, BlrPcp.fourierCoeff (BlrPcp.phaseLift f c) fun (i : Idx) => c * α i
Instances For
The squared linear Fourier scores have total mass at most (q - 1)^2.
Exact BLR acceptance formula in terms of the Fourier scores
∑ c∈Fˣ, \widehat{f_c}(cα).
The real part of the Fourier score of f against ℓ_α. The score is
proved real in linearFourierScore_im_eq_zero.
Equations
Instances For
Relative Hamming distance from f to the linear function ℓ_α, written in
terms of the Fourier coefficients of the nonzero phase lifts of f.
The fixed-linear-function Fourier distance formula, with real-valued score.
Real-valued form of the exact BLR acceptance formula.
Real form of linearFourierScore_norm_sq_sum_le.
Distance to linearity in Fourier form.
Distance to linearity in Fourier form, together with the realness and range of each linear Fourier score.
Soundness of the finite-field BLR test in the Fourier-score form used by
the proof: acceptance is at most 1 - distanceToLinear f.
The finite-field BLR acceptance probability is sandwiched between completeness for linear functions and the soundness bound from distance to linearity.