Imports
import Mathlib.Tactic import Mathlib.Topology.ContinuousOn import Analysis.Section_7_3 import Analysis.Section_9_4 import Analysis.Section_9_8 import Analysis.Section_10_1 import Analysis.Section_10_2 import Analysis.Section_11_6 import Analysis.Section_11_8

Analysis I, Section 11.9: The two fundamental theorems of calculus

I have attempted to make the translation as faithful a paraphrasing as possible of the original text. When there is a choice between a more idiomatic Lean solution and a more faithful translation, I have generally chosen the latter. In particular, there will be places where the Lean code could be "golfed" to be more elegant and idiomatic, but I have consciously avoided doing so.

Main constructions and results of this section:

  • The fundamental theorems of calculus.

namespace Chapter11open Chapter9 Chapter10 BoundedInterval

Theorem 11.9.1 (First Fundamental Theorem of Calculus)

theorem cts_of_integ {a b:} {f: } (hf: IntegrableOn f (Icc a b)) : ContinuousOn (fun x => integ f (Icc a x)) (.Icc a b) := a:b:f: hf:IntegrableOn f (Icc a b)ContinuousOn (fun x integ f (Icc a x)) (Set.Icc a b) -- This proof is written to follow the structure of the original text. a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)ContinuousOn F (Set.Icc a b) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| MContinuousOn F (Set.Icc a b) have {x y:} (hxy: x < y) (hx: x Set.Icc a b) (hy: y Set.Icc a b) : |F y - F x| M * (y - x) := a:b:f: hf:IntegrableOn f (Icc a b)ContinuousOn (fun x integ f (Icc a x)) (Set.Icc a b) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y b|F y - F x| M * (y - x) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)|F y - F x| M * (y - x) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)integ f (Ioc x y) M * (y - x) -integ f (Ioc x y) M * (y - x) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)integ f (Ioc x y) M * (y - x)a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)-integ f (Ioc x y) M * (y - x) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)integ f (Ioc x y) M * (y - x) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)M * (y - x) = integ (fun x M) (Ioc x y)a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)MajorizesOn (fun x M) f (Ioc x y) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)M * (y - x) = integ (fun x M) (Ioc x y) All goals completed! 🐙 intro z a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)z:hz:z (Ioc x y)f z (fun x M) z a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)z:hz:z (Ioc x y)z (Icc a b)a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:x:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)z:hz:z (Ioc x y)hM:|f z| Mf z (fun x M) z a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)z:hz:z (Ioc x y)z (Icc a b) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:x:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)z:hM: (x : ), a x x b |f x| Mhz:x < z z ya z z b; All goals completed! 🐙 All goals completed! 🐙 a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)-(M * (y - x)) integ f (Ioc x y) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)-(M * (y - x)) = integ (fun x -M) (Ioc x y)a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)MajorizesOn f (fun x -M) (Ioc x y) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)-(M * (y - x)) = integ (fun x -M) (Ioc x y) All goals completed! 🐙 intro z a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)z:hz:z (Ioc x y)(fun x -M) z f z a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)z:hz:z (Ioc x y)z (Icc a b)a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:x:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)z:hz:z (Ioc x y)hM:|f z| M(fun x -M) z f z a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mx:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)z:hz:z (Ioc x y)z (Icc a b) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:x:y:hxy:x < yhx:a x x bhy:a y y bthis:IntegrableOn f (Ioc x y) integ f (Icc a y) = integ f (Icc a x) + integ f (Ioc x y)z:hM: (x : ), a x x b |f x| Mhz:x < z z ya z z b; All goals completed! 🐙 All goals completed! 🐙 replace {x y:} (hx: x Set.Icc a b) (hy: y Set.Icc a b) : |F y - F x| M * |x-y| := a:b:f: hf:IntegrableOn f (Icc a b)ContinuousOn (fun x integ f (Icc a x)) (Set.Icc a b) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x < y x Set.Icc a b y Set.Icc a b |F y - F x| M * (y - x)x:y:hx:x Set.Icc a bhy:y Set.Icc a bh:x < y|F y - F x| M * |x - y|a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x < y x Set.Icc a b y Set.Icc a b |F y - F x| M * (y - x)x:hx:x Set.Icc a bhy:x Set.Icc a b|F x - F x| M * |x - x|a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x < y x Set.Icc a b y Set.Icc a b |F y - F x| M * (y - x)x:y:hx:x Set.Icc a bhy:y Set.Icc a bh:y < x|F y - F x| M * |x - y| a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x < y x Set.Icc a b y Set.Icc a b |F y - F x| M * (y - x)x:y:hx:x Set.Icc a bhy:y Set.Icc a bh:x < y|F y - F x| M * |x - y| All goals completed! 🐙 a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x < y x Set.Icc a b y Set.Icc a b |F y - F x| M * (y - x)x:hx:x Set.Icc a bhy:x Set.Icc a b|F x - F x| M * |x - x| All goals completed! 🐙 a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x < y x Set.Icc a b y Set.Icc a b |F y - F x| M * (y - x)x:y:hx:x Set.Icc a bhy:y Set.Icc a bh:y < x|F y - F x| M * |x - y| All goals completed! 🐙 replace : UniformContinuousOn F (.Icc a b) := a:b:f: hf:IntegrableOn f (Icc a b)ContinuousOn (fun x integ f (Icc a x)) (Set.Icc a b) a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x Set.Icc a b y Set.Icc a b |F y - F x| M * |x - y| (ε : ), 0 < ε δ, 0 < δ x Set.Icc a b, y Set.Icc a b, |x - y| < δ |F x - F y| < ε intro ε a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x Set.Icc a b y Set.Icc a b |F y - F x| M * |x - y|ε::0 < ε δ, 0 < δ x Set.Icc a b, y Set.Icc a b, |x - y| < δ |F x - F y| < ε use (ε/(max M 1)), (a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x Set.Icc a b y Set.Icc a b |F y - F x| M * |x - y|ε::0 < ε0 < ε / max M 1 All goals completed! 🐙) intro x a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x Set.Icc a b y Set.Icc a b |F y - F x| M * |x - y|ε::0 < εx:hx:x Set.Icc a b y Set.Icc a b, |x - y| < ε / max M 1 |F x - F y| < ε a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x Set.Icc a b y Set.Icc a b |F y - F x| M * |x - y|ε::0 < εx:hx:x Set.Icc a by:y Set.Icc a b |x - y| < ε / max M 1 |F x - F y| < ε a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x Set.Icc a b y Set.Icc a b |F y - F x| M * |x - y|ε::0 < εx:hx:x Set.Icc a by:hy:y Set.Icc a b|x - y| < ε / max M 1 |F x - F y| < ε a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x Set.Icc a b y Set.Icc a b |F y - F x| M * |x - y|ε::0 < εx:hx:x Set.Icc a by:hy:y Set.Icc a bhxy:|x - y| < ε / max M 1|F x - F y| < ε calc _ = |F y - F x| := a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x Set.Icc a b y Set.Icc a b |F y - F x| M * |x - y|ε::0 < εx:hx:x Set.Icc a by:hy:y Set.Icc a bhxy:|x - y| < ε / max M 1|F x - F y| = |F y - F x| All goals completed! 🐙 _ M * |x-y| := this hx hy _ (max M 1) * |x-y| := a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x Set.Icc a b y Set.Icc a b |F y - F x| M * |x - y|ε::0 < εx:hx:x Set.Icc a by:hy:y Set.Icc a bhxy:|x - y| < ε / max M 1M * |x - y| max M 1 * |x - y| a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x Set.Icc a b y Set.Icc a b |F y - F x| M * |x - y|ε::0 < εx:hx:x Set.Icc a by:hy:y Set.Icc a bhxy:|x - y| < ε / max M 1M max M 1; All goals completed! 🐙 _ < (max M 1) * (ε / (max M 1)) := a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x Set.Icc a b y Set.Icc a b |F y - F x| M * |x - y|ε::0 < εx:hx:x Set.Icc a by:hy:y Set.Icc a bhxy:|x - y| < ε / max M 1max M 1 * |x - y| < max M 1 * (ε / max M 1) All goals completed! 🐙 _ = _ := a:b:f: hf:IntegrableOn f (Icc a b)F: := fun x integ f (Icc a x)M:hM: x (Icc a b), |f x| Mthis: {x y : }, x Set.Icc a b y Set.Icc a b |F y - F x| M * |x - y|ε::0 < εx:hx:x Set.Icc a by:hy:y Set.Icc a bhxy:|x - y| < ε / max M 1max M 1 * (ε / max M 1) = ε All goals completed! 🐙 All goals completed! 🐙
theorem declaration uses `sorry`deriv_of_integ {a b:} (hab: a < b) {f: } (hf: IntegrableOn f (Icc a b)) {x₀:} (hx₀ : x₀ Set.Icc a b) (hcts: ContinuousWithinAt f (Icc a b) x₀) : HasDerivWithinAt (fun x => integ f (Icc a x)) (f x₀) (.Icc a b) x₀ := a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts:ContinuousWithinAt f (↑(Icc a b)) x₀HasDerivWithinAt (fun x integ f (Icc a x)) (f x₀) (Set.Icc a b) x₀ -- This proof is written to follow the structure of the original text. a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts:ContinuousWithinAt f (↑(Icc a b)) x₀ ε > 0, δ > 0, x Set.Icc a b, |x - x₀| < δ |integ f (Icc a x) - integ f (Icc a x₀) - f x₀ * (x - x₀)| ε * |x - x₀| a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < ε ε > 0, δ > 0, x Set.Icc a b, |x - x₀| < δ |integ f (Icc a x) - integ f (Icc a x₀) - f x₀ * (x - x₀)| ε * |x - x₀| a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < ε x Set.Icc a b, |x - x₀| < δ |integ f (Icc a x) - integ f (Icc a x₀) - f x₀ * (x - x₀)| ε * |x - x₀|; intro y a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a b|y - x₀| < δ |integ f (Icc a y) - integ f (Icc a x₀) - f x₀ * (y - x₀)| ε * |y - x₀| a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δ|integ f (Icc a y) - integ f (Icc a x₀) - f x₀ * (y - x₀)| ε * |y - x₀| a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < y|integ f (Icc a y) - integ f (Icc a x₀) - f x₀ * (y - x₀)| ε * |y - x₀|a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εhy:x₀ Set.Icc a bhyδ:|x₀ - x₀| < δ|integ f (Icc a x₀) - integ f (Icc a x₀) - f x₀ * (x₀ - x₀)| ε * |x₀ - x₀|a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:y < x₀|integ f (Icc a y) - integ f (Icc a x₀) - f x₀ * (y - x₀)| ε * |y - x₀| a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < y|integ f (Icc a y) - integ f (Icc a x₀) - f x₀ * (y - x₀)| ε * |y - x₀| a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)|integ f (Icc a y) - integ f (Icc a x₀) - f x₀ * (y - x₀)| ε * |y - x₀| a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)integ f (Ioc x₀ y) ε * (y - x₀) + f x₀ * (y - x₀) f x₀ * (y - x₀) ε * (y - x₀) + integ f (Ioc x₀ y) a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)h1:integ f (Ioc x₀ y) integ (fun x f x₀ + ε) (Ioc x₀ y)integ f (Ioc x₀ y) ε * (y - x₀) + f x₀ * (y - x₀) f x₀ * (y - x₀) ε * (y - x₀) + integ f (Ioc x₀ y)a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)MajorizesOn (fun x f x₀ + ε) f (Ioc x₀ y) a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)h1:integ f (Ioc x₀ y) integ (fun x f x₀ + ε) (Ioc x₀ y)h2:integ (fun x f x₀ - ε) (Ioc x₀ y) integ f (Ioc x₀ y)integ f (Ioc x₀ y) ε * (y - x₀) + f x₀ * (y - x₀) f x₀ * (y - x₀) ε * (y - x₀) + integ f (Ioc x₀ y)a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)h1:integ f (Ioc x₀ y) integ (fun x f x₀ + ε) (Ioc x₀ y)MajorizesOn f (fun x f x₀ - ε) (Ioc x₀ y)a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)MajorizesOn (fun x f x₀ + ε) f (Ioc x₀ y) a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)h1:integ f (Ioc x₀ y) integ (fun x f x₀ + ε) (Ioc x₀ y)h2:integ (fun x f x₀ - ε) (Ioc x₀ y) integ f (Ioc x₀ y)integ f (Ioc x₀ y) ε * (y - x₀) + f x₀ * (y - x₀) f x₀ * (y - x₀) ε * (y - x₀) + integ f (Ioc x₀ y) a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)h1:integ f (Ioc x₀ y) (f x₀ + ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a)h2:(f x₀ - ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a) integ f (Ioc x₀ y)integ f (Ioc x₀ y) ε * (y - x₀) + f x₀ * (y - x₀) f x₀ * (y - x₀) ε * (y - x₀) + integ f (Ioc x₀ y) a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)h1:integ f (Ioc x₀ y) (f x₀ + ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a)h2:(f x₀ - ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a) integ f (Ioc x₀ y)integ f (Ioc x₀ y) ε * (y - x₀) + f x₀ * (y - x₀)a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)h1:integ f (Ioc x₀ y) (f x₀ + ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a)h2:(f x₀ - ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a) integ f (Ioc x₀ y)f x₀ * (y - x₀) ε * (y - x₀) + integ f (Ioc x₀ y) a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)h1:integ f (Ioc x₀ y) (f x₀ + ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a)h2:(f x₀ - ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a) integ f (Ioc x₀ y)integ f (Ioc x₀ y) ε * (y - x₀) + f x₀ * (y - x₀) a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)h1:integ f (Ioc x₀ y) (f x₀ + ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a)h2:(f x₀ - ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a) integ f (Ioc x₀ y)ε * (y - x₀) + f x₀ * (y - x₀) = (f x₀ + ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a); All goals completed! 🐙 a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)h1:integ f (Ioc x₀ y) (f x₀ + ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a)h2:(f x₀ - ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a) integ f (Ioc x₀ y)f x₀ * (y - x₀) ε * (y - x₀) + integ f (Ioc x₀ y) a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)hx₀:0 x₀ - a - 0 0 b - x₀ - 0hcts: (ε : ), 0 < ε δ, 0 < δ (x : ), 0 x - a - 0 0 b - x - 0 |x - x₀| < δ |f x - f x₀| < ε:0 < ε:0 < δhconv: (x : ), 0 x - a - 0 0 b - x - 0 |x - x₀| < δ |f x - f x₀| < εhy:0 y - a - 0 0 b - y - 0h1:0 (f x₀ + ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a) - integ f (Ioc x₀ y) - 0h2:0 integ f (Ioc x₀ y) - (f x₀ - ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a) - 00 ε * (y - x₀) + integ f (Ioc x₀ y) - f x₀ * (y - x₀) - 0; a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)hx₀:0 x₀ - a - 0 0 b - x₀ - 0hcts: (ε : ), 0 < ε δ, 0 < δ (x : ), 0 x - a - 0 0 b - x - 0 |x - x₀| < δ |f x - f x₀| < ε:0 < ε:0 < δhconv: (x : ), 0 x - a - 0 0 b - x - 0 |x - x₀| < δ |f x - f x₀| < εhy:0 y - a - 0 0 b - y - 0h1:0 (f x₀ + ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a) - integ f (Ioc x₀ y) - 0h2:0 integ f (Ioc x₀ y) - (f x₀ - ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a) - 0ε * (y - x₀) + integ f (Ioc x₀ y) - f x₀ * (y - x₀) - 0 = integ f (Ioc x₀ y) - (f x₀ - ε) * ((Ioc x₀ y).b - (Ioc x₀ y).a) - 0; All goals completed! 🐙 all_goals intro z a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εy:hy:y Set.Icc a bhyδ:|y - x₀| < δhx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)z:hz:z (Ioc x₀ y)f z (fun x f x₀ + ε) z; a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)z:hx₀:a x₀ x₀ bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < ε:0 < ε:0 < δhconv: (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < εhy:a y y bhyδ:x₀ < δ + y y - x₀ < δhz:x₀ < z z yf z f x₀ + ε; a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)z:hx₀:a x₀ x₀ bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < ε:0 < ε:0 < δhconv: (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < εhy:a y y bhyδ:x₀ < δ + y y - x₀ < δhz:x₀ < z z ya za:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)z:hx₀:a x₀ x₀ bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < ε:0 < ε:0 < δhconv: (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < εhy:a y y bhyδ:x₀ < δ + y y - x₀ < δhz:x₀ < z z yz ba:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)z:hx₀:a x₀ x₀ bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < ε:0 < ε:0 < δhconv: (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < εhy:a y y bhyδ:x₀ < δ + y y - x₀ < δhz:x₀ < z z yx₀ < δ + za:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)z:hx₀:a x₀ x₀ bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < ε:0 < ε:0 < δhconv: (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < εhy:a y y bhyδ:x₀ < δ + y y - x₀ < δhz:x₀ < z z yz - x₀ < δa:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)z:hx₀:a x₀ x₀ bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < ε:0 < ε:0 < δhy:a y y bhyδ:x₀ < δ + y y - x₀ < δhz:x₀ < z z yhconv:f x₀ < ε + f z f z - f x₀ < εf z f x₀ + ε a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)z:hx₀:a x₀ x₀ bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < ε:0 < ε:0 < δhconv: (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < εhy:a y y bhyδ:x₀ < δ + y y - x₀ < δhz:x₀ < z z ya za:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)z:hx₀:a x₀ x₀ bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < ε:0 < ε:0 < δhconv: (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < εhy:a y y bhyδ:x₀ < δ + y y - x₀ < δhz:x₀ < z z yz ba:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)z:hx₀:a x₀ x₀ bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < ε:0 < ε:0 < δhconv: (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < εhy:a y y bhyδ:x₀ < δ + y y - x₀ < δhz:x₀ < z z yx₀ < δ + za:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)z:hx₀:a x₀ x₀ bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < ε:0 < ε:0 < δhconv: (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < εhy:a y y bhyδ:x₀ < δ + y y - x₀ < δhz:x₀ < z z yz - x₀ < δa:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:ε:δ:y:hx₀y:x₀ < ythis:IntegrableOn f (Ioc x₀ y) integ f (Icc a y) = integ f (Icc a x₀) + integ f (Ioc x₀ y)z:hx₀:a x₀ x₀ bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b x₀ < δ + x x - x₀ < δ f x₀ < ε + f x f x - f x₀ < ε:0 < ε:0 < δhy:a y y bhyδ:x₀ < δ + y y - x₀ < δhz:x₀ < z z yhconv:f x₀ < ε + f z f z - f x₀ < εf z f x₀ + ε All goals completed! 🐙 a:b:hab:a < bf: hf:IntegrableOn f (Icc a b)x₀:hx₀:x₀ Set.Icc a bhcts: (ε : ), 0 < ε δ, 0 < δ (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εε::ε > 0δ::δ > 0hconv: (x : ), a x x b |x - x₀| < δ |f x - f x₀| < εhy:x₀ Set.Icc a bhyδ:|x₀ - x₀| < δ|integ f (Icc a x₀) - integ f (Icc a x₀) - f x₀ * (x₀ - x₀)| ε * |x₀ - x₀| All goals completed! 🐙 All goals completed! 🐙

Example 11.9.2

theorem IntegrableOn.of_f_9_8_5 : IntegrableOn f_9_8_5 (Icc 0 1) := integ_of_monotone (StrictMonoOn.of_f_9_8_5.mono ((Icc 0 1) Set.univ All goals completed! 🐙)).monotoneOn
noncomputable abbrev F_11_9_2 := fun x integ f_9_8_5 (Icc 0 x)theorem ContinuousOn.of_F_11_9_2 : ContinuousOn F_11_9_2 (.Icc 0 1) := cts_of_integ IntegrableOn.of_f_9_8_5theorem DifferentiableOn.of_F_11_9_2 {x:} (hx: ¬ r:, x = r) (hx': x Set.Icc 0 1) : DifferentiableWithinAt F_11_9_2 (.Icc 0 1) x := x:hx:¬ r, x = rhx':x Set.Icc 0 1DifferentiableWithinAt F_11_9_2 (Set.Icc 0 1) x have := deriv_of_integ (show 0 < 1 x:hx:¬ r, x = rhx':x Set.Icc 0 1DifferentiableWithinAt F_11_9_2 (Set.Icc 0 1) x All goals completed! 🐙) .of_f_9_8_5 hx' (ContinuousAt.of_f_9_8_5 hx).continuousWithinAt x:hx:¬ r, x = rhx':x Set.Icc 0 1this:HasFDerivWithinAt (fun x integ f_9_8_5 (Icc 0 x)) (ContinuousLinearMap.toSpanSingleton (f_9_8_5 x)) (Set.Icc 0 1) xDifferentiableWithinAt F_11_9_2 (Set.Icc 0 1) x All goals completed! 🐙

Exercise 11.9.1

theorem declaration uses `sorry`DifferentiableOn.of_F_11_9_2' {q:} (hq: (q:) Set.Icc 0 1) : ¬ DifferentiableWithinAt F_11_9_2 (.Icc 0 1) q := q:hq:q Set.Icc 0 1¬DifferentiableWithinAt F_11_9_2 (Set.Icc 0 1) q All goals completed! 🐙

Definition 11.9.3. We drop the requirement that x be a limit point as this makes the Lean arguments slightly cleaner

abbrev AntiderivOn (F f: ) (I: BoundedInterval) := DifferentiableOn F I x I, HasDerivWithinAt F (f x) I x
theorem AntiderivOn.mono {F f: } {I J: BoundedInterval} (h: AntiderivOn F f I) (hIJ: J I) : AntiderivOn F f J := h.1.mono hIJ, F: f: I:BoundedIntervalJ:BoundedIntervalh:AntiderivOn F f IhIJ:J I x J, HasDerivWithinAt F (f x) (↑J) x intro x F: f: I:BoundedIntervalJ:BoundedIntervalh:AntiderivOn F f IhIJ:J Ix:hx:x JHasDerivWithinAt F (f x) (↑J) x; F: f: I:BoundedIntervalJ:BoundedIntervalh:AntiderivOn F f IhIJ:J Ix:hx:x JHasDerivWithinAt F (f x) (↑J) x; All goals completed! 🐙

Theorem 11.9.4 (Second Fundamental Theorem of Calculus)

theorem declaration uses `sorry`integ_eq_antideriv_sub {a b:} (h:a b) {f F: } (hf: IntegrableOn f (Icc a b)) (hF: AntiderivOn F f (Icc a b)) : integ f (Icc a b) = F b - F a := a:b:h:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)integ f (Icc a b) = F b - F a -- This proof is written to follow the structure of the original text. a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < binteg f (Icc a b) = F b - F aa:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a = binteg f (Icc a b) = F b - F a a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < binteg f (Icc a b) = F b - F a have hF_cts : ContinuousOn F (.Icc a b) := a:b:h:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)integ f (Icc a b) = F b - F a intro x a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bx:hx:x Set.Icc a bContinuousWithinAt F (Set.Icc a b) x; All goals completed! 🐙 -- for technical reasons we need to extend F by constant outside of Icc a b a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)integ f (Icc a b) = F b - F a have hFF' {x:} (hx: x Set.Icc a b) : F' x = F x := a:b:h:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)integ f (Icc a b) = F b - F a All goals completed! 🐙 have hF'_cts : ContinuousOn F' (Ioo (a-1) (b+1)) := a:b:h:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)integ f (Icc a b) = F b - F a convert (hF_cts.comp_continuous (f := fun x max (min x b) a) (a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xContinuous fun x max (min x b) a All goals completed! 🐙) ?_).continuousOn using 1 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xx✝:(fun x max (min x b) a) x✝ Set.Icc a b; All goals completed! 🐙 have hupper (P: Partition (Icc a b)) : upper_riemann_sum f P F b - F a := a:b:h:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)integ f (Icc a b) = F b - F a a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)upper_riemann_sum f P F b - F a calc _ J P.intervals, F'[J]ₗ := a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)upper_riemann_sum f P J P.intervals, α_length F' J a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b) i P.intervals, α_length F' i sSup (f '' i) * i.length intro J a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ:J P.intervalsα_length F' J sSup (f '' J) * J.length; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ:J P.intervalshJ_empty:J = α_length F' J sSup (f '' J) * J.lengtha:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ:J P.intervalshJ_empty:¬J = α_length F' J sSup (f '' J) * J.length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ:J P.intervalshJ_empty:J = α_length F' J sSup (f '' J) * J.length All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ:J P.intervalshJ_empty:¬J = hJab:J.b J.aα_length F' J sSup (f '' J) * J.lengtha:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ:J P.intervalshJ_empty:¬J = hJab:J.a < J.bα_length F' J sSup (f '' J) * J.length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ:J P.intervalshJ_empty:¬J = hJab:J.b J.aα_length F' J sSup (f '' J) * J.length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ:J P.intervalshJab:J.b J.ahJ_empty:(↑J).Nonemptyα_length F' J sSup (f '' J) * J.length; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ:J P.intervalshJab:J.b J.ax:hx:x Jα_length F' J sSup (f '' J) * J.length cases J with a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:a✝:b✝:hJ:Ioo a✝ b✝ P.intervalshJab:(Ioo a✝ b✝).b (Ioo a✝ b✝).ahx:x (Ioo a✝ b✝)α_length F' (Ioo a✝ b✝) sSup (f '' (Ioo a✝ b✝)) * (Ioo a✝ b✝).length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:a✝:b✝:hJ:Ioo a✝ b✝ P.intervalshJab:(Ioo a✝ b✝).b (Ioo a✝ b✝).ahx:a✝ < x x < b✝α_length F' (Ioo a✝ b✝) sSup (f '' (Ioo a✝ b✝)) * (Ioo a✝ b✝).length; All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:a✝:b✝:hJ:Ioc a✝ b✝ P.intervalshJab:(Ioc a✝ b✝).b (Ioc a✝ b✝).ahx:x (Ioc a✝ b✝)α_length F' (Ioc a✝ b✝) sSup (f '' (Ioc a✝ b✝)) * (Ioc a✝ b✝).length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:a✝:b✝:hJ:Ioc a✝ b✝ P.intervalshJab:(Ioc a✝ b✝).b (Ioc a✝ b✝).ahx:a✝ < x x b✝α_length F' (Ioc a✝ b✝) sSup (f '' (Ioc a✝ b✝)) * (Ioc a✝ b✝).length; All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:a✝:b✝:hJ:Ico a✝ b✝ P.intervalshJab:(Ico a✝ b✝).b (Ico a✝ b✝).ahx:x (Ico a✝ b✝)α_length F' (Ico a✝ b✝) sSup (f '' (Ico a✝ b✝)) * (Ico a✝ b✝).length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:a✝:b✝:hJ:Ico a✝ b✝ P.intervalshJab:(Ico a✝ b✝).b (Ico a✝ b✝).ahx:a✝ x x < b✝α_length F' (Ico a✝ b✝) sSup (f '' (Ico a✝ b✝)) * (Ico a✝ b✝).length; All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:c:d:hJ:Icc c d P.intervalshJab:(Icc c d).b (Icc c d).ahx:x (Icc c d)α_length F' (Icc c d) sSup (f '' (Icc c d)) * (Icc c d).length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:c:d:hJ:Icc c d P.intervalshJab:(Icc c d).b (Icc c d).ahx:c x x dα_length F' (Icc c d) sSup (f '' (Icc c d)) * (Icc c d).length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:c:d:hJ:Icc c d P.intervalshJab:(Icc c d).b (Icc c d).ahx:c x x dα_length F' (Icc d d) 0 have hnhds: (Ioo (a-1) (b+1):Set ) nhds d := a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)upper_riemann_sum f P J P.intervals, α_length F' J a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:c:d:hJab:(Icc c d).b (Icc c d).ahx:c x x dhJ:Icc c d Icc a b(Ioo (a - 1) (b + 1)) nhds d a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:c:d:hJab:(Icc c d).b (Icc c d).ahx:c x x dhJ:Set.Icc c d Set.Icc a b(Ioo (a - 1) (b + 1)) nhds d a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:c:d:hJab:(Icc c d).b (Icc c d).ahx:c x x dhJ:a c d b(Ioo (a - 1) (b + 1)) nhds d a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:c:d:hJab:(Icc c d).b (Icc c d).ahx:c x x dhJ:a c d ba - 1 < da:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:c:d:hJab:(Icc c d).b (Icc c d).ahx:c x x dhJ:a c d bd < b + 1 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:c:d:hJab:(Icc c d).b (Icc c d).ahx:c x x dhJ:a c d ba - 1 < da:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x:c:d:hJab:(Icc c d).b (Icc c d).ahx:c x x dhJ:a c d bd < b + 1 All goals completed! 🐙 All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ:J P.intervalshJ_empty:¬J = c: := J.ahJab:c < J.bα_length F' J sSup (f '' J) * J.length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ:J P.intervalshJ_empty:¬J = c: := J.ad: := J.bhJab:c < dα_length F' J sSup (f '' J) * J.length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bα_length F' J sSup (f '' J) * J.length have hJ' : Icc a b Ioo (a-1/2) (b+1/2) := a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)upper_riemann_sum f P J P.intervals, α_length F' J a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a ba - 1 / 2 < aa:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bb < b + 1 / 2 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a ba - 1 / 2 < aa:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bb < b + 1 / 2 All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':Ioo J.a J.b Ioo (a - 1 / 2) (b + 1 / 2)α_length F' J sSup (f '' J) * J.length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':Set.Ioo J.a J.b Set.Ioo (a - 2⁻¹) (b + 2⁻¹)α_length F' J sSup (f '' J) * J.length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹α_length F' J sSup (f '' J) * J.length have hJ'' : Icc a b Ioo (a-1) (b+1) := a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)upper_riemann_sum f P J P.intervals, α_length F' J a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹a - 1 < aa:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹b < b + 1 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹a - 1 < aa:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹b < b + 1 All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)α_length F' J sSup (f '' J) * J.length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)F' J.b - F' J.a sSup (f '' J) * J.lengtha:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)a - 1 < J.aa:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)J.b < b + 1 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)F' J.b - F' J.a sSup (f '' J) * J.lengtha:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)a - 1 < J.aa:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)J.b < b + 1 try All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)this: x Set.Ioo c d, HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) xF' J.b - F' J.a sSup (f '' J) * J.lengtha:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)Set.Icc c d (Ioo (a - 1) (b + 1))a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)DifferentiableOn F' (Set.Ioo c d) a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)this: x Set.Ioo c d, HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) xF' J.b - F' J.a sSup (f '' J) * J.length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) eF' J.b - F' J.a sSup (f '' J) * J.length have : HasDerivWithinAt F' (f e) (.Ioo c d) e := a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)upper_riemann_sum f P J P.intervals, α_length F' J a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ehJ:Ioo J.a J.b Icc a bHasDerivWithinAt F' (f e) (Set.Ioo c d) e a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ehJ:Set.Ioo J.a J.b Set.Icc a bHasDerivWithinAt F' (f e) (Set.Ioo c d) e a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ehJ:Set.Ioo J.a J.b Set.Icc a b x Set.Ioo J.a J.b, F' x = F xa:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ehJ:Set.Ioo J.a J.b Set.Icc a bF' e = F e all_goals All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)F' J.b - F' J.a sSup (f '' J) * J.lengtha:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) eClusterPt e (Filter.principal (Set.Ioo c d \ {e})) a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)F' J.b - F' J.a sSup (f '' J) * J.length calc _ = F' d - F' c := rfl _ = (d - c) * f e := a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)F' d - F' c = (d - c) * f e a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)F' d - F' c = (d - c) * ((F' d - F' c) / (d - c)); have : d-c > 0 := a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)F' d - F' c = (d - c) * f e All goals completed! 🐙 All goals completed! 🐙 _ = f e * |J|ₗ := a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)(d - c) * f e = f e * J.length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)d - c = max (J.b - J.a) 0 f e = 0; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)d - c = max (J.b - J.a) 0; All goals completed! 🐙 _ _ := a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)f e * J.length sSup (f '' J) * J.length a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)f e sSup (f '' J); a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)BddAbove (f '' J)a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)f e f '' J a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)BddAbove (f '' J) a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c) x, y f '' J, y x a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)M:hM: x (Icc a b), |f x| M x, y f '' J, y x; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)M:hM: x (Icc a b), |f x| M y f '' J, y M a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)M:hM: x Set.Icc a b, f x M -f x M a J, f a M intro x a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)M:hM: x Set.Icc a b, f x M -f x Mx:hx:x Jf x M; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J (Icc a b)hJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)M:hM: x Set.Icc a b, f x M -f x Mx:hx:x Jf x M; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J (Icc a b)hJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)M:x:hx:x JhM:f x M -f x Mf x M; All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c) x J, f x = f e; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)e J f e = f e; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:f e = (F' d - F' c) / (d - c)e J; All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ee closure (Set.Ioo c d \ {e}) a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) eSet.Ioo e d Set.Ioo c d \ {e}a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ee closure (Set.Ioo e d) a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) eSet.Ioo e d Set.Ioo c d \ {e} intro _ a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:he:e Set.Ioo c dhmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ea✝¹:a✝:a✝¹ Set.Ioo e da✝¹ Set.Ioo c d \ {e}; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ'':J Ioo (a - 1) (b + 1)e:hmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ea✝¹:hFF': {x : }, a x x b F' x = F xhF'_cts:ContinuousOn F' (Set.Ioo (a - 1) (b + 1))hJ':a c + 2⁻¹ d b + 2⁻¹he:c < e e < da✝:e < a✝¹ a✝¹ < d(c < a✝¹ a✝¹ < d) ¬a✝¹ = e; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ'':J Ioo (a - 1) (b + 1)e:hmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ea✝¹:hFF': {x : }, a x x b F' x = F xhF'_cts:ContinuousOn F' (Set.Ioo (a - 1) (b + 1))hJ':a c + 2⁻¹ d b + 2⁻¹he:c < e e < da✝:e < a✝¹ a✝¹ < dc < a✝¹a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ'':J Ioo (a - 1) (b + 1)e:hmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ea✝¹:hFF': {x : }, a x x b F' x = F xhF'_cts:ContinuousOn F' (Set.Ioo (a - 1) (b + 1))hJ':a c + 2⁻¹ d b + 2⁻¹he:c < e e < da✝:e < a✝¹ a✝¹ < da✝¹ < da:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ'':J Ioo (a - 1) (b + 1)e:hmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ea✝¹:hFF': {x : }, a x x b F' x = F xhF'_cts:ContinuousOn F' (Set.Ioo (a - 1) (b + 1))hJ':a c + 2⁻¹ d b + 2⁻¹he:c < e e < da✝:e < a✝¹ a✝¹ < d¬a✝¹ = e a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ'':J Ioo (a - 1) (b + 1)e:hmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ea✝¹:hFF': {x : }, a x x b F' x = F xhF'_cts:ContinuousOn F' (Set.Ioo (a - 1) (b + 1))hJ':a c + 2⁻¹ d b + 2⁻¹he:c < e e < da✝:e < a✝¹ a✝¹ < dc < a✝¹a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ'':J Ioo (a - 1) (b + 1)e:hmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ea✝¹:hFF': {x : }, a x x b F' x = F xhF'_cts:ContinuousOn F' (Set.Ioo (a - 1) (b + 1))hJ':a c + 2⁻¹ d b + 2⁻¹he:c < e e < da✝:e < a✝¹ a✝¹ < da✝¹ < da:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ'':J Ioo (a - 1) (b + 1)e:hmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ea✝¹:hFF': {x : }, a x x b F' x = F xhF'_cts:ContinuousOn F' (Set.Ioo (a - 1) (b + 1))hJ':a c + 2⁻¹ d b + 2⁻¹he:c < e e < da✝:e < a✝¹ a✝¹ < d¬a✝¹ = e All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:hmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ehe:c < e e < de closure (Set.Ioo e d); a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:hmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ehe:c < e e < de Set.Icc e d; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this✝: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)e:hmean:HasDerivWithinAt F' ((F' d - F' c) / (d - c)) (Set.Ioo c d) ethis:HasDerivWithinAt F' (f e) (Set.Ioo c d) ehe:c < e e < de d; All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)Set.Icc c d (Ioo (a - 1) (b + 1)) a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)Set.Icc c d Set.Ioo (a - 1) (b + 1); a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ:J Icc a bhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)a - 1 < c d < b + 1; All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)hJ:Ioo J.a J.b Icc a bDifferentiableOn F' (Set.Ioo c d) a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)hJ:Ioo J.a J.b Icc a b x Set.Ioo c d, F' x = F xa:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)hJ:Ioo J.a J.b Icc a bSet.Ioo c d (Icc a b) a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)hJ:Ioo J.a J.b Icc a b x Set.Ioo c d, F' x = F x intro x a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)hJ:Ioo J.a J.b Icc a bx:hx:x Set.Ioo c dF' x = F x have : x Set.Icc a b := a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)upper_riemann_sum f P J P.intervals, α_length F' J a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)J:BoundedIntervalhJ_empty:¬J = c: := J.ad: := J.bhJab:c < dhJ':a - 2⁻¹ c d b + 2⁻¹hJ'':J Ioo (a - 1) (b + 1)x:hx:x Set.Ioo c dhJ:x Icc a bx Set.Icc a b; All goals completed! 🐙 All goals completed! 🐙 All goals completed! 🐙 _ = F'[Icc a b]ₗ := P.sum_of_α_length F' _ = F' b - F' a := a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)α_length F' (Icc a b) = F' b - F' a a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)a - 1 < (Icc a b).aa:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)(Icc a b).a (Icc a b).ba:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)(Icc a b).b < b + 1a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)Icc a b Ioo (a - 1) (b + 1) a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)a - 1 < (Icc a b).aa:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)(Icc a b).a (Icc a b).ba:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)(Icc a b).b < b + 1a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)Icc a b Ioo (a - 1) (b + 1) try a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)Icc a b Ioo (a - 1) (b + 1) intro _ a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x✝:a✝:x✝ Icc a bx✝ Ioo (a - 1) (b + 1); a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)x✝:hFF': {x : }, a x x b F' x = F xhF'_cts:ContinuousOn F' (Set.Ioo (a - 1) (b + 1))a✝:a x✝ x✝ ba - 1 < x✝ x✝ < b + 1; All goals completed! 🐙 _ = _ := a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)F' b - F' a = F b - F a a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)F' b = F ba:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)F' a = F a a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)F' b = F ba:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)F' a = F a a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)a Set.Icc a b a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)b Set.Icc a ba:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))P:Partition (Icc a b)this: J P.intervals, α_length F' J = α_length F' (Icc a b)a Set.Icc a b All goals completed! 🐙 have hlower (P: Partition (Icc a b)) : lower_riemann_sum f P F b - F a := a:b:h:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)integ f (Icc a b) = F b - F a All goals completed! 🐙 replace hupper : upper_integral f (Icc a b) F b - F a := a:b:h:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)integ f (Icc a b) = F b - F a a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))hupper: (P : Partition (Icc a b)), upper_riemann_sum f P F b - F ahlower: (P : Partition (Icc a b)), lower_riemann_sum f P F b - F asInf (Set.range fun P upper_riemann_sum f P) F b - F a; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))hupper: (P : Partition (Icc a b)), upper_riemann_sum f P F b - F ahlower: (P : Partition (Icc a b)), lower_riemann_sum f P F b - F a(Set.range fun P upper_riemann_sum f P).Nonemptya:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))hupper: (P : Partition (Icc a b)), upper_riemann_sum f P F b - F ahlower: (P : Partition (Icc a b)), lower_riemann_sum f P F b - F a b_1 Set.range fun P upper_riemann_sum f P, F b - F a b_1 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))hupper: (P : Partition (Icc a b)), upper_riemann_sum f P F b - F ahlower: (P : Partition (Icc a b)), lower_riemann_sum f P F b - F a(Set.range fun P upper_riemann_sum f P).Nonemptya:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))hupper: (P : Partition (Icc a b)), upper_riemann_sum f P F b - F ahlower: (P : Partition (Icc a b)), lower_riemann_sum f P F b - F a b_1 Set.range fun P upper_riemann_sum f P, F b - F a b_1 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))hupper: (P : Partition (Icc a b)), upper_riemann_sum f P F b - F ahlower: (P : Partition (Icc a b)), lower_riemann_sum f P F b - F a (a_1 : Partition (Icc a b)), F b upper_riemann_sum f a_1 + F a All goals completed! 🐙 replace hlower : lower_integral f (Icc a b) F b - F a := a:b:h:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)integ f (Icc a b) = F b - F a a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))hlower: (P : Partition (Icc a b)), lower_riemann_sum f P F b - F ahupper:upper_integral f (Icc a b) F b - F asSup (Set.range fun P lower_riemann_sum f P) F b - F a; a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))hlower: (P : Partition (Icc a b)), lower_riemann_sum f P F b - F ahupper:upper_integral f (Icc a b) F b - F a(Set.range fun P lower_riemann_sum f P).Nonemptya:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))hlower: (P : Partition (Icc a b)), lower_riemann_sum f P F b - F ahupper:upper_integral f (Icc a b) F b - F a b_1 Set.range fun P lower_riemann_sum f P, b_1 F b - F a a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))hlower: (P : Partition (Icc a b)), lower_riemann_sum f P F b - F ahupper:upper_integral f (Icc a b) F b - F a(Set.range fun P lower_riemann_sum f P).Nonemptya:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))hlower: (P : Partition (Icc a b)), lower_riemann_sum f P F b - F ahupper:upper_integral f (Icc a b) F b - F a b_1 Set.range fun P lower_riemann_sum f P, b_1 F b - F a a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a < bhF_cts:ContinuousOn F (Set.Icc a b)F': := fun x F (max (min x b) a)hFF': {x : }, x Set.Icc a b F' x = F xhF'_cts:ContinuousOn F' (Ioo (a - 1) (b + 1))hlower: (P : Partition (Icc a b)), lower_riemann_sum f P F b - F ahupper:upper_integral f (Icc a b) F b - F a (a_1 : Partition (Icc a b)), lower_riemann_sum f a_1 F b - F a All goals completed! 🐙 All goals completed! 🐙 a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a = binteg f (Icc b b) = 0; exact (integ_on_subsingleton (a:b:h✝:a bf: F: hf:IntegrableOn f (Icc a b)hF:AntiderivOn F f (Icc a b)h:a = b(Icc b b).length = 0 All goals completed! 🐙)).2
open Realnoncomputable abbrev F_11_9 : := fun x if x = 0 then 0 else x^2 * sin (1 / x^3)declaration uses `sorry`example : Differentiable F_11_9 := Differentiable F_11_9 All goals completed! 🐙declaration uses `sorry`example : ¬ BddOn (deriv F_11_9) (.Icc (-1) 1) := ¬BddOn (deriv F_11_9) (Set.Icc (-1) 1) All goals completed! 🐙declaration uses `sorry`example : AntiderivOn F_11_9 (deriv F_11_9) (Icc (-1) 1) := AntiderivOn F_11_9 (deriv F_11_9) (Icc (-1) 1) All goals completed! 🐙

Lemma 11.9.5 / Exercise 11.9.2

theorem declaration uses `sorry`antideriv_eq_antideriv_add_const {I:BoundedInterval} {f F G : } (hfF: AntiderivOn F f I) (hfG: AntiderivOn G f I) : C, x (I:Set ), F x = G x + C := I:BoundedIntervalf: F: G: hfF:AntiderivOn F f IhfG:AntiderivOn G f I C, x I, F x = G x + C All goals completed! 🐙
/-- Exercise 11.9.3 -/ declaration uses `sorry`example {a b x₀:} (hab: a < b) (hx₀: x₀ Icc a b) {f: } (hf: MonotoneOn f (Icc a b)) : DifferentiableWithinAt (fun x => integ f (Icc a x)) (Icc a b) x₀ ContinuousWithinAt f (Icc a b) x₀ := a:b:x₀:hab:a < bhx₀:x₀ Icc a bf: hf:MonotoneOn f (Icc a b)DifferentiableWithinAt (fun x integ f (Icc a x)) (↑(Icc a b)) x₀ ContinuousWithinAt f (↑(Icc a b)) x₀ All goals completed! 🐙end Chapter11

Exercise 11.6.5, moved to Section 11.9

theorem declaration uses `sorry`Chapter7.Series.converges_qseries' (p:) : (mk' (m := 1) fun n 1 / (n:) ^ p : Series).converges (p>1) := p:(mk' fun n 1 / n ^ p).converges p > 1 All goals completed! 🐙
theorem declaration uses `sorry`Chapter7.Series.converges_qseries'' (p:) : (mk' (m := 1) fun n 1 / (n:) ^ p : Series).absConverges (p>1) := p:(mk' fun n 1 / n ^ p).absConverges p > 1 All goals completed! 🐙