Signaling.lean
Board Support, CEO (Mis)Reporting, and Scapegoating · December 2, 2026 verification
1import Disclosure2open Std Lean.Grind Scapegoating Disclosure3namespace Signaling4variable {R : Type} [Field R] [LE R] [LT R] [IsLinearOrder R] [LawfulOrderLT R] [OrderedRing R]5variable (E : Economy R)67/-- Unit cost of truthful reporting, before multiplying by m. -/8def K (s : R) := E.H s-E.β9def common (m s : R) := E.L+(E.X-E.L)*E.P s-m*K E s10def value (C : R → R) (m s : R) := common E m s-C s1112theorem unitCost (s : R) (hs : 0≤s) : K E s=(1-E.P s)*E.rho s ∧ 0<K E s ∧ K E s<1 := by13 have B := (E.cancellation s hs).114 have P := E.probabilities s hs15 have z : K E s=(1-E.P s)*E.rho s := by dsimp [K,Economy.rho]; grind16 have a := OrderedRing.mul_pos (show 0<1-E.P s by grind) (show 0<E.H s-E.F s by grind)17 have c := E.prior18 exact ⟨z,by dsimp [K]; grind,by dsimp [K]; grind⟩1920private theorem commonDerivative (m s : R) (hs : 0≤s) : ∃ d, HasSlopeAt (common E m) s d := by21 obtain ⟨g,b,_⟩ := E.slopes s hs22 obtain ⟨u,_,h,_,_,_,_⟩ := Posterior.bayesDerivatives E.G E.B E.β s _ _ E.prior (E.tech s hs) g b23 have pd : HasSlopeAt E.P s (E.β*E.dG s+(1-E.β)*E.dB s) := by24 change HasSlopeAt (fun x => E.β*E.G x+(1-E.β)*E.B x) s _25 simpa only [Semiring.add_zero] using Posterior.affineSlope E.β (1-E.β) 0 g b26 change HasSlopeAt E.H s u at h27 have eq : (fun x => (E.X-E.L)*E.P x+(-m)*E.H x+(E.L+m*E.β))=common E m := by28 funext x; dsimp [common,K]; grind29 rw [← eq]30 exact ⟨_,Posterior.affineSlope _ _ _ pd h⟩3132private theorem under (C dC : R → R) (m fb s : R) (hm : 0<m) (comp : E.complement)33 (der : ∀ x, 0≤x → HasSlopeAt C x (dC x)) (c0 : dC 0=0)34 (bench : Maximizes (value E C 0) fb) (best : Maximizes (value E C m) s)35 (curve : Concave (value E C m)) : s<fb := by36 let W := fun x => E.L+(E.X-E.L)*E.P x-C x37 let V := baselineValue W E.G E.B E.β m38 have eq (x : R) (hx : 0≤x) : V x=value E C m x := by39 have e := (unitCost E x hx)40 have c := (E.cancellation x hx).241 have ck : K E x=E.β*(1-E.β)*(E.G x-E.B x)/E.P x := e.1.trans c42 change W x-((m*E.β*(1-E.β)*(E.G x-E.B x))/E.P x)=value E C m x43 dsimp [W,value,common]; rw [ck]; simp only [Field.div_eq_mul_inv]; grind44 have optW : Maximizes W fb := by45 have h : value E C 0=W := by funext x; dsimp [value,common,W]; grind46 rw [h] at bench; exact bench47 have optV : Maximizes V s := ⟨best.1,fun x hx => by rw [eq x hx,eq s best.1]; exact best.2 x hx⟩48 have chord : Concave V := by49 intro a b c ha ab bc; rw [eq a ha,eq b (by grind),eq c (by grind)]; exact curve a b c ha ab bc50 have rank := Verification.mainSupportRanking E.G E.B C E.dG E.dB dC E.β m E.X E.L fb s51 E.prior.1 E.prior.2 hm E.cash.2 E.tech52 (by intro x hx; exact ⟨(E.slopes x hx).1,(E.slopes x hx).2.1,der x hx⟩)53 (E.production 0 (by grind)) c0 optW optV chord54 exact rank.1 (comp fb bench.1)5556/-- Threshold beliefs assign the favorable reputation precisely when x≥z.57The last clause compares the supportive type's payoff with every other58separating pair that satisfies the on-path deviation inequalities. -/59def Separates (V0 V1 : R → R) (f0 f1 z b : R) : Prop :=60 f1≤z ∧ V0 z+b≤V0 f0 ∧ (f1<z → V0 z+b=V0 f0) ∧61 (∀ x, 0≤x → (x<z → V0 x≤V0 f0 ∧ V1 x≤V1 z+b) ∧62 (z≤x → V0 x+b≤V0 f0 ∧ V1 x+b≤V1 z+b)) ∧63 (∀ l h, 0≤l → 0≤h → l≠h → V0 f0≤V0 l → V0 h+b≤V0 l → V1 l≤V1 h+b →64 l=f0 ∧ l<h ∧ (h≠z → V1 h<V1 z))6566/-- The assumed type-specific primitives and full-information choices. -/67structure TwoTypes (E : Economy R) where68 C1 : R → R69 d1 : R → R70 deriv : ∀ x, 0≤x → HasSlopeAt C1 x (d1 x)71 zero : d1 0=072 cheaper : ∀ x, 0<x → d1 x<E.dC x73 f0 : R → R74 f1 : R → R75 choices : ∀ m, 0≤m → m≤1 →76 (0<f0 m ∧ Maximizes (value E E.C m) (f0 m) ∧ Concave (value E E.C m)) ∧77 (0<f1 m ∧ Maximizes (value E C1 m) (f1 m) ∧ Concave (value E C1 m))7879namespace TwoTypes80variable {E} (T : TwoTypes E)81def loss (m : R) := value E E.C m (T.f0 m)-value E E.C m (T.f1 0)8283private theorem crossing (complete : CompleteSupport R) (m : R) :84 ∀ x y, 0≤x → x<y →85 value E T.C1 m x-value E E.C m x < value E T.C1 m y-value E E.C m y := by86 apply Verification.boardSingleCrossing _ E.C T.C1 E.dC T.d1 complete87 · exact Posterior.continuousOfDerivatives (fun x hx => ⟨_,(E.slopes x hx).2.2⟩)88 · exact Posterior.continuousOfDerivatives (fun x hx => ⟨_,T.deriv x hx⟩)89 · intro x hx; exact ⟨(E.slopes x (le_of_lt hx)).2.2,T.deriv x (le_of_lt hx),T.cheaper x hx⟩9091private theorem order (complete : CompleteSupport R) (m : R) (hm : 0≤m) (hm1 : m≤1) : T.f0 m<T.f1 m := by92 obtain ⟨A,B⟩ := T.choices m hm hm193 obtain ⟨d,D⟩ := commonDerivative E m (T.f0 m) A.2.1.194 exact Verification.fullInfoOrder (common E m) E.C T.C1 E.dC T.d1 _ _ d complete95 (Posterior.continuousOfDerivatives (fun x hx => ⟨_,(E.slopes x hx).2.2⟩))96 (Posterior.continuousOfDerivatives (fun x hx => ⟨_,T.deriv x hx⟩))97 (fun x hx => ⟨(E.slopes x (le_of_lt hx)).2.2,T.deriv x (le_of_lt hx),T.cheaper x hx⟩)98 A.1 A.2.1 B.2.1 D99100private theorem typeRank (comp : E.complement) (m : R) (hm : 0<m) (hm1 : m≤1) :101 T.f0 m<T.f0 0 ∧ T.f1 m<T.f1 0 := by102 obtain ⟨A,B⟩ := T.choices m (le_of_lt hm) hm1103 obtain ⟨F,G⟩ := T.choices 0 (by grind) (by grind)104 exact ⟨under E E.C E.dC m _ _ hm comp (fun x hx => (E.slopes x hx).2.2) E.costZero F.2.1 A.2.1 A.2.2,105 under E T.C1 T.d1 m _ _ hm comp T.deriv T.zero G.2.1 B.2.1 B.2.2⟩106107private theorem atControl (complete : CompleteSupport R) (comp : E.complement) (m b : R)108 (hm : 0<m) (hm1 : m<1) (hb : 0<b) :109 ∃ z, Separates (value E E.C m) (value E T.C1 m) (T.f0 m) (T.f1 m) z b ∧110 (z<T.f1 0 ↔ b<T.loss m) ∧ (z=T.f1 0 ↔ b=T.loss m) ∧ (T.f1 0<z ↔ T.loss m<b) := by111 obtain ⟨A,B⟩ := T.choices m (le_of_lt hm) (le_of_lt hm1)112 have o := T.order complete m (le_of_lt hm) (le_of_lt hm1)113 let V := value E E.C m114 have cont : ContinuousSupport (fun s => V (T.f0 m)-V s) := by115 apply Posterior.continuousOfDerivatives116 intro x hx117 obtain ⟨d,D⟩ := commonDerivative E m x hx118 have der : HasSlopeAt V x (d-E.dC x) := Verification.slopeSub D (E.slopes x hx).2.2119 have t := Posterior.affineSlope (-1) 0 (V (T.f0 m)) der der120 have eq : (fun y => -1*V y+0*V y+V (T.f0 m))=(fun y => V (T.f0 m)-V y) := by funext y; grind121 rw [eq] at t; exact ⟨_,t⟩122 obtain ⟨v,hv,tail⟩ := E.costTail (E.X+b-V (T.f0 m))123 let u := v+T.f1 m+1124 have hu : v≤u ∧ T.f1 m<u := by dsimp [u]; have := B.1; grind125 have cost := tail u hu.1126 have ku := (unitCost E u (by grind)).2.1127 have pp := (E.probabilities u (by grind)).2.1128 have d := OrderedRing.mul_lt_mul_of_pos_left pp (show 0<E.X-E.L by have := E.cash; grind)129 have fee := OrderedRing.mul_pos hm ku130 have lossBig : b<V (T.f0 m)-V u := by change b<V (T.f0 m)-(E.L+(E.X-E.L)*E.P u-m*K E u-E.C u); grind131 have tail0 := Verification.concaveTail _ _ A.2.1 A.2.2132 have tail1 := Verification.concaveTail _ _ B.2.1 B.2.2133 have uniqueAt (f : R → R) (z : R) (opt : Maximizes f z) (curve : Concave f) :134 ∀ x, 0≤x → x≠z → f x<f z := by135 intro x hx hn136 by_cases lt : z<x137 · exact Verification.concaveTail f z opt curve z x (by grind) lt138 · let w := (x+z)/2139 have ww : w*2=x+z := Field.div_mul_cancel (by grind)140 have ch := curve x w z hx (by grind) (by grind)141 have om := opt.2 w (by grind)142 have u' := OrderedRing.mul_le_mul_of_nonneg_left om (show 0≤z-x by grind)143 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left (show 0<z-w by grind)).mp; grind144 obtain ⟨z,S⟩ := Verification.feasibleSeparation _ _ _ _ b hb o A.2.1 B.2.1145 (uniqueAt _ _ A.2.1 A.2.2) (uniqueAt _ _ B.2.1 B.2.2) tail0 tail1146 (T.crossing complete m) cont ⟨u,hu.2,lossBig⟩ complete147 refine ⟨z,S,?_⟩148 exact benchmarkTrichotomy (fun x => V (T.f0 m)-V x) _ _ _ z b o (T.typeRank comp m hm (le_of_lt hm1)).2149 S.1 (by have := S.2.1; dsimp [V]; grind)150 (by intro hz; have := S.2.2.1 hz; dsimp [V]; grind)151 (by intro x y hx hy; have := tail0 x y (le_of_lt hx) hy; dsimp [V]; grind)152153private theorem lossChanges (comp : E.complement) (complete : CompleteSupport R) (m n : R)154 (hm : 0≤m) (mn : m≤n) (hn : n≤1) :155 -(n-m)≤T.loss n-T.loss m ∧ T.loss n-T.loss m≤n-m ∧ (m<n → T.loss m<T.loss n) := by156 let W := fun x => E.L+(E.X-E.L)*E.P x-E.C x157 have fm := (T.choices m hm (by grind)).1.2.1158 have fn := (T.choices n (by grind) hn).1.2.1159 have bench := (T.choices 0 (by grind) (by grind)).2.2.1160 have optM := fm.2 (T.f0 n) fn.1161 have optN := fn.2 (T.f0 m) fm.1162 have bound (x : R) (hx : 0≤x) : 0≤K E x ∧ K E x≤1 := by163 have h := (unitCost E x hx).2; grind164 have lipschitz := imitationLossLipschitz W (K E) T.f0 (T.f1 0) m n mn165 (by dsimp [value,common] at optM; dsimp [W]; grind)166 (by dsimp [value,common] at optN; dsimp [W]; grind)167 (bound _ fm.1) (bound _ fn.1) (bound _ bench.1)168 have below : T.f0 m<T.f1 0 := by169 have t := T.order complete 0 (by grind) (by grind)170 by_cases eq : m=0171 · rw [eq]; exact t172 · exact lt_trans (T.typeRank comp m (by grind) (by grind)).1 t173 have costInc := (E.nested complete comp _ _ fm.1 below).2.1174 have kk : 0<K E (T.f1 0)-K E (T.f0 m) := by dsimp [K]; grind175 dsimp only [W] at lipschitz176 dsimp [value,common,loss] at *177 refine ⟨by grind,by grind,?_⟩178 intro strict179 have h := OrderedRing.mul_pos (show 0<n-m by grind) kk180 grind181182/-- Proposition OA1. Bounds are endpoint losses, the controls cutoff is unique,183and every support deviation under threshold beliefs has been checked. -/184theorem boardSignaling (complete : CompleteSupport R) (comp : E.complement) (b : R) (hb : 0<b) :185 0<T.loss 0 ∧ T.loss 0<T.loss 1 ∧186 ∃ signal : R → R,187 (∀ m, 0<m → m<1 →188 T.f0 m<T.f0 0 ∧ Separates (value E E.C m) (value E T.C1 m) (T.f0 m) (T.f1 m) (signal m) b) ∧189 (b≤T.loss 0 → ∀ m, 0<m → m<1 → signal m<T.f1 0) ∧190 (T.loss 1≤b → ∀ m, 0<m → m<1 → T.f1 0<signal m) ∧191 (T.loss 0<b → b<T.loss 1 → ∃ cutoff, 0<cutoff ∧ cutoff<1 ∧192 ∀ m, 0<m → m<1 → (signal m=T.f1 0 ↔ m=cutoff) ∧193 (T.f1 0<signal m ↔ m<cutoff) ∧ (signal m<T.f1 0 ↔ cutoff<m)) := by194 classical195 have M := T.lossChanges comp complete196 have small := T.order complete 0 (by grind) (by grind)197 obtain ⟨A,_⟩ := T.choices 0 (by grind) (by grind)198 have d0 := Verification.concaveTail _ _ A.2.1 A.2.2 _ _ (le_refl _) small199 have d1 := (M 0 1 (by grind) (by grind) (by grind)).2.2 OrderedRing.zero_lt_one200 refine ⟨by dsimp [loss]; grind,d1,?_⟩201 let z (m : R) := if h : 0<m ∧ m<1 then Classical.choose (T.atControl complete comp m b h.1 h.2 hb) else 0202 have spec (m : R) (hm : 0<m) (hm1 : m<1) :203 Separates (value E E.C m) (value E T.C1 m) (T.f0 m) (T.f1 m) (z m) b ∧204 (z m<T.f1 0 ↔ b<T.loss m) ∧ (z m=T.f1 0 ↔ b=T.loss m) ∧ (T.f1 0<z m ↔ T.loss m<b) := by205 simpa only [z,dite_eq_left (show 0<m ∧ m<1 from ⟨hm,hm1⟩)] using206 Classical.choose_spec (T.atControl complete comp m b hm hm1 hb)207 let clip (x : R) := if x≤1 then x else 1208 have clipEq (x : R) (hx : x≤1) : clip x=x := by simp [clip,hx]209 have C : ContinuousSupport (fun x => T.loss (clip x)) := by210 intro c hc ε he211 refine ⟨ε,he,?_⟩212 intro x hx xl xr213 have pair (a d : R) (ha : 0≤a) (ad : a≤d) :214 0≤clip a ∧ clip a≤clip d ∧ clip d≤1 ∧ clip d-clip a≤d-a := by215 dsimp [clip]; split <;> split <;> grind216 by_cases cx : c≤x217 · obtain ⟨a,d,bound,dist⟩ := pair c x hc cx218 have h := M (clip c) (clip x) a d bound; grind219 · obtain ⟨a,d,bound,dist⟩ := pair x c hx (by grind)220 have h := M (clip x) (clip c) a d bound; grind221 have mono (x y : R) (hx : 0≤x) (xy : x<y) (hy : y≤1) : T.loss (clip x)<T.loss (clip y) := by222 rw [clipEq x (by grind),clipEq y hy]; exact (M x y hx (le_of_lt xy) hy).2.2 xy223 have Q := boardTypeCutoffs (fun x => T.loss (clip x)) b complete C mono224 obtain ⟨low,high,mid⟩ := Q225 refine ⟨z,fun m hm h1 => ⟨(T.typeRank comp m hm (le_of_lt h1)).1,(spec m hm h1).1⟩,?_,?_,?_⟩226 · intro smallB m hm h1227 have base : b≤T.loss (clip 0) := by rw [clipEq 0 (by grind)]; exact smallB228 have h := low base m hm h1229 rw [clipEq m (le_of_lt h1)] at h230 exact (spec m hm h1).2.1.mpr h231 · intro largeB m hm h1232 have base : T.loss (clip 1)≤b := by rw [clipEq 1 (by grind)]; exact largeB233 have h := high base m hm h1234 rw [clipEq m (le_of_lt h1)] at h235 exact (spec m hm h1).2.2.2.mpr h236 · intro first last237 obtain ⟨cut,hcut,c1,_,classify⟩ := mid238 (by simpa only [clipEq 0 (by grind)] using first) (by simpa only [clipEq 1 (by grind)] using last)239 refine ⟨cut,hcut,c1,?_⟩240 intro m hm h1241 have H := classify m (le_of_lt hm) (le_of_lt h1)242 simp only [clipEq m (le_of_lt h1)] at H243 have S := (spec m hm h1).2244 grind245end TwoTypes246end Signaling