Name the certificate of a program converter

Đang mở
#398 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của trailofbits/constructive-cryptography

Tất cả issue của trailofbits/constructive-cryptography

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.