Perfectly Correct of lawful
ArkLib.Lattices.Ajtai.InnerOuter.perfectlyCorrect_of_lawful
Plain-language statement
Perfect correctness of the inner-outer Ajtai commitment for lawful decompositions. The honest opening uses the trivial challenge cᵢ = 1, under which verify_weak reduces to the ordinary honest check. Correctness therefore needs, beyond gadget lawfulness: * the trivial challenge is an admissible challenge: 0 < ‖1‖₁ and ‖1‖₁ ≤ κ; * each honest me...
Exact Lean statement
theorem perfectlyCorrect_of_lawful (base : ZMod q) (βSq γ κ : Nat)
(decomp : Decomposition Φ messageRows messageDigits innerRows innerDigits)
(hMessageDecomp : IsLawfulGadgetDecomposition Φ base decomp.message)
(hInnerDecomp : IsLawfulGadgetDecomposition Φ base decomp.inner)
(hκpos : 0 < ‖(1 : Rq Φ)‖₁)
(hκle : ‖(1 : Rq Φ)‖₁ ≤ κ)
(hβ : ∀ (pp : PublicParams Φ innerRows messageRows messageDigits outerRows blocks innerDigits)
(m : Message Φ messageRows blocks) (i : Fin blocks),
‖(generateDecomps Φ decomp pp m).message i‖₂² ≤ βSq)
(hγ : ∀ (pp : PublicParams Φ innerRows messageRows messageDigits outerRows blocks innerDigits)
(m : Message Φ messageRows blocks),
vecLInftyNorm Φ
(PolyVec.flattenBlocks (generateDecomps Φ decomp pp m).innerDecomp) ≤ γ) :
(commitmentScheme Φ (outerRows := outerRows) (blocks := blocks) base βSq γ κ
decomp).PerfectlyCorrectFormal artifact
Lean source
theorem perfectlyCorrect_of_lawful (base : ZMod q) (βSq γ κ : Nat) (decomp : Decomposition Φ messageRows messageDigits innerRows innerDigits) (hMessageDecomp : IsLawfulGadgetDecomposition Φ base decomp.message) (hInnerDecomp : IsLawfulGadgetDecomposition Φ base decomp.inner) (hκpos : 0 < ‖(1 : Rq Φ)‖₁) (hκle : ‖(1 : Rq Φ)‖₁ ≤ κ) (hβ : ∀ (pp : PublicParams Φ innerRows messageRows messageDigits outerRows blocks innerDigits) (m : Message Φ messageRows blocks) (i : Fin blocks), ‖(generateDecomps Φ decomp pp m).message i‖₂² ≤ βSq) (hγ : ∀ (pp : PublicParams Φ innerRows messageRows messageDigits outerRows blocks innerDigits) (m : Message Φ messageRows blocks), vecLInftyNorm Φ (PolyVec.flattenBlocks (generateDecomps Φ decomp pp m).innerDecomp) ≤ γ) : (commitmentScheme Φ (outerRows := outerRows) (blocks := blocks) base βSq γ κ decomp).PerfectlyCorrect := by intro pp _ m cd hmem simp only [commitmentScheme, support_pure, Set.mem_singleton_iff] at hmem rcases hmem with rfl simp only [commitmentScheme, Bool.and_eq_true] refine ⟨?_, ?_⟩ · -- the claimed message is the derived message of every block rw [List.all_eq_true] intro i _ rw [decide_eq_true_eq] exact generateDecomps_derivedMessage Φ base decomp hMessageDecomp pp m i · -- the honest opening (challenge `cᵢ = 1`) passes weak verification have hone : ∀ (v : PolyVec (Rq Φ) (messageRows * messageDigits)), (1 : Rq Φ) •ᵥ v = v := fun v => by funext j; simp simp only [verify_weak, Bool.and_eq_true] refine ⟨⟨?_, ?_⟩, ?_⟩ · rw [List.all_eq_true] intro i _ simp only [Bool.and_eq_true, decide_eq_true_eq] refine ⟨⟨⟨hκpos, hκle⟩, ?_⟩, ?_⟩ · rw [hone]; exact hβ pp m i · rw [Simple.verify_eq_true_iff] exact generateDecomps_inner_eq Φ base decomp hInnerDecomp pp m i · rw [decide_eq_true_eq]; exact hγ pp m · rw [Simple.verify_eq_true_iff]; rfl- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Commitments/Functional/Hachi/InnerOuter/Correctness.lean:147-185
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.