Q-ID server security against an unrestricted user
OpenQAlgorithms.Papers.Independent.Intakenext100.P14.qid_server_securityFix Q-ID with passwords, a public injective code of length and minimum distance at least , and finite nonempty strongly universal-2 hash families with -bit outputs. Let have . For any dishonest user initially independent of , with unrestricted quantum storage and computation, the actual output admits a classical extension independent of . The same satisfies
and
The final view includes the server's announced decision. Equality acceptance is stated as a weighted event so a zero-probability equality event imposes no artificial positivity requirement. Mismatch has probability at least . The execution uses the honest server's actual early measurement in ; no intermediate collision or entropy property is assumed.
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 pp.11-12, Proposition 3.5, and Definition 3.3 on p.8.
The user is unbounded. Error is m^2/2^ell after conditioning, and secrecy
includes the final announced accept/reject decision with the SAME witness. -/
theorem qid_server_security
{n ell m d : ℕ} {F G : Type*} {R E : Type}
[Fintype F] [Nonempty F] [Fintype G] [Nonempty G]
[Fintype R] [Nonempty R] [Fintype E] [Nonempty E]
(P : QIDParameters n ell m d F G) (W : Law (Fin m))
(hW : ∀ w, W.prob w ≤ 1 / 2) (A : UserAttack n ell F G R E) :
ServerSecurity (userOutput P W A) ((m : ℝ) ^ 2 / (2 : ℝ) ^ ell) := 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 types , and -bit strings , suppose consists of an injective map whose distinct images have Hamming distance at least , and hash families and . Each hash family is strongly universal in the following exact sense: for any distinct inputs and any outputs , the fraction of keys mapping to and to is . Let satisfy and . Let consist of matrices on whose block diagonal matrix, indexed by , is positive semidefinite with trace ; for every , a finite Kraus instrument from to with outcomes ; and, for every , a channel from to . Here an instrument has branch maps with , and a channel has a finite Kraus representation with the analogous completeness identity. Define by
and define the matrix on
For , let be the -bit string obtained by listing at the indices satisfying , in increasing index order, then padding with zeros. Set , with bitwise exclusive-or. For a history , define
Then, writing , there exists a family of matrices on , where , such that its block diagonal matrix is positive semidefinite with trace , , and
To state the remaining conditions, let be the total trace mass of on , and define on this event and zero elsewhere when ; when , define . Put , , and . The family
satisfies , where places these matrices in classical diagonal blocks and . Moreover, the trace mass of on and is zero, and its trace mass on and is at most . Division by zero in the reconstruction is defined to be zero. No positivity assumptions are imposed on ; zero values are included, while the assumptions on exclude and . The bound is not restricted to be at most .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.