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

Abierto
#396 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
43/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Área
tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Lean
Estrellas
3
Forks
0
Merge medio
1 d 7 h
PR fusionados (30 d)
123

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de trailofbits/constructive-cryptography

Todos los issues de trailofbits/constructive-cryptography

Issues similares

Más issues de DevTools

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.