Add non-erasing StructuredDistinguisher and uniform-index hybrid telescoping

Abierto
#471 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Área
api

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Lean
Estrellas
3
Forks
0
Merge medio
1 d 7 h
PR fusionados (30 d)
123

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de trailofbits/constructive-cryptography

Todos los issues de trailofbits/constructive-cryptography

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.