Add non-erasing StructuredDistinguisher and uniform-index hybrid telescoping

Đang mở
#471 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
12/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Lean
Star
3
Fork
0
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
123

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của trailofbits/constructive-cryptography

Tất cả issue của trailofbits/constructive-cryptography

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.