Add uniform guessing, retained-sample reparametrization, and key-guessing ratio laws

Aberta
#461 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@MarcIlunga já está trabalhando nisso.

Desde 24/11/2026.

  • #463 de @MarcIlunga — aberto

Avaliação

Dificuldade
4/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
20/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Domínio
cryptography

Direção de pesquisa

Start from existing TypedSystem sample and memoryless laws in src/RandomSystems/Typed/SampleLaws.lean and Memoryless.lean, mirroring their statement style. Counting lemmas belong in src/Probability/Counting/Guessing.lean; export them from src/Probability.lean and src/RandomSystems.lean. Exercise every declaration in src/Tests/KeyGuessing.lean with #print axioms, then run lake build --wfail and the source/axiom checks. Done means ten declarations compile without sorry, tests pass, and linters report zero warnings.

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

Descrição

needs-format

Background

Adaptive key-guessing and ideal-cipher proofs (such as Davies–Meyer PRF security and multi-root context replacement under #14) repeatedly need finite-probability list-guessing and coordinate-resampling laws, basic retained-sample reparametrization laws (sample_const, sample_uniform_equiv, parallel_ofFunction), and H-coefficient transcript-ratio wrappers on TypedSystem.

Proposed change

  • Add Probability.Counting.uniform_mass_mem_list_le and Probability.Counting.fTransform_update_uniform in src/Probability/Counting/Guessing.lean.
  • Add SystemAlgebra.TypedSystem.sample_const and SystemAlgebra.TypedSystem.sample_uniform_equiv in src/RandomSystems/Typed/SampleLaws.lean.
  • Add SystemAlgebra.TypedSystem.parallel_ofFunction in src/RandomSystems/Typed/Memoryless.lean.
  • Add SystemAlgebra.TypedSystem.{distance_le_of_transcript_ratio, transcript_ratio_chain, sample_ratio_of_bad_keys, sample_distance_le_of_bad_keys, sample_distance_le_of_key_guesses} in src/RandomSystems/Typed/KeyGuessing.lean.
  • Export the new modules from src/Probability.lean and src/RandomSystems.lean, and add consumer tests with #print axioms in src/Tests/KeyGuessing.lean.

Acceptance criteria

  • All 10 new declarations compile cleanly without sorry or extra axioms (propext, Classical.choice, Quot.sound only).
  • src/Tests/KeyGuessing.lean exercises every new lemma (including a concrete adaptive key-guessing bound) and prints axioms.
  • lake build --wfail, scripts/check-sources.sh, scripts/check-axioms.sh, and Mathlib standard linters pass with 0 warnings.

Advances #14.

Linguagem predominante
Lean
Estrelas
3
Forks
0
Merge médio
1d 7h
PRs com merge (30d)
123

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 Cryptography

Receba novas issues na sua caixa de entrada

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