Composable security of standard authentication under the pair-only ASU2 convention
OpenQAlgorithms.Papers.Independent.Intake100.P41.authentication_standardLet and be finite nonempty key and tag sets, and let the message alphabet contain at least two elements. Let , and suppose a uniform satisfies, for all distinct and all ,
No marginal-uniformity condition is assumed. Alice sends ; Bob accepts a submitted pair exactly when . Let be this real resource and the ideal authentic channel that reveals Alice's message and permits delivery or suppression. There is a fixed simulator with
This includes both input orders and arbitrary adaptive later inputs. For substitution the simulator samples its own uniform hash key; after an impersonation-first rejection, it samples uniformly among keys that reject that submitted pair before producing a later honest tag. If that conditioning set is empty, it falls back to the unconditioned uniform law; the corresponding real rejection event is impossible.
The conclusion is full resource security rather than only an impersonation or substitution probability bound. The distinct-message convention is essential when deriving single-tag security from the source's pair-only definition.
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P41
noncomputable section
open scoped BigOperators
namespace QAlgorithms.Papers.Independent.Intake100.P41
open QAlgorithms.Papers.Independent.Bridge50.P44 (xorWord verifyTag)
attribute [local instance] Classical.propDecidable Classical.decEq
/-- PDF pp.7--9,17--18, Lemma 9: the source's pair-only ASU2 condition yields
full epsilon resource security, including impersonation and substitution with
arbitrary subsequent inputs. Nontrivial X is required by the appendix's choice
of a distinct message; no single-tag uniformity assumption is inserted. -/
theorem authentication_standard {K X T : Type*} [Fintype K] [Nonempty K]
[Fintype T] [Nonempty T] [Nontrivial X] (h : K → X → T) (epsilon : ℝ)
(hepsilon : 0 ≤ epsilon) (hh : IsASU2 h epsilon) :
StandardConstructionSecure h epsilon := by sorry
end QAlgorithms.Papers.Independent.Intake100.P41
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be finite nonempty types, let contain at least two distinct elements, and let and satisfy: for every distinct and every , the fraction of keys with and is at most . A real execution chooses one uniform key and uses a machine initially having no sent pair, zero received submissions, no first submitted pair, and a false closed flag. The first send stores and outputs ; later sends are silent. The first submission , including one made before any send, consumes the submission allowance, records that pair, and delivers exactly when , delivering failure otherwise; later submissions are silent. Timeouts are silent and leave the state unchanged, and no keys are released. Define the ideal machine similarly, except that a submission is accepted exactly when it equals the stored sent pair, with a missing sent pair causing rejection. For every inductively generated terminating Boolean test issuing only sends and timeouts, with an emitted pair automatically submitted and its tag hidden, the averages of the final Boolean for the real and ideal machines, each using a uniform fixed key, are equal. For an arbitrary such test issuing sends, submissions, and timeouts and branching on complete outputs, compare the real uniform average with the following recursively defined ideal value: a stopping Boolean gives one or zero; at an allowed send, average the subsequent ideal execution over keys conditioned, if a first submitted pair has already been recorded, on , and otherwise over all keys; if that conditioning subset is empty, use the unconditioned uniform average. At other inputs, use any fixed chosen element of for the ideal transition and continue recursively. The absolute difference between the real average and this ideal value, both starting at the initial state, is at most . A silent output has no tag, no deliveries, and no keys; the hypothesis imposes no separate uniform-marginal condition on individual hash values and no upper bound on .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.