Reporting.lean
Board Support, CEO (Mis)Reporting, and Scapegoating · December 2, 2026 verification
1import Verification23open Std Lean.Grind Scapegoating4namespace Reporting56variable {R : Type} [Field R] [LE R] [LT R] [IsLinearOrder R] [LawfulOrderLT R] [OrderedRing R]78/-- A public history records the released signal and whether it was corrected. -/9abbrev HistoryValue (R : Type) := Bool → Bool → R1011def expected (m : R) (signal attempted : Bool) (f : HistoryValue R) : R :=12 if attempted = signal then f signal false13 else m*f attempted false + (1-m)*f signal true1415def likelihood (m : R) (signal attempted released flagged : Bool) : R :=16 expected m signal attempted (fun r c => if r = released ∧ c = flagged then 1 else 0)1718/-- Bayes' rule for each public history, with the good-type mass computed19from the type posterior conditional on the underlying signal. At a zero-mass20history this equality leaves beliefs unrestricted. -/21def Bayes (p m high low : R) (strategy : Bool → Bool) (belief : HistoryValue R) : Prop :=22 ∀ r c, let t := p*likelihood m true (strategy true) r c23 let f := (1-p)*likelihood m false (strategy false) r c24 (t+f)*belief r c = t*high+f*low2526def reportIC (m : R) (strategy : Bool → Bool) (pay belief : HistoryValue R) : Prop :=27 ∀ σ a, expected m σ a (fun r c => pay r c + belief r c) ≤28 expected m σ (strategy σ) (fun r c => pay r c + belief r c)2930def truthfulBelief (high low : R) : HistoryValue R := fun r _ => if r then high else low3132def contract (lo hi d0 dx : R) : HistoryValue R := fun r c =>33 if c then (if r then dx else d0) else (if r then hi else lo)3435def limited (pay : HistoryValue R) : Prop := ∀ r c, 0 ≤ pay r c3637def wage (p m : R) (strategy : Bool → Bool) (pay : HistoryValue R) : R :=38 p*expected m true (strategy true) pay + (1-p)*expected m false (strategy false) pay3940def operating (X L : R) (σ : Bool) (q : R) : R :=41 L+q*((if σ then X else 0)-L)4243def gross (p m X L : R) (strategy : Bool → Bool) (cont : HistoryValue R) : R :=44 p*expected m true (strategy true) (fun r c => operating X L true (cont r c)) +45 (1-p)*expected m false (strategy false) (fun r c => operating X L false (cont r c))4647def informed : HistoryValue R := fun r _ => if r then 1 else 04849omit [LE R] [LT R] [IsLinearOrder R] [LawfulOrderLT R] [OrderedRing R] in50theorem truthBayes (p m high low : R) :51 Bayes p m high low id (truthfulBelief high low) := by52 intro r c53 cases r <;> cases c <;> simp [likelihood, expected, truthfulBelief] <;> grind5455private theorem truthIC (m high low : R) (pay : HistoryValue R) :56 (limited pay ∧ reportIC m id pay (truthfulBelief high low)) ↔57 Truthful m (high-low) (pay false false) (pay true false) (pay false true) (pay true true) := by58 constructor59 · intro ⟨ll,ic⟩60 have a := ic false true61 have b := ic true false62 simp [expected,truthfulBelief] at a b63 exact ⟨ll _ _, ll _ _, ll _ _, ll _ _, by grind, by grind⟩64 · intro ⟨n0,nh,d0,dx,l,h⟩65 constructor66 · intro r c; cases r <;> cases c <;> assumption67 · intro σ a68 cases σ <;> cases a <;> simp [expected,truthfulBelief] <;> grind6970/-- Proposition 1 from the two reporting actions, the correction technology,71the four payments and the primitive type probabilities. -/72theorem truthfulContract (β G B m : R) (hβ : 0<β ∧ β<1)73 (ht : 0<B ∧ B<G ∧ G<1) (hm : 0<m ∧ m<1) :74 let p := mix β G B75 let H := highRep β G p76 let L := lowRep β G p 177 let reput := truthfulBelief H L78 let w := contract (m*(H-L)) 0 0 079 Bayes p m H L id reput ∧ limited w ∧ reportIC m id w reput ∧80 wage p m id w=m*(1-p)*(H-L) ∧81 ∀ w', limited w' → reportIC m id w' reput → wage p m id w ≤ wage p m id w' := by82 let p := mix β G B83 let H := highRep β G p84 let L := lowRep β G p 185 let w := contract (m*(H-L)) 0 0 086 have one := OrderedRing.zero_lt_one (R := R)87 have ⟨_,_,hp,hp1⟩ := probabilityBounds β G B 1 hβ.1 hβ.2 ht.1 ht.2.1 ht.2.2 one (by grind)88 have ⟨hr,_⟩ := spreadBounds β G B 1 hβ.1 hβ.2 ht.1 ht.2.1 ht.2.2 one (by grind)89 have ⟨feas,_,cheap⟩ := leastCost p m (H-L) (by dsimp [p]; grind) (by dsimp [p]; grind)90 hm.1 hm.2 hr91 have F := (truthIC m H L w).2 (by simpa [w,contract] using feas)92 refine ⟨truthBayes p m H L, F.1, F.2, ?_, ?_⟩93 · simp [wage,expected,contract]; grind94 · intro w' ll ic95 have q := cheap _ _ _ _ ((truthIC ..).1 ⟨ll,ic⟩)96 simp [wage,expected,contract,cost] at *; grind9798private theorem cancelBelief {mass b t : R} (hmass : 0<mass) (eqn : mass*b=mass*t) : b=t := by99 rcases (Field.IsOrdered.mul_le_mul_iff_of_pos_left hmass).mp (le_of_eq eqn) with h100 have k := (Field.IsOrdered.mul_le_mul_iff_of_pos_left hmass).mp (le_of_eq eqn.symm)101 grind102103private theorem inversionBeliefs (p m H L : R) (hp : 0<p ∧ p<1) (hm : 0<m ∧ m<1)104 (b : HistoryValue R) (bayes : Bayes p m H L Bool.not b) :105 b false false=H ∧ b true false=L ∧ b false true=L := by106 have h := bayes false false107 have l := bayes true false108 have f := bayes false true109 simp [likelihood,expected] at h l f110 have hf : 0<1-p := by grind111 exact ⟨cancelBelief (OrderedRing.mul_pos hp.1 hm.1) (by grind),112 cancelBelief (OrderedRing.mul_pos hf hm.1) (by grind),113 cancelBelief (OrderedRing.mul_pos hf (show 0<1-m by grind)) (by grind)⟩114115private theorem wageNonneg (p m : R) (hp : 0<p ∧ p<1) (hm : 0<m ∧ m<1)116 (s : Bool → Bool) (w : HistoryValue R) (ll : limited w) : 0 ≤ wage p m s w := by117 have n (σ a : Bool) : 0 ≤ expected m σ a w := by118 by_cases e : a=σ119 · simpa [expected,e] using ll σ false120 · have x := OrderedRing.mul_nonneg (le_of_lt hm.1) (ll a false)121 have y := OrderedRing.mul_nonneg (show 0≤1-m by grind) (ll σ true)122 simp [expected,e]; grind123 have x := OrderedRing.mul_nonneg (le_of_lt hp.1) (n true (s true))124 have y := OrderedRing.mul_nonneg (show 0≤1-p by grind) (n false (s false))125 dsimp [wage]; grind126127private theorem firstBest (p m X L : R) (hp : 0<p ∧ p<1) (hm : 0<m ∧ m<1)128 (cash : 0<L ∧ L<X) (s : Bool → Bool) (q : HistoryValue R)129 (prob : ∀ r c, 0≤q r c ∧ q r c≤1) :130 gross p m X L s q ≤ p*X+(1-p)*L := by131 have bound (σ a : Bool) :132 expected m σ a (fun r c => operating X L σ (q r c)) ≤ (if σ then X else L) := by133 have b (r c : Bool) : operating X L σ (q r c) ≤ (if σ then X else L) := by134 have ⟨lo,hi⟩ := prob r c135 cases σ136 · have := OrderedRing.mul_nonneg lo (le_of_lt cash.1)137 dsimp [operating]; grind138 · have := OrderedRing.mul_le_mul_of_nonneg_right hi (show 0≤X-L by grind)139 dsimp [operating]; grind140 by_cases h : a=σ141 · simp [expected,h,b]142 · have t := OrderedRing.mul_le_mul_of_nonneg_left (b a false) (le_of_lt hm.1)143 have u := OrderedRing.mul_le_mul_of_nonneg_left (b σ true) (show 0≤1-m by grind)144 simp [expected,h]; grind145 have x := OrderedRing.mul_le_mul_of_nonneg_left (bound true (s true)) (le_of_lt hp.1)146 have y := OrderedRing.mul_le_mul_of_nonneg_left (bound false (s false)) (show 0≤1-p by grind)147 simp [gross] at *; grind148149private theorem poolDominated (r : Bool) (p m X L ρ : R) (hp : 0<p ∧ p<1)150 (hm : 0<m ∧ m<1) (hr : 0<ρ ∧ ρ<1) (cash : 1<L ∧ L<X) (viable : L<p*X)151 (q : HistoryValue R) (prob : ∀ b c, 0≤q b c ∧ q b c≤1) :152 gross p m X L (fun _ => r) q < p*X+(1-p)*L-m*(1-p)*ρ := by153 obtain ⟨high,lowC,lowL,_⟩ := pureRegimes p m ρ X L hp.1 hp.2 hm.1 hm.2 hr.1 hr.2 cash.1 viable154 have ⟨q0,q1⟩ := prob r false155 cases r with156 | true =>157 have mixed := Verification.mixtureDominated _ _ _ (q true false) high (lt_trans viable lowC) q0 q1158 have w : 0 ≤ (1-p)*(1-m) := OrderedRing.mul_nonneg (by grind) (by grind)159 have loss := OrderedRing.mul_nonneg w (OrderedRing.mul_nonneg (prob false true).1 (show 0≤L by grind))160 simp [gross,expected,operating]161 grind162 | false =>163 have mixed := Verification.mixtureDominated _ _ _ (q false false) lowC lowL q0 q1164 have w := OrderedRing.mul_nonneg (le_of_lt hp.1) (show 0≤1-m by grind)165 have loss := OrderedRing.mul_nonneg w166 (OrderedRing.mul_nonneg (show 0≤1-q true true by have := prob true true; grind) (show 0≤X-L by grind))167 simp [gross,expected,operating]168 grind169170private theorem invertDominated (p m X L H F : R) (hp : 0<p ∧ p<1)171 (hm : 0<m ∧ m<1) (hr : 0<H-F ∧ H-F<1) (cash : 1<L ∧ L<X) (viable : L<p*X)172 (q pay belief : HistoryValue R) (prob : ∀ b c, 0≤q b c ∧ q b c≤1)173 (ll : limited pay) (ic : reportIC m Bool.not pay belief) (bayes : Bayes p m H F Bool.not belief) :174 gross p m X L Bool.not q-wage p m Bool.not pay < p*X+(1-p)*L-m*(1-p)*(H-F) := by175 have ⟨rh,rl,rc⟩ := inversionBeliefs p m H F hp hm belief bayes176 have dev := ic false false177 simp [expected,rh,rl,rc] at dev178 have costBound := inversionCostBound p (H-F) (pay false false) (pay true false)179 (pay false true) (pay true true) m hp.1 hp.2 hm.1 hm.2 (ll _ _) (ll _ _) (by grind)180 have best := firstBest p m X L hp hm ⟨by grind,cash.2⟩ Bool.not q prob181 obtain ⟨_,_,_,rank⟩ := pureRegimes p m (H-F) X L hp.1 hp.2 hm.1 hm.2 hr.1 hr.2 cash.1 viable182 simp [wage,expected]183 grind184185/-- Lemma 1. An arbitrary nontruthful pure reporting strategy, with any186Bayes-consistent beliefs, limited-liability contract, incentive-compatible187reports, and randomized continuation at each public history, earns strictly188less than the feasible truthful contract. Support costs cancel at fixed s. -/189theorem regimeSelection (β G B m X L : R) (hβ : 0<β ∧ β<1) (ht : 0<B ∧ B<G ∧ G<1)190 (hm : 0<m ∧ m<1) (cash : 1<L ∧ L<X) (viable : L<mix β G B*X)191 (strategy : Bool → Bool) (alternative : ∃ σ, strategy σ ≠ σ)192 (pay belief q : HistoryValue R) (ll : limited pay)193 (actions : ∀ r c, 0≤q r c ∧ q r c≤1) :194 let p := mix β G B195 let H := highRep β G p196 let F := lowRep β G p 1197 let w := contract (m*(H-F)) 0 0 0198 Bayes p m H F strategy belief → reportIC m strategy pay belief →199 gross p m X L strategy q - wage p m strategy pay <200 gross p m X L id informed - wage p m id w := by201 let p := mix β G B202 let H := highRep β G p203 let F := lowRep β G p 1204 have one := OrderedRing.zero_lt_one (R := R)205 have ⟨_,_,p0,p1⟩ := probabilityBounds β G B 1 hβ.1 hβ.2 ht.1 ht.2.1 ht.2.2 one (by grind)206 have hp : 0<p ∧ p<1 := by dsimp [p]; grind207 have hr : 0<H-F ∧ H-F<1 := spreadBounds β G B 1 hβ.1 hβ.2 ht.1 ht.2.1 ht.2.2 one (by grind)208 let t := p*X+(1-p)*L-m*(1-p)*(H-F)209 have eq : gross p m X L id informed - wage p m id (contract (m*(H-F)) 0 0 0)=t := by210 simp [gross,wage,expected,operating,informed,contract,t]; grind211 dsimp only212 intro bayes ic213 change gross p m X L strategy q - wage p m strategy pay < _214 rw [eq]215 have wn := wageNonneg p m hp hm strategy pay ll216 cases l : strategy false <;> cases h : strategy true217 · have e : strategy=(fun _ => false) := by funext σ; cases σ <;> assumption218 have z := poolDominated false p m X L (H-F) hp hm hr cash viable q actions219 rw [← e] at z220 dsimp [t]; grind221 · obtain ⟨σ,ns⟩ := alternative222 cases σ <;> contradiction223 · have e : strategy=Bool.not := by funext σ; cases σ <;> assumption224 subst strategy225 exact invertDominated p m X L H F hp hm hr cash viable q pay belief actions ll ic bayes226 · have e : strategy=(fun _ => true) := by funext σ; cases σ <;> assumption227 have z := poolDominated true p m X L (H-F) hp hm hr cash viable q actions228 rw [← e] at z229 dsimp [t]; grind230231end Reporting