Documentation

CslibFrontier.GameTheory.RationalCrypto.SecretSharing

Rational Secret Sharing #

In rational secret sharing ([HT04]; [ADGH06]; [DR07], Section 8.5.2), self-interested parties hold shares of a secret and interact to reconstruct it. Unlike Byzantine adversaries, rational parties maximize utility with strict exclusivity and correctness preferences U⁺ > U > U⁻:

  1. uPlus (U⁺): the party learns the secret while at least one other party fails to learn it;
  2. uAll (U): every party learns the secret;
  3. uMinus (U⁻): the party fails to learn the secret (whether nobody learns or others learn while this party fails).

General utility-maximization game infrastructure (Cslib.GameTheory.PayoffGame, IsPureNash, IsCoalitionProofUpTo, WeaklyDominatesOn, idowdsIter, and HasBackwardInductionDominance) lives in CslibFrontier.GameTheory.Strategic.Payoff, bridged directly to Cslib.GameTheory.CostGame and CostGame.idowdsSeq in CslibFrontier.GameTheory.Strategic.Dominance.

This module formalizes the (t, n) and (n, n) rational secret-sharing reconstruction games and two foundational results:

  1. Halpern–Teague bounded-round impossibility ([HT04]; [DR07], Section 8.5.2(a)):
    • In single-round (or final-round) simultaneous (t, n) broadcast (2 ≤ t ≤ n), withholding weakly dominates broadcasting for every player, so a single step of iterated deletion of weakly dominated strategies (IDoWDS) eliminates broadcasting and leaves only "never broadcast" (ReconstructionGame.idowdsIter_simultaneousGame_one).
    • More generally, in any T-round cutoff mechanism admitting HasBackwardInductionDominance, k steps of IDoWDS eliminate the top k participation horizons and T steps leave only 0 ("never broadcast", PayoffGame.idowdsIter_eq_singleton_zero). This applies unconditionally to the T-round (t, n) gradual-release game (ReconstructionGame.idowdsIter_gradualReleaseGame, ReconstructionGame.idowdsIter_uniformRampGame), while in the T-round known-final-round dummy-prefix game (ReconstructionGame.knownHorizonGame), final-round withholding eliminates full participation in one step so no surviving profile reconstructs the secret.
  2. Randomized geometric-termination protocol (k < n utility-dependent regime) ([HT04]; [ADGH06]; [DR07], Section 8.5.2(b) and Theorem 8.9):

Scope boundary vs [DodisRabin2007], Theorem 8.9: Theorem 8.9 in [DodisRabin2007] states k-resilient equilibria surviving IDoWDS across three expected-round regimes (k < n utility-dependent; k < n/2 fixed rounds with utility parameter; k < n/3 utility-independent). Here, IDoWDS survival is proved on the one-shot n-out-of-n stage game geometricStageGame (idowdsIter_geometricStageGame_one), and only the k < n (t - 1 < n) utility-dependent geometric-termination regime is formalized for multi-round GeometricProtocol; fixed-round k < n/2 and utility-independent k < n/3 protocols are out of scope.

Main definitions #

Main results #

References #

Rational secret-sharing preferences (U⁺ > U > U⁻) and (t, n) reconstruction #

Utility levels of a rational secret-sharing player ([HT04]; [ADGH06]; [DR07], Section 8.5.2), satisfying U⁺ > U > U⁻: learning the secret while at least one other party fails (uPlus) is strictly preferred to everyone learning (uAll), which is strictly preferred to failing to learn (uMinus).

  • uPlus : ℝ

    Payoff U⁺ when the player learns the secret and at least one other player does not.

  • uAll : ℝ

    Payoff U when all players learn the secret.

  • uMinus : ℝ

    Payoff U⁻ when the player fails to learn the secret.

  • uMinus_lt_uAll : self.uMinus < self.uAll

    Correctness preference: all learning strictly beats failing to learn (U⁻ < U).

  • uAll_lt_uPlus : self.uAll < self.uPlus

    Exclusivity preference: learning while denying another beats all learning (U < U⁺).

Transitive strict preference U⁻ < U⁺.

Payoff of player i when learned : Finset ι is the set of players who reconstruct the secret: uAll if everyone learns, uPlus if i learns and some player does not, and uMinus if i fails to learn.

theorem Cslib.GameTheory.RationalCrypto.SecretSharingPrefs.outcomeUtility_of_not_mem {ι : Type u_1} [Fintype ι] [DecidableEq ι] (prefs : SecretSharingPrefs) {learned : Finset ι} {i : ι} (hi : i ∉ learned) :
prefs.outcomeUtility learned i = prefs.uMinus
theorem Cslib.GameTheory.RationalCrypto.SecretSharingPrefs.outcomeUtility_of_mem_of_ne_univ {ι : Type u_1} [Fintype ι] [DecidableEq ι] (prefs : SecretSharingPrefs) {learned : Finset ι} {i : ι} (hi : i ∈ learned) (hne : learned ≠ Finset.univ) :
prefs.outcomeUtility learned i = prefs.uPlus

Every outcome gives player i utility at most uPlus.

Every outcome gives player i utility at least uMinus.

The critical stopping probability (U - U⁻) / (U⁺ - U⁻) ∈ (0, 1) governing incentive compatibility in randomized geometric-termination secret-sharing protocols ([HT04]; [ADGH06]; [DR07], Section 8.5.2(b)).

Withholding in a round with genuine-share probability p yields at most uAll (p U⁺ + (1 - p) U⁻ ≤ U) if and only if p ≤ criticalStoppingProb.

Withholding in a round with genuine-share probability p yields strictly less than uAll (p U⁺ + (1 - p) U⁻ < U) if and only if p < criticalStoppingProb.

Parameters of a t-out-of-n rational secret-sharing reconstruction game on a finite player set ι (2 ≤ t ≤ Fintype.card ι), with specialization ReconstructionGame.allOfAll for n-out-of-n sharing ([HT04]; [DR07], Section 8.5.2).

  • Player preference parameters U⁺ > U > U⁻.

  • threshold : ℕ

    Reconstruction threshold t (minimum number of shares needed to recover the secret).

  • two_le_threshold : 2 ≤ self.threshold

    At least two shares are required, so no single party knows the secret a priori.

  • threshold_le_card : self.threshold ≤ Fintype.card ι

    The grand coalition of all parties can reconstruct the secret.

Canonical n-out-of-n rational secret-sharing reconstruction game, where every party's share is required (threshold = Fintype.card ι).

@[simp]

The set of parties whose share is broadcast under Boolean action profile s : ι → Bool.

The set of players who reconstruct the secret when B : Finset ι is the set of publicly broadcast shares: player j holds insert j B, so j learns iff threshold ≤ (insert j B).card.

theorem Cslib.GameTheory.RationalCrypto.ReconstructionGame.mem_learnedSet_iff_authorized {ι : Type u_1} [Fintype ι] [DecidableEq ι] (R : ReconstructionGame ι) {Secret : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} (scheme : Crypto.Protocols.SecretSharing.AccessScheme Secret Key ι Share) (hacc : scheme.access = R.accessStructure) (B : Finset ι) (j : ι) :

Compatibility with AccessScheme: for any secret-sharing scheme with (t, n) threshold access structure, j ∈ R.learnedSet B iff insert j B is an authorized coalition.

No-exclusivity lemma for broadcasters: any player i who broadcasts its share (i ∈ B) can never obtain uPlus; its payoff is uAll if threshold ≤ B.card and uMinus otherwise.

Theorem 1: Halpern–Teague deterministic bounded-round impossibility #

The simultaneous (t, n) share-broadcast game ([HT04]; [DR07], Section 8.5.2(a)): each player chooses true (broadcast share) or false (withhold share).

Halpern–Teague single-round / final-round weak dominance ([HT04]; [DR07], Section 8.5.2(a)): in any (t, n) reconstruction game (2 ≤ t ≤ n), withholding (false) weakly dominates broadcasting (true) for every player.

Halpern–Teague single-round IDoWDS collapse: in simultaneous (t, n) share broadcast, one round of IDoWDS eliminates true (broadcast) and leaves only {false} ("never broadcast"), yielding learnedSet = ∅ and utility uMinus for every player.

def Cslib.GameTheory.RationalCrypto.ReconstructionGame.gradualReleaseGame {ι : Type u_1} [Fintype ι] [DecidableEq ι] (R : ReconstructionGame ι) (T : ℕ) (q : Fin T → ℝ) :
PayoffGame ι fun (x : ι) => Fin (T + 1)

The T-round (t, n) gradual-release / ramp reconstruction game ([HT04]; [DR07], Section 8.5.2(a)): player i chooses how many rounds s i : Fin (T + 1) to broadcast honestly (0 = never broadcast, T = broadcast in all T rounds), with round-m reconstruction weight q m.

noncomputable def Cslib.GameTheory.RationalCrypto.ReconstructionGame.uniformRampGame {ι : Type u_1} [Fintype ι] [DecidableEq ι] (R : ReconstructionGame ι) (T : ℕ) :
PayoffGame ι fun (x : ι) => Fin (T + 1)

Canonical T-round uniform-ramp reconstruction game with strictly increasing round weights q m = (m + 1) / T.

The T-round known-final-round (t, n) reconstruction game ([DR07], Section 8.5.2(a)): rounds < T - 1 are pure dummy check rounds (q m = 0) and round T - 1 carries the genuine (t, n) secret shares (q (T - 1) = 1).

theorem Cslib.GameTheory.RationalCrypto.ReconstructionGame.hasBackwardInductionDominance_gradualReleaseGame {ι : Type u_1} [Fintype ι] [DecidableEq ι] (R : ReconstructionGame ι) {T : ℕ} {q : Fin T → ℝ} (hq_pos : ∀ (m : Fin T), 0 < q m) (hq_mono : StrictMono q) (hq_last : ∀ (hT : 0 < T), q ⟨T - 1, ⋯⟩ = 1) :

Backward-induction dominance for gradualReleaseGame: whenever q has positive, strictly increasing round weights ending at 1, the T-round (t, n) gradual-release game satisfies PayoffGame.HasBackwardInductionDominance.

theorem Cslib.GameTheory.RationalCrypto.ReconstructionGame.idowdsIter_gradualReleaseGame {ι : Type u_1} [Fintype ι] [DecidableEq ι] (R : ReconstructionGame ι) {T : ℕ} {q : Fin T → ℝ} (hq_pos : ∀ (m : Fin T), 0 < q m) (hq_mono : StrictMono q) (hq_last : ∀ (hT : 0 < T), q ⟨T - 1, ⋯⟩ = 1) :
(R.gradualReleaseGame T q).idowdsIter T = fun (x : ι) => {0}

Halpern–Teague bounded-round IDoWDS impossibility (T-round gradual release) ([HT04]; [DR07], Section 8.5.2(a)): in any T-round (t, n) gradual-release reconstruction game with positive strictly increasing round weights ending at 1, T rounds of IDoWDS eliminate every positive participation horizon and leave only {0} ("never broadcast").

Backward-induction dominance for uniformRampGame: for every T : ℕ and every (t, n) reconstruction game (2 ≤ t ≤ n), R.uniformRampGame T satisfies PayoffGame.HasBackwardInductionDominance.

Unconditional T-round IDoWDS collapse for uniformRampGame: for every T : ℕ and every (t, n) reconstruction game (2 ≤ t ≤ n), (R.uniformRampGame T).idowdsIter T = fun _ => {0}.

theorem Cslib.GameTheory.RationalCrypto.ReconstructionGame.payoff_knownHorizonGame_eq_uMinus_of_mem_idowdsIter_one {ι : Type u_1} [Fintype ι] [DecidableEq ι] (R : ReconstructionGame ι) {T : ℕ} (hT : 1 ≤ T) {s : ι → Fin (T + 1)} (hs : ∀ (j : ι), s j ∈ (R.knownHorizonGame T).idowdsIter 1 j) (i : ι) :

In the T-round known-final-round protocol (1 ≤ T, pure dummy rounds < T - 1 and genuine round T - 1), withholding in the final round (T - 1) weakly dominates honest participation through round T, so one round of IDoWDS eliminates Fin.last T and every surviving profile gives every player uMinus (failure to learn the secret).

Stage analysis of the randomized geometric-termination protocol #

Single-stage game at an active round of the randomized geometric-termination protocol with stopping parameter p ∈ (0, 1) ([HT04]; [ADGH06]; [DR07], Section 8.5.2(b)): if every player broadcasts (∀ j, s j = true), play either reconstructs the secret (p) or continues to an identical subgame with equilibrium value uAll (1 - p), giving uAll; if any player withholds, the round yields learnedSet (broadcastSet s) when genuine (p) and triggers grim-abort uMinus when dummy (1 - p).

For 0 ≤ p ≤ criticalStoppingProb, honest simultaneous broadcast (fun _ => true) is a pure Nash equilibrium of R.geometricStageGame p for every (t, n) reconstruction game (2 ≤ t ≤ n).

For 0 ≤ p < criticalStoppingProb, honest simultaneous broadcast (fun _ => true) is a strict pure Nash equilibrium of R.geometricStageGame p for every (t, n) reconstruction game (2 ≤ t ≤ n).

Exact stage Nash characterization for n-out-of-n: when R.threshold = Fintype.card ι and 0 ≤ p, honest simultaneous broadcast is a pure Nash equilibrium of R.geometricStageGame p if and only if p ≤ criticalStoppingProb.

Stage weak dominance for n-out-of-n: when R.threshold = Fintype.card ι and 0 ≤ p < criticalStoppingProb, honest broadcast (true) weakly dominates withholding (false) in R.geometricStageGame p (reversing the deterministic p = 1 dominance direction).

Stage IDoWDS survival for n-out-of-n: when 0 ≤ p < criticalStoppingProb, one round of IDoWDS on R.geometricStageGame p eliminates withholding and leaves only {true} ("honest broadcast", matching [DR07], Theorem 8.9's one-shot stage argument; the multi-round k < n/2 and k < n/3 variants are outside this module's scope).

Infinite-horizon randomized geometric-termination protocol over AccessScheme #

Probability of reaching round r under independent round stopping probability p and round-by-round withholding probabilities q : ℕ → ℝ: rounds 0, ..., r - 1 were all dummy rounds and nobody withheld in those rounds.

theorem Cslib.GameTheory.RationalCrypto.reachProb_succ (p : ℝ) (q : ℕ → ℝ) (r : ℕ) :
reachProb p q (r + 1) = reachProb p q r * ((1 - p) * (1 - q r))
theorem Cslib.GameTheory.RationalCrypto.reachProb_nonneg {p : ℝ} {q : ℕ → ℝ} (hp1 : p ≤ 1) (hq1 : ∀ (r : ℕ), q r ≤ 1) (r : ℕ) :
0 ≤ reachProb p q r
theorem Cslib.GameTheory.RationalCrypto.summable_reachProb {p : ℝ} {q : ℕ → ℝ} (hp0 : 0 < p) (hp1 : p ≤ 1) (hq0 : ∀ (r : ℕ), 0 ≤ q r) (hq1 : ∀ (r : ℕ), q r ≤ 1) :
theorem Cslib.GameTheory.RationalCrypto.hasSum_reachProb_termination {p : ℝ} {q : ℕ → ℝ} (hp0 : 0 < p) (hp1 : p ≤ 1) (hq0 : ∀ (r : ℕ), 0 ≤ q r) (hq1 : ∀ (r : ℕ), q r ≤ 1) :
HasSum (fun (r : ℕ) => reachProb p q r * ((1 - q r) * p + q r)) 1

Telescoping total termination probability: for p ∈ (0, 1] and q r ∈ [0, 1], the round termination weights reachProb p q r * ((1 - q r) * p + q r) sum to 1.

Infinite-horizon expected utility of a player (when pivotal upon withholding) under stopping probability p and round withholding probabilities q : ℕ → ℝ.

@[simp]
theorem Cslib.GameTheory.RationalCrypto.geometricExpectedUtility_zero (prefs : SecretSharingPrefs) {p : ℝ} (hp0 : 0 < p) (hp1 : p ≤ 1) :
(geometricExpectedUtility prefs p fun (x : ℕ) => 0) = prefs.uAll

Honest participation (q = 0) achieves exact expected utility uAll.

theorem Cslib.GameTheory.RationalCrypto.uAll_sub_geometricExpectedUtility (prefs : SecretSharingPrefs) {p : ℝ} {q : ℕ → ℝ} (hp0 : 0 < p) (hp1 : p ≤ 1) (hq0 : ∀ (r : ℕ), 0 ≤ q r) (hq1 : ∀ (r : ℕ), q r ≤ 1) :
prefs.uAll - geometricExpectedUtility prefs p q = (prefs.uAll - (p * prefs.uPlus + (1 - p) * prefs.uMinus)) * ∑' (r : ℕ), reachProb p q r * q r

Exact telescoping utility gap identity: for p ∈ (0, 1] and q r ∈ [0, 1], the expected utility shortfall below uAll factors as the per-round incentive margin uAll - (p uPlus + (1 - p) uMinus) times ∑' r, reachProb p q r * q r.

structure Cslib.GameTheory.RationalCrypto.GeometricProtocol (ι : Type u_1) (Payload : Type u_2) (Key : Type u_3) (Share : ι → Type u_4) [Fintype ι] :
Type (max (max (max u_1 u_2) u_3) u_4)

Infinite-horizon cryptographic geometric-termination protocol ([HT04]; [ADGH06]; [DR07], Section 8.5.2(b) and Theorem 8.9) instantiated over an arbitrary AccessScheme: in each round r : ℕ, fresh shares are drawn from source ∈ scheme.sources for genuine (probability stopProb ∈ (0, 1)) or dummy (probability 1 - stopProb), and honest parties broadcast simultaneously under grim-trigger abort.

  • Rational secret-sharing preference levels U⁺ > U > U⁻.

  • scheme : Crypto.Protocols.SecretSharing.AccessScheme Payload Key ι Share

    Underlying secret-sharing scheme over Payload.

  • source : PMF Key

    Per-round randomness source in scheme.sources.

  • source_mem : self.source ∈ self.scheme.sources

    Validity of source for perfect unauthorized-coalition privacy.

  • genuine : Payload

    Payload shared in the genuine terminal round.

  • dummy : Payload

    Payload shared in dummy continuation rounds.

  • stopProb : ℝ

    Independent round stopping probability p ∈ (0, 1).

  • stopProb_pos : 0 < self.stopProb

    Positive genuine-round probability (0 < p).

  • stopProb_lt_one : self.stopProb < 1

    Positive continuation probability (p < 1).

  • univ_authorized : self.scheme.access.authorized Finset.univ

    The grand coalition of all parties is authorized to reconstruct the secret.

noncomputable def Cslib.GameTheory.RationalCrypto.GeometricProtocol.ofShamir {F : Type u_1} {ι : Type u_2} [Field F] [Fintype F] [Nonempty F] [Fintype ι] (prefs : SecretSharingPrefs) (params : Crypto.Protocols.SecretSharing.Shamir.Params F ι) (genuine dummy : F) (p : ℝ) (hp0 : 0 < p) (hp1 : p < 1) :

Canonical instantiation of GeometricProtocol from finite-field Shamir (k + 1, n) secret sharing (shamirUniformAccessScheme from CslibFrontier.Crypto.Protocols.SecretSharing.AccessStructure.Shamir, matching [DR07], Section 8.1.2 and Theorem 8.9).

@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.ofShamir_prefs {F : Type u_1} {ι : Type u_2} [Field F] [Fintype F] [Nonempty F] [Fintype ι] (prefs : SecretSharingPrefs) (params : Crypto.Protocols.SecretSharing.Shamir.Params F ι) (genuine dummy : F) (p : ℝ) (hp0 : 0 < p) (hp1 : p < 1) :
(ofShamir prefs params genuine dummy p hp0 hp1).prefs = prefs
@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.ofShamir_scheme {F : Type u_1} {ι : Type u_2} [Field F] [Fintype F] [Nonempty F] [Fintype ι] (prefs : SecretSharingPrefs) (params : Crypto.Protocols.SecretSharing.Shamir.Params F ι) (genuine dummy : F) (p : ℝ) (hp0 : 0 < p) (hp1 : p < 1) :
(ofShamir prefs params genuine dummy p hp0 hp1).scheme = Crypto.Protocols.SecretSharing.shamirUniformAccessScheme params
@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.ofShamir_source {F : Type u_1} {ι : Type u_2} [Field F] [Fintype F] [Nonempty F] [Fintype ι] (prefs : SecretSharingPrefs) (params : Crypto.Protocols.SecretSharing.Shamir.Params F ι) (genuine dummy : F) (p : ℝ) (hp0 : 0 < p) (hp1 : p < 1) :
@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.ofShamir_genuine {F : Type u_1} {ι : Type u_2} [Field F] [Fintype F] [Nonempty F] [Fintype ι] (prefs : SecretSharingPrefs) (params : Crypto.Protocols.SecretSharing.Shamir.Params F ι) (genuine dummy : F) (p : ℝ) (hp0 : 0 < p) (hp1 : p < 1) :
(ofShamir prefs params genuine dummy p hp0 hp1).genuine = genuine
@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.ofShamir_dummy {F : Type u_1} {ι : Type u_2} [Field F] [Fintype F] [Nonempty F] [Fintype ι] (prefs : SecretSharingPrefs) (params : Crypto.Protocols.SecretSharing.Shamir.Params F ι) (genuine dummy : F) (p : ℝ) (hp0 : 0 < p) (hp1 : p < 1) :
(ofShamir prefs params genuine dummy p hp0 hp1).dummy = dummy
@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.ofShamir_stopProb {F : Type u_1} {ι : Type u_2} [Field F] [Fintype F] [Nonempty F] [Fintype ι] (prefs : SecretSharingPrefs) (params : Crypto.Protocols.SecretSharing.Shamir.Params F ι) (genuine dummy : F) (p : ℝ) (hp0 : 0 < p) (hp1 : p < 1) :
(ofShamir prefs params genuine dummy p hp0 hp1).stopProb = p
@[reducible, inline]
abbrev Cslib.GameTheory.RationalCrypto.GeometricProtocol.Strategy {ι : Type u_1} {Share : ι → Type u_4} (i : ι) :
Type u_4

Pure multi-round share-inspecting strategy of party i: at round r : ℕ, upon receiving its round-r share sh : Share i (given no earlier abort occurred), decide whether to broadcast (true) or withhold (false).

@[reducible, inline]
abbrev Cslib.GameTheory.RationalCrypto.GeometricProtocol.CoalitionStrategy {ι : Type u_1} {Share : ι → Type u_4} (C : Finset ι) :
Type (max u_1 u_4)

Joint multi-round strategy of a coalition C : Finset ι: at round r : ℕ, all members of C pool their round-r shares (j : C) → Share j.1 and jointly choose each member's broadcast action C → Bool.

Lift an individual strategy family τ to a CoalitionStrategy where each member j ∈ C depends solely on its own share.

@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.CoalitionStrategy.ofProfile_apply {ι : Type u_1} {Share : ι → Type u_4} (C : Finset ι) (τ : (i : ι) → Strategy i) (r : ℕ) (v : (j : ↥C) → Share ↑j) (j : ↥C) :
ofProfile C τ r v j = τ (↑j) r (v j)

The honest simultaneous broadcast profile: every party broadcasts its share in every active round (combined with the protocol's grim-trigger abort if any party previously withheld).

@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.honestProfile_apply {ι : Type u_1} {Share : ι → Type u_4} (i : ι) (r : ℕ) (sh : Share i) :
noncomputable def Cslib.GameTheory.RationalCrypto.GeometricProtocol.roundBroadcastDist {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] (proto : GeometricProtocol ι Payload Key Share) (σ : (i : ι) → Strategy i) (r : ℕ) (payload : Payload) :
PMF (ι → Bool)

Distribution of the simultaneous broadcast vector ι → Bool in round r when payload is shared under proto.source and players run per-party strategies σ.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.roundBroadcastDist_eq_map {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] (proto : GeometricProtocol ι Payload Key Share) (σ : (i : ι) → Strategy i) (r : ℕ) (payload : Payload) :
proto.roundBroadcastDist σ r payload = PMF.map (fun (k : Key) (j : ι) => σ j r (proto.scheme.share k payload j)) proto.source
noncomputable def Cslib.GameTheory.RationalCrypto.GeometricProtocol.roundCoalitionBroadcastDist {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (C : Finset ι) (τC : CoalitionStrategy C) (r : ℕ) (payload : Payload) :
PMF (ι → Bool)

Distribution of the simultaneous broadcast vector ι → Bool in round r when coalition C pools its round-r shares via joint strategy τC : CoalitionStrategy C and all parties outside C broadcast honestly (true).

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.roundCoalitionBroadcastDist_ofProfile {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (C : Finset ι) (τ : (i : ι) → Strategy i) (r : ℕ) (payload : Payload) :
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.roundCoalitionBroadcastDist_eq {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) {C : Finset ι} (hC : ¬proto.scheme.access.authorized C) (τC : CoalitionStrategy C) (r : ℕ) :

Cryptographic share-indistinguishability bridge for share-pooling coalitions: when an unauthorized coalition C (¬ proto.scheme.access.authorized C) pools its joint share view via τC : CoalitionStrategy C, the induced round-r broadcast distribution PMF (ι → Bool) is identical in genuine rounds and dummy rounds.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.roundBroadcastDist_piecewise_eq {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) {C : Finset ι} (hC : ¬proto.scheme.access.authorized C) (τ : (i : ι) → Strategy i) (r : ℕ) :

Specialization of roundCoalitionBroadcastDist_eq to per-party deviating strategies C.piecewise τ honestProfile.

noncomputable def Cslib.GameTheory.RationalCrypto.GeometricProtocol.learnedFromVec {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (b : ι → Bool) :

Set of players who reconstruct the secret when broadcast vector b : ι → Bool occurs in a genuine round without coalition share-pooling: player m sees insert m (broadcastSet b).

@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.mem_learnedFromVec_iff {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) {b : ι → Bool} {m : ι} :
@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.learnedFromVec_const_true {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) :
(proto.learnedFromVec fun (x : ι) => true) = Finset.univ
noncomputable def Cslib.GameTheory.RationalCrypto.GeometricProtocol.learnedFromCoalition {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (C : Finset ι) (b : ι → Bool) :

Set of players who reconstruct the secret in a genuine round when coalition C pools all of its own unbroadcast shares with the publicly broadcast shares broadcastSet b: members m ∈ C hold C ∪ broadcastSet b, while honest outsiders m ∉ C hold insert m (broadcastSet b).

@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.mem_learnedFromCoalition_iff {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) {C : Finset ι} {b : ι → Bool} {m : ι} :
@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.learnedFromCoalition_const_true {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (C : Finset ι) :
(proto.learnedFromCoalition C fun (x : ι) => true) = Finset.univ
@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.learnedFromCoalition_singleton {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (i : ι) (b : ι → Bool) :
noncomputable def Cslib.GameTheory.RationalCrypto.GeometricProtocol.roundContinueProb {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] (proto : GeometricProtocol ι Payload Key Share) (σ : (i : ι) → Strategy i) (r : ℕ) :

Probability that all players broadcast in dummy round r under per-party strategies σ.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.roundContinueProb_eq {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] (proto : GeometricProtocol ι Payload Key Share) (σ : (i : ι) → Strategy i) (r : ℕ) :
proto.roundContinueProb σ r = ((proto.roundBroadcastDist σ r proto.dummy) fun (x : ι) => true).toReal
noncomputable def Cslib.GameTheory.RationalCrypto.GeometricProtocol.coalitionContinueProb {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (C : Finset ι) (τC : CoalitionStrategy C) (r : ℕ) :

Probability that all players broadcast in dummy round r under coalition strategy τC against honest outsiders.

@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.coalitionContinueProb_ofProfile {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (C : Finset ι) (τ : (i : ι) → Strategy i) (r : ℕ) :
noncomputable def Cslib.GameTheory.RationalCrypto.GeometricProtocol.genuineStagePayoff {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (σ : (i : ι) → Strategy i) (r : ℕ) (i : ι) :

Expected payoff of player i conditioned on round r being the genuine round under per-party strategies σ.

noncomputable def Cslib.GameTheory.RationalCrypto.GeometricProtocol.coalitionGenuineStagePayoff {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (C : Finset ι) (τC : CoalitionStrategy C) (r : ℕ) (i : ι) :

Expected payoff of player i conditioned on round r being the genuine round under joint share-pooling coalition strategy τC (with pooled reconstruction learnedFromCoalition C).

noncomputable def Cslib.GameTheory.RationalCrypto.GeometricProtocol.toPayoffGame {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) :

Full infinite-horizon strategic game of proto over per-party share-inspecting strategies.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.toPayoffGame_payoff {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (σ : (i : ι) → Strategy i) (i : ι) :
proto.toPayoffGame.payoff i σ = ∑' (r : ℕ), reachProb proto.stopProb (fun (m : ℕ) => 1 - proto.roundContinueProb σ m) r * (proto.stopProb * proto.genuineStagePayoff σ r i + (1 - proto.stopProb) * (1 - proto.roundContinueProb σ r) * proto.prefs.uMinus)
noncomputable def Cslib.GameTheory.RationalCrypto.GeometricProtocol.coalitionPayoff {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (C : Finset ι) (τC : CoalitionStrategy C) (i : ι) :

Infinite-horizon expected payoff of player i when coalition C pools its round-r shares via τC : CoalitionStrategy C, outsiders play honestProfile, and C pools unbroadcast shares in the genuine round (learnedFromCoalition C).

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.coalitionPayoff_eq {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (C : Finset ι) (τC : CoalitionStrategy C) (i : ι) :
proto.coalitionPayoff C τC i = ∑' (r : ℕ), reachProb proto.stopProb (fun (m : ℕ) => 1 - proto.coalitionContinueProb C τC m) r * (proto.stopProb * proto.coalitionGenuineStagePayoff C τC r i + (1 - proto.stopProb) * (1 - proto.coalitionContinueProb C τC r) * proto.prefs.uMinus)
def Cslib.GameTheory.RationalCrypto.GeometricProtocol.IsJointCoalitionProofUpTo {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (k : ℕ) :

honestProfile is jointly coalition-proof up to size k (k-resilient against share-pooling coalitions; [ADGH06]; [DR07], Theorem 8.9's k < n regime) if no coalition C of cardinality at most k can strictly increase any member's expected utility using any joint CoalitionStrategy C with pooled reconstruction learnedFromCoalition C.

@[simp]
theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.payoff_honestProfile {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (i : ι) :

Under honestProfile, every player achieves exact expected utility uAll.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.payoff_coalition_le_geometricExpectedUtility {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) {C : Finset ι} (hC : ¬proto.scheme.access.authorized C) (τC : CoalitionStrategy C) (i : ι) :
proto.coalitionPayoff C τC i ≤ geometricExpectedUtility proto.prefs proto.stopProb fun (r : ℕ) => 1 - proto.coalitionContinueProb C τC r

Upper bound on a deviating unauthorized coalition's infinite-horizon payoff under joint share-pooling strategies τC : CoalitionStrategy C by geometricExpectedUtility.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.payoff_piecewise_le_geometricExpectedUtility {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) {C : Finset ι} (hC : ¬proto.scheme.access.authorized C) (τ : (i : ι) → Strategy i) (i : ι) :

Upper bound on a deviating unauthorized coalition's infinite-horizon payoff under per-party strategies C.piecewise τ honestProfile by geometricExpectedUtility.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.payoff_piecewise_le_coalitionPayoff {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) {C : Finset ι} (hC : C ≠ Finset.univ) (τ : (i : ι) → Strategy i) {i : ι} (hi : i ∈ C) :

Joint coalition strategies subsume independent per-party deviations: for any coalition C ≠ Finset.univ (∃ h₀ ∉ C), any per-party deviation τ yields member i ∈ C at most the pooled coalition payoff coalitionPayoff C (CoalitionStrategy.ofProfile C τ) i.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.honestProfile_isJointCoalitionProof {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (hp : proto.stopProb ≤ proto.prefs.criticalStoppingProb) {C : Finset ι} (hC : ¬proto.scheme.access.authorized C) (τC : CoalitionStrategy C) (i : ι) :

Cryptographic Geometric-Termination Coalition Resilience for Share-Pooling Coalitions ([HT04]; [ADGH06]; [DR07], Section 8.5.2(b) and Theorem 8.9's k < n utility-dependent regime): when stopProb ≤ prefs.criticalStoppingProb, no unauthorized coalition C (¬ scheme.access.authorized C) can increase any player's expected utility above uAll by any joint multi-round share-inspecting deviation CoalitionStrategy C even when pooling all coalition shares under learnedFromCoalition.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.honestProfile_isJointCoalitionProofUpTo {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) {t : ℕ} (ht : 1 ≤ t) (hacc : proto.scheme.access = Crypto.Protocols.SecretSharing.AccessStructure.threshold ι t) (hp : proto.stopProb ≤ proto.prefs.criticalStoppingProb) :

(t - 1)-coalitional resilience against share-pooling coalitions ([ADGH06]; [DR07], Theorem 8.9's k < n regime): when proto.scheme has threshold t (1 ≤ t) and stopProb ≤ criticalStoppingProb, honestProfile is jointly coalition-proof against all share-pooling coalitions of size at most t - 1. Unlike [DodisRabin2007], Theorem 8.9, survival of iterated deletion of weakly dominated strategies (IDoWDS) on multi-round GeometricProtocol is not claimed here (only stage-game IDoWDS uniqueness is formalized in ReconstructionGame.idowdsIter_geometricStageGame_one).

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.ofShamir_honestProfile_isJointCoalitionProofUpTo {F : Type u_5} {ι : Type u_6} [Field F] [Fintype F] [Nonempty F] [Fintype ι] [DecidableEq ι] (prefs : SecretSharingPrefs) (params : Crypto.Protocols.SecretSharing.Shamir.Params F ι) (genuine dummy : F) (p : ℝ) (hp0 : 0 < p) (hp1 : p < 1) (hp : p ≤ prefs.criticalStoppingProb) :
(ofShamir prefs params genuine dummy p hp0 hp1).IsJointCoalitionProofUpTo params.threshold

In GeometricProtocol.ofShamir, when p ≤ prefs.criticalStoppingProb, honestProfile is jointly coalition-proof up to Shamir polynomial degree params.threshold ((t - 1)-resilient against share-pooling coalitions for t = params.threshold + 1).

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.IsJointCoalitionProofUpTo.toPayoffGame {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] {proto : GeometricProtocol ι Payload Key Share} {k : ℕ} (h : proto.IsJointCoalitionProofUpTo k) (hk : k < Fintype.card ι) :

Joint coalition-proofness up to k < Fintype.card ι implies PayoffGame.IsCoalitionProofUpTo against independent per-party deviations.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.honestProfile_isCoalitionProof {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (hp : proto.stopProb ≤ proto.prefs.criticalStoppingProb) {C : Finset ι} (hC : ¬proto.scheme.access.authorized C) (τ : (i : ι) → Strategy i) (i : ι) :

Theorem 2 (Cryptographic Geometric-Termination Coalition Resilience): when stopProb ≤ prefs.criticalStoppingProb, no unauthorized coalition C (¬ scheme.access.authorized C) can increase any player's expected utility above uAll by any per-party multi-round share-inspecting deviation.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.honestProfile_isCoalitionProofUpTo {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) {t : ℕ} (ht : 1 ≤ t) (hacc : proto.scheme.access = Crypto.Protocols.SecretSharing.AccessStructure.threshold ι t) (hp : proto.stopProb ≤ proto.prefs.criticalStoppingProb) :

(t - 1)-coalitional resilience (IsCoalitionProofUpTo (t - 1)) for (t, n) threshold schemes: corollary of honestProfile_isJointCoalitionProofUpTo.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.ofShamir_honestProfile_isCoalitionProofUpTo {F : Type u_5} {ι : Type u_6} [Field F] [Fintype F] [Nonempty F] [Fintype ι] [DecidableEq ι] (prefs : SecretSharingPrefs) (params : Crypto.Protocols.SecretSharing.Shamir.Params F ι) (genuine dummy : F) (p : ℝ) (hp0 : 0 < p) (hp1 : p < 1) (hp : p ≤ prefs.criticalStoppingProb) :
(ofShamir prefs params genuine dummy p hp0 hp1).toPayoffGame.IsCoalitionProofUpTo params.threshold honestProfile

In GeometricProtocol.ofShamir, when p ≤ prefs.criticalStoppingProb, honestProfile is coalition-proof up to Shamir polynomial degree params.threshold ((t - 1)-resilient for t = params.threshold + 1).

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.coalitionPayoff_const_false {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) {C : Finset ι} (hC_ne : C.Nonempty) (hC_univ : C ≠ Finset.univ) (hOut : ¬proto.scheme.access.authorized (Finset.univ \ C)) {i : ι} (hi : i ∈ C) :
proto.coalitionPayoff C (fun (x : ℕ) (x_1 : (j : ↥C) → Share ↑j) (x_2 : ↥C) => false) i = proto.stopProb * proto.prefs.uPlus + (1 - proto.stopProb) * proto.prefs.uMinus

Exact expected payoff of coalition member i ∈ C when a nonempty proper coalition C whose complement Finset.univ \ C is unauthorized withholds unconditionally in round 0 (fun _ _ _ => false): C learns exclusively in genuine round 0 (stopProb * uPlus + (1 - stopProb) * uMinus).

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.honestProfile_isJointCoalitionProofUpTo_iff {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) {t : ℕ} (ht : 1 ≤ t) (hno_maj : Fintype.card ι < 2 * t - 1) (hacc : proto.scheme.access = Crypto.Protocols.SecretSharing.AccessStructure.threshold ι t) :

Sharp no-honest-majority threshold characterization ([ADGH06]; [DR07]): in any (t, n) threshold scheme with 1 ≤ t in the no-honest-majority regime Fintype.card ι < 2 * t - 1, honestProfile is (t - 1)-coalitionally resilient against share-pooling coalitions if and only if stopProb ≤ prefs.criticalStoppingProb.

theorem Cslib.GameTheory.RationalCrypto.GeometricProtocol.payoff_lt_uAll_of_withholdProb_pos {ι : Type u_1} {Payload : Type u_2} {Key : Type u_3} {Share : ι → Type u_4} [Fintype ι] [DecidableEq ι] (proto : GeometricProtocol ι Payload Key Share) (hp : proto.stopProb < proto.prefs.criticalStoppingProb) {i : ι} (hi : ¬proto.scheme.access.authorized {i}) {σ_i : Strategy i} (hwithhold : ∃ (r : ℕ), 0 < 1 - proto.roundContinueProb (Function.update honestProfile i σ_i) r) :

Strict optimality of honestProfile for stopProb < criticalStoppingProb: if singleton {i} is unauthorized and player i deviates to any share-inspecting strategy σ_i that withholds with positive probability in at least one round, player i's expected utility is strictly less than uAll.

Exact Nash equilibrium characterization for n-out-of-n geometric protocol: when proto.scheme.access = AccessStructure.all ι and 2 ≤ Fintype.card ι, honestProfile is a pure Nash equilibrium of proto.toPayoffGame if and only if stopProb ≤ prefs.criticalStoppingProb (and is (n - 1)-coalitionally resilient when that bound holds).