Sample advantage le module SIS
ArkLib.Lattices.Ajtai.InnerOuter.WeakBinding.sample_advantage_le_moduleSIS
Plain-language statement
Pointwise weak-binding to Module-SIS bound for fixed samples (over 𝓜(q, α)).
Exact Lean statement
theorem sample_advantage_le_moduleSIS (base : ZMod q)
(hq5 : q % 8 = 5) (βSq γ κ : Nat) (hκ : κ ^ 2 < q)
(A : Simple.PublicParams 𝓜(q, α) innerRows (messageRows * messageDigits))
(B : Simple.PublicParams 𝓜(q, α) outerRows (blocks * (innerRows * innerDigits)))
(u : Commitment 𝓜(q, α) outerRows)
(opening₁ opening₂ :
Opening 𝓜(q, α) innerRows messageRows messageDigits blocks innerDigits) :
Pr[= true | ((pure (openingsDiffer 𝓜(q, α) opening₁ opening₂ &&
verify_weak 𝓜(q, α) base βSq γ κ
{ innerMatrix := A, outerMatrix := B } u opening₁ &&
verify_weak 𝓜(q, α) base βSq γ κ
{ innerMatrix := A, outerMatrix := B } u opening₂)) :
ProbComp Bool)] ≤
Pr[= true | ((pure (ModuleSIS.relation 𝓜(q, α) (innerShort 𝓜(q, α) κ βSq)
A (match outputToModuleSIS 𝓜(q, α) opening₁ opening₂ with
| Sum.inl z => z
| Sum.inr _ => dummySolution 𝓜(q, α) (messageRows * messageDigits)))) :
ProbComp Bool)] +
Pr[= true | ((pure (ModuleSIS.relation 𝓜(q, α) (outerShort 𝓜(q, α) γ)
B (match outputToModuleSIS 𝓜(q, α) opening₁ opening₂ with
| Sum.inl _ => dummySolution 𝓜(q, α) (blocks * (innerRows * innerDigits))
| Sum.inr z => z))) :
ProbComp Bool)]Formal artifact
Lean source
theorem sample_advantage_le_moduleSIS (base : ZMod q) (hq5 : q % 8 = 5) (βSq γ κ : Nat) (hκ : κ ^ 2 < q) (A : Simple.PublicParams 𝓜(q, α) innerRows (messageRows * messageDigits)) (B : Simple.PublicParams 𝓜(q, α) outerRows (blocks * (innerRows * innerDigits))) (u : Commitment 𝓜(q, α) outerRows) (opening₁ opening₂ : Opening 𝓜(q, α) innerRows messageRows messageDigits blocks innerDigits) : Pr[= true | ((pure (openingsDiffer 𝓜(q, α) opening₁ opening₂ && verify_weak 𝓜(q, α) base βSq γ κ { innerMatrix := A, outerMatrix := B } u opening₁ && verify_weak 𝓜(q, α) base βSq γ κ { innerMatrix := A, outerMatrix := B } u opening₂)) : ProbComp Bool)] ≤ Pr[= true | ((pure (ModuleSIS.relation 𝓜(q, α) (innerShort 𝓜(q, α) κ βSq) A (match outputToModuleSIS 𝓜(q, α) opening₁ opening₂ with | Sum.inl z => z | Sum.inr _ => dummySolution 𝓜(q, α) (messageRows * messageDigits)))) : ProbComp Bool)] + Pr[= true | ((pure (ModuleSIS.relation 𝓜(q, α) (outerShort 𝓜(q, α) γ) B (match outputToModuleSIS 𝓜(q, α) opening₁ opening₂ with | Sum.inl _ => dummySolution 𝓜(q, α) (blocks * (innerRows * innerDigits)) | Sum.inr z => z))) : ProbComp Bool)] := by let pp : PublicParams 𝓜(q, α) innerRows messageRows messageDigits outerRows blocks innerDigits := { innerMatrix := A, outerMatrix := B } refine probOutput_pure_bool_le_or _ _ _ (fun hwin => ?_) have hvalid := outputToModuleSIS_valid α base hq5 βSq γ κ hκ pp u opening₁ opening₂ hwin cases hsol : outputToModuleSIS 𝓜(q, α) opening₁ opening₂ with | inl z => exact Or.inl (by rw [hsol] at hvalid; simpa [hsol, pp] using hvalid) | inr z => exact Or.inr (by rw [hsol] at hvalid; simpa [hsol, pp] using hvalid)- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Commitments/Functional/Hachi/InnerOuter/Security.lean:453-484
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Affine gaps lifted to interleaved codes
affine_gaps_lifted_to_interleaved_codes
Project documentation
This lemma proves the final algebraic step in the DG25 Theorem 3.1 proof. It shows that if R > e + 1, then e * (R / (R - 1)) < e + 1. The intuition is that the fraction R / (R - 1) is always greater than 1, but as R gets larger, it gets closer to 1. The hypothesis R > e + 1 provides a strong enough bound to ensure the product e * (fraction) do...
Source project: ArkLib
Person-level attribution pending.
Gadget Decompose coeff
ArkLib.Lattices.Ajtai.gadgetDecompose_coeff
Plain-language statement
The k-th coefficient (k < deg φ) of a gadget-decomposition block is exactly the corresponding digit of the corresponding input coefficient.
Source project: ArkLib
Person-level attribution pending.
Gadget Decompose lawful
ArkLib.Lattices.Ajtai.gadgetDecompose_lawful
Plain-language statement
The base-b gadget decomposition is a lawful gadget decomposition.
Source project: ArkLib
Person-level attribution pending.