Recover the inside exchange of a routed exchange, per router port

未關閉
#396 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
43/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
領域
tooling

研究方向

The issue refers to the generated C.request_p and C.answer_p equations and routing relation from issues #361 and #368, but names no source files or tests. Read those issues and locate the router equation generator first. Done when each port has a C.routed_p equation, including numbered suffixes for duplicate port names, and the acceptance example works across different reply types without casts.

由索引模型根據 Issue 內容生成。

描述

Background

For a port $p$ of a DSL router with $\mathrm{request}(p,x)=(j,f,x)$, the generated request equation (#361) cannot be rewritten at a routed exchange: the type of the inside reply depends on the requested port, so the rewrite has no well-typed motive. What is used at such an exchange is the inversion of the routing relation (#368):

\mathrm{Routed}\big((p,x),v\big)\,e'\ \Longrightarrow\ \exists\,z:Y_j,\quad e'=\big((j,f\,x),(j,z)\big)\ \land\ v=\big(p,\ \mathrm{answer}_p(x,z)\big).
Proposed change

Generate C.routed_p for each port of a router, beside C.request_p and C.answer_p, with the inside port written out. It holds by definition, since the request at the outside query reduces to that port. Ports that share a name get the same numbered suffixes as the other two equations. Extends #361.

Acceptance criteria

At a router with two ports of different reply types, obtain the inside reply and the outside answer from a routed exchange by obtain ⟨z, rfl, rfl⟩ := C.routed_p … h, with no heterogeneous equality and no cast.

主要語言
Lean
星號
3
分支
0
平均合併
1 天 2 小時
30 天內合併 PR
159

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

trailofbits/constructive-cryptography 的其他 Issue

查看 trailofbits/constructive-cryptography 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。