Normalize kernel expressions when comparing two automata port by port
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
- 54/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Área
- backend-api-design
Línea de trabajo
Start in src/Probability/ and read the existing ProbDist rewrite lemmas named in the issue, then inspect the automaton and product step definitions referenced by #221 and #223. Implement kernel_nf with the specified fixed rewrite list and add the cited state-map and product-step lemmas. Done means the side-by-side automata equality closes port by port and the tactic handles both pushforward examples.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Background
By #221, two automata on one interface are one system when a state map $f$ carries each step of the first to the step of the second:
\big(\mathrm{step}_1(s,i,x)\big).\mathrm{map}\,(f\times\mathrm{id})=\mathrm{step}_2(f\,s,i,x)\qquad\text{for every port } i .
The hypothesis is one identity of kernels per port. After the two steps are unfolded, both sides are built from ProbDist.map, ProbDist.bind and ProbDist.single, and differ only in how the pushforwards are nested. A fixed rewriting brings both to one form:
(P.map g).map f = P.map (f ∘ g) ProbDist.map_map
(P.bind k).map f = P.bind fun a => (k a).map f ProbDist.map_bind
(P.map g).bind k = P.bind fun a => k (g a) ProbDist.bind_map
(δ_a).bind k = k a ProbDist.single_bind
(δ_a).map f = δ_(f a) ProbDist.map_single
Today each such identity is closed by a hand-picked sequence of these rewrites.
Proposed change
Add the tactic kernel_nf in src/Probability/: a simp only with the fixed list above, Function.comp_def, Prod.map_apply and id_eq. It unfolds no definition.
Add what a proof of this shape cites before the tactic:
TypedSystem.ofProbAutomaton_eq_of_stateMap_of_map_eq: the law of #221 with the image of the initial law as a hypothesis,μ.map f = ν. Applied to a goalofProbAutomaton A step₁ μ = ofProbAutomaton A step₂ ν, both automata are read off the goal, and what is left is the state map and one identity per port.ProbStep.parallel_inlandProbStep.parallel_inr: the two rows of the product step of #223, byrfl.
Acceptance criteria
Take two automata side by side and the same pair with the two states exchanged. Prove them equal: each port closes by its row and kernel_nf. Check the tactic on a pushforward of a draw from a pushforward, and on a draw from a point law.
- 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de trailofbits/constructive-cryptography
-
Automate monoidal whiskering and unitor normalization in cc_normalizePosiblemente ocupada @MarcIlunga la tomó hoy. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
trailofbits/constructive-cryptography#480 ·
Los mantenedores suelen responder en 1 día
-
Add MR16 Lemma 5, indifferentiability composition, and specificationPosiblemente ocupada @MarcIlunga la tomó hoy. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
trailofbits/constructive-cryptography#473 ·
Los mantenedores suelen responder en 1 día
-
needs-format
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
trailofbits/constructive-cryptography#471 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
trailofbits/constructive-cryptography#465 ·
Los mantenedores suelen responder en 1 día
-
needs-format
Dificultad 5/5 Más de una semana Aptitud para principiantes 8/100
trailofbits/constructive-cryptography#462 ·
Los mantenedores suelen responder en 1 día
Todos los issues de trailofbits/constructive-cryptography
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
uxlfoundation/oneDNN#6604 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[Bug]: RoundToNearest truncates in plugins compiled with spcomp 1.13Posiblemente ocupada @fmu1337 la tomó hoy. AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
alliedmodders/sourcemod#2627 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
marketcalls/openalgo#2502 ·
Los mantenedores suelen responder en 1 día