Read a random function through an injective input map behind any stateless router

未关闭
#394 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
46/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃

调研方向

Read the evaluation sharing laws in src/Commons/Definitions/ and the referenced issues #201, #205, and #229; the proposed additions are Evaluation.routingAt_comp_smul_system, Evaluation.routingAt_comp_smul_randomFunction_of_injective, its uniform-law case, and Evaluation.routingAt_comp_smul_URF_of_injective. Start by tracing how the existing laws express precomposition and random-function draws. Done means the new laws are proved and the acceptance example shows that none is never queried.

由索引模型根据 Issue 内容生成。

描述

Background

#201 reads a function through an input map on the evaluation interface itself: $\mathrm{precompose}_e\bullet[f]=[f\circ e]$, and for injective $e$ a random function read through $e$ is a random function. A converter that reads the function is usually not precompose but a stateless router (#220) from another interface, whose requests end in $e$. For such a router with request $u\mapsto e(\mathrm{req},u)$ and answer map $\mathrm{ans}$:

\mathrm{route}_{e\circ\mathrm{req},\,\mathrm{ans}}\bullet[f]=\mathrm{route}_{\mathrm{req},\,\mathrm{ans}}\bullet[f\circ e],
e\ \text{injective}\ \Longrightarrow\
\mathrm{route}_{e\circ\mathrm{req},\,\mathrm{ans}}\bullet\mathrm{RF}_{D'}(\mu)=\mathrm{route}_{\mathrm{req},\,\mathrm{ans}}\bullet\mathrm{RF}_{D}(\mu\circ e).

The entry laws $\mu$ may differ from input to input. The inputs outside the image of $e$ are never read. precompose is built with routing, not routingAt, so the router laws of #229 do not apply to it directly.

#355 treats a map $e$ that is not injective, up to the event that two distinct queries reach one entry.

Proposed change

In src/Commons/Definitions/, beside the evaluation sharing laws, add Evaluation.routingAt_comp_smul_system, Evaluation.routingAt_comp_smul_randomFunction_of_injective and its case at the uniform laws, Evaluation.routingAt_comp_smul_URF_of_injective. The proof draws the table outside the router, reads it through precompose e, and moves the draw back (#201, #205).

Acceptance criteria

On a query b, a router reads the uniform random function on Option Bool at some (!b). It is the router that reads the uniform random function on Bool at !b: the input none is never read.

主要语言
Lean
星标
3
派生
0
平均合并
1 天 7 小时
30 天内合并 PR
123

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

trailofbits/constructive-cryptography 的其他 Issue

查看 trailofbits/constructive-cryptography 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。