Exact honest correctness of Q-ID on the ideal channel
OpenQAlgorithms.Papers.Independent.Intakenext100.P14.qid_honest_correctnessFix the Q-ID parameters: a public injective binary basis code of length on passwords, with minimum distance at least , and finite nonempty strongly universal-2 hash families with -bit outputs. Let both honest parties use the same password . The user independently samples uniform , sends , and reveals independently sampled . The server measures in , obtaining , and returns independently sampled . Let and let restriction pack the selected bits in increasing order, followed by zero padding. The server tests equality of and . On the ideal channel,
The probability is computed from the actual BB84 Born rule and the four independent uniform choices. This exact acceptance property on the ideal channel implies Definition 3.1.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P14
noncomputable section
namespace QAlgorithms.Papers.Independent.Intakenext100.P14
open scoped Matrix ComplexConjugate
open QAlgorithms.Papers.Independent.Dependency50.P47 (Law)
open QAlgorithms.Papers.Independent.Gap48.P11 (blockMatrix cqDistance)
open QAlgorithms.Papers.Independent.Claimed50.P31 (bb84Vector)
open QAlgorithms.Papers.Independent.Advance50.P05 (RectangularInstrument)
attribute [local instance] Classical.propDecidable
attribute [local instance] Classical.decEq
/-- Positive list length and inhabited fibers supply the tagged union's inhabitant.
This derived instance adds no hypothesis to Lemma 2.2. -/
local instance {m : ℕ} [NeZero m] {A : Fin m → Type*}
[∀ i, Nonempty (A i)] : Nonempty (Sigma A) :=
⟨⟨0, Classical.choice (inferInstance : Nonempty (A 0))⟩⟩
/-- PDF p.10 (Definition 3.1 on p.8): Q-ID accepts honest equal passwords
with probability exactly one on the ideal channel. -/
theorem qid_honest_correctness
{n ell m d : ℕ} {F G : Type*} [Fintype F] [Nonempty F]
[Fintype G] [Nonempty G] (P : QIDParameters n ell m d F G) (w : Fin m) :
honestAcceptance P w = 1 := by sorry
end QAlgorithms.Papers.Independent.Intakenext100.P14
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For all natural numbers , finite nonempty key types , and parameter records , assume that consists of an injective code with distinct codewords at Hamming distance at least , and hash families , , each having fraction of keys for every prescribed output pair on distinct inputs. For every , form by packing the with in increasing order and padding with false, and put . With
the theorem asserts
The key types are explicitly nonempty. No positivity assumptions on the natural parameters are imposed; the conclusion includes zero string and tag lengths whenever such a record and exist, while supplies no and hence no instance of the conclusion.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.