Compare two program converters along a map or a relation on their states
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 38/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- compilers
Direção de pesquisa
Read the existing automata state relation law in #221 and the attached-program invariant law in #230, then inspect the Program and DDC.ofProgramOn definitions. Implement and prove the state-map laws and derive the relation laws, including the typed form. Done means both acceptance checks pass without attaching a system or building an automaton.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Background
A program $P$ with states $S$ gives the deterministic converter DDC.ofProgramOn s P F. Two programs often differ only in what they keep as their state. Let $R\subseteq S\times T$ relate the states of $P$ and $Q$. Suppose that from related states the two bodies ask the same inside query, or return the same reply with related next states:
R(x,y)\ \Longrightarrow\
\begin{cases}
P_x(u,h)=\mathrm{ask}\ q=Q_y(u,h), & \text{or}\\
P_x(u,h)=\mathrm{reply}\ (x',v),\quad Q_y(u,h)=\mathrm{reply}\ (y',v),\quad R(x',y').
\end{cases}
Then $P$ from $s$ and $Q$ from $t$ are one converter whenever $R(s,t)$. When $R$ is the graph of a map $f:S\to T$, this says that $Q$ is $P$ with its state sent along $f$. No system is attached, and $f$ need not be injective or surjective.
#221 is the same law for automata. #230 relates two programs attached to one inside system, along an invariant of that system's transcript.
Proposed change
Add the state-map law for programs: DDC.ofProgram_eq_of_stateMap, DDC.ofProgramOn_eq_of_stateMap and TypedConverter.ofDDC_ofProgramOn_eq_of_stateMap, with Program.Mode.mapState and the step laws Program.emit_stateMap, step_stateMap, after_stateMap.
From it, add the relation law DDC.ofProgram_eq_of_stateRel, DDC.ofProgramOn_eq_of_stateRel and
theorem TypedConverter.ofDDC_ofProgramOn_eq_of_stateRel
(P : Program S A.I B.I A.X A.Y B.X B.Y) (Q : Program T A.I B.I A.X A.Y B.X B.Y)
(R : S → T → Prop)
(hrel : ∀ σ τ o u h, R σ τ →
Sum.LiftRel (fun a b => R a.1 b.1 ∧ a.2 = b.2) Eq (P σ o u h) (Q τ o u h))
(hs : R s t)
(hP : IsDDCFrom B.domain A.domain b (DDC.ofProgramOn s P A.domain))
(hQ : IsDDCFrom B.domain A.domain b' (DDC.ofProgramOn t Q A.domain)) :
ofDDC (DDC.ofProgramOn s P A.domain) hP = ofDDC (DDC.ofProgramOn t Q A.domain) hQ
The relation law is the state-map law applied twice, through the program on the pairs of related states. The typed forms hold for any two certificates, since a typed converter determines its deterministic converter (#386).
Acceptance criteria
Relate a program that keeps a list to a program that keeps its image under a map. Show that two programs with states Unit × Unit and Unit and the same bodies are one converter, along the relation that always holds. In both checks no system is attached and no automaton is built.
- Linguagem predominante
- Lean
- Estrelas
- 3
- Forks
- 0
- Merge médio
- 1d 2h
- PRs com merge (30d)
- 159
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de trailofbits/constructive-cryptography
-
RFC: Budget-free dependent Interface, cumulative CR18 Systems/Converters, and endomorphism FiltersAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 12/100
trailofbits/constructive-cryptography#504 ·
Mantenedores costumam responder em até 1 dia
-
needs-format
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 12/100
trailofbits/constructive-cryptography#471 ·
Mantenedores costumam responder em até 1 dia
-
Exclude all approximate ideal witnesses with separating testsTalvez já em andamento @MarcIlunga assumiu há 1 dia. Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
trailofbits/constructive-cryptography#449 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 12/100
trailofbits/constructive-cryptography#430 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
trailofbits/constructive-cryptography#429 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de trailofbits/constructive-cryptography
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
P-medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
leanprover/lean4#16750 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
solidjs/reactivescript#96 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Deltakit/deltakit-compile#27 ·