Transitive Trust Graphs and Sybilproof Reputation Mechanisms #
Formalizes transitive trust graphs, contraction-based Sybil strategies, symmetric impossibility
theorems, and the value- and rank-sybilproofness properties of capacity-constrained maximum-flow
and shortest-path (Pathrank) reputation mechanisms from Section 27.5 (Definitions 27.2–27.4 and
27.6, Theorems 27.5 and 27.7–27.9, Figure 27.2, and Exercise 27.8, pp. 689–693, 697) of Eric
Friedman, Paul Resnick, and Rahul Sami, "Manipulation-Resistant Reputation Systems", Chapter 27
of Algorithmic Game Theory [FRS07], following Alice Cheng and Eric Friedman,
"Sybilproof Reputation Mechanisms" [CF05].
Model and source mapping #
- Trust graphs (
TrustGraph V,relabel,contract): directed loop-free nonnegative real trust matricesweight : V → V → ℝ(0for absent edges). Functorial vertex contractionG.contract πsums weights across distinctπ-fibers and zeroes induced self-loops, satisfyingcontract_contract : (G.contract f).contract g = G.contract (g ∘ f)unconditionally. - Sybil strategies (
SybilStrategy G v, Definition 27.2, p. 691; [ChengFriedman2005, Definition 2, p. 129]): an extended trust graphS.graphon finite vertex typeS.Vertextogether with a collapse mapS.collapse : S.Vertex → Vwhose fiber overvis a nonempty Sybil clusterS.sybils, whose restriction outsideS.sybilsis bijective with{w : V // w ≠ v}viaS.honestEmbed, and whose contractionS.graph.contract S.collapseequalsG(preserving honest-to-honest weights and additive incoming/outgoing trust sums while permitting arbitrary internal fake edges amongS.sybils). - Global symmetric reputation functions (
GlobalRepFn):- Theorem 27.7 (
GlobalRepFn.not_isKRankSybilproof_of_isSymmetric, pp. 691–692; [ChengFriedman2005, Theorem 2, p. 130]): for every1 ≤ K, no nontrivial isomorphism- invariant reputation function isK-rank-sybilproof (|U'| ≤ K + 1), proved by step-by-step1-Sybil splitting alongG ⊔ G.contract (clamp k)(1 ≤ k ≤ |V|). - Theorem 27.5 (
GlobalRepFn.not_isRankSybilproof_of_isSymmetric, p. 691; [ChengFriedman2005, Theorem 1, p. 130]): immediateK = 1corollary. - Section 27.5.1 (
GlobalRepFn.not_isRankStrategyproof_of_isSymmetric, p. 690): no nontrivial symmetric reputation function is rank-strategyproof against unilateral changes to a vertex's outgoing ratings.
- Theorem 27.7 (
- Seeded reputation functions (
SeededRepFn), Max-Flow (maxFlowRep), and Pathrank (pathrankRep):- Theorem 27.8 (
isValueSybilproof_maxFlowRep,not_isRankSybilproof_maxFlowRep, p. 692; Figure 27.2 & Exercise 27.8):maxFlowRep G s v = minRealCutBetween G.weight s v(certified equal to maximums–vflow fors ≠ vbyisMaxRealFlow_maxFlowRepviaisMaxRealFlow_minRealCutBetween) is value-sybilproof via cut pullbackcutWeight_pullback_eq_contract, but fails rank-sybilproofness (even with1extra Sybil and unmoved incoming links) on Figure 27.2 (maxFlowCounterexampleGraph,maxFlowCounterexampleSybil). - Theorem 27.9 and Section 27.5.1 (
isValueSybilproof_pathrankRep,isRankSybilproof_pathrankRep,isRankStrategyproof_pathrankRep,isMonotonic_pathrankRep, pp. 690, 692; [ChengFriedman2005, Theorem 5, p. 131]):pathrankRep G s v = ((1 + pathrankDist G s v)⁻¹).toReal, wherepathrankDistis shortest-walk length under inverse-trust edge lengths(ENNReal.ofReal (G.weight x y))⁻¹, is value-sybilproof, rank-sybilproof, rank-strategyproof, and monotonic.
- Theorem 27.8 (
Main definitions #
Cslib.GameTheory.Reputation.TrustGraph,TrustGraph.empty,TrustGraph.relabel,TrustGraph.contract,TrustGraph.disjointUnionCslib.GameTheory.Reputation.SybilStrategy,SybilStrategy.sybils,SybilStrategy.honestCslib.GameTheory.Reputation.GlobalRepFn,GlobalRepFn.IsSymmetric,GlobalRepFn.IsNontrivial,GlobalRepFn.IsValueSybilproof,GlobalRepFn.IsRankSybilproof,GlobalRepFn.IsKRankSybilproof,GlobalRepFn.IsRankStrategyproofCslib.GameTheory.Reputation.SeededRepFn,SeededRepFn.IsValueSybilproof,SeededRepFn.IsRankSybilproof,SeededRepFn.IsRankStrategyproof,SeededRepFn.IsMonotonicCslib.GameTheory.Reputation.maxFlowRep,maxFlowCounterexampleGraph,maxFlowCounterexampleSybil,walkInvTrustLen,pathrankDist,pathrankRep
Main results #
Cslib.GameTheory.Reputation.TrustGraph.contract_contractandcutWeight_pullback_eq_contract: functorial contraction and exact cut-weight pullback.Cslib.GameTheory.Reputation.GlobalRepFn.not_isKRankSybilproof_of_isSymmetricandnot_isRankSybilproof_of_isSymmetric: Theorems 27.7 and 27.5.Cslib.GameTheory.Reputation.GlobalRepFn.not_isRankStrategyproof_of_isSymmetric: §27.5.1 impossibility.Cslib.GameTheory.Reputation.isValueSybilproof_maxFlowRepandnot_isRankSybilproof_maxFlowRep: Theorem 27.8 and Figure 27.2 / Exercise 27.8.Cslib.GameTheory.Reputation.isValueSybilproof_pathrankRep,isRankSybilproof_pathrankRep,isRankStrategyproof_pathrankRep, andisMonotonic_pathrankRep: Theorem 27.9 and §27.5.1 possibility.
References #
Trust graphs and functorial contraction #
Loop-free directed trust graph with nonnegative real edge weights [FriedmanResnickSami2007, §27.5, p. 689; ChengFriedman2005, §3, p. 129].
Empty trust graph with zero trust on all pairs.
Transport a trust graph along a bijection e : V ≃ V'.
Disjoint union G₁ ⊔ G₂ of two trust graphs on V₁ ⊕ V₂, with zero cross-component edges.
Contract a finite trust graph G' along π : V' → V, summing weights across distinct
π-fibers and deleting induced self-loops [FriedmanResnickSami2007, Definition 27.2, p. 691;
ChengFriedman2005, Definition 2, p. 129].
Functoriality of trust-graph contraction: contracting along f and then g equals contracting
along g ∘ f.
Pulling a vertex cut X ⊆ V back along π : V' → V preserves cutWeight identically against
G'.contract π.
Contraction-based Sybil strategies (Definition 27.2) #
Sybil strategy (G', U') for user v in trust graph G
([FriedmanResnickSami2007, Definition 27.2, p. 691; ChengFriedman2005, Definition 2, p. 129]):
an extended finite trust graph graph on Vertex with collapse map collapse : Vertex → V whose
fiber over v is nonempty, whose non-v vertices correspond bijectively to honest users w ≠ v,
and whose contraction graph.contract collapse recovers G.
- Vertex : Type
Extended vertex type after creating Sybil identities.
Finiteness of the extended vertex set.
- instDecidableEq : DecidableEq self.Vertex
Decidable equality on the extended vertex set.
- graph : TrustGraph self.Vertex
Modified trust graph on
Vertex. - collapse : self.Vertex → V
Contraction map collapsing all Sybils onto
vand keeping honest users distinct. User
vhas at least one Sybil representative (v ∈ U').Embedding of honest users
w ≠ vintoVertex.collapseis left-inverse tohonestEmbed.- honestEmbed_collapse (x : self.Vertex) (hx : self.collapse x ≠ v) : self.honestEmbed ⟨self.collapse x, hx⟩ = x
Every non-Sybil vertex (
collapse x ≠ v) is the image of its honest user. Collapsing the Sybil cluster onto
vyieldsG.
The Sybil subset U' ⊆ S.Vertex of identities collapsing onto v.
Image of an honest user w ≠ v in S.Vertex.
Global reputation functions and symmetric impossibility (Theorems 27.5 & 27.7, §27.5.1) #
Global cardinal reputation aggregation mechanism F : TrustGraph V → V → ℝ
[FriedmanResnickSami2007, §27.5, p. 689; ChengFriedman2005, Definition 1, p. 129].
Isomorphism invariance (symmetry) of a global reputation function [FriedmanResnickSami2007, §27.5, p. 690; ChengFriedman2005, Definition 6, p. 130].
Nontriviality: on at least one finite trust graph, F distinguishes two vertices
[FriedmanResnickSami2007, §27.5, p. 689; ChengFriedman2005, §4.1, p. 130].
Value-sybilproofness ([FriedmanResnickSami2007, Definition 27.3, p. 691;
ChengFriedman2005, Definition 5, p. 130]): no Sybil identity achieves strictly higher value than
v's honest score.
Rank-sybilproofness ([FriedmanResnickSami2007, Definition 27.4, p. 691;
ChengFriedman2005, Definition 3, p. 129]): no Sybil identity overtakes or ties an honest user w
who strictly outranked v.
K-rank-sybilproofness ([FriedmanResnickSami2007, Definition 27.6, p. 691]):
rank-sybilproofness against Sybil strategies creating at most K additional identities
(|U'| ≤ K + 1).
Rank-strategyproofness ([FriedmanResnickSami2007, §27.5.1, p. 690]): no user v can
improve her weak-order ranking relative to another user w (turning < into ≥ or ≤ into >)
by unilaterally altering her outgoing trust ratings.
Theorem 27.7 ([FriedmanResnickSami2007, pp. 691–692];
[ChengFriedman2005, Theorem 2, p. 130]): for every 1 ≤ K, there is no nontrivial symmetric
K-rank-sybilproof reputation function.
Theorem 27.5 ([FriedmanResnickSami2007, p. 691]; [ChengFriedman2005, Theorem 1, p. 130]): there is no nontrivial symmetric rank-sybilproof reputation function.
Section 27.5.1 impossibility ([FriedmanResnickSami2007, p. 690]): there is no nontrivial symmetric rank-strategyproof reputation function.
Seeded reputation functions, Max-Flow (Theorem 27.8), and Pathrank (Theorem 27.9) #
Seeded (rooted) cardinal reputation mechanism F : TrustGraph V → (seed : V) → V → ℝ
[FriedmanResnickSami2007, §27.5, p. 690; ChengFriedman2005, §4.2, p. 130].
Value-sybilproofness for a seeded reputation function ([FriedmanResnickSami2007,
Definition 27.3 & Theorem 27.8, pp. 691–692; ChengFriedman2005, Definition 5, p. 130]):
no non-seed attacker v ≠ s can create a Sybil identity u ∈ S.sybils whose score from the
seed exceeds v's honest score.
Rank-sybilproofness for a seeded reputation function ([FriedmanResnickSami2007,
Definition 27.4 & Theorem 27.9, pp. 691–692; ChengFriedman2005, Definition 3, p. 129]):
no non-seed attacker v ≠ s can create a Sybil identity u ∈ S.sybils that ties or overtakes
any honest user w ≠ v who strictly outranked v.
Rank-strategyproofness for a seeded reputation function ([FriedmanResnickSami2007, §27.5.1,
p. 690]): no non-seed user v ≠ s can boost her weak-order ranking relative to any w by
changing her outgoing trust ratings.
Monotonicity of a seeded reputation function ([FriedmanResnickSami2007, §27.5, p. 690]):
increasing the trust weight on an incoming edge (u, v) (u ≠ v) never reduces v's rank
relative to any node w.
Maximum-flow reputation (maxFlowRep, Theorem 27.8 & Figure 27.2) #
Maximum-flow reputation from trusted seed s to v ([FriedmanResnickSami2007, §27.5,
pp. 690, 692]): defined as minRealCutBetween G.weight s v, which equals the greatest value of a
feasible real s–v flow whenever s ≠ v (isMaxRealFlow_maxFlowRep).
For every non-seed vertex v ≠ s, maxFlowRep G s v is the maximum value of a feasible real
s–v flow in G (via isMaxRealFlow_minRealCutBetween).
Theorem 27.8 ([FriedmanResnickSami2007, p. 692]; [ChengFriedman2005, Theorem 4, p. 131]): the maximum-flow reputation mechanism is value-sybilproof.
Honest 3-vertex trust graph of Figure 27.2 ([FriedmanResnickSami2007, p. 692]) on Fin 3
(0 = s, 1 = a, 2 = b): edges s → a of capacity 1, a → b of capacity 7 / 10, and
s → b of capacity 1 / 2.
Explicit 1-Sybil strategy for a = 1 in Figure 27.2 ([FriedmanResnickSami2007, p. 692;
Exercise 27.8, p. 697]), which also leaves all incoming trust edges to a unmoved.
Failure of rank-sybilproofness for Max-Flow ([FriedmanResnickSami2007, p. 692, Figure 27.2;
Exercise 27.8, p. 697]): maxFlowRep is not rank-sybilproof (even against a single extra Sybil
with unmoved incoming links).
Pathrank reputation (pathrankDist, pathrankRep, Theorem 27.9 & §27.5.1) #
Inverse-trust edge length (ENNReal.ofReal (G.weight u v))⁻¹ : ℝ≥0∞ (⊤ when weight u v = 0)
[FriedmanResnickSami2007, §27.5, p. 690].
Total inverse-trust length of a walk represented by vertex sequence p : List V
[FriedmanResnickSami2007, §27.5, p. 690].
Shortest inverse-trust walk distance from s to v in ℝ≥0∞ (0 at v = s, ⊤ if
unreachable) [FriedmanResnickSami2007, §27.5, p. 690].
Pathrank reputation ((1 + pathrankDist G s v)⁻¹).toReal ∈ [0, 1] from trusted seed s to
v (1 at v = s, 0 when v is unreachable, and strictly antitone in shortest inverse-trust
distance pathrankDist G s v) [FriedmanResnickSami2007, §27.5, pp. 690, 692;
ChengFriedman2005, §4.2, Theorem 5, p. 131].
Theorem 27.9 (value-sybilproofness) ([FriedmanResnickSami2007, p. 692];
[ChengFriedman2005, Theorem 4, p. 131]): pathrankRep is value-sybilproof.
Theorem 27.9 (rank-sybilproofness) ([FriedmanResnickSami2007, p. 692];
[ChengFriedman2005, Theorem 5, p. 131]): pathrankRep is rank-sybilproof.
Section 27.5.1 (rank-strategyproofness of Pathrank)
([FriedmanResnickSami2007, §27.5.1, p. 690]): pathrankRep is rank-strategyproof.
Section 27.5 (monotonicity of Pathrank) ([FriedmanResnickSami2007, §27.5, pp. 690, 692]):
pathrankRep is monotonic in incoming edge trust weights.