Name the certificate of a program converter

Fechada
#398 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
48/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Domínio
backend

Direção de pesquisa

Read the definitions of TypedConverter.ofProgram and TypedConverter.ofDDC, then locate laws for DDC.ofProgramOn and the attached program families referenced as #357, #364, #365, and #360. Name the certificate used by ofProgram, state the equality to its ofDDC form, and use that rewrite to establish the acceptance criterion about forwarding programs.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Background

TypedConverter.ofProgram s P hb hB is the converter of the deterministic converter DDC.ofProgramOn s P A.domain, at a proof that this is a converter between the two domains. That proof is anonymous inside the definition. A law about ofDDC (DDC.ofProgramOn …) therefore does not apply to ofProgram by rewriting, and a law about ofProgram can only say "there is a certificate at which the converter equals the program's". A consumer cannot rewrite with an existential over a proof.

Proposed change

Give the certificate a name, TypedConverter.ofProgram_isDDCFrom, define ofProgram with it, and state

lemma TypedConverter.ofProgram_eq_ofDDC (s : S) (P : Program S A.I B.I A.X A.Y B.X B.Y)
    (hb : P.Bounded b) (hB : ∀ xs, xs ≠ [] → xs.length ≤ b * A.bound → B.domain xs) :
    ofProgram s P hb hB =
      ofDDC (DDC.ofProgramOn s P A.domain) (ofProgram_isDDCFrom s P hb hB)

It holds by definition. Laws about attached program families (#357, #364, #365) and the generated program equation of #360 rewrite with it.

Acceptance criteria

State that a family of forwarding programs is the converter of their joint program, as an equation at the named certificates. Rewrite an ofProgram converter into the ofDDC form and apply a law stated for ofDDC (DDC.ofProgramOn …) to it.

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

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de trailofbits/constructive-cryptography

Todas as issues de trailofbits/constructive-cryptography

Issues semelhantes

Mais issues de Backend & API Design

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.