Positive-reserve source piecewise quadratic first derivative
ProvedAvramDividend.Classical.avram_gbB30_piecewise_first_derivativeavramdividendderivativegaussianpiecewise-quadratic
For the exact piecewise source w(z)=0 below zero and 2z-4z² otherwise, certify its first derivative on strictly positive reserves using only local polynomial equality.
Preamble
import Mathlib open MeasureTheory Set Filter Topology noncomputable section
Formal statement
theorem AvramDividend.Classical.avram_gbB30_piecewise_first_derivative (y : ℝ) (hy : 0 < y) :
deriv (fun z : ℝ => if z < 0 then 0 else 2 * z - 4 * z ^ 2) y = 2 - 8 * y := by sorry