A right-derivative limit preserves a closed lower bound on secants
ProvedNestedSeatAlloc.IntPolicy.right_derivative_preserves_secant_lower_boundairline-revenue-managementcalculus-helperright-derivativesecant-slopetheorem1
If every strictly rightward secant slope of a real function from a point is at least c, then any right derivative at that point is also at least c.
Preamble
import Mathlib open Filter open scoped Topology
Formal statement
namespace NestedSeatAlloc.IntPolicy
theorem right_derivative_preserves_secant_lower_bound
(g : ℝ → ℝ) (a r c : ℝ)
(hderiv : HasDerivWithinAt g r (Set.Ici a) a)
(hsec : ∀ y, a < y → c ≤ slope g a y) :
c ≤ r := by sorry
end NestedSeatAlloc.IntPolicySource
Source-faithful closed-limit calculus lemma used in the base-fare argument for theorem1_global_optimality_step_all_seats (d9b68cbf-156f-4fa7-a4ac-4abe5f223739). The source proof converts HasDerivWithinAt on Ici a to convergence of the slope map on the punctured right filter, transfers membership in the closed interval Ici c through the limit, and concludes c ≤ r.