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

オープン
#396 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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日 7時間
マージ済み PR(30日)
123

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

trailofbits/constructive-cryptography のほかの issue

trailofbits/constructive-cryptography の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。