Compare two program converters along a map or a relation on their states
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- compilers
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Lean
- Star
- 3
- Fork
- 0
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 123
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của trailofbits/constructive-cryptography
-
Automate monoidal whiskering and unitor normalization in cc_normalizeCó thể đã có người làm @MarcIlunga đã nhận hôm nay. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
trailofbits/constructive-cryptography#480 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add MR16 Lemma 5, indifferentiability composition, and specificationCó thể đã có người làm @MarcIlunga đã nhận hôm nay. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
trailofbits/constructive-cryptography#473 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-format
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
trailofbits/constructive-cryptography#471 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
trailofbits/constructive-cryptography#465 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-format
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
trailofbits/constructive-cryptography#462 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của trailofbits/constructive-cryptography
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Deltakit/deltakit-compile#27 ·
-
sema: dynamic member keys print numbers with Rust's formatter, not JS's (1658206780088562.25)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
new issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
llvm/llvm-project#245835 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
triton-lang/triton#12945 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày