Scapegoating.lean
Board Support, CEO (Mis)Reporting, and Scapegoating · December 2, 2026 verification
1import Std2open Std Lean.Grind3namespace Scapegoating45variable {R : Type} [Field R] [LE R] [LT R] [IsLinearOrder R] [LawfulOrderLT R] [OrderedRing R]67omit [LawfulOrderLT R] in8private theorem positiveProduct {a b : R} (ha : 0 < a) (hb : 0 < b) : 0 < a*b :=9 OrderedRing.mul_pos ha hb1011private theorem nonnegativeProduct {a b : R} (ha : 0 ≤ a) (hb : 0 ≤ b) : 0 ≤ a*b :=12 OrderedRing.mul_nonneg ha hb1314/-- The manuscript's IC-L and IC-H after subtracting the payoff from reputation15at the true signal. All four payments are subject to limited liability. -/16def Truthful (m r lo hi d0 dx : R) : Prop :=17 0 ≤ lo ∧ 0 ≤ hi ∧ 0 ≤ d0 ∧ 0 ≤ dx ∧18 m*(hi+r)+(1-m)*d0 ≤ lo ∧ m*lo+(1-m)*dx ≤ hi+m*r1920def cost (p lo hi : R) := (1-p)*lo + p*hi2122/-- Proposition 1. The displayed contract is feasible and cheapest among23all four-payment truthful contracts, including those with payments on detection. -/24theorem leastCost (p m r : R) (hp : 0 < p) (hp1 : p < 1)25 (hm : 0 < m) (hm1 : m < 1) (hr : 0 < r) :26 Truthful m r (m*r) 0 0 0 ∧27 cost p (m*r) 0 = m*(1-p)*r ∧28 ∀ lo hi d0 dx, Truthful m r lo hi d0 dx →29 cost p (m*r) 0 ≤ cost p lo hi := by30 have hmr := positiveProduct hm hr31 have hc : 0 < 1-m := by grind32 have hslack := positiveProduct hc hmr33 refine ⟨?_, ?_, ?_⟩34 · unfold Truthful35 grind36 · unfold cost37 grind38 · intro lo hi d0 dx h39 obtain ⟨_,hw,hd,_,hl,_⟩ := h40 have := nonnegativeProduct (le_of_lt hm) hw41 have := nonnegativeProduct (le_of_lt hc) hd42 have hlower : m*r ≤ lo := by grind43 have := OrderedRing.mul_le_mul_of_nonneg_left hlower (c := 1-p) (by grind)44 have := nonnegativeProduct (le_of_lt hp) hw45 unfold cost46 grind4748/-- Strict advantage over each alternative in Lemma 1. The four upper bounds49are pooling high, pooling low with continuation, pooling low with liquidation,50and inversion at its least possible compensation, respectively. -/51theorem pureRegimes (p m r X L : R) (_hp : 0 < p) (hp1 : p < 1)52 (hm : 0 < m) (hm1 : m < 1) (hr : 0 < r) (hr1 : r < 1)53 (hL : 1 < L) (hcontinue : L < p*X) :54 let truth := p*X+(1-p)*L-m*(1-p)*r55 p*X+(1-m)*(1-p)*L < truth ∧ p*X < truth ∧56 L+(1-m)*p*(X-L) < truth ∧ p*X+(1-p)*L-(1-p)*r < truth := by57 dsimp only58 have hf : 0 < 1-p := by grind59 have hmr := positiveProduct (b := r) (a := 1-m) (by grind) hr60 have hg := positiveProduct (positiveProduct hm hf) (b := L-r) (by grind)61 have hg2 := positiveProduct hf (b := L-m*r) (by grind)62 have hg3 := positiveProduct hm (b := p*X-L) (by grind)63 have hg4 := positiveProduct hf hmr64 grind6566/-- The inversion IC implies the compensation lower bound used in Lemma 1. -/67theorem inversionCostBound (p r lo hi d0 dx m : R)68 (hp : 0 < p) (hp1 : p < 1) (hm : 0 < m) (hm1 : m < 1)69 (hl : 0 ≤ lo) (hd : 0 ≤ dx) (hic : lo+r ≤ m*hi+(1-m)*d0) :70 (1-p)*r ≤ (1-p)*(m*hi+(1-m)*d0)+p*(m*lo+(1-m)*dx) := by71 have := nonnegativeProduct (le_of_lt hm) hl72 have := nonnegativeProduct (a := 1-m) (by grind) hd73 have h := nonnegativeProduct (le_of_lt hp) (b := m*lo+(1-m)*dx) (by grind)74 have := OrderedRing.mul_le_mul_of_nonneg_left (show r ≤ m*hi+(1-m)*d0 by grind) (c := 1-p) (by grind)75 grind7677/-- Bayes' rule in levels. The common effort multiplier is a; a=1 is the baseline. -/78def mix (β G B : R) := β*G+(1-β)*B79def highRep (β G p : R) := β*G/p80def lowRep (β G p a : R) := β*(1-a*G)/(1-a*p)81def spread (β G p a : R) := highRep β G p-lowRep β G p a8283theorem probabilityBounds (β G B a : R) (hb : 0 < β) (hb1 : β < 1)84 (hB : 0 < B) (hBG : B < G) (hG : G < 1) (ha : 0 < a) (ha1 : a ≤ 1) :85 let p := mix β G B86 B < p ∧ p < G ∧ 0 < a*p ∧ a*p < 1 := by87 have hleft := positiveProduct hb (b := G-B) (by grind)88 have hright := positiveProduct (a := 1-β) (by grind) (b := G-B) (by grind)89 have hp : 0 < mix β G B := by unfold mix; grind90 have hap := positiveProduct ha hp91 have hu := OrderedRing.mul_le_mul_of_nonneg_right ha1 (le_of_lt hp)92 unfold mix at *93 grind9495/-- Lemma A1, including the Bayes plausibility identity. -/96theorem bayesCancellation (β G B a : R) (hb : 0 < β) (hb1 : β < 1)97 (hB : 0 < B) (hBG : B < G) (hG : G < 1) (ha : 0 < a) (ha1 : a ≤ 1) :98 let p := mix β G B99 a*p*highRep β G p + (1-a*p)*lowRep β G p a = β ∧100 (1-a*p)*spread β G p a = β*(1-β)*(G-B)/p := by101 let p := mix β G B102 obtain ⟨hl, _, _, hh⟩ := probabilityBounds β G B a hb hb1 hB hBG hG ha ha1103 have hp : p ≠ 0 := by dsimp [p]; grind104 have hf : 1-a*p ≠ 0 := by dsimp [p]; grind105 have H := Field.div_mul_cancel (x := β*G) hp106 have L := Field.div_mul_cancel (x := β*(1-a*G)) hf107 have hK := Field.div_mul_cancel (x := β*(1-β)*(G-B)) hp108 change a*p*highRep β G p+(1-a*p)*lowRep β G p a = β ∧109 (1-a*p)*spread β G p a = β*(1-β)*(G-B)/p110 have hmix : p = β*G+(1-β)*B := rfl111 unfold spread highRep lowRep112 constructor113 · grind114 · have := Field.mul_inv_cancel hp115 grind116117/-- Strict posterior ordering and the upper bound on the reputation spread. -/118theorem spreadBounds (β G B a : R) (hb : 0 < β) (hb1 : β < 1)119 (hB : 0 < B) (hBG : B < G) (hG : G < 1) (ha : 0 < a) (ha1 : a ≤ 1) :120 let p := mix β G B121 0 < spread β G p a ∧ spread β G p a < 1 := by122 let p := mix β G B123 obtain ⟨hl, _, _, hh⟩ := probabilityBounds β G B a hb hb1 hB hBG hG ha ha1124 have hp : 0 < p := by dsimp [p]; grind125 have hf : 0 < 1-a*p := by dsimp [p]; grind126 have hga := OrderedRing.mul_le_mul_of_nonneg_right ha1 (c := G) (by grind)127 have hpG : β*G < p := by128 have := positiveProduct (a := 1-β) (by grind) hB129 dsimp [p,mix]; grind130 have lnum := positiveProduct hb (b := 1-a*G) (by grind)131 have posnum := positiveProduct (positiveProduct hb (b := 1-β) (by grind)) (b := G-B) (by grind)132 obtain ⟨_,hweighted⟩ := bayesCancellation β G B a hb hb1 hB hBG hG ha ha1133 change (1-a*p)*spread β G p a = _ at hweighted134 have hrp := Field.div_mul_cancel (x := β*G) (show p ≠ 0 by grind)135 have hrm := Field.div_mul_cancel (x := β*(1-a*G)) (show 1-a*p ≠ 0 by grind)136 have hkp := Field.div_mul_cancel (x := β*(1-β)*(G-B)) (show p ≠ 0 by grind)137 have hHigh : highRep β G p < 1 := by138 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_right hp).mp139 unfold highRep140 grind141 have hLow : 0 < lowRep β G p a := by142 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_right hf).mp143 unfold lowRep144 grind145 have hk : 0 < β*(1-β)*(G-B)/p := by146 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_right hp).mp147 grind148 change 0 < spread β G p a ∧ spread β G p a < 1149 constructor150 · apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left hf).mp151 grind152 · unfold spread; grind153154/-- At a given support level, primitive derivative ordering implies opposite155posterior slopes. The quotient-rule equations are given in denominator-cleared form. -/156theorem posteriorSlopes (β G B dG dB p dH dL : R)157 (hb : 0 < β) (hb1 : β < 1) (hB : 0 < B) (hBG : B < G) (hG : G < 1)158 (hB' : 0 < dB) (hc : G*dB < B*dG) (hp : p = mix β G B)159 (hH : p*p*dH = β*(1-β)*(B*dG-G*dB))160 (hL : (1-p)*(1-p)*dL = β*(1-β)*((1-G)*dB-(1-B)*dG)) :161 0 < dH ∧ dL < 0 ∧ 0 < dH-dL := by162 obtain ⟨hl,hu,_,_⟩ := probabilityBounds β G B 1 hb hb1 hB hBG hG (by exact OrderedRing.zero_lt_one) (by grind)163 have hp0 : 0 < p := by grind164 have hf : 0 < 1-p := by grind165 have dg : dB < dG := by166 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left hB).mp167 have := OrderedRing.mul_lt_mul_of_pos_right hBG hB'168 grind169 have hgap1 := positiveProduct (a := 1-B) (by grind) (b := dG-dB) (by grind)170 have hgap2 := positiveProduct (a := G-B) (by grind) hB'171 have hprior := positiveProduct hb (b := 1-β) (by grind)172 have h1 := positiveProduct hprior (b := B*dG-G*dB) (by grind)173 have h2 := positiveProduct hprior (b := (1-B)*dG-(1-G)*dB) (by grind)174 have hdh : 0 < dH := by175 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left (positiveProduct hp0 hp0)).mp176 grind177 have hdl : dL < 0 := by178 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left (positiveProduct hf hf)).mp179 grind180 grind181/-- The reduced cost expression expressed using the likelihood ratio.182The hypotheses rule out zero denominators. -/183theorem likelihoodCost (β G B m p : R) (hp : p = mix β G B)184 (hp0 : p ≠ 0) (hB : B ≠ 0) :185 m*(β*(1-β)*(G-B)/p) = m*(1-β)*(1-1/(1-β+β*(G/B))) := by186 have hrat := Field.div_mul_cancel (x := G) hB187 have hk := Field.div_mul_cancel (x := β*(1-β)*(G-B)) hp0188 have hpB : (1-β+β*(G/B))*B = p := by unfold mix at hp; grind189 have hden : 1-β+β*(G/B) ≠ 0 := by grind190 have hrec := Field.div_mul_cancel (x := (1:R)) hden191 have := Field.mul_inv_cancel hp0192 unfold mix at hp193 grind194195/-- Differentiated Bayes equations. dk is the cost derivative, formed from196k = m(1-β)(1-B/p). Both quotient-rule expressions are denominator-cleared.197The sign of dk equals the sign of the difference of log derivatives. -/198theorem marginalCost (β G B m p dG dB dp dk : R)199 (hp : p = mix β G B) (hdp : dp = mix β dG dB)200 (hdk : p*p*dk = m*(1-β)*(B*dp-dB*p))201 (hp0 : 0 < p) (hm : 0 < m) (hb : 0 < β) (hb1 : β < 1) :202 (0 < dk ↔ G*dB < B*dG) ∧ (dk < 0 ↔ B*dG < G*dB) := by203 have hfac := positiveProduct (positiveProduct hm hb) (b := 1-β) (by grind)204 have hpp := positiveProduct hp0 hp0205 have hid : p*p*dk = (m*β*(1-β))*(B*dG-G*dB) := by unfold mix at hp hdp; grind206 constructor <;> constructor <;> intro h207 · have hh := positiveProduct hpp h208 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left hfac).mp209 grind210 · have hh := positiveProduct hfac (b := B*dG-G*dB) (by grind)211 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left hpp).mp212 grind213 · have hh := positiveProduct hpp (b := -dk) (by grind)214 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left hfac).mp215 grind216 · have hh := positiveProduct hfac (b := G*dB-B*dG) (by grind)217 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left hpp).mp218 grind219220/-- Maximization on nonnegative support. -/221def Maximizes (V : R → R) (s : R) : Prop := 0 ≤ s ∧ ∀ x, 0 ≤ x → V x ≤ V s222223/-- A directional derivative has nearby secants with arbitrarily small errors.224For an interior benchmark this is an immediate consequence of differentiability. -/225def TwoSidedSecants (V : R → R) (s d : R) : Prop :=226 ∀ ε, 0 < ε →227 (∃ l, 0 ≤ l ∧ l < s ∧ V l > V s+(d+ε)*(l-s)) ∧228 (∃ u, s < u ∧ V u > V s+(d-ε)*(u-s))229230/-- A concave objective lies below its supporting tangent.231Together with the two-sided derivative at an interior benchmark this permits232a corner at zero for the distorted optimum. -/233theorem supportFromSlope (V : R → R) (s fb d : R) (hf : 0 < fb)234 (hs : Maximizes V s) (htan : ∀ x, 0 ≤ x → V x ≤ V fb+d*(x-fb))235 (hsec : TwoSidedSecants V fb d) :236 (d < 0 → s < fb) ∧ (0 < d → fb < s) := by237 obtain ⟨hs0, hmax⟩ := hs238 have ht := htan s hs0239 constructor240 · intro h241 obtain ⟨l,hl,hlt,hgain⟩ := (hsec (-d) (by grind)).1242 have hbeat := hmax l hl243 apply Classical.byContradiction244 intro hbad245 have hprod := nonnegativeProduct (a := -d) (by grind) (b := s-fb) (by grind)246 grind247 · intro h248 obtain ⟨u,hgt,hgain⟩ := (hsec d h).2249 have hbeat := hmax u (by grind)250 apply Classical.byContradiction251 intro hbad252 have hprod := nonnegativeProduct (a := d) (by grind) (b := fb-s) (by grind)253 grind254255/-- Proposition 2. dg and db are the primitive success-probability derivatives256at the frictionless optimum. Its surplus slope vanishes, leaving -dk as the257slope of V. The tangent and secant hypotheses express the calculus step. -/258theorem supportDistortion (V : R → R) (s fb β G B m p dG dB dp dk : R)259 (hf : 0 < fb) (hs : Maximizes V s)260 (hp : p = mix β G B) (hdp : dp = mix β dG dB)261 (hdk : p*p*dk = m*(1-β)*(B*dp-dB*p))262 (hp0 : 0 < p) (hm : 0 < m) (hb : 0 < β) (hb1 : β < 1)263 (htan : ∀ x, 0 ≤ x → V x ≤ V fb+(-dk)*(x-fb))264 (hsec : TwoSidedSecants V fb (-dk)) :265 (G*dB < B*dG → s < fb) ∧ (B*dG < G*dB → fb < s) := by266 obtain ⟨hup, hdown⟩ := marginalCost β G B m p dG dB dp dk hp hdp hdk hp0 hm hb hb1267 obtain ⟨hleft, hright⟩ := supportFromSlope V s fb (-dk) hf hs htan hsec268 constructor269 · intro h; have := hup.mpr h; apply hleft; grind270 · intro h; have := hdown.mpr h; apply hright; grind271272/-- The baseline disclosure and silence objectives coincide on the diagonal.273Every fixed point of the silent best response can be replicated by disclosure. -/274def silentValue (W P rho : R → R) (m s conjecture : R) :=275 W s-m*(1-P s)*rho conjecture276277omit [LawfulOrderLT R] [OrderedRing R] in278theorem disclosureDeviation (W P rho : R → R) (m star dag : R)279 (hstar : Maximizes (fun s => silentValue W P rho m s s) star)280 (hdag : Maximizes (fun s => silentValue W P rho m s dag) dag) :281 (∀ x, 0 ≤ x → silentValue W P rho m x dag ≤ silentValue W P rho m star star) ∧282 ((∀ x, 0 ≤ x → x ≠ star → silentValue W P rho m x x < silentValue W P rho m star star) →283 dag ≠ star → silentValue W P rho m dag dag < silentValue W P rho m star star) := by284 constructor285 · intro x hx286 exact le_trans (hdag.2 x hx) (hstar.2 dag hdag.1)287 · intro hunique hne288 exact hunique dag hdag.1 hne289290theorem silentSupport (W P rho : R → R) (m fb dag : R)291 (hfb : Maximizes W fb) (hdag : Maximizes (fun s => silentValue W P rho m s dag) dag)292 (hm : 0 < m) (hr : 0 < rho dag)293 (hP : ∀ x, 0 ≤ x → x < fb → P x < P fb) : fb ≤ dag := by294 apply Classical.byContradiction295 intro h296 have hg := positiveProduct (positiveProduct hm hr) (b := P fb-P dag) (by have := hP dag hdag.1 (by grind); grind)297 have hw := hfb.2 dag hdag.1298 have hd := hdag.2 fb hfb.1299 unfold silentValue at hd300 grind301302/-- Any optimizer of W less a perturbation between zero and m loses at most m303in gross surplus. This is uniform in the conjecture after silence. -/304theorem welfareLocalization (W fee : R → R) (fb s m : R) (hfb : Maximizes W fb)305 (hs : Maximizes (fun x => W x-fee x) s) (h0 : 0 ≤ fee s) (h1 : fee fb ≤ m) :306 W fb-W s ≤ m := by307 have h := hs.2 fb hfb.1308 dsimp at h309 grind310311/-- Derivative of total surplus at a Bayes-plausible binary posterior.312tangentGap is the strict lower-posterior tangent inequality from convexity. -/313theorem welfareSlope (p dp hi lo dhi dlo valH valL gradH gradL dW dT : R)314 (hbayes : dp*(hi-lo)+p*dhi+(1-p)*dlo = 0)315 (hT : dT = dW+dp*(valH-valL)+p*gradH*dhi+(1-p)*gradL*dlo)316 (hp : 0 < p) (hdp : 0 < dp) (hH : 0 < dhi)317 (tangentGap : gradL*(hi-lo) < valH-valL) (gradientGap : gradL < gradH) :318 dW < dT := by319 have h1 := positiveProduct hdp (b := valH-valL-gradL*(hi-lo)) (by grind)320 have h2 := positiveProduct (positiveProduct hp hH) (b := gradH-gradL) (by grind)321 have he := congrArg (fun x => gradL*x) hbayes322 try dsimp at he323 grind324325/-- Least-cost fixed-interior-effort contract, Lemma 2. q denotes326ψe/(a' P̄), the required high/low payoff wedge. The maximum of zero and327q/(1-m)-r is represented by its two branches. -/328theorem targetContract (h m r q hi : R) (_hp : 0 < h) (_hp1 : h < 1)329 (hm : 0 < m) (hm1 : m < 1) (hr : 0 < r) (hq : 0 ≤ q)330 (hhi : (hi = 0 ∧ q ≤ (1-m)*r) ∨331 (0 ≤ hi ∧ (1-m)*(hi+r) = q)) :332 let lo := hi+r-q333 Truthful m r lo hi 0 0 ∧ hi-lo+r = q ∧334 ∀ lo' hi' d0 dx, Truthful m r lo' hi' d0 dx → hi'-lo'+r = q →335 cost h lo hi ≤ cost h lo' hi' ∧336 (cost h lo hi = cost h lo' hi' → hi = hi' ∧ lo = lo') := by337 dsimp only338 have hc : 0 < 1-m := by grind339 have hnon : 0 ≤ hi := by grind340 have hbound : q ≤ (1-m)*(hi+r) := by341 cases hhi with342 | inl c => rw [c.1]; grind343 | inr c => rw [c.2]; grind344 have hmpos := positiveProduct hm (b := hi+r) (by grind)345 have h1 := nonnegativeProduct (le_of_lt hc) hnon346 have h2 := nonnegativeProduct (le_of_lt hm) hq347 refine ⟨?_,?_,?_⟩348 · unfold Truthful; grind349 · grind350 · intro lo' hi' d0 dx hc' hq'351 obtain ⟨_,hb,hd,_,hl,_⟩ := hc'352 have h3 := nonnegativeProduct (le_of_lt hc) hd353 have hiBound : hi ≤ hi' := by354 cases hhi with355 | inl hcase => grind356 | inr hcase =>357 apply (Field.IsOrdered.mul_le_mul_iff_of_pos_left hc).mp358 grind359 have heq : lo' = hi'+r-q := by grind360 rw [heq]361 unfold cost362 grind363364/-- The effort-response denominator and numerator at a fixed bonus,365with the slope condition used for sufficiently large ψ written explicitly. -/366theorem effortResponse (m p dp r rS rE B slope eS : R)367 (hm : 0 < m) (hm1 : m < 1) (hp : 0 < p) (hdp : 0 < dp)368 (hr : 0 < r) (hrS : 0 < rS) (hrE : 0 ≤ rE) (hB : 0 ≤ B)369 (hslope : p*rE < slope)370 (hfoc : (slope-(1-m)*p*rE)*eS = (1-m)*(dp*(r+B)+p*rS)) : 0 < eS := by371 have := nonnegativeProduct (le_of_lt (positiveProduct hm hp)) hrE372 have hd : 0 < slope-(1-m)*p*rE := by grind373 have h1 := positiveProduct hdp (b := r+B) (by grind)374 have h2 := positiveProduct hp hrS375 have h3 := positiveProduct (a := 1-m) (by grind) (b := dp*(r+B)+p*rS) (by grind)376 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left hd).mp377 grind378379/-- No optimal bonus reaches X-L. Compare a candidate at any induced success380probability to the zero-bonus contract at its own induced probability. -/381theorem bonusDominance (h h0 m B spreadX L K C : R) (hh : 0 < h) (hh1 : h < 1)382 (hh0 : 0 < h0) (hm : 0 < m) (hx : 0 < spreadX) (hB : spreadX ≤ B) :383 L+h*spreadX-B*(h+(1-h)*m)-K-C < L+h0*spreadX-K-C := by384 have := nonnegativeProduct (le_of_lt hh) (b := B-spreadX) (by grind)385 have := positiveProduct (positiveProduct hm (b := 1-h) (by grind)) (b := B) (by grind)386 have := positiveProduct hh0 hx387 grind388389/-- Proposition 3(ii), positive-bonus branch. The two identities are the390differentiated effort FOC and envelope in the manuscript. -/391theorem positiveBonusCross (curv t e eS dR rE floorTerm controlTerm rEE scale cross : R)392 (hc : 0 < curv) (ht : 0 < t) (he : 0 ≤ e) (hr : 0 < rEE)393 (hd : rE*t < dR) (hf : 0 ≤ floorTerm) (hm : 0 ≤ controlTerm) (hscale : 0 < scale)394 (hFOC : curv*(eS-e*t) = dR-rE*t+t*(floorTerm+controlTerm+e*rEE))395 (hEnv : cross = scale*(e*t-eS)) : cross < 0 := by396 have := nonnegativeProduct he (le_of_lt hr)397 have := nonnegativeProduct (le_of_lt ht) (b := floorTerm+controlTerm+e*rEE) (by grind)398 have hgap : 0 < eS-e*t := by399 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left hc).mp400 grind401 have := positiveProduct hscale hgap402 grind403404/-- Proposition 3(ii), zero-bonus branch. The implicit response is the405quotient n/d = -P̄ e_m. This proves its total support derivative is positive406and yields the negative cross-partial. -/407theorem zeroBonusCross (n d dn dd dq dk a x cross : R)408 (hn : 0 < n) (hd : 0 < d) (hdn : 0 < dn) (hdd : dd ≤ 0)409 (hdk : 0 < dk) (ha : 0 < a) (hx : 0 < x)410 (hquot : d*d*dq = dn*d-n*dd) (hvalue : cross = -dk-a*x*dq) : cross < 0 := by411 have := positiveProduct hdn hd412 have := nonnegativeProduct (le_of_lt hn) (b := -dd) (by grind)413 have hq : 0 < dq := by414 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left (positiveProduct hd hd)).mp415 grind416 have := positiveProduct (positiveProduct ha hx) hq417 grind418419/-- Strict decreasing differences plus two interior FOCs and a strictly420decreasing support derivative rank the two optimizers. -/421theorem effortOptimumFalls (D : R → R → R) (m₁ m₂ s₁ s₂ : R)422 (_hm : m₁ < m₂) (h1 : D s₁ m₁ = 0) (h2 : D s₂ m₂ = 0)423 (controls : ∀ s, D s m₂ < D s m₁) (support : ∀ x y, x < y → D y m₁ < D x m₁) :424 s₂ < s₁ := by425 have := controls s₂426 by_cases he : s₁ < s₂427 · have := support _ _ he428 grind429 · grind430431/-- Lemma 3. Under the ceiling on correction payments and truth-favoring ties,432the two strict inversion constraints cannot hold simultaneously. -/433theorem noInversion (m r lo hi d0 dx : R) (hm : m < 1)434 (h0 : d0 ≤ hi) (hx : dx ≤ lo) :435 ¬ (hi < m*lo+(1-m)*dx+r ∧ lo+r < m*hi+(1-m)*d0) := by436 intro h437 have hh := nonnegativeProduct (a := 1-m) (by grind) (b := hi+lo-d0-dx) (by grind)438 grind439440/-- Pooling high with effort at least e₀. q = ψe/[(1-m)a'P̄], and the441pooled posterior gives (h+m(1-h))*(hi-d0-q)+h*r ≥ 0. -/442theorem highPoolingSameEffort (h m r q hi d0 X L : R)443 (_hh : 0 < h) (hh1 : h < 1) (hm : 0 < m) (hL : 0 < L) (hd : 0 ≤ d0)444 (hw : 0 ≤ (h+m*(1-h))*(hi-d0-q)+h*r) :445 h*X+(1-m)*(1-h)*L-((h+m*(1-h))*hi+(1-m)*(1-h)*d0) <446 h*X+(1-h)*L-((h+m*(1-h))*q-h*r) := by447 have := positiveProduct (positiveProduct hm (b := 1-h) (by grind)) hL448 grind449450/-- Pooling low cannot give e ≥ e₀. w is the increasing function whose451unique zero is the effort of the truthful zero-bonus contract. -/452theorem lowPoolingEffort (h m r e e0 q : R) (w : R → R)453 (hh : 0 < h) (hh1 : h < 1) (hm : 0 < m) (hm1 : m < 1) (hr : 0 < r)454 (hpool : (1-h+m*h)*q ≤ (1-m)*(1-h)*r)455 (hw : w e = q-(1-m)*r) (hw0 : w e0 = 0)456 (hmono : ∀ x y, x < y → w x < w y) : e < e0 := by457 have hmh := positiveProduct hm hh458 have hc : 0 < 1-h+m*h := by grind459 have hgap := positiveProduct (positiveProduct (a := 1-m) (by grind) hr) hmh460 have hlt : q < (1-m)*r := by461 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left hc).mp462 grind463 by_cases h : e0 < e464 · have := hmono _ _ h465 grind466 · grind467468/-- Low-effort pooling. The one truthful contract at e₀ beats both decisions469after each unflagged pooled report. K = (1-h)ρ is the effort-invariant cost.470The last inequality covers unconditional liquidation. -/471theorem poolingBelowBoundary (h h0 m r K X L : R) (_hh : 0 < h) (hh1 : h < 1)472 (hh0 : h < h0) (hm : 0 < m) (hm1 : m < 1) (hr : 0 < r) (hrL : r < L)473 (hx : L < X) (hK : K = (1-h)*r) (hviable : K < h*(X-L)) :474 let truth := L+h0*(X-L)-m*K475 h*X+(1-m)*(1-h)*L < truth ∧ h*X < truth ∧ L+(1-m)*h*(X-L) < truth ∧ L < truth := by476 dsimp only477 subst K478 have hg := positiveProduct (a := h0-h) (by grind) (b := X-L) (by grind)479 have hliq := positiveProduct (a := 1-h) (by grind) (b := L-r) (by grind)480 have hctrl := positiveProduct (a := 1-m) (by grind) (positiveProduct (a := 1-h) (by grind) hr)481 have hmh := positiveProduct hm hliq482 have hmv := positiveProduct hm (b := h*(X-L)-(1-h)*r) (by grind)483 grind484485/-- An interval sign-change theorem, proved here from the least-upper-bound486property. The sign neighborhoods are the two open-preimage consequences of487continuity. Its interval-restricted formulation includes both endpoints. -/488theorem continuousCrossing (F : R → R) (a b : R) (hab : a < b)489 (ha : 0 < F a) (hb : F b < 0)490 (supremum : ∀ S : R → Prop, (∃ x, S x) → (∀ x, S x → x ≤ b) →491 ∃ c, (∀ x, S x → x ≤ c) ∧ ∀ u, (∀ x, S x → x ≤ u) → c ≤ u)492 (rightPos : ∀ c, a ≤ c → c < b → 0 < F c → ∃ y, c < y ∧ y ≤ b ∧ 0 < F y)493 (leftNeg : ∀ c, a < c → c ≤ b → F c < 0 →494 ∃ y, y < c ∧ ∀ x, y < x → x ≤ c → F x < 0) :495 ∃ c, a < c ∧ c < b ∧ F c = 0 := by496 let S := fun x => a ≤ x ∧ x ≤ b ∧ 0 < F x497 obtain ⟨c, hub, hleast⟩ := supremum S ⟨a, by dsimp [S]; grind⟩ (fun _ h => h.2.1)498 have hac := hub a (show S a by dsimp [S]; grind)499 have hcb := hleast b (fun _ h => h.2.1)500 have hzero : F c = 0 := by501 by_cases pos : 0 < F c502 · have hlt : c < b := by grind503 obtain ⟨y, hy, hyb, hfy⟩ := rightPos c hac hlt pos504 have := hub y (show S y by dsimp [S]; grind)505 grind506 · by_cases neg : F c < 0507 · obtain ⟨y, hy, hneg⟩ := leftNeg c (by grind) hcb neg508 have := hleast y (by509 intro x hx510 have hxc := hub x hx511 have hfx := hx.2.2512 by_cases h : y < x513 · have := hneg x h hxc; grind514 · grind)515 grind516 · grind517 exact ⟨c, by grind, by grind, hzero⟩518519/-- Existence of a silent fixed point using the continuous *diagonal*520marginal payoff. It is enough to bracket that slope. Concavity turns its521interior zero into a global best response at the correct conjecture. -/522theorem silentFixedPoint (U : R → R → R) (F : R → R) (b : R) (hb : 0 < b)523 (hleft : 0 < F 0) (hright : F b < 0)524 (supremum : ∀ S : R → Prop, (∃ x, S x) → (∀ x, S x → x ≤ b) →525 ∃ c, (∀ x, S x → x ≤ c) ∧ ∀ u, (∀ x, S x → x ≤ u) → c ≤ u)526 (rightPos : ∀ c, 0 ≤ c → c < b → 0 < F c → ∃ y, c < y ∧ y ≤ b ∧ 0 < F y)527 (leftNeg : ∀ c, 0 < c → c ≤ b → F c < 0 →528 ∃ y, y < c ∧ ∀ x, y < x → x ≤ c → F x < 0)529 (htan : ∀ c, 0 < c → c < b → ∀ x, 0 ≤ x → U x c ≤ U c c+F c*(x-c)) :530 ∃ c, Maximizes (fun x => U x c) c := by531 obtain ⟨c, hc, hcb, hz⟩ := continuousCrossing F 0 b hb hleft hright supremum rightPos leftNeg532 refine ⟨c, le_of_lt hc, ?_⟩533 intro x hx534 have := htan c hc hcb x hx535 rw [hz] at this536 grind537538/-- Construct the right endpoint for silentFixedPoint. Coercivity and the539uniform compensation bound supply b with W b < W 0 - m. A nonnegative540diagonal slope at b would contradict concavity's tangent bound at zero. -/541theorem silentRightEndpoint (W P rho : R → R) (b m d : R) (hb : 0 < b)542 (hloss : W b < W 0-m)543 (hcost0 : m*(1-P 0)*rho b ≤ m) (hcostB : 0 ≤ m*(1-P b)*rho b)544 (htan : silentValue W P rho m 0 b ≤ silentValue W P rho m b b+d*(0-b)) : d < 0 := by545 unfold silentValue at htan546 by_cases h : 0 ≤ d547 · have := nonnegativeProduct (le_of_lt hb) h548 grind549 · grind550551/-- Low support cannot be hidden profitably under complementarity.552Every silent equilibrium would attain the optimum at a fixed point. -/553theorem strictDisclosure (W P rho : R → R) (m fb star dag : R)554 (hstar : Maximizes (fun x => silentValue W P rho m x x) star)555 (hdag : Maximizes (fun x => silentValue W P rho m x dag) dag)556 (hfb : Maximizes W fb) (hunder : star < fb)557 (hm : 0 < m) (hr : 0 < rho dag) (hP : ∀ x, 0 ≤ x → x < fb → P x < P fb)558 (unique : ∀ x, 0 ≤ x → x ≠ star → silentValue W P rho m x x < silentValue W P rho m star star) :559 fb ≤ dag ∧ (∀ x, 0 ≤ x → silentValue W P rho m x dag < silentValue W P rho m star star) := by560 have hd := silentSupport W P rho m fb dag hfb hdag hm hr hP561 have hgap := (disclosureDeviation W P rho m star dag hstar hdag).2 unique (by grind)562 exact ⟨hd, fun x hx => lt_of_le_of_lt (hdag.2 x hx) hgap⟩563564/-- A neighborhood with strictly increasing total surplus and the surplus565gap outside it deliver Proposition 5 for every silent optimizer, uniformly. -/566theorem localWelfareRanking (W T feeDisclosure feeSilence : R → R) (I : R → Prop)567 (m gap fb star dag : R) (hfb : Maximizes W fb)568 (hs : Maximizes (fun x => W x-feeDisclosure x) star)569 (hd : Maximizes (fun x => W x-feeSilence x) dag)570 (hfeeS : 0 ≤ feeDisclosure star ∧ feeDisclosure fb ≤ m)571 (hfeeD : 0 ≤ feeSilence dag ∧ feeSilence fb ≤ m)572 (hgap : m < gap) (outside : ∀ x, 0 ≤ x → ¬ I x → gap ≤ W fb-W x)573 (hincrease : ∀ x y, I x → I y → x < y → T x < T y)574 (horder : star < fb ∧ fb ≤ dag) : T star < T dag := by575 have h1 := welfareLocalization W feeDisclosure fb star m hfb hs hfeeS.1 hfeeS.2576 have h2 := welfareLocalization W feeSilence fb dag m hfb hd hfeeD.1 hfeeD.2577 have hI : ∀ x, 0 ≤ x → W fb-W x ≤ m → I x := by578 intro x hx hnear579 apply Classical.byContradiction580 intro h581 have := outside x hx h582 grind583 exact hincrease _ _ (hI _ hs.1 h1) (hI _ hd.1 h2) (by grind)584585/-- OA1. Any separating equilibrium must place the low type at its operating586optimum, and the high type above it, by revelation and strict single crossing.587devLow is the payoff bound from the low type's deviation to its own optimum. -/588theorem separatingNecessity (V0 V1 : R → R) (f l h b : R)589 (best : ∀ x, x ≠ f → V0 x < V0 f) (devLow : V0 f ≤ V0 l)590 (sep : l ≠ h) (ic0 : V0 h+b ≤ V0 l) (ic1 : V1 l ≤ V1 h+b)591 (cross : ∀ x y, x < y → V1 x-V0 x < V1 y-V0 y) :592 l = f ∧ l < h := by593 have hl : l = f := by594 by_cases he : l = f595 · exact he596 · have := best l he; grind597 constructor598 · exact hl599 · by_cases rev : h < l600 · have := cross h l rev; grind601 · grind602603/-- OA1. Threshold beliefs deter both types at every deviation. V0 and V1604are operating payoffs; below the signal the appointment benefit is zero. -/605theorem separatingSufficiency (V0 V1 : R → R) (f0 f1 z b : R)606 (hb : 0 ≤ b) (_hf : f0 < f1) (hz : f1 ≤ z)607 (max0 : ∀ x, 0 ≤ x → V0 x ≤ V0 f0) (max1 : ∀ x, 0 ≤ x → V1 x ≤ V1 f1)608 (hf1 : 0 ≤ f1)609 (tail0 : ∀ x, z ≤ x → V0 x ≤ V0 z) (tail1 : ∀ x, z ≤ x → V1 x ≤ V1 z)610 (ic0 : V0 z+b ≤ V0 f0)611 (binds : f1 < z → V0 z+b = V0 f0)612 (cross : ∀ x y, x < y → V1 x-V0 x < V1 y-V0 y) :613 ∀ x, 0 ≤ x →614 (x < z → V0 x ≤ V0 f0 ∧ V1 x ≤ V1 z+b) ∧615 (z ≤ x → V0 x+b ≤ V0 f0 ∧ V1 x+b ≤ V1 z+b) := by616 intro x hx617 have h1 := max1 x hx618 have h0 := max0 x hx619 constructor620 · intro _621 refine ⟨h0, ?_⟩622 by_cases h : f1 < z623 · have := cross f1 z h624 have := binds h625 have := max0 f1 hf1626 grind627 · have he : f1 = z := by grind628 rw [he] at h1629 grind630 · intro h631 have := tail0 x h632 have := tail1 x h633 grind634635/-- OA1. Among separating signals that deter imitation and lie above the636low signal, z uniquely minimizes the supportive type's operating loss. -/637theorem leastCostSignal (V loss : R → R) (f0 f1 z b : R)638 (hz : f1 ≤ z) (best : ∀ x, x ≠ f1 → V x < V f1)639 (binds : f1 < z → loss z = b)640 (inc : ∀ x y, f0 < x → x < y → loss x < loss y)641 (dec : ∀ x y, f1 ≤ x → x < y → V y < V x)642 (x : R) (hfeas : f0 < x ∧ b ≤ loss x) (hne : x ≠ z) : V x < V z := by643 by_cases eq : f1 = z644 · rw [← eq] at hne ⊢645 exact best x hne646 · have hb := binds (by grind)647 by_cases h : x < z648 · have := inc x z hfeas.1 h; grind649 · exact dec z x hz (by grind)650651/-- OA1. The benchmark imitation loss increases in m even allowing the652low type to re-optimize. This finite-difference proof avoids envelope calculus. -/653theorem imitationLossRises (W K : R → R) (fb f m n : R) (hmn : m < n)654 (hK : K f < K fb) (nextValue : R) (hnext : W f-n*K f ≤ nextValue) :655 (W f-m*K f)-(W fb-m*K fb) < nextValue-(W fb-n*K fb) := by656 have := positiveProduct (a := n-m) (by grind) (b := K fb-K f) (by grind)657 grind658659/-- Bounds and the unique control cutoff in OA1 given continuity of the660imitation loss. The cutoff event is b = loss(m); its support interpretation661is proved separately below. -/662theorem uniqueControlCutoff (loss : R → R) (b : R)663 (cross : ∃ m, 0 < m ∧ m < 1 ∧ loss m = b)664 (mono : ∀ x y, 0 ≤ x → x < y → y ≤ 1 → loss x < loss y) :665 ∃ m, 0 < m ∧ m < 1 ∧ loss m = b ∧666 (∀ x, 0 ≤ x → x ≤ 1 → (x < m ↔ loss x < b) ∧ (x = m ↔ loss x = b) ∧ (m < x ↔ b < loss x)) := by667 obtain ⟨m,hm,hm1,he⟩ := cross668 refine ⟨m,hm,hm1,he,?_⟩669 intro x hx hx1670 by_cases a : x < m671 · have := mono x m hx a (by grind); grind672 · by_cases c : m < x673 · have := mono m x (by grind) c hx1; grind674 · have : x = m := by grind675 grind676677theorem benchmarkTrichotomy (loss : R → R) (f0 f1 fb z b : R)678 (hf : f0 < f1) (hfb : f1 < fb) (hz : f1 ≤ z)679 (ic : b ≤ loss z) (binds : f1 < z → b = loss z)680 (inc : ∀ x y, f0 < x → x < y → loss x < loss y) :681 (z < fb ↔ b < loss fb) ∧ (z = fb ↔ b = loss fb) ∧ (fb < z ↔ loss fb < b) := by682 by_cases h : z < fb683 · have := inc z fb (by grind) h; grind684 · by_cases h' : fb < z685 · have := inc fb z (by grind) h'686 have := binds (by grind)687 grind688 · have := binds (by grind)689 have : z = fb := by grind690 grind691/-- An epsilon-delta derivative on nonnegative support, expressed in terms of692the slope of the secant through c and x. At an interior point this is the693usual two-sided derivative. -/694def HasSlopeAt (f : R → R) (c d : R) : Prop :=695 ∀ ε, 0 < ε → ∃ δ, 0 < δ ∧ ∀ x, 0 ≤ x → c-δ < x → x < c+δ → x ≠ c →696 ∃ v, f x-f c = v*(x-c) ∧ d-ε < v ∧ v < d+ε697698/-- Closed upper contour sets need not be assumed here. Quasiconcavity on699the half-line means every upper contour set contains the intervals between700its members. Strict concavity in the paper implies this property. -/701def Quasiconcave (f : R → R) : Prop :=702 ∀ l c u y, 0 ≤ l → l < c → c < u → y ≤ f l → y ≤ f u → y ≤ f c703704def baselineValue (W G B : R → R) (β m x : R) :=705 W x - (m*β*(1-β)*(G x-B x))/(mix β (G x) (B x))706707/-- A common positive neighborhood for three derivative estimates and708the boundary of the feasible half-line. -/709theorem smallStep (a b c f : R) (ha : 0 < a) (hb : 0 < b) (hc : 0 < c) (hf : 0 < f) :710 ∃ t, 0 < t ∧ t < a ∧ t < b ∧ t < c ∧ t < f := by711 classical712 let u := if a < b then a else b713 let v := if c < f then c else f714 let z := if u < v then u else v715 have hz : 0 < z ∧ z ≤ a ∧ z ≤ b ∧ z ≤ c ∧ z ≤ f := by dsimp [z,u,v]; grind716 have htwo : (0:R) < 1+1 := by have := OrderedRing.zero_lt_one (R := R); grind717 have h := Field.div_mul_cancel (x := z) (show (1:R)+1 ≠ 0 by grind)718 exact ⟨z/(1+1), by grind, by grind, by grind, by grind, by grind⟩719720/-- Finite-difference identity for the board payoff. This is an exact721identity for two support choices, prior to any limiting argument. -/722private theorem valueDifference (W G B : R → R) (β m f x w g b : R)723 (hW : W x-W f = w*(x-f)) (hG : G x-G f = g*(x-f)) (hB : B x-B f = b*(x-f))724 (hp : mix β (G f) (B f) ≠ 0) (hp' : mix β (G x) (B x) ≠ 0) :725 (mix β (G f) (B f)*mix β (G x) (B x))*726 (baselineValue W G B β m x-baselineValue W G B β m f) =727 (x-f)*((mix β (G f) (B f)*mix β (G x) (B x))*w728 -m*β*(1-β)*(B f*g-G f*b)) := by729 let p := mix β (G f) (B f)730 let q := mix β (G x) (B x)731 let k := m*β*(1-β)732 let costF := k*(G f-B f)/p733 let costX := k*(G x-B x)/q734 have cF : costF*p=k*(G f-B f) := Field.div_mul_cancel hp735 have cX : costX*q=k*(G x-B x) := Field.div_mul_cancel hp'736 have cD : p*q*(costX-costF) = k*((G x-B x)*p-(G f-B f)*q) := by737 have h1 := congrArg (fun v => p*v) cX738 have h2 := congrArg (fun v => q*v) cF739 try dsimp only at h1 h2740 grind741 have hD : (G x-B x)*p-(G f-B f)*q = (x-f)*(B f*g-G f*b) := by742 dsimp [p,q,mix]743 have h1 := congrArg (fun v => B f*v) hG744 have h2 := congrArg (fun v => G f*v) hB745 try dsimp only at h1 h2746 grind747 change p*q*((W x-costX)-(W f-costF)) = (x-f)*(p*q*w-k*(B f*g-G f*b))748 rw [hD] at cD749 have h := congrArg (fun v => (p*q)*v) hW750 try dsimp only at h751 grind752753/-- If each of the three secants is within ε of its derivative, the754numerator of the payoff secant is within (1+k*(B+G))*ε of its limit. -/755private theorem secantError (A k B G w g b dg db ε : R)756 (hA : 0 < A) (hA1 : A ≤ 1) (hk : 0 < k) (hB : 0 < B) (hG : 0 < G)757 (he : 0 < ε) (hw : -ε < w ∧ w < ε)758 (hg : dg-ε < g ∧ g < dg+ε) (hb : db-ε < b ∧ b < db+ε) :759 let err := A*w-k*(B*g-G*b)+k*(B*dg-G*db);760 -(1+k*(B+G))*ε < err ∧ err < (1+k*(B+G))*ε := by761 dsimp only762 have hw1 := OrderedRing.mul_lt_mul_of_pos_left hw.1 hA763 have hw2 := OrderedRing.mul_lt_mul_of_pos_left hw.2 hA764 have hAe := OrderedRing.mul_le_mul_of_nonneg_right hA1 (le_of_lt he)765 have hg1 := OrderedRing.mul_lt_mul_of_pos_left hg.1 (positiveProduct hk hB)766 have hg2 := OrderedRing.mul_lt_mul_of_pos_left hg.2 (positiveProduct hk hB)767 have hb1 := OrderedRing.mul_lt_mul_of_pos_left hb.1 (positiveProduct hk hG)768 have hb2 := OrderedRing.mul_lt_mul_of_pos_left hb.2 (positiveProduct hk hG)769 grind770771/-- Proposition 2, directly from success functions, their primitive772derivatives and the derivative of gross surplus at its interior optimum.773V is the actual expected board payoff less the Bayes/IC compensation.774The result allows zero distorted support. -/775theorem scapegoating (W G B : R → R) (β m fb s dG dB : R)776 (hβ : 0 < β) (hβ1 : β < 1) (hm : 0 < m)777 (prob : ∀ x, 0 ≤ x → 0 < B x ∧ B x < G x ∧ G x < 1)778 (hfb : 0 < fb) (hW : HasSlopeAt W fb 0)779 (hG : HasSlopeAt G fb dG) (hB : HasSlopeAt B fb dB)780 (hconc : Quasiconcave (baselineValue W G B β m))781 (hs : Maximizes (baselineValue W G B β m) s) :782 (G fb*dB < B fb*dG → s < fb) ∧ (B fb*dG < G fb*dB → fb < s) := by783 let V := baselineValue W G B β m784 let p := fun y => mix β (G y) (B y)785 let k := m*β*(1-β)786 let z := k*(B fb*dG-G fb*dB)787 let M := 1+k*(B fb+G fb)788 have hk : 0 < k := positiveProduct (positiveProduct hm hβ) (by grind)789 obtain ⟨hb,hbg,hg⟩ := prob fb (le_of_lt hfb)790 have hM : 0 < M := by have := positiveProduct hk (b := B fb+G fb) (by grind); dsimp [M]; grind791 have hp (x : R) (hx : 0 ≤ x) : 0 < p x ∧ p x < 1 := by792 obtain ⟨hb',hg',h1⟩ := prob x hx793 obtain ⟨hl,hu,_,_⟩ := probabilityBounds β (G x) (B x) 1 hβ hβ1 hb' hg' h1 OrderedRing.zero_lt_one (by grind)794 dsimp [p]; grind795 have choose (e : R) (he : 0 < e) :796 ∃ t, 0 < t ∧ t < fb ∧ ∀ x, (x = fb-t ∨ x = fb+t) →797 ∃ v, p fb*p x*(V x-V fb) = (x-fb)*v ∧ -M*e < v+z ∧ v+z < M*e := by798 obtain ⟨dw,hw,sw⟩ := hW e he799 obtain ⟨dg,hg',sg⟩ := hG e he800 obtain ⟨db,hb',sb⟩ := hB e he801 obtain ⟨t,ht,htw,htg,htb,htf⟩ := smallStep dw dg db fb hw hg' hb' hfb802 refine ⟨t,ht,htf,?_⟩803 intro x hx804 have hx0 : 0 ≤ x := by grind805 obtain ⟨w,hw',wl,wu⟩ := sw x hx0 (by grind) (by grind) (by grind)806 obtain ⟨g,hg'',gl,gu⟩ := sg x hx0 (by grind) (by grind) (by grind)807 obtain ⟨b,hb'',bl,bu⟩ := sb x hx0 (by grind) (by grind) (by grind)808 have pf := hp fb (le_of_lt hfb)809 have px := hp x hx0810 have hprod := positiveProduct pf.1 px.1811 have hp1 := OrderedRing.mul_lt_mul_of_pos_left px.2 pf.1812 have herr := secantError (p fb*p x) k (B fb) (G fb) w g b dG dB e hprod813 (by grind) hk hb (by grind) he ⟨by grind,by grind⟩ ⟨gl,gu⟩ ⟨bl,bu⟩814 exact ⟨_,valueDifference W G B β m fb x w g b hw' hg'' hb''815 (by change p fb ≠ 0; grind) (by change p x ≠ 0; grind),herr⟩816 have maximize := hs.2817 change ∀ x, 0 ≤ x → V x ≤ V s at maximize818 change Quasiconcave V at hconc819 have hne : M ≠ 0 := by grind820 constructor821 · intro hc822 have hz : 0 < z := positiveProduct hk (by grind)823 let e := z/M824 have heq : e*M=z := Field.div_mul_cancel hne825 have he : 0 < e := by apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_right hM).mp; grind826 obtain ⟨t,ht,htf,sample⟩ := choose e he827 let x := fb-t828 obtain ⟨v,hval,_,hv⟩ := sample x (Or.inl rfl)829 have hx : x < fb := by dsimp [x]; grind830 have hx0 : 0 ≤ x := by dsimp [x]; grind831 have hpos := positiveProduct (a := fb-x) (by grind) (b := -v) (by grind)832 have hgain : V fb < V x := by833 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left (positiveProduct (hp fb (le_of_lt hfb)).1 (hp x hx0).1)).mp834 grind835 have hm' := maximize x hx0836 by_cases hs' : fb < s837 · have := hconc x fb s (V x) hx0 hx hs' (by grind) hm'; grind838 · grind839 · intro hc840 have hz : 0 < -z := by have := positiveProduct hk (b := G fb*dB-B fb*dG) (by grind); dsimp [z]; grind841 let e := (-z)/M842 have heq : e*M = -z := Field.div_mul_cancel hne843 have he : 0 < e := by apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_right hM).mp; grind844 obtain ⟨t,ht,_,sample⟩ := choose e he845 let x := fb+t846 obtain ⟨v,hval,hv,_⟩ := sample x (Or.inr rfl)847 have hx : fb < x := by dsimp [x]; grind848 have hx0 : 0 ≤ x := by grind849 have hpos := positiveProduct (a := x-fb) (by grind) (b := v) (by grind)850 have hgain : V fb < V x := by851 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left (positiveProduct (hp fb (le_of_lt hfb)).1 (hp x hx0).1)).mp852 grind853 have hm' := maximize x hx0854 by_cases hs' : s < fb855 · have := hconc s fb x (V x) hs.1 hs' hx hm' (by grind); grind856 · grind857858/-- Continuity of the reputational spread on the support half-line. -/859def ContinuousSupport (rho : R → R) : Prop :=860 ∀ c, 0 ≤ c → ∀ ε, 0 < ε → ∃ δ, 0 < δ ∧ ∀ x, 0 ≤ x →861 c-δ < x → x < c+δ → rho c-ε < rho x ∧ rho x < rho c+ε862863private theorem positiveHalf (x : R) (h : 0 < x) :864 0 < x/(1+1) ∧ x/(1+1) < x := by865 have one := OrderedRing.zero_lt_one (R := R)866 have := Field.div_mul_cancel (x := x) (show (1:R)+1 ≠ 0 by grind)867 grind868869/-- A strict payoff comparison at a conjecture persists nearby. Only the870reputational spread changes with that conjecture. -/871private theorem comparisonPersists (W P rho : R → R) (m y t c : R)872 (hm : 0 < m) (hm1 : m < 1) (hc : 0 ≤ c)873 (hPy : 0 < P y ∧ P y < 1) (hPt : 0 < P t ∧ P t < 1)874 (cont : ContinuousSupport rho)875 (h : silentValue W P rho m t c < silentValue W P rho m y c) :876 ∃ δ, 0 < δ ∧ ∀ q, 0 ≤ q → c-δ < q → q < c+δ →877 silentValue W P rho m t q < silentValue W P rho m y q := by878 let g := silentValue W P rho m y c-silentValue W P rho m t c879 have hg : 0 < g := by dsimp [g]; grind880 obtain ⟨δ,hd,hr⟩ := cont c hc g hg881 refine ⟨δ,hd,?_⟩882 intro q hq h1 h2883 obtain ⟨hl,hu⟩ := hr q hq h1 h2884 let A := m*(P y-P t)885 have hb1 := OrderedRing.mul_lt_mul_of_pos_left (show P y-P t < 1 by grind) hm886 have hb2 := OrderedRing.mul_lt_mul_of_pos_left (show -1 < P y-P t by grind) hm887 have hA : -1 < A ∧ A < 1 := by dsimp [A]; grind888 have effect : -g < A*(rho q-rho c) := by889 by_cases hpos : 0 ≤ A890 · have h1 := OrderedRing.mul_le_mul_of_nonneg_left (a := -g) (b := rho q-rho c) (by grind) hpos891 have h2 := OrderedRing.mul_lt_mul_of_pos_right hA.2 hg892 grind893 · have h1 := OrderedRing.mul_le_mul_of_nonpos_left (a := rho q-rho c) (b := g) (by grind) (c := A) (by grind)894 have h2 := OrderedRing.mul_lt_mul_of_pos_right hA.1 hg895 grind896 dsimp [A,g,silentValue] at effect897 unfold silentValue898 grind899900/-- A strict comparison against a point to the right/left of the optimizer901propagates to the corresponding half-line by quasiconcavity. -/902private theorem sideOfPeak (U : R → R) (s t y : R) (peak : Maximizes U s)903 (qc : Quasiconcave U) (_ht : 0 ≤ t) (hy : 0 ≤ y) (h : U t < U y) :904 (t < y → t < s) ∧ (y < t → s < t) := by905 have hmax := peak.2 y hy906 constructor907 · intro hty908 by_cases hs : s < t909 · have := qc s t y (U y) peak.1 hs hty hmax (by grind); grind910 · grind911 · intro hyt912 by_cases hs : t < s913 · have := qc y t s (U y) hy hyt hs (by grind) hmax; grind914 · grind915916/-- Proposition 4, fixed-point existence without assuming continuity of the917best-response map. The inputs are the paper's continuous spread, single918peaked objectives, unique attained best responses, a coercivity bound, and919the least-upper-bound property of the real line. -/920theorem nondisclosureExists (W P rho br : R → R) (m b : R)921 (hm : 0 < m) (hm1 : m < 1) (hb : 0 < b)922 (hprob : ∀ x, 0 ≤ x → 0 < P x ∧ P x < 1)923 (hrho : ∀ x, 0 ≤ x → 0 < rho x ∧ rho x < 1)924 (cont : ContinuousSupport rho)925 (coercive : ∀ x, b ≤ x → W x < W 0-m)926 (best : ∀ c, 0 ≤ c → Maximizes (fun x => silentValue W P rho m x c) (br c))927 (unique : ∀ c, 0 ≤ c → ∀ x, 0 ≤ x → x ≠ br c →928 silentValue W P rho m x c < silentValue W P rho m (br c) c)929 (qc : ∀ c, 0 ≤ c → Quasiconcave (fun x => silentValue W P rho m x c))930 (supremum : ∀ S : R → Prop, (∃ x, S x) → (∀ x, S x → x ≤ b) →931 ∃ c, (∀ x, S x → x ≤ c) ∧ ∀ u, (∀ x, S x → x ≤ u) → c ≤ u) :932 ∃ c, Maximizes (fun x => silentValue W P rho m x c) c := by933 let U := silentValue W P rho m934 have bounds (c x : R) (hc : 0 ≤ c) (hx : 0 ≤ x) : W x-m < U x c ∧ U x c < W x := by935 obtain ⟨h1,h2⟩ := hprob x hx936 obtain ⟨h3,h4⟩ := hrho c hc937 have ha := positiveProduct hm (b := 1-P x) (by grind)938 have hap := positiveProduct hm h1939 have hpos := positiveProduct ha h3940 have hlt := OrderedRing.mul_lt_mul_of_pos_left h4 ha941 dsimp [U,silentValue]942 grind943 have hbounded (c : R) (hc : 0 ≤ c) : br c < b := by944 have hbr := best c hc945 have h0 := bounds c 0 hc (by grind)946 have h1 := bounds c (br c) hc hbr.1947 have hm' : U 0 c ≤ U (br c) c := hbr.2 0 (by grind)948 by_cases h : b ≤ br c949 · have := coercive _ h; grind950 · grind951 by_cases hzero : br 0 = 0952 · refine ⟨0, ?_⟩953 have h := best 0 (by grind)954 rwa [hzero] at h955 · have left : 0 < br 0-0 := by have := (best 0 (by grind)).1; grind956 have right : br b-b < 0 := by have := hbounded b (le_of_lt hb); grind957 obtain ⟨c,hc,_,he⟩ := continuousCrossing (fun x => br x-x) 0 b hb left right supremum (by958 intro c hc hcb hpos959 try dsimp only at hpos ⊢960 let t := c+(br c-c)/(1+1)961 have hhalf := positiveHalf (br c-c) hpos962 have ht : c < t ∧ t < br c := by dsimp [t]; grind963 have hmt : U t c < U (br c) c := unique c hc t (by grind) (by grind)964 obtain ⟨δ,hd,hpersist⟩ := comparisonPersists W P rho m (br c) t c hm hm1 hc965 (hprob _ (best c hc).1) (hprob _ (by grind)) cont hmt966 obtain ⟨v,hv,hδ,htc,hbc,_⟩ := smallStep δ (t-c) (b-c) δ hd (by grind) (by grind) hd967 let y := c+v968 have hy : c < y ∧ y < t ∧ y < b := by dsimp [y]; grind969 have hp := hpersist y (by grind) (by dsimp [y]; grind) (by dsimp [y]; grind)970 have hs := (sideOfPeak _ _ _ _ (best y (by grind)) (qc y (by grind)) (by grind) (best c hc).1 hp).1 ht.2971 exact ⟨y,hy.1,by grind,by grind⟩) (by972 intro c hc hcb hneg973 try dsimp only at hneg ⊢974 let t := br c+(c-br c)/(1+1)975 have hhalf := positiveHalf (c-br c) (by grind)976 have ht : br c < t ∧ t < c := by dsimp [t]; grind977 have hbc := (best c (le_of_lt hc)).1978 have hmt : U t c < U (br c) c := unique c (le_of_lt hc) t (by grind) (by grind)979 obtain ⟨δ,hd,hpersist⟩ := comparisonPersists W P rho m (br c) t c hm hm1 (le_of_lt hc)980 (hprob _ hbc) (hprob _ (by grind)) cont hmt981 obtain ⟨v,hv,hδ,htc,_,_⟩ := smallStep δ (c-t) δ δ hd (by grind) hd hd982 refine ⟨c-v,by grind,?_⟩983 intro x hx hxc984 have hp := hpersist x (by grind) (by grind) (by grind)985 have hs := (sideOfPeak _ _ _ _ (best x (by grind)) (qc x (by grind)) (by grind) hbc hp).2 ht.1986 grind)987 have heq : br c = c := by try dsimp only at he988 grind989 have h := best c (le_of_lt hc)990 rw [heq] at h991 exact ⟨c,h⟩992993/-- Value of the binary-reputation experiment at a given support. -/994def hiringValue (Γ : R → R) (P H L : R → R) (s : R) :=995 P s*Γ (H s)+(1-P s)*Γ (L s)996997/-- One supporting line for each reputation. For a future firm maximizing a998family of affine returns, the slope is that of its maximizing support choice. -/999theorem futureValueTangent (intercept slope : R → R) (act V : R → R)1000 (value : ∀ r, V r=intercept (act r)+slope (act r)*r)1001 (optimal : ∀ r t, intercept t+slope t*r ≤ V r)1002 (x y : R) : V x+slope (act x)*(y-x) ≤ V y := by1003 have := optimal y (act x)1004 rw [value x]1005 grind10061007/-- A common tangent inequality forces the slopes of the chosen affine1008functions to be nondecreasing, including at a kink. -/1009theorem tangentSlopes (V slope : R → R) (x y : R) (hxy : x < y)1010 (hx : V x+slope x*(y-x) ≤ V y) (hy : V y+slope y*(x-y) ≤ V x) :1011 slope x ≤ slope y := by1012 apply (Field.IsOrdered.mul_le_mul_iff_of_pos_right (show 0 < y-x by grind)).mp1013 grind10141015/-- Pairwise increase in future hiring value when the binary posterior1016distribution widens at constant prior. D is a lower bound on the gap1017between Γ(H) and the tangent at L in the initial experiment. -/1018theorem informationGain (Γ g : R → R) (p q H L H' L' D : R)1019 (hq : 0 < q) (hq1 : q < 1) (hpq : p ≤ q)1020 (hH : H ≤ H') (hmean : p*H+(1-p)*L = q*H'+(1-q)*L')1021 (hD : D ≤ Γ H-Γ L-g L*(H-L))1022 (hHigh : Γ H+g H*(H'-H) ≤ Γ H')1023 (hLow : Γ L+g L*(L'-L) ≤ Γ L')1024 (hg : g L ≤ g H) :1025 (q-p)*D ≤ q*Γ H'+(1-q)*Γ L'-(p*Γ H+(1-p)*Γ L) := by1026 have hc := nonnegativeProduct (a := g H-g L) (by grind) (b := H'-H) (by grind)1027 have h1 := OrderedRing.mul_le_mul_of_nonneg_left (show Γ H+g L*(H'-H) ≤ Γ H' by grind) (le_of_lt hq)1028 have h2 := OrderedRing.mul_le_mul_of_nonneg_left hLow (c := 1-q) (by grind)1029 have h3 := OrderedRing.mul_le_mul_of_nonneg_left hD (c := q-p) (by grind)1030 have h4 := congrArg (fun v => g L*v) hmean1031 try dsimp only at h41032 grind10331034/-- Every wider pair of posterior beliefs has at least the tangent gap1035present at zero support. -/1036theorem uniformTangentGap (Γ g : R → R) (l0 h0 l h : R) (hlh : l0 < h0) (hh : h0 ≤ h)1037 (hhi : Γ h0+g h0*(h-h0) ≤ Γ h)1038 (hlo : Γ l+g l*(l0-l) ≤ Γ l0)1039 (hg1 : g l ≤ g h0) (hg2 : g l ≤ g l0) :1040 Γ h0-Γ l0-g l0*(h0-l0) ≤ Γ h-Γ l-g l*(h-l) := by1041 have h1 := nonnegativeProduct (a := g h0-g l) (by grind) (b := h-h0) (by grind)1042 have h2 := nonnegativeProduct (a := g l0-g l) (by grind) (b := h0-l0) (by grind)1043 grind10441045/-- Proposition 5 via a finite-difference argument. The probability of high1046news and the high posterior increase with support, the low posterior falls.1047Γ has a strictly supporting tangent. D at zero support is independent of m.1048The silent choice pays a fixed low-report bonus while considering deviations. -/1049theorem disclosureWelfare (W P H L Γ g : R → R) (star fb dag m : R)1050 (hs : 0 ≤ star) (hunder : star < fb) (hover : fb ≤ dag) (hm : 0 < m)1051 (hW : Maximizes W fb)1052 (hdag : Maximizes (fun x => silentValue W P (fun s => H s-L s) m x dag) dag)1053 (prob : ∀ x, 0 ≤ x → 0 < P x ∧ P x < 1 ∧ 0 < L x ∧ L x < H x ∧ H x < 1)1054 (bayes : ∀ x y, 0 ≤ x → 0 ≤ y →1055 P x*H x+(1-P x)*L x=P y*H y+(1-P y)*L y)1056 (increasing : ∀ x y, 0 ≤ x → x < y → P x < P y ∧ H x < H y ∧ L y < L x)1057 (tangent : ∀ x y, 0 < x → x < 1 → 0 < y → y < 1 → Γ x+g x*(y-x) ≤ Γ y)1058 (strict : Γ (L 0)+g (L 0)*(H 0-L 0) < Γ (H 0))1059 (small : m < Γ (H 0)-Γ (L 0)-g (L 0)*(H 0-L 0)) :1060 let T := fun s => W s+hiringValue Γ P H L s1061 T star < T fb ∧ T fb ≤ T dag := by1062 let D := Γ (H 0)-Γ (L 0)-g (L 0)*(H 0-L 0)1063 have hD : 0 < D := by dsimp [D]; grind1064 have hmD : m < D := small1065 have gain (x y : R) (hx : 0 ≤ x) (hxy : x < y) :1066 (P y-P x)*D ≤ hiringValue Γ P H L y-hiringValue Γ P H L x := by1067 obtain ⟨px,px1,lx,lhx,hx1⟩ := prob x hx1068 obtain ⟨py,py1,ly,lhy,hy1⟩ := prob y (by grind)1069 obtain ⟨_,_,l0,lh0,h01⟩ := prob 0 (by grind)1070 obtain ⟨hP,hH,_⟩ := increasing x y hx hxy1071 have hnest : H 0 ≤ H x ∧ L x ≤ L 0 := by1072 by_cases hz : x = 01073 · rw [hz]; grind1074 · have h := increasing 0 x (by grind) (by grind); grind1075 have gm (a b : R) (ha : 0 < a) (hab : a ≤ b) (hb : b < 1) : g a ≤ g b := by1076 by_cases he : a = b1077 · rw [he]; grind1078 · exact tangentSlopes Γ g a b (by grind) (tangent _ _ ha (by grind) (by grind) hb)1079 (tangent _ _ (by grind) hb ha (by grind))1080 have hd' := uniformTangentGap Γ g (L 0) (H 0) (L x) (H x) lh0 hnest.11081 (tangent _ _ (by grind) h01 (by grind) hx1) (tangent _ _ lx (by grind) l0 (by grind))1082 (gm _ _ lx (by grind) h01) (gm _ _ lx hnest.2 (by grind))1083 exact informationGain Γ g (P x) (P y) (H x) (L x) (H y) (L y) D py py1 (le_of_lt hP)1084 (le_of_lt hH) (bayes x y hx (by grind)) hd'1085 (tangent _ _ (by grind) hx1 (by grind) hy1) (tangent _ _ lx (by grind) ly (by grind))1086 (gm _ _ lx (le_of_lt lhx) hx1)1087 dsimp only1088 constructor1089 · have h1 := gain star fb hs hunder1090 have h2 := hW.2 star hs1091 have h3 := (increasing star fb hs hunder).11092 have := positiveProduct (a := P fb-P star) (by grind) hD1093 grind1094 · by_cases eq : fb = dag1095 · rw [eq]; grind1096 · have hfd : fb < dag := by grind1097 have h1 := gain fb dag hW.1 hfd1098 obtain ⟨_,_,hl,_,hh⟩ := prob dag hdag.11099 have h2 := hdag.2 fb hW.11100 dsimp [silentValue] at h21101 have h3 := (increasing fb dag hW.1 hfd).11102 have h4 := positiveProduct hm (b := 1-(H dag-L dag)) (by grind)1103 have h5 := positiveProduct (a := P dag-P fb) (by grind) (b := D-m*(H dag-L dag)) (by grind)1104 grind11051106/-- The hiring payoff is V(max(r,z)). The interval lower bound is the1107elementary integration rule for Z uniform on [0,1]. It is stated only for1108differences of the bounded hiring payoffs, on a partition of [0,1]. -/1109def UniformHiring (V Γ : R → R) (bestOf : R → R → R) : Prop :=1110 ∀ r y u v a b c, 0 ≤ r → r ≤ 1 → 0 ≤ y → y ≤ 1 → 0 ≤ u → u ≤ v → v ≤ 1 →1111 (∀ z, 0 ≤ z → z ≤ u → a ≤ V (bestOf y z)-V (bestOf r z)) →1112 (∀ z, u ≤ z → z ≤ v → b ≤ V (bestOf y z)-V (bestOf r z)) →1113 (∀ z, v ≤ z → z ≤ 1 → c ≤ V (bestOf y z)-V (bestOf r z)) →1114 u*a+(v-u)*b+(1-v)*c ≤ Γ y-Γ r11151116theorem uniformHiringTangent (V Γ slope : R → R) (bestOf : R → R → R)1117 (hmax : ∀ y z, (z ≤ y → bestOf y z = y) ∧ (y ≤ z → bestOf y z = z))1118 (hint : UniformHiring V Γ bestOf)1119 (ht : ∀ r y, 0 ≤ r → r ≤ 1 → 0 ≤ y → y ≤ 1 → V r+slope r*(y-r) ≤ V y)1120 (inc : ∀ x y, 0 ≤ x → x < y → y ≤ 1 → V x < V y)1121 (r y : R) (hr : 0 ≤ r) (hr1 : r ≤ 1) (hy : 0 ≤ y) (hy1 : y ≤ 1) :1122 Γ r+(r*slope r)*(y-r) ≤ Γ y ∧ (r < y → Γ r+(r*slope r)*(y-r) < Γ y) := by1123 have mono (x z : R) (hx : 0 ≤ x) (hxz : x ≤ z) (hz : z ≤ 1) : V x ≤ V z := by1124 by_cases he : x = z1125 · rw [he]; grind1126 · exact le_of_lt (inc _ _ hx (by grind) hz)1127 have high (z : R) (hz : 0 ≤ z) (hz1 : z ≤ 1) :1128 V y ≤ V (bestOf y z) ∧ V z ≤ V (bestOf y z) := by1129 by_cases h : z ≤ y1130 · rw [(hmax y z).1 h]; exact ⟨by grind,mono z y hz h hy1⟩1131 · have h' : y ≤ z := by grind1132 rw [(hmax y z).2 h']; exact ⟨mono y z hy h' hz1,by grind⟩1133 have left (z : R) (hz : 0 ≤ z) (hzr : z ≤ r) :1134 slope r*(y-r) ≤ V (bestOf y z)-V (bestOf r z) := by1135 rw [(hmax r z).1 hzr]1136 have h := (high z hz (by grind)).11137 have := ht r y hr hr1 hy hy11138 grind1139 have right (z : R) (hrz : r ≤ z) (hz : z ≤ 1) :1140 0 ≤ V (bestOf y z)-V (bestOf r z) := by1141 rw [(hmax r z).2 hrz]1142 have := (high z (by grind) hz).21143 grind1144 constructor1145 · have := hint r y r r (slope r*(y-r)) 0 0 hr hr1 hy hy1 hr (by grind) hr11146 left (fun z hz hz' => right z hz (by grind)) right1147 grind1148 · intro hry1149 let v := r+(y-r)/(1+1)1150 have hhalf := positiveHalf (y-r) (by grind)1151 have hv : r < v ∧ v < y := by dsimp [v]; grind1152 have gap := inc v y (by grind) hv.2 hy11153 have h := hint r y r v (slope r*(y-r)) (V y-V v) 0 hr hr1 hy hy1 hr1154 (by grind) (by grind) left (by1155 intro z hz h'1156 rw [(hmax r z).2 hz,(hmax y z).1 (by grind)]1157 have := mono z v (by grind) h' (by grind)1158 grind) (fun z hz hz1 => right z (by grind) hz1)1159 have := positiveProduct (a := v-r) (by grind) (b := V y-V v) (by grind)1160 grind11611162/-- Nesting of baseline posterior beliefs between *any* two support levels.1163The likelihood ratio rises and both primitive success probabilities rise.1164Bayes' rule suffices, without differentiating the posteriors. -/1165theorem nestedPosteriors (β G B G' B' : R) (hb : 0 < β) (hb1 : β < 1)1166 (hB : 0 < B) (hBG : B < G) (hG : G < 1) (hB' : B < B') (hBG' : B' < G')1167 (hG' : G' < 1) (comp : G*B' < G'*B) :1168 let p := mix β G B1169 let q := mix β G' B'1170 p < q ∧ highRep β G p < highRep β G' q ∧ lowRep β G' q 1 < lowRep β G p 1 := by1171 let p := mix β G B1172 let q := mix β G' B'1173 obtain ⟨l,u,_,_⟩ := probabilityBounds β G B 1 hb hb1 hB hBG hG OrderedRing.zero_lt_one (by grind)1174 obtain ⟨l',u',_,_⟩ := probabilityBounds β G' B' 1 hb hb1 (by grind) hBG' hG' OrderedRing.zero_lt_one (by grind)1175 have hp : 0 < p ∧ p < 1 := by dsimp [p]; grind1176 have hq : 0 < q ∧ q < 1 := by dsimp [q]; grind1177 have gapAbs : B'-B < G'-G := by1178 have h1 := positiveProduct (a := G-B) (by grind) (b := B'-B) (by grind)1179 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left hB).mp1180 grind1181 have hP : p < q := by1182 have h1 := positiveProduct hb (b := G'-G) (by grind)1183 have h2 := positiveProduct (a := 1-β) (by grind) (b := B'-B) (by grind)1184 dsimp [p,q,mix]; grind1185 have prior := positiveProduct hb (b := 1-β) (by grind)1186 have grow := positiveProduct prior (b := G'*B-G*B') (by grind)1187 have fail1 := positiveProduct (a := 1-B) (by grind) (b := (G'-G)-(B'-B)) (by grind)1188 have fail2 := positiveProduct (a := G-B) (by grind) (b := B'-B) (by grind)1189 have fail := positiveProduct prior (b := (1-G)*(1-B')-(1-G')*(1-B)) (by grind)1190 have hH : highRep β G p*p = β*G := Field.div_mul_cancel (by grind)1191 have hH' : highRep β G' q*q = β*G' := Field.div_mul_cancel (by grind)1192 have hL : lowRep β G p 1*(1-1*p) = β*(1-1*G) := Field.div_mul_cancel (by grind)1193 have hL' : lowRep β G' q 1*(1-1*q) = β*(1-1*G') := Field.div_mul_cancel (by grind)1194 refine ⟨hP,?_,?_⟩1195 · change highRep β G p < highRep β G' q1196 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_right (positiveProduct hp.1 hq.1)).mp1197 have eq1 := congrArg (fun a => a*q) hH1198 have eq2 := congrArg (fun a => a*p) hH'1199 have hi : β*G*q < β*G'*p := by dsimp [q,p,mix]; grind1200 try dsimp only at eq1 eq21201 grind1202 · change lowRep β G' q 1 < lowRep β G p 11203 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_right1204 (positiveProduct (a := 1-p) (by grind) (b := 1-q) (by grind))).mp1205 have eq1 := congrArg (fun a => a*(1-q)) hL1206 have eq2 := congrArg (fun a => a*(1-p)) hL'1207 have lo : β*(1-G')*(1-p) < β*(1-G)*(1-q) := by dsimp [p,q,mix]; grind1208 try dsimp only at eq1 eq21209 grind12101211/-- Finite differences of ρ(e)=K/(1-h(e)) yield the slope bound used to1212locate the zero-bonus threshold. h(e)=h₀+a e and h(e) ≤ top < 1. -/1213theorem effortWedgeIncreasing (h0 a top K m price : R)1214 (ha : 0 < a) (hm : 0 < m) (_hm1 : m < 1) (hk : 0 < K) (ht : top < 1)1215 (hprice : 0 < price) (hlarge : a*K < price*((1-top)*(1-top)))1216 (x y rx ry : R) (hxy : x < y) (hx : h0+a*x ≤ top) (hy : h0+a*y ≤ top)1217 (hrx : (1-(h0+a*x))*rx = K) (hry : (1-(h0+a*y))*ry = K) :1218 price*x-(1-m)*rx < price*y-(1-m)*ry := by1219 let u := 1-(h0+a*x)1220 let v := 1-(h0+a*y)1221 have hu : 0 < u := by dsimp [u]; grind1222 have hv : 0 < v := by dsimp [v]; grind1223 have hlow : (1-top)*(1-top) ≤ u*v := by1224 have h1 := OrderedRing.mul_le_mul_of_nonneg_left (a := 1-top) (b := v) (c := 1-top) (by dsimp [v]; grind) (by grind)1225 have h2 := OrderedRing.mul_le_mul_of_nonneg_right (a := 1-top) (b := u) (by dsimp [u]; grind) (le_of_lt hv)1226 grind1227 have hmul := OrderedRing.mul_le_mul_of_nonneg_left hlow (le_of_lt hprice)1228 have hs := positiveProduct hm (positiveProduct ha hk)1229 have hdiff : u*v*(ry-rx) = a*K*(y-x) := by1230 change u*rx = K at hrx1231 change v*ry = K at hry1232 have h1 := congrArg (fun t => u*t) hry1233 have h2 := congrArg (fun t => v*t) hrx1234 have hd : u-v=a*(y-x) := by dsimp [u,v]; grind1235 have h3 := congrArg (fun t => t*K) hd1236 try dsimp only at h1 h2 h31237 grind1238 have hmargin := positiveProduct (a := price*(u*v)-(1-m)*a*K) (by grind) (b := y-x) (by grind)1239 have h1 := congrArg (fun t => (1-m)*t) hdiff1240 try dsimp only at h11241 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left (positiveProduct hu hv)).mp1242 grind12431244/-- Concavity on the binding branch via the second divided difference of1245the reciprocal of an affine failure probability. The bound is stated at1246the uniform lower failure probability on the feasible effort interval. -/1247theorem reducedPayoffConcave (h0 a top K ψ l c x y z rx ry rz : R)1248 (hx : x < y) (hy : y < z) (_ha : 0 < a) (_hK : 0 < K) (hψ : 0 < ψ)1249 (ht : top < 1) (htx : h0+a*x ≤ top) (hty : h0+a*y ≤ top) (htz : h0+a*z ≤ top)1250 (hlarge : a*a*K < ψ*((1-top)*(1-top)*(1-top)))1251 (hRx : (1-(h0+a*x))*rx=K) (hRy : (1-(h0+a*y))*ry=K) (hRz : (1-(h0+a*z))*rz=K) :1252 let vx := c+l*x-ψ*x*x+rx1253 let vy := c+l*y-ψ*y*y+ry1254 let vz := c+l*z-ψ*z*z+rz1255 (vz-vy)*(y-x) < (vy-vx)*(z-y) := by1256 let u := 1-(h0+a*x)1257 let v := 1-(h0+a*y)1258 let w := 1-(h0+a*z)1259 let b := 1-top1260 have hb : 0 < b := by dsimp [b]; grind1261 have hu : b ≤ u := by dsimp [b,u]; grind1262 have hv : b ≤ v := by dsimp [b,v]; grind1263 have hw : b ≤ w := by dsimp [b,w]; grind1264 have uv := positiveProduct (show 0 < u by grind) (show 0 < v by grind)1265 have uvw := positiveProduct uv (show 0 < w by grind)1266 have t1 := OrderedRing.mul_le_mul_of_nonneg_right hu (le_of_lt hb)1267 have t2 := OrderedRing.mul_le_mul_of_nonneg_left hv (c := u) (by grind)1268 have t3 := OrderedRing.mul_le_mul_of_nonneg_right (show b*b ≤ u*v by grind) (le_of_lt hb)1269 have t4 := OrderedRing.mul_le_mul_of_nonneg_left hw (le_of_lt uv)1270 have t5 := OrderedRing.mul_le_mul_of_nonneg_left (show b*b*b ≤ u*v*w by grind) (le_of_lt hψ)1271 change a*a*K < ψ*(b*b*b) at hlarge1272 have positive := positiveProduct (positiveProduct (a := ψ*(u*v*w)-a*a*K) (by grind)1273 (b := y-x) (by grind)) (positiveProduct (a := z-y) (by grind) (b := z-x) (by grind))1274 change u*rx=K at hRx1275 change v*ry=K at hRy1276 change w*rz=K at hRz1277 have key : u*v*w*((ry-rx)*(z-y)-(rz-ry)*(y-x)) = -a*a*K*(y-x)*(z-y)*(z-x) := by1278 have h1 := congrArg (fun t => t*(u*w)*(z-x)) hRy1279 have h2 := congrArg (fun t => t*(v*w)*(z-y)) hRx1280 have h3 := congrArg (fun t => t*(u*v)*(y-x)) hRz1281 have poly : (u*w)*(z-x)-(v*w)*(z-y)-(u*v)*(y-x) = -a*a*(y-x)*(z-y)*(z-x) := by1282 dsimp [u,v,w]; grind1283 have h4 := congrArg (fun t => K*t) poly1284 try dsimp only at h1 h2 h3 h41285 grind1286 dsimp only1287 apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_left uvw).mp1288 grind12891290/-- A lower bound on the truthful bonus cannot be improved at full effort:1291the endpoint inequalities force the least-cost on-path payments. -/1292theorem fullEffortContract (p m r q b lo hi d0 dx : R) (hp : 0 < p) (hp1 : p < 1)1293 (hm : 0 < m) (hm1 : m < 1) (hb : (1-m)*(b+r) = q)1294 (hIC : Truthful m r lo hi d0 dx) (hEffort : q ≤ hi-lo+r) :1295 b ≤ hi ∧ m*(b+r) ≤ lo ∧ cost p (m*(b+r)) b ≤ cost p lo hi := by1296 obtain ⟨_,_,h0,_,hl,_⟩ := hIC1297 have hz := nonnegativeProduct (a := 1-m) (by grind) h01298 have h1 : b ≤ hi := by apply (Field.IsOrdered.mul_le_mul_iff_of_pos_left (show 0 < 1-m by grind)).mp; grind1299 have h2 := OrderedRing.mul_le_mul_of_nonneg_left h1 (le_of_lt hm)1300 have hlo : m*(b+r) ≤ lo := by grind1301 have h3 := OrderedRing.mul_le_mul_of_nonneg_left hlo (c := 1-p) (by grind)1302 have h4 := OrderedRing.mul_le_mul_of_nonneg_left h1 (le_of_lt hp)1303 unfold cost1304 grind13051306/-- The positive-bonus cross-partial identity follows by eliminating the1307operating margin from the effort FOC and its support derivative. Here t=P'/P,1308a is a'P(X-L), f=ψa₀/a', and k=mψ/[(1-m)a'P]. -/1309theorem positiveBonusIdentity (ψ e t a f k rE rES rEE eS : R)1310 (hfoc : a-2*ψ*e-f-k+rE=0)1311 (hDiff : (2*ψ-rEE)*eS = a*t+k*t+rES) :1312 (2*ψ-rEE)*(eS-e*t) = rES-rE*t+t*(f+2*k+e*rEE) := by1313 have hm := congrArg (fun z => t*z) hfoc1314 try dsimp only at hm1315 grind13161317/-- Total support differentiation on the zero-bonus branch. Both terms1318include the induced effort response. -/1319theorem zeroBonusIngredients (p dp r rS rE rES rEE eS m : R)1320 (hp : 0 < p) (hdp : 0 < dp) (hr : 0 < r) (hs : 0 < rS) (he : 0 < rE)1321 (hes : 0 < rES) (hee : 0 < rEE) (hE : 0 < eS) (hm : m < 1) :1322 0 < 2*p*dp*r+p*p*(rS+rE*eS) ∧1323 -(1-m)*(dp*rE+p*(rES+rEE*eS)) < 0 := by1324 have h1 := positiveProduct (positiveProduct hp hdp) hr1325 have h2 := positiveProduct he hE1326 have h3 := positiveProduct (positiveProduct hp hp) (b := rS+rE*eS) (by grind)1327 have h4 := positiveProduct hdp he1328 have h5 := positiveProduct hee hE1329 have h6 := positiveProduct hp (b := rES+rEE*eS) (by grind)1330 have h7 := positiveProduct (a := 1-m) (by grind) (b := dp*rE+p*(rES+rEE*eS)) (by grind)1331 grind13321333/-- If a continuous marginal payoff has an attained minimum on each compact1334subinterval and decreases immediately to the right of every point, then it1335is strictly decreasing even with arbitrarily many bonus-boundary switches. -/1336theorem joinBonusBranches (F : R → R) (a b : R) (hab : a < b)1337 (minimum : ∃ c, a ≤ c ∧ c ≤ b ∧ ∀ x, a ≤ x → x ≤ b → F c ≤ F x)1338 (rightDrop : ∀ c, a ≤ c → c < b → ∃ x, c < x ∧ x ≤ b ∧ F x < F c) :1339 F b < F a := by1340 obtain ⟨c,hac,hcb,hmin⟩ := minimum1341 have hc : c = b := by1342 by_cases h : c < b1343 · obtain ⟨x,hx,hxb,hval⟩ := rightDrop c hac h1344 have := hmin x (by grind) hxb; grind1345 · grind1346 obtain ⟨x,hx,hxb,hval⟩ := rightDrop a (by grind) hab1347 have := hmin x (by grind) hxb1348 rw [hc] at this1349 grind13501351/-- At a switch both smooth continuations take the same value. Either1352selection therefore gives a strict local drop. -/1353theorem commonBoundaryDrop (F positive zero : R → R) (c x : R)1354 (h1 : F c=positive c) (h2 : F c=zero c)1355 (selection : F x=positive x ∨ F x=zero x)1356 (hp : positive x < positive c) (hz : zero x < zero c) : F x < F c := by grind13571358/-- Proposition 3(i). The two channels have the form (1-m)A and mK.1359Positive uniform bounds over the direct-production benchmarks give two1360cutoffs, with no claim of one crossing inside the middle interval. -/1361theorem effortThresholds (A K : R → R) (amin amax kmin kmax : R)1362 (ha : 0 < amin) (hak : amin ≤ amax) (hk : 0 < kmin) (hkk : kmin ≤ kmax)1363 (bounds : ∀ m, 0 < m → m < 1 → amin ≤ A m ∧ A m ≤ amax ∧ kmin ≤ K m ∧ K m ≤ kmax) :1364 ∃ low high, 0 < low ∧ low ≤ high ∧ high < 1 ∧1365 (∀ m, 0 < m → m < low → m*K m < (1-m)*A m) ∧1366 (∀ m, high < m → m < 1 → (1-m)*A m < m*K m) := by1367 let low := amin/(amin+kmax)1368 let high := amax/(amax+kmin)1369 have dl : 0 < amin+kmax := by grind1370 have dh : 0 < amax+kmin := by grind1371 have hl : low*(amin+kmax)=amin := Field.div_mul_cancel (by grind)1372 have hh : high*(amax+kmin)=amax := Field.div_mul_cancel (by grind)1373 have h0 : 0 < low := by apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_right dl).mp; grind1374 have h1 : high < 1 := by apply (Field.IsOrdered.mul_lt_mul_iff_of_pos_right dh).mp; grind1375 have order : low ≤ high := by1376 have b1 := OrderedRing.mul_le_mul_of_nonneg_right hak (le_of_lt hk)1377 have b2 := OrderedRing.mul_le_mul_of_nonneg_left hkk (c := amax) (by grind)1378 have p1 := congrArg (fun z => z*(amax+kmin)) hl1379 have p2 := congrArg (fun z => z*(amin+kmax)) hh1380 try dsimp only at p1 p21381 apply (Field.IsOrdered.mul_le_mul_iff_of_pos_right (positiveProduct dl dh)).mp1382 grind1383 refine ⟨low,high,h0,order,h1,?_,?_⟩1384 · intro m hm hml1385 obtain ⟨a,_,_,k⟩ := bounds m hm (by grind)1386 have v1 := OrderedRing.mul_lt_mul_of_pos_right hml dl1387 have v2 := OrderedRing.mul_le_mul_of_nonneg_left a (c := 1-m) (by grind)1388 have v3 := OrderedRing.mul_le_mul_of_nonneg_left k (le_of_lt hm)1389 grind1390 · intro m hhm hm11391 obtain ⟨_,a,k,_⟩ := bounds m (by grind) hm11392 have v1 := OrderedRing.mul_lt_mul_of_pos_right hhm dh1393 have v2 := OrderedRing.mul_le_mul_of_nonneg_left a (c := 1-m) (by grind)1394 have v3 := OrderedRing.mul_le_mul_of_nonneg_left k (c := m) (by grind)1395 grind13961397/-- Least-upper-bound property localized to nonempty sets bounded above.1398This is the ordinary completeness property used in the interval arguments. -/1399def CompleteSupport (R : Type) [LE R] : Prop :=1400 ∀ (b : R) (S : R → Prop), (∃ x, S x) → (∀ x, S x → x ≤ b) →1401 ∃ c, (∀ x, S x → x ≤ c) ∧ ∀ u, (∀ x, S x → x ≤ u) → c ≤ u14021403theorem intermediateValue (F : R → R) (a b t : R) (ha : 0 ≤ a) (hab : a < b)1404 (hleft : F a < t) (hright : t < F b) (cont : ContinuousSupport F) (complete : CompleteSupport R) :1405 ∃ c, a < c ∧ c < b ∧ F c = t := by1406 obtain ⟨c,hc,hcb,hroot⟩ := continuousCrossing (fun x => t-F x) a b hab1407 (by grind) (by grind) (complete b) (by1408 intro c hc hcb hpos1409 obtain ⟨δ,hd,hnear⟩ := cont c (by grind) (t-F c) hpos1410 obtain ⟨v,hv,hδ,hbc,_,_⟩ := smallStep δ (b-c) δ δ hd (by grind) hd hd1411 have := hnear (c+v) (by grind) (by grind) (by grind)1412 exact ⟨c+v,by grind,by grind,by grind⟩) (by1413 intro c hc hcb hneg1414 obtain ⟨δ,hd,hnear⟩ := cont c (by grind) (F c-t) (by grind)1415 obtain ⟨v,hv,hδ,hca,_,_⟩ := smallStep δ (c-a) δ δ hd (by grind) hd hd1416 refine ⟨c-v,by grind,?_⟩1417 intro x hx hxc1418 have := hnear x (by grind) (by grind) (by grind)1419 grind)1420 exact ⟨c,hc,hcb,by grind⟩14211422/-- OA1 separating signal. The minimizing point of the deterrence set1423exists; if signaling distorts the supportive type, imitation binds. -/1424theorem separatingSignalExists (loss : R → R) (f b : R) (hf : 0 ≤ f)1425 (unboundedLoss : ∃ u, f < u ∧ b < loss u)1426 (strictLoss : ∀ x y, f ≤ x → x < y → loss x < loss y)1427 (cont : ContinuousSupport loss) (complete : CompleteSupport R) :1428 ∃ z, f ≤ z ∧ b ≤ loss z ∧ (f < z → loss z=b) ∧1429 ∀ y, f ≤ y → b ≤ loss y → z ≤ y := by1430 by_cases ready : b ≤ loss f1431 · exact ⟨f,by grind,ready,by grind,by grind⟩1432 · obtain ⟨u,hu,hv⟩ := unboundedLoss1433 obtain ⟨z,hfz,_,he⟩ := intermediateValue loss f u b hf hu (by grind) hv cont complete1434 refine ⟨z,le_of_lt hfz,by grind,by grind,?_⟩1435 intro y hfy hby1436 by_cases hy : y < z1437 · have := strictLoss _ _ hfy hy; grind1438 · grind14391440/-- The maximized imitation loss is continuous in m even when the optimal1441type-0 support varies. Bounded compensation makes it Lipschitz. -/1442theorem imitationLossLipschitz (W K : R → R) (f : R → R) (fb m n : R)1443 (hmn : m ≤ n)1444 (bestM : W (f n)-m*K (f n) ≤ W (f m)-m*K (f m))1445 (bestN : W (f m)-n*K (f m) ≤ W (f n)-n*K (f n))1446 (hmK : 0 ≤ K (f m) ∧ K (f m) ≤ 1) (hnK : 0 ≤ K (f n) ∧ K (f n) ≤ 1)1447 (hfb : 0 ≤ K fb ∧ K fb ≤ 1) :1448 let loss := fun x => (W (f x)-x*K (f x))-(W fb-x*K fb);1449 -(n-m) ≤ loss n-loss m ∧ loss n-loss m ≤ n-m := by1450 dsimp only1451 have low := nonnegativeProduct (a := n-m) (by grind) (b := 1+K fb-K (f m)) (by grind)1452 have high := nonnegativeProduct (a := n-m) (by grind) (b := 1+K (f n)-K fb) (by grind)1453 grind14541455/-- OA1 threshold trichotomy, with existence and uniqueness in the interior1456and strict inequalities at the endpoint career benefits. Continuity need1457only hold on the economically relevant interval; here a continuous1458extension beyond one is convenient (holding the endpoint loss constant). -/1459theorem boardTypeCutoffs (loss : R → R) (b : R) (complete : CompleteSupport R)1460 (cont : ContinuousSupport loss)1461 (mono : ∀ x y, 0 ≤ x → x < y → y ≤ 1 → loss x < loss y) :1462 (b ≤ loss 0 → ∀ m, 0 < m → m < 1 → b < loss m) ∧1463 (loss 1 ≤ b → ∀ m, 0 < m → m < 1 → loss m < b) ∧1464 (loss 0 < b → b < loss 1 → ∃ m, 0 < m ∧ m < 1 ∧ loss m=b ∧1465 ∀ x, 0 ≤ x → x ≤ 1 → (x < m ↔ loss x < b) ∧ (x = m ↔ loss x=b) ∧ (m < x ↔ b < loss x)) := by1466 refine ⟨?_,?_,?_⟩1467 · intro h m hm hm1; have := mono 0 m (by grind) hm (by grind); grind1468 · intro h m hm hm1; have := mono m 1 (by grind) hm1 (by grind); grind1469 · intro h0 h11470 apply uniqueControlCutoff loss b _ mono1471 exact intermediateValue loss 0 1 b (by grind) OrderedRing.zero_lt_one h0 h1 cont complete1472end Scapegoating