H-coefficient lemma
ProvedLubyRackoff.hcoeffcryptographyfeistelpseudorandom-permutation
Let be a distinguisher, (real) and (ideal) oracles with uniform on nonempty finite sets, and a set of transcripts. For a transcript let be the probability that answers every query of as recorded. Suppose , every good transcript that can produce in the ideal world satisfies , and produces a transcript that is not good in the ideal world with probability at most . Then
Preamble
import Definitions.Def_LubyRackoff
Formal statement
namespace LubyRackoff
/-- Patarin's H-coefficient technique. `O₁` is the real world and `O₂` the ideal one.
If every good transcript that `D` can see in the ideal world is at least `(1 - ε₁)` times
as likely to be consistent with the real oracle as with the ideal one, and the ideal
world produces a bad transcript with probability at most `ε₂`, then `D` has advantage
at most `ε₁ + ε₂`. -/
theorem hcoeff {X Y Ω₁ Ω₂ : Type} [Fintype Ω₁] [Fintype Ω₂] [Nonempty Ω₁] [Nonempty Ω₂]
(D : Dist X Y) (O₁ : Ω₁ → X → Y) (O₂ : Ω₂ → X → Y) (good : List (X × Y) → Prop)
(ε₁ ε₂ : ℝ) (hε₁ : 0 ≤ ε₁)
(hgood : ∀ ω₂ : Ω₂, good (D.transcript (O₂ ω₂)) →
(1 - ε₁) * prob (fun ω : Ω₂ => ∀ p ∈ D.transcript (O₂ ω₂), O₂ ω p.1 = p.2)
≤ prob (fun ω : Ω₁ => ∀ p ∈ D.transcript (O₂ ω₂), O₁ ω p.1 = p.2))
(hbad : prob (fun ω : Ω₂ => ¬ good (D.transcript (O₂ ω))) ≤ ε₂) :
adv D O₁ O₂ ≤ ε₁ + ε₂ := by
sorry
end LubyRackoff
Source
Luby–Rackoff, SIAM J. Comput. 17(2) 1988, https://doi.org/10.1137/0217022