Compare deterministic converters by their next outputs

Abierto
#386 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
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo

Línea de trabajo

Start in src/RandomSystems/Converter/ beside PDCBehavior.ofDDC, then read the related definitions and proofs for IsDDCFrom, TypedConverter, and tensor_ofDDC. Add the comparison and converse laws, typed forms, and parallel identity closure laws described in the issue; use the acceptance criteria to check reachable history functions and the two composite forms. The issue names no test files or commands.

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

Descripción

Background

A deterministic converter from E to F (IsDDCFrom E F b a) is a partial function a from its input history, the outside queries and inside replies received so far, to its next output. After each of its own transcripts it answers exactly the inputs of the converter domain (IsDDCFrom.answers). Two such converters can therefore be compared one output at a time:

\big(\forall\,t\ \text{a transcript of both},\ \forall\,x\ \text{admitted after}\ t:\ \ a(t\cdot x)=c(t\cdot x)\big)
\ \Longrightarrow\ \mathrm{ofDDC}\,a=\mathrm{ofDDC}\,c .

The bounds on consecutive inside queries of a and c may differ. Today two deterministic converters are compared only below a common system (PDCBehavior.ofDDC_eq_of_le). An identity between two composites of converters, with no system attached, has no proof rule of its own.

Proposed change

Beside PDCBehavior.ofDDC in src/RandomSystems/Converter/, add

  • IsDDCFrom.replies_iff_of_next_eq and IsDDCFrom.eq_of_next_eq: under the hypothesis above the two converters have the same transcripts, and are the same partial function;
  • PDCBehavior.ofDDC_eq_of_next_eq: they have the same behavior;
  • the converses PDCBehavior.ofDDC_eq_iff_replies and PDCBehavior.ofDDC_eq_iff: the behaviors ofDDC a and ofDDC c are equal exactly when the transcripts agree, and exactly when a = c.

Add the typed forms TypedConverter.ofDDC_eq_of_next_eq, ofDDC_eq_iff_replies and ofDDC_eq_iff in src/RandomSystems/Typed/. So that composites are again of the form ofDDC, state that two deterministic converters side by side are one:

parallel (ofDDC α hα) (ofDDC γ hγ) = ofDDC (tensorL α γ) (IsDDCFrom.tensorL hα hγ)

This is TypedConverter.parallel_ofDDC, the typed reading of PDCBehavior.tensor_ofDDC. Add the identity as the converter of the forwarding filter (id_eq_ofDDC_filter) and the two forms beside an identity (parallel_ofDDC_id, parallel_id_ofDDC). In series the closure law is the existing TypedConverter.ofDDC_eq_comp.

Acceptance criteria

Take two history functions that agree after every history both have answered so far and differ elsewhere: their reachable parts give one typed converter. Derive PDCBehavior.ofDDC_eq_of_le as an instance of the comparison law. Write (ofDDC α ⊗ ofDDC γ) ≫ ofDDC β and (ofDDC α ≫ ofDDC β) ⊗ ofDDC γ each as one ofDDC.

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.