From 48d01894776c4381d50c33f42d9c3ad50ef106fd Mon Sep 17 00:00:00 2001 From: desmettr Date: Wed, 31 Jul 2002 14:32:11 +0000 Subject: Theoreme des accroissements finis generalises et corollaires git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2948 85f007b7-540e-0410-9357-904b9bb8a0f7 --- theories/Reals/TAF.v | 447 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 447 insertions(+) create mode 100644 theories/Reals/TAF.v diff --git a/theories/Reals/TAF.v b/theories/Reals/TAF.v new file mode 100644 index 0000000000..eb99fca700 --- /dev/null +++ b/theories/Reals/TAF.v @@ -0,0 +1,447 @@ +(***********************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* R;a,b:R) ``a<=b`` -> ((c:R)``a<=c<=b``->(continuity_pt f c)) -> (EXT Mx : R | ((c:R)``a<=c<=b``->``(f c)<=(f Mx)``)/\``a<=Mx<=b``). + +Lemma compacity_continuity_cor : (f:R->R;a,b:R) ``a<=b`` -> ((c:R)``a<=c<=b``->(continuity_pt f c)) -> (EXT mx : R | ((c:R)``a<=c<=b``->``(f mx)<=(f c)``)/\``a<=mx<=b``). +Intros; Cut (c:R)``a <= c <= b``->(continuity_pt (opp_fct f) c). +Intro; Assert H2 := (compacity_continuity (opp_fct f) a b H H1). +Elim H2; Intros x0 H3. +Exists x0; Intros; Split. +Intros; Rewrite <- (Ropp_Ropp (f x0)); Rewrite <- (Ropp_Ropp (f c)); Apply Rle_Ropp1. +Elim H3; Intros; Unfold opp_fct in H5; Apply H5; Apply H4. +Elim H3; Intros; Assumption. +Intros; Apply continuity_pt_opp. +Apply H0; Apply H1. +Qed. + +(* Théorème des accroissements finis généralisés *) +Theorem TAF_gen : (f,g:R->R;a,b:R;pr1:(c:R)``a(derivable_pt f c);pr2:(c:R)``a(derivable_pt g c)) ``a ((c:R)``a<=c<=b``->(continuity_pt f c)) -> ((c:R)``a<=c<=b``->(continuity_pt g c)) -> (EXT c : R | (EXT P : ``a(derivable_pt h c). +Intro; Cut (c:R)``a<=c<=b``->(continuity_pt h c). +Intro; Assert H4 := (compacity_continuity h a b H2 H3). +Assert H5 := (compacity_continuity_cor h a b H2 H3). +Elim H4; Intros Mx H6. +Elim H5; Intros mx H7. +Cut (h a)==(h b). +Intro; Pose M := (h Mx); Pose m := (h mx). +Cut (c:R;P:``a(h c)==M). +Intro; Cut ``a<(a+b)/2R); a,b:R; pr:(derivable f)) ``a < b``->(EXT c:R | ``(f b)-(f a) == (derive_pt f c (pr c))*(b-a)``/\``a < c < b``). +Intros; Cut (c:R)``a(derivable_pt f c); [Intro | Intros; Apply pr]. +Cut (c:R)``a(derivable_pt id c); [Intro | Intros; Apply derivable_pt_id]. +Cut (c:R)``a<=c<=b``->(continuity_pt f c); [Intro | Intros; Apply derivable_continuous_pt; Apply pr]. +Cut (c:R)``a<=c<=b``->(continuity_pt id c); [Intro | Intros; Apply derivable_continuous_pt; Apply derivable_pt_id]. +Assert H2 := (TAF_gen f id a b X X0 H H0 H1). +Elim H2; Intros c H3; Elim H3; Intros. +Exists c; Split. +Cut (derive_pt id c (X0 c x)) == (derive_pt id c (derivable_pt_id c)); [Intro | Apply pr_nu]. +Rewrite H5 in H4; Rewrite (derive_pt_id c) in H4; Rewrite Rmult_1r in H4; Rewrite <- H4; Replace (derive_pt f c (X c x)) with (derive_pt f c (pr c)); [Idtac | Apply pr_nu]; Apply Rmult_sym. +Apply x. +Qed. + +(*** Corollaires ***) + +(**********) +Lemma nonneg_derivative_1 : (f:R->R;pr:(derivable f)) ((x:R) ``0<=(derive_pt f x (pr x))``) -> (increasing f). +Intros. +Unfold increasing. +Intros. +Case (total_order_T x y); Intro. +Elim s; Intro. +Apply Rle_anti_compatibility with ``-(f x)``. +Rewrite Rplus_Ropp_l; Rewrite Rplus_sym. +Assert H1 := (TAF f ? ? pr a). +Elim H1; Intros. +Elim H2; Intros. +Unfold Rminus in H3. +Rewrite H3. +Apply Rmult_le_pos. +Apply H. +Apply Rle_anti_compatibility with x. +Rewrite Rplus_Or; Replace ``x+(y+ -x)`` with y; [Assumption | Ring]. +Rewrite b; Right; Reflexivity. +Elim (Rlt_antirefl ? (Rle_lt_trans ? ? ? H0 r)). +Qed. + +(**********) +Lemma nonpos_derivative_0 : (f:R->R;pr:(derivable f)) (decreasing f) -> ((x:R) ``(derive_pt f x (pr x))<=0``). +Intros; Assert H0 :=H; Unfold decreasing in H0; Generalize (derivable_derive f x (pr x)); Intro; Elim H1; Intros l H2. +Rewrite H2; Case (total_order l R0); Intro. +Left; Assumption. +Elim H3; Intro. +Right; Assumption. +Generalize (derive_pt_eq_1 f x l (pr x) H2); Intros; Cut ``0< (l/2)``. +Intro; Elim (H5 ``(l/2)`` H6); Intros delta H7; Cut ``delta/2<>0``/\``0R) (increasing f) -> (decreasing (opp_fct f)). +Unfold increasing decreasing opp_fct; Intros; Generalize (H x y H0); Intro; Apply Rge_Ropp; Apply Rle_sym1; Assumption. +Qed. + +(**********) +Lemma nonpos_derivative_1 : (f:R->R;pr:(derivable f)) ((x:R) ``(derive_pt f x (pr x))<=0``) -> (decreasing f). +Intros. +Cut (h:R)``-(-(f h))==(f h)``. +Intro. +Generalize (increasing_decreasing_opp (opp_fct f)). +Unfold decreasing. +Unfold opp_fct. +Intros. +Rewrite <- (H0 x); Rewrite <- (H0 y). +Apply H1. +Cut (x:R)``0<=(derive_pt (opp_fct f) x ((derivable_opp f pr) x))``. +Intros. +Replace [x:R]``-(f x)`` with (opp_fct f); [Idtac | Reflexivity]. +Apply (nonneg_derivative_1 (opp_fct f) (derivable_opp f pr) H3). +Intro. +Assert H3 := (derive_pt_opp f x0 (pr x0)). +Cut ``(derive_pt (opp_fct f) x0 (derivable_pt_opp f x0 (pr x0)))==(derive_pt (opp_fct f) x0 (derivable_opp f pr x0))``. +Intro. +Rewrite <- H4. +Rewrite H3. +Rewrite <- Ropp_O; Apply Rge_Ropp; Apply Rle_sym1; Apply (H x0). +Apply pr_nu. +Assumption. +Intro; Ring. +Qed. + +(**********) +Lemma positive_derivative : (f:R->R;pr:(derivable f)) ((x:R) ``0<(derive_pt f x (pr x))``)->(strict_increasing f). +Intros. +Unfold strict_increasing. +Intros. +Apply Rlt_anti_compatibility with ``-(f x)``. +Rewrite Rplus_Ropp_l; Rewrite Rplus_sym. +Assert H1 := (TAF f ? ? pr H0). +Elim H1; Intros. +Elim H2; Intros. +Unfold Rminus in H3. +Rewrite H3. +Apply Rmult_lt_pos. +Apply H. +Apply Rlt_anti_compatibility with x. +Rewrite Rplus_Or; Replace ``x+(y+ -x)`` with y; [Assumption | Ring]. +Qed. + +(**********) +Lemma strictincreasing_strictdecreasing_opp : (f:R->R) (strict_increasing f) -> +(strict_decreasing (opp_fct f)). +Unfold strict_increasing strict_decreasing opp_fct; Intros; Generalize (H x y H0); Intro; Apply Rlt_Ropp; Assumption. +Qed. + +(**********) +Lemma negative_derivative : (f:R->R;pr:(derivable f)) ((x:R) ``(derive_pt f x (pr x))<0``)->(strict_decreasing f). +Intros. +Cut (h:R)``- (-(f h))==(f h)``. +Intros. +Generalize (strictincreasing_strictdecreasing_opp (opp_fct f)). +Unfold strict_decreasing opp_fct. +Intros. +Rewrite <- (H0 x). +Rewrite <- (H0 y). +Apply H1; [Idtac | Assumption]. +Cut (x:R)``0<(derive_pt (opp_fct f) x (derivable_opp f pr x))``. +Intros; EApply positive_derivative; Apply H3. +Intro. +Assert H3 := (derive_pt_opp f x0 (pr x0)). +Cut ``(derive_pt (opp_fct f) x0 (derivable_pt_opp f x0 (pr x0)))==(derive_pt (opp_fct f) x0 (derivable_opp f pr x0))``. +Intro. +Rewrite <- H4; Rewrite H3. +Rewrite <- Ropp_O; Apply Rlt_Ropp; Apply (H x0). +Apply pr_nu. +Intro; Ring. +Qed. + +(**********) +Lemma null_derivative_0 : (f:R->R;pr:(derivable f)) (constant f)->((x:R) ``(derive_pt f x (pr x))==0``). +Intros. +Unfold constant in H. +Apply derive_pt_eq_0. +Intros; Exists (mkposreal ``1`` Rlt_R0_R1); Simpl; Intros. +Rewrite (H x ``x+h``); Unfold Rminus; Unfold Rdiv; Rewrite Rplus_Ropp_r; Rewrite Rmult_Ol; Rewrite Rplus_Ropp_r; Rewrite Rabsolu_R0; Assumption. +Qed. + +(**********) +Lemma increasing_decreasing : (f:R->R) (increasing f) -> (decreasing f) -> (constant f). +Unfold increasing decreasing constant; Intros; Case (total_order x y); Intro. +Generalize (Rlt_le x y H1); Intro; Apply (Rle_antisym (f x) (f y) (H x y H2) (H0 x y H2)). +Elim H1; Intro. +Rewrite H2; Reflexivity. +Generalize (Rlt_le y x H2); Intro; Symmetry; Apply (Rle_antisym (f y) (f x) (H y x H3) (H0 y x H3)). +Qed. + +(**********) +Lemma null_derivative_1 : (f:R->R;pr:(derivable f)) ((x:R) ``(derive_pt f x (pr x))==0``)->(constant f). +Intros. +Cut (x:R)``(derive_pt f x (pr x)) <= 0``. +Cut (x:R)``0 <= (derive_pt f x (pr x))``. +Intros. +Assert H2 := (nonneg_derivative_1 f pr H0). +Assert H3 := (nonpos_derivative_1 f pr H1). +Apply increasing_decreasing; Assumption. +Intro; Right; Symmetry; Apply (H x). +Intro; Right; Apply (H x). +Qed. + +(**********) +Lemma derive_increasing_interv_ax : (a,b:R;f:R->R;pr:(derivable f)) ``a (((t:R) ``a ``0<(derive_pt f t (pr t))``) -> ((x,y:R) ``a<=x<=b``->``a<=y<=b``->``x``(f x)<(f y)``)) /\ (((t:R) ``a ``0<=(derive_pt f t (pr t))``) -> ((x,y:R) ``a<=x<=b``->``a<=y<=b``->``x``(f x)<=(f y)``)). +Intros. +Split; Intros. +Apply Rlt_anti_compatibility with ``-(f x)``. +Rewrite Rplus_Ropp_l; Rewrite Rplus_sym. +Assert H4 := (TAF f ? ? pr H3). +Elim H4; Intros. +Elim H5; Intros. +Unfold Rminus in H6. +Rewrite H6. +Apply Rmult_lt_pos. +Apply H0. +Elim H7; Intros. +Split. +Elim H1; Intros. +Apply Rle_lt_trans with x; Assumption. +Elim H2; Intros. +Apply Rlt_le_trans with y; Assumption. +Apply Rlt_anti_compatibility with x. +Rewrite Rplus_Or; Replace ``x+(y+ -x)`` with y; [Assumption | Ring]. +Apply Rle_anti_compatibility with ``-(f x)``. +Rewrite Rplus_Ropp_l; Rewrite Rplus_sym. +Assert H4 := (TAF f ? ? pr H3). +Elim H4; Intros. +Elim H5; Intros. +Unfold Rminus in H6. +Rewrite H6. +Apply Rmult_le_pos. +Apply H0. +Elim H7; Intros. +Split. +Elim H1; Intros. +Apply Rle_lt_trans with x; Assumption. +Elim H2; Intros. +Apply Rlt_le_trans with y; Assumption. +Apply Rle_anti_compatibility with x. +Rewrite Rplus_Or; Replace ``x+(y+ -x)`` with y; [Left; Assumption | Ring]. +Qed. + +(**********) +Lemma derive_increasing_interv : (a,b:R;f:R->R;pr:(derivable f)) ``a ((t:R) ``a ``0<(derive_pt f t (pr t))``) -> ((x,y:R) ``a<=x<=b``->``a<=y<=b``->``x``(f x)<(f y)``). +Intros. +Generalize (derive_increasing_interv_ax a b f pr H); Intro. +Elim H4; Intros H5 _; Apply (H5 H0 x y H1 H2 H3). +Qed. + +(**********) +Lemma derive_increasing_interv_var : (a,b:R;f:R->R;pr:(derivable f)) ``a ((t:R) ``a ``0<=(derive_pt f t (pr t))``) -> ((x,y:R) ``a<=x<=b``->``a<=y<=b``->``x``(f x)<=(f y)``). +Intros; Generalize (derive_increasing_interv_ax a b f pr H); Intro; Elim H4; Intros _ H5; Apply (H5 H0 x y H1 H2 H3). +Qed. + +(**********) +(**********) +Theorem IAF : (f:R->R;a,b,k:R;pr:(derivable f)) ``a<=b`` -> ((c:R) ``a<=c<=b`` -> ``(derive_pt f c (pr c))<=k``) -> ``(f b)-(f a)<=k*(b-a)``. +Intros. +Case (total_order_T a b); Intro. +Elim s; Intro. +Assert H1 := (TAF f ? ? pr a0). +Elim H1; Intros. +Elim H2; Intros. +Rewrite H3. +Do 2 Rewrite <- (Rmult_sym ``(b-a)``). +Apply Rle_monotony. +Apply Rle_anti_compatibility with ``a``; Rewrite Rplus_Or. +Replace ``a+(b-a)`` with b; [Assumption | Ring]. +Apply H0. +Elim H4; Intros. +Split; Left; Assumption. +Rewrite b0. +Unfold Rminus; Do 2 Rewrite Rplus_Ropp_r. +Rewrite Rmult_Or; Right; Reflexivity. +Elim (Rlt_antirefl ? (Rle_lt_trans ? ? ? H r)). +Qed. + +Lemma IAF_var : (f,g:R->R;a,b:R;pr1:(derivable f);pr2:(derivable g)) ``a<=b`` -> ((c:R) ``a<=c<=b`` -> ``(derive_pt g c (pr2 c))<=(derive_pt f c (pr1 c))``) -> ``(g b)-(g a)<=(f b)-(f a)``. +Intros. +Cut (derivable (minus_fct g f)). +Intro. +Cut (c:R)``a<=c<=b``->``(derive_pt (minus_fct g f) c (X c))<=0``. +Intro. +Assert H2 := (IAF (minus_fct g f) a b R0 X H H1). +Rewrite Rmult_Ol in H2; Unfold minus_fct in H2. +Apply Rle_anti_compatibility with ``-(f b)+(f a)``. +Replace ``-(f b)+(f a)+((f b)-(f a))`` with R0; [Idtac | Ring]. +Replace ``-(f b)+(f a)+((g b)-(g a))`` with ``(g b)-(f b)-((g a)-(f a))``; [Apply H2 | Ring]. +Intros. +Cut (derive_pt (minus_fct g f) c (X c))==(derive_pt (minus_fct g f) c (derivable_pt_minus ? ? ? (pr2 c) (pr1 c))). +Intro. +Rewrite H2. +Rewrite derive_pt_minus. +Apply Rle_anti_compatibility with (derive_pt f c (pr1 c)). +Rewrite Rplus_Or. +Replace ``(derive_pt f c (pr1 c))+((derive_pt g c (pr2 c))-(derive_pt f c (pr1 c)))`` with ``(derive_pt g c (pr2 c))``; [Idtac | Ring]. +Apply H0; Assumption. +Apply pr_nu. +Apply derivable_minus; Assumption. +Qed. \ No newline at end of file -- cgit v1.2.3