Compare two program converters along a map or a relation on their states
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 38/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- compilers
Rechercherichtung
Read the existing automata state relation law in #221 and the attached-program invariant law in #230, then inspect the Program and DDC.ofProgramOn definitions. Implement and prove the state-map laws and derive the relation laws, including the typed form. Done means both acceptance checks pass without attaching a system or building an automaton.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Background
A program $P$ with states $S$ gives the deterministic converter DDC.ofProgramOn s P F. Two programs often differ only in what they keep as their state. Let $R\subseteq S\times T$ relate the states of $P$ and $Q$. Suppose that from related states the two bodies ask the same inside query, or return the same reply with related next states:
R(x,y)\ \Longrightarrow\
\begin{cases}
P_x(u,h)=\mathrm{ask}\ q=Q_y(u,h), & \text{or}\\
P_x(u,h)=\mathrm{reply}\ (x',v),\quad Q_y(u,h)=\mathrm{reply}\ (y',v),\quad R(x',y').
\end{cases}
Then $P$ from $s$ and $Q$ from $t$ are one converter whenever $R(s,t)$. When $R$ is the graph of a map $f:S\to T$, this says that $Q$ is $P$ with its state sent along $f$. No system is attached, and $f$ need not be injective or surjective.
#221 is the same law for automata. #230 relates two programs attached to one inside system, along an invariant of that system's transcript.
Proposed change
Add the state-map law for programs: DDC.ofProgram_eq_of_stateMap, DDC.ofProgramOn_eq_of_stateMap and TypedConverter.ofDDC_ofProgramOn_eq_of_stateMap, with Program.Mode.mapState and the step laws Program.emit_stateMap, step_stateMap, after_stateMap.
From it, add the relation law DDC.ofProgram_eq_of_stateRel, DDC.ofProgramOn_eq_of_stateRel and
theorem TypedConverter.ofDDC_ofProgramOn_eq_of_stateRel
(P : Program S A.I B.I A.X A.Y B.X B.Y) (Q : Program T A.I B.I A.X A.Y B.X B.Y)
(R : S → T → Prop)
(hrel : ∀ σ τ o u h, R σ τ →
Sum.LiftRel (fun a b => R a.1 b.1 ∧ a.2 = b.2) Eq (P σ o u h) (Q τ o u h))
(hs : R s t)
(hP : IsDDCFrom B.domain A.domain b (DDC.ofProgramOn s P A.domain))
(hQ : IsDDCFrom B.domain A.domain b' (DDC.ofProgramOn t Q A.domain)) :
ofDDC (DDC.ofProgramOn s P A.domain) hP = ofDDC (DDC.ofProgramOn t Q A.domain) hQ
The relation law is the state-map law applied twice, through the program on the pairs of related states. The typed forms hold for any two certificates, since a typed converter determines its deterministic converter (#386).
Acceptance criteria
Relate a program that keeps a list to a program that keeps its image under a map. Show that two programs with states Unit × Unit and Unit and the same bodies are one converter, along the relation that always holds. In both checks no system is attached and no automaton is built.
- 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
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus trailofbits/constructive-cryptography
-
Automate monoidal whiskering and unitor normalization in cc_normalizeEvtl. vergeben @MarcIlunga hat das heute übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
trailofbits/constructive-cryptography#480 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add MR16 Lemma 5, indifferentiability composition, and specificationEvtl. vergeben @MarcIlunga hat das heute übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 12/100
trailofbits/constructive-cryptography#473 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-format
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 12/100
trailofbits/constructive-cryptography#471 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 15/100
trailofbits/constructive-cryptography#465 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-format
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 8/100
trailofbits/constructive-cryptography#462 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in trailofbits/constructive-cryptography
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Deltakit/deltakit-compile#27 ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
new issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
llvm/llvm-project#245835 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag