Add non-erasing StructuredDistinguisher and uniform-index hybrid telescoping

オープン
#471 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
領域
api

調査の方向性

Start by reading the existing src/RandomSystems/Distance/SignedObservation.lean from #452 and the Domain.Distinguisher definitions it builds on, since the new StructuredDistinguisher is meant to reuse them rather than redefine anything. Then follow how src/RandomSystems.lean and src/ConstructiveCryptography.lean export modules so the two new files plug in, and model the test file on existing src/Tests/*.lean harnesses using #print axioms. Done means lake build --wfail, scripts/check-sources.sh, scripts/check-axioms.sh and the linters pass with only the three permitted axioms, with src/Tests/StructuredHybrid.lean exercising every listed declaration.

索引モデルが issue の本文から書いたものです。

説明

needs-format

Background

Computational hybrid proofs and nonadaptive distinguisher bounds (#194, #195, #413) require a concrete distinguisher carrier that retains the underlying distribution over stopping DDDs (transcriptLaw, ProbDist.bind, and nonadaptivity predicates), together with 0-inclusive hybrid chains and uniform-index signed-gap telescoping on Distinguishers, AdmissibleDistinguishers, and Interface.

Proposed change

  • Add src/RandomSystems/Typed/StructuredDistinguisher.lean (building on #452's RandomSystems.Distance.SignedObservation):
    • StructuredDistinguisher A := A.inputDomain.Distinguisher, reusing Domain.Distinguisher.{signedGap, probability_bind, signedGap_bind} directly.
    • Behavioral projection toTyped and concrete converter absorption absorb with toTyped_absorb.
    • Transcript-law mixing (transcriptLaw_bind), uniform-index selection (uniformChoice), and uniform-index telescoping signed-gap / advantage theorems.
    • Nonadaptivity predicate IsNonAdaptive (preserved under bind and uniformChoice) and fixed-query constructors fixedQuery and sampleFixedQuery.
  • Add src/ConstructiveCryptography/Substitution/StructuredHybrid.lean:
    • 0-inclusive finite hybrid chain SubstitutesWithin.chain.
    • Abstract Distinguishers.{signedGap, signedGap_telescoping, signedGap_average_expect, signedGap_uniform_telescoping, advantage_uniform_telescoping} and AdmissibleDistinguishers.substitutesWithin_uniform_telescoping.
    • Interface.structuredDistinguisherAdvantage with DominatedByDistance, converter-attachment transport, bidirectional bridges to TypedDistinguisher, and Interface.structuredSubstitutesWithin_uniform_telescoping.
  • Export from src/RandomSystems.lean and src/ConstructiveCryptography.lean, and add consumer tests (including cc_calc mixed) + #print axioms in src/Tests/StructuredHybrid.lean.

Acceptance criteria

  • All new declarations build cleanly on top of #452 without duplicating #452's SignedObservation or #432's SubstitutesWithin.of_reduction, and use only [propext, Classical.choice, Quot.sound].
  • src/Tests/StructuredHybrid.lean exercises IsNonAdaptive.uniformChoice, sampleFixedQuery_isNonAdaptive, toTyped_absorb, transcriptLaw_bind, cc_calc mixed, SubstitutesWithin.chain, abstract and concrete uniform-index telescoping, and TypedDistinguisher bridging.
  • lake build --wfail, scripts/check-sources.sh, scripts/check-axioms.sh, and Mathlib standard linters pass with 0 warnings.

Advances #194, #195, #413.

主要言語
Lean
スター
3
フォーク
0
平均マージ
1日 7時間
マージ済み PR(30日)
123

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

trailofbits/constructive-cryptography のほかの issue

trailofbits/constructive-cryptography の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。