Name the certificate of a program converter

Offen
#398 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Bereich
backend

Rechercherichtung

Read the definitions of TypedConverter.ofProgram and TypedConverter.ofDDC, then locate laws for DDC.ofProgramOn and the attached program families referenced as #357, #364, #365, and #360. Name the certificate used by ofProgram, state the equality to its ofDDC form, and use that rewrite to establish the acceptance criterion about forwarding programs.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Background

TypedConverter.ofProgram s P hb hB is the converter of the deterministic converter DDC.ofProgramOn s P A.domain, at a proof that this is a converter between the two domains. That proof is anonymous inside the definition. A law about ofDDC (DDC.ofProgramOn …) therefore does not apply to ofProgram by rewriting, and a law about ofProgram can only say "there is a certificate at which the converter equals the program's". A consumer cannot rewrite with an existential over a proof.

Proposed change

Give the certificate a name, TypedConverter.ofProgram_isDDCFrom, define ofProgram with it, and state

lemma TypedConverter.ofProgram_eq_ofDDC (s : S) (P : Program S A.I B.I A.X A.Y B.X B.Y)
    (hb : P.Bounded b) (hB : ∀ xs, xs ≠ [] → xs.length ≤ b * A.bound → B.domain xs) :
    ofProgram s P hb hB =
      ofDDC (DDC.ofProgramOn s P A.domain) (ofProgram_isDDCFrom s P hb hB)

It holds by definition. Laws about attached program families (#357, #364, #365) and the generated program equation of #360 rewrite with it.

Acceptance criteria

State that a family of forwarding programs is the converter of their joint program, as an equation at the named certificates. Rewrite an ofProgram converter into the ofDDC form and apply a law stated for ofDDC (DDC.ofProgramOn …) to it.

Vorherrschende Sprache
Lean
Sterne
3
Forks
0
Ø Merge
1 T. 7 Std.
Gemergte PRs (30 T.)
123

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus trailofbits/constructive-cryptography

Alle Issues in trailofbits/constructive-cryptography

Ähnliche Issues

Weitere Issues zu Backend & API Design

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.