Right Proj tree is Structured
ProtocolSpec.ChallengeTree.RightProj.tree_isStructured
Plain-language statement
If the appended source tree of a RightProj is structured then so is its right-protocol tree.
Exact Lean statement
theorem RightProj.tree_isStructured :
{r : Fin (n + 1)} → (R : RightProj S₁.arity S₂.arity r) →
R.src.IsStructured (S₁.append S₂) → R.tree.IsStructured S₂
| _, .leaf, _ => trivial
| _, .msg i h m₂ child, hR => by
have hround : (Fin.natAdd m i).succ = rightRound i.succFormal artifact
Lean source
theorem RightProj.tree_isStructured : {r : Fin (n + 1)} → (R : RightProj S₁.arity S₂.arity r) → R.src.IsStructured (S₁.append S₂) → R.tree.IsStructured S₂ | _, .leaf, _ => trivial | _, .msg i h m₂ child, hR => by have hround : (Fin.natAdd m i).succ = rightRound i.succ := by apply Fin.ext simp only [Fin.val_succ, Fin.val_natAdd, rightRound] omega simp only [RightProj.src, ChallengeTree.IsStructured] at hR apply RightProj.tree_isStructured child convert hR using 1 · exact hround.symm · rfl | _, .chal i h chals children, hR => by have hApp : (pSpec₁ ++ₚ pSpec₂).dir (Fin.natAdd m i) = .V_to_P := by simpa [ProtocolSpec.append, Fin.vappend_eq_append, Fin.append_right] using h have hIdx : (⟨Fin.natAdd m i, hApp⟩ : (pSpec₁ ++ₚ pSpec₂).ChallengeIdx) = ChallengeIdx.inr ⟨i, h⟩ := by ext; rfl have hAr : appendArity S₁.arity S₂.arity ⟨Fin.natAdd m i, hApp⟩ = S₂.arity ⟨i, h⟩ := by rw [hIdx]; simpa [appendArity] using congrArg (Sum.elim S₁.arity S₂.arity) (ChallengeIdx.sumEquiv_symm_inr (pSpec₁ := pSpec₁) ⟨i, h⟩) have hR' := hR simp only [RightProj.src, ChallengeTree.IsStructured] at hR' refine ⟨?_, fun j => RightProj.tree_isStructured (children j) (hR'.2 (Fin.cast hAr.symm j))⟩ -- `hsymm` is quantified over the dir proof so `simp` rewrites the `match` scrutinee -- regardless -- of which (proof-irrelevant) proof term `RightProj.src` inlined. have hsymm : ∀ (P : (pSpec₁ ++ₚ pSpec₂).dir (Fin.natAdd m i) = .V_to_P), ChallengeIdx.sumEquiv.symm (⟨Fin.natAdd m i, P⟩ : (pSpec₁ ++ₚ pSpec₂).ChallengeIdx) = Sum.inr ⟨i, h⟩ := fun P => by rw [show (⟨Fin.natAdd m i, P⟩ : (pSpec₁ ++ₚ pSpec₂).ChallengeIdx) = ChallengeIdx.inr ⟨i, h⟩ from by ext; rfl, ChallengeIdx.sumEquiv_symm_inr] have hR1 := hR'.1 simp only [ChallengeTreeShape.append] at hR1 split at hR1 · rename_i i₁ heqs; exact absurd (heqs.symm.trans (hsymm _)) (by simp) · rename_i i₂ heqs obtain rfl : i₂ = ⟨i, h⟩ := Sum.inr.inj (heqs.symm.trans (hsymm _)) convert hR1 using 2 simp [cast_cast]- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/OracleReduction/Security/TranscriptTree/Composition.lean:568-609
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.