OAI/Combinatorics/SharpThreshold/ThresholdODE.lean
3 declarations, 0 contain sorry, 0 declared as axioms
- theorem
OAI.Problem313.hasDerivAt_log_oddsline 10Source documentation
The derivative of log odds, stated without any probability-specific definitions.
theorem hasDerivAt_log_odds {μ : ℝ → ℝ} {d x : ℝ} (hd : HasDerivAt μ d x) (hpos : 0 < μ x) (hone : μ x < 1) : HasDerivAt (fun t => Real.log (μ t) - Real.log (1 - μ t)) (d / (μ x * (1 - μ x))) x := by … - theorem
OAI.Problem313.logistic_coordinate_widthline 23Source documentation
Integrating a logistic differential inequality by the mean value theorem. Continuity is needed on the closed interval, differentiability only in its interior.
theorem logistic_coordinate_width {μ μ' : ℝ → ℝ} {a b C : ℝ} (hab : a ≤ b) (hcont : ContinuousOn μ (Set.Icc a b)) (hμ : ∀ x ∈ Set.Icc a b, 0 < μ x ∧ μ x < 1) (hd : ∀ x ∈ Set.Ioo a b, HasDerivAt μ (μ' x) x) (hbound : ∀ x ∈ Set.Ioo a b, μ x * (1 - μ x) ≤ C * μ' x) : b - a ≤ C * ((Real.log (μ b) - Real.log (1 - μ b)) - (Real.log (μ a) - Real.log (1 - μ a))) := by … - theorem
OAI.Problem313.logistic_width_of_hasDerivAtline 57Source documentation
The symmetric endpoint form used in sharp-threshold estimates.
theorem logistic_width_of_hasDerivAt {μ μ' : ℝ → ℝ} {a b C ε : ℝ} (hab : a ≤ b) (hε : 0 < ε) (hεone : ε < 1) (hcont : ContinuousOn μ (Set.Icc a b)) (hμ : ∀ x ∈ Set.Icc a b, 0 < μ x ∧ μ x < 1) (hd : ∀ x ∈ Set.Ioo a b, HasDerivAt μ (μ' x) x) (hbound : ∀ x ∈ Set.Ioo a b, μ x * (1 - μ x) ≤ C * μ' x) (ha : μ a = ε) (hb : μ b = 1 - ε) : b - a ≤ 2 * C * Real.log ((1 - ε) / ε) := by …