Compare deterministic converters by their next outputs

Ouverte
#386 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Lean
Étoiles
3
Forks
0
Merge moyen
1 j 7 h
PR mergées (30 j)
123

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de trailofbits/constructive-cryptography

Toutes les issues de trailofbits/constructive-cryptography

Issues similaires

Plus d'issues Backend & API Design

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.