feat(Append): construct the challenge-oracle SubSpec embeddings#633
feat(Append): construct the challenge-oracle SubSpec embeddings#633Abraxas1010 wants to merge 1 commit into
Conversation
…rries removed) The two instances [pSpec_i.Challenge]o < [(pSpec1 ++ pSpec2).Challenge]o were stubbed with sorry. The lens data is: ChallengeIdx.inl/.inr on oracle indices, and transport along the challenge-type equalities Challenge_inl/Challenge_inr (new lemmas, by Fin.append_left/right) on responses. monadLift is spelled in lens form so liftM_eq_lift holds by rfl, per the SubSpec design notes. All downstream modules (Sequential.General, CoordinateWiseSpecialSoundness Composition, RingSwitching) build unchanged. From The Institute for Ontological Mathematics (IAOM) / Equation Capital dba Apoth3osis.
🤖 PR Summary
Mathematical Formalization
Proof Completion (sorries removed)
Motivation / Context
Infrastructure / CI
Statistics
Lean Declarations ✏️ Added: 2 declaration(s)
✅ Removed: 2 `sorry`(s)
📋 **Additional Analysis**The diff is being reviewed against the ArkLib contribution guidelines. The changes implement embedding instances for sequential protocol composition, which aligns with the project's roadmap and style guide. Key observations:
No violations of the style guide or contribution guidelines are detected. 📄 **Per-File Summaries**
Last updated: 2026-07-10 20:21 UTC. |
Fills the two
sorry'd instances inComposition/Sequential/Append.lean:Construction. A
SubSpecinstance is a lens plus a coherentmonadLift. Here the lens is:onQuery:ChallengeIdx.inl/.inron the oracle index (the embeddings already inSeqCompose.lean), identity on the trivialUnitquery;onResponse: transport along the challenge-type equalitiesChallenge_inl/Challenge_inr— two new lemmas proved byFin.append_left/Fin.append_right(these are the equalities sketched in the commented-outchallengeOracleInterface_append_*lemmas inSeqCompose.lean).monadLiftis spelled directly in lens form, so the coherence fieldliftM_eq_liftholds byrfl— per the design note inVCVio/OracleComp/Coercions/SubSpec.leanthis keeps lifted queries transparent toisDefEq, which matters for the downstreamappend_runfactorization work.Motivation. These instances are prerequisites for stating/proving
Prover.append_runand the append security theorems (they let a component prover's challenge queries be replayed inside the appended protocol). Part of the sequential-composition thread discussed on #627; smallest complete unit, nothing else touched.Checks.
lake buildof the module and all importers (Sequential.General,Security/CoordinateWiseSpecialSoundness/Composition,RingSwitching/*) passes; sorry delta −2; no new axioms.From The Institute for Ontological Mathematics (IAOM) / Equation Capital dba Apoth3osis