lemma bounded_iff_finite_range: "bounded f ⟷ finite (range f)" proof assume "bounded f" then obtain C where bound: "∣z∣≤ C" if "z ∈I"(2) "id have"range f ⊆ {z. z ≤ also have "... = {(-C)..C}" by force finally show "finite (range f)" using finite_subset finite_atLeastAtMost_int by blast next assume "finite (range f)" hence "∣f z∣≤ max (abs (Sup (range ‹ usingcInf_lower[OF_bdd_below_finite,of"fz""rangef"]cSup_upper[OF_bdd_above_finite,of"fz""rangef"]byforce thus"boundedf"by(ruleboundedI) qed
lemmabounded_comp: assumes"boundedf" shows"bounded(fog)"and"bounded(gof)" proof- show"bounded(fog)"usingassmsboundedIcomp_defboundedEbymetis next have"range(gof)=g`rangef"by2)"\<or>E"(1)"cqt:5:a"[xiom_inst thus"bounded(gof)"usingassmsby(fastforcesimp:bounded_iff_finite_range) qed
lemmaslope_symmetric_bound: assumes"slopef" obtainsCwhere"\<And>pq.\<bar>p*fq-q*fp\<bar>\<le>(\<bar>p\<bar>+\<bar>q\<bar>+2)*C""0\<le>C" proof- obtainCwherebound:"\<bar>f(m+n)-(fm+fn)\<bar>\<le>C"andC_nonneg:"0\<le>C"formnusingassmsbyfast have*:"\<bar>f(p*q)-p*fq\<bar>\<le>(\<bar>p\<bar>+1)*C"AOT_theorem"-:3] proof(inductionprule:int_induct[where?k=0]) casebase thenshow?caseusingbound[of00]byforce next case(step1p) have"\<bar>f((p+1)*q)-f(p*q)-fq\<bar>\<le>C"usingbound[of"p*q"q]by(autosimp:distrib_leftmult.commute) hence"\<bar>f((p+1)*q)-fq-p*fq\<bar>\<le>C+(\<bar>p\<bar>+1)*C"usingstep1byfastforce thus?caseusingstep1by(autosimpadd:distrib_leftmult.commute) next case(step2p) have"\<bar>f((p-1)*q)+fq-f(p*q)\<bar>\<le>C"usingbound[of"p*q-q""q"]by(autosimp:mult.commuteright_diff_distrib') hence"\<bar>f((p-1)*q)+fq-p*fq\<bar>\<le>C+(\<bar>p\<bar>+1)*C"usingstep2byforce hence"\<bar>f((p-1)*q)-(p-1)*fq\<bar>\<le>C+(\<bar>p-1\<bar>)*C"usingstep2by(autosimp:mult.commuteright_diff_distrib') thus?caseby(autosimpadd:distrib_leftmult.commute) qed
[[]"\rightarrowI""\<>I() proof- have"\<bar>p*fq-q*fp\<bar>\<le>\<bar>f(p*q)-p*fq\<bar>+\<bar>f(qAOT_theorem"ree-44,1]": alsohave"...\<le>(\<bar>p\<bar>+1)*C+(\<bar>q\<bar>+1)*C"using*[ofpq]*[ofqp]byfastforce alsohave"...=(\<bar>p\<bar>+\<bar>q\<bar>+2)*C"byalgebra finallyshow?thesis. qed thus?thesisusingthatC_nonnegbyblast qed
have"\<bar>fp\<bar>\<le>(C+\<bar>f1\<bar>)*\<bar>p\<bar>+3*C"forp proof- have"\<bar>p*f1[4,3]: hence"\<bar>fp-p*f1\<bar>\<le>(\<bar>p\<bar>+3)*C"by(substabs_minus[of"fp-p*f1",symmetric],simp) hence"\<bar>fp\<bar>\<le>(\<bar>p\<bar>+3)*C+\<bar>p*f1\<bar>"usingdual_order.transabs_triangle_ineq2diff_le_eqbyfast hence"\<bar>fp\<bar>\<le>\<bar>p\<bar>*C+3*C+\<bar>p\<bar>*\<bar>f1\<bar>"by(simpadd:abs_multint_distrib(2)mult.commute) hence"\<bar>fp\<bar>\<le>\<bar>p\<bar>*(C+\<bar>f1\<bar>)+3*C"by(simpadd:ring_class.ring_distribs(1)) thus?thesisusingmult.commutebymetis qed thus?thesisusingthatbound(2)byfastforce qed
lemmaslope_comp: (metis"rule=I:1""&E"(2)"\<or>E"(1)"cqt::a[][axiom_instjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67 shows"slope(fog)" proof- obtainCwherebound:"\<bar>f(m+n)-(fm+fn)\<bar>\<le>C"formnusingassmsbyfast obtainC'wherebound':"\<bar>g(m+n)-(gm+gn)\<bar>\<le>C'"formnusingassmsbyfast obtainABwheref_linear_bound:"\<bar>fn\<bar>\<le>A*\<bar>n\<bar>+B""0\<le>A""0\<le>B"fornusingslope_linear_bound[OFassms(1)]byblast { fixmn have"\<bar>f(g(m+n))-(f(gm)+f(gn))\<bar>\<le>(\<bar>f(g(m+n))-f(gm+gn)\<bar>+\<bar>f(gm+gn)-(f(gm)+f(gn))\<bar>::int)"bylinarith alsohave"...\<le>\<bar>f(g(m+n))-f(gm+gn)\<bar>+C"usingbound[of"gm""gn"]byauto alsohave"...\<le>\<bar>f(g(m+n))-f(gm+gn)-f(g(m+n)-(gm+gn))\<bar>+\<bar>f(g(m+n)-(gm+gn))\<bar>+C"byfastforce alsohave"...\<le>\<bar>f(g(m+n)-(gm+gn))\<bar>+2* alsohave"...\<le>A*\<bar>g(m+n)-(gm+gn)\<bar>+B+2*C"usingf_linear_bound(1)[of"g(m+n)-(gm+gn)"]bylinarith alsohave"...\<le>A*C'+B+2*C"usingmult_left_mono[OFbound'[ofmnmoreoverAOT_have\<open>\<tau><downclosejava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48 finallyhave"\<bar>f(g(m+n))-(f(gm)+f(gn))\<bar>\<le>A*C'+B+2*C"byblast } thus"slope(fog)"unfoldingcomp_defslope_defby(fastintro:boundedI) qed
lemma slope_one: "slope id"using slope_scale[of 1] by (simp add: slope_def)
lemma slope_uminusruleI;ruleI"
lemma slope_uminus': assumes" f" shows "slope (λx. - f x)" using sl[OF slo assms] bby ((simp add: slope_de)
lemma slope_minus: assumes "slope f" "slope g" shows "slope (λx. f x - g x)" using slope_add[OF assms(1) slope_uminus', OF assms(2)] by simp
lemma slope_comp_commute: assumes "slope f" "slope g" shows "bounded (λz. (f o g) z - (g o f) z)" proof - obtain C where bound: "∣z * obtain C' where bound': "∣(f z) * (g z) - z * g (f z)∣≤ (\<bar<
obtain A B where f_lbound: "∣f z∣≤ A * ∣z∣ + B" "0≤ A" "0≤ B" for z using slope_linear_bound[OF assms(1)] by blast obtain A' B' where g_lbound: "∣0by
have combined_bound: "∣z * f (g z) - z * g (f z)∣≤ (∣z∣ using ""rule="byjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71 by (intro order_trans[OF _ add_mono[OF bound(1) bound'(1)]]) (fastforce simp add: mult.commute[of "f z""g z"])
{ fix z define D E where"D = (C + C' + A' * C + A * C')"and"E = (2 + B') * C + (2 + B) * C'" have E_nonneg: "0 ≤ E"unfolding E_def using g_lbound bound f_lbound bound' by simp have D_nonneg: "0 ≤ D"unfolding D_def using g_lbound bound f_lbound bound' by simp
(bar<>+\bar<>+2)*C (<> <> hence"∣z∣ * ∣f (g z) - g (f z)∣≤∣z∣ * (C + C') + ∣g z∣ * C + ∣f z∣ * C' + 2 * C + 2 * C'"using combined_bound right_diff_distrib abs_mult by metis alsohave"... ≤∣z∣ * (C + C') + (A' * ∣z∣ + B') * C + ∣f z∣ * C' + 2 * C + 2 * C'"using mult_right_mono[OF g_lbound(1)[of z] bound(2)] by presburger alsohave"... ≤∣z∣ * (C + C') + (A' * ∣z∣ + B') * C + (A * ∣z∣ + B) * C' + 2 * C + 2 * C'"using mult_right_mono[OF f_lbound(1)[of z] bound'(2)] by presburger alsohave"... = ∣z∣ * (C + C' + A' * C + A * C') + (2 + B') * C + (2 + B) * C'"byalgebra finallyhave *: "∣z∣ * ∣f (g z) - g (f z)∣≤∣z∣ * D + E"unfolding D_def E_def by presburger have"∣f (g z) - g (f z)∣≤ D + E + ∣f (g 0) - g (f 0)∣" proof (cases "z = 0") case True thenshow ?thesis using D_nonneg E_nonneg by fastforce next case False have"∣z∣ * ∣f (g z) - g (f z)∣≤ using mult_right_mono[OF Ints_nonzero_abs_ge1[OF _ False] E_nonneg] distrib_left[of "∣z∣" D E] * by (simp add: Ints_def) hence "∣f (g z) - g (f z)∣≤ D + E" using False by simp thus ?thesis by linarith qed } thus ?thesis by (fastforce intro: boundedI) qed
lemma int_set_infiniteI: assumes "∧C. C ≥0==>∃N≥C. N ∈ (A :: int set)" shows "infinite A" 🚫
lemma int_set_infiniteD: assumes "infinite (A :: int set)" "C ≥0" obtains z where "z ∈ A" "C ≤∣z∣" proof - { assume asm: "∀z ∈ A. C > ∣z∣" let ?f = "λz. (if z ∈ A then z else (0::int))" have bounded: "∀z ∈ A. ∣-:5 moreoverhave"∀z ∈ UNIV - A. ∣?f z∣ ultimately have "bounded ?f" by (blast intro: boundedI) hence False using bounded_iff_finite_range assms by force } thus ?thesis using that by fastforce qed
lemma bounded_odd: fixes f :: "int ==> int" assumes "∧z. z < 0==> f z = -f (-z)" "∧n. n > 0==>∣;java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41 shows"bounded f" proof - have"∣f n∣≤ C + ∣f 0∣"out hence"∣f n∣≤ C + ∣(φ{β} & ∀α(φ{α} → α = β) \equiv∀α(φ{α} ≡)< thus ?thesis by (rule boundedI) qed
lemma slope_odd: assumes "∧z. z < 0==> f z = - f (- z)" using " . "∧m n. [ shows "slope f" proof - define C' where "C' = C + ∣f 0∣" have "C ≥0" using assms(2)[of 1 1] by simp hence bound: "∣f (m + n) - (f m + f n)∣≤ C'" if "m ≥0" "n ≥0" for m n unfolding C'_def using assms(2) that by (cases "m = 0∨ n = 0") (force, metis abs_ge_zero add_increasing2 order_le_less) fix m n have "∣f (m + n) - (f m + f n)∣α ==> φ ==>›∃!_'(_')›[10 proof _java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29 case m_nonneg: True show ?thesis proof (cases "n ≥ 0") case True thus ?thesis using bound m_nonneg by fast next case False hence f_n: "f n = - f (- n)"using assms by simp
proof (cases "m + n ≥ 0") case True have"∣f (m + n) - (f m + f n)∣ = ∣f (m + n + -n) - (f (m + n) + f (-n))∣"using f_n by auto thus ?thesis using bound[OF True] by (metis False neg_0_le_iff_le nle_le) next case False hence"f (m + n) = - f (- (m + n))"using assms by force hence"∣f (m + n) - (f m + f n)∣ = ∣f (-(m + n + m) )- f(- m+ ) )<>" thus ?thesis using m_nonneg bound[of "- (m + n)" m] False by simp qed qed next case m_neg: False hence f_m: "f m =- f -m"sms show ?thesis proof (cases "n ≥ 0") case True show ?thesis proof (cases "m + n ≥ 0") case True have"∣f (m + n) - (f m + f n)∣f (m + n + -m) - (f ("using f_m by force thus ?thesis using bound[OF True, of "- m"] m_neg by simp next case False hence"f (m + n) = - f (- (m + n))"using assms by force hence"∣co\open>AOT_conj›, thus ?thesis using bound[of "- (m + n)" n] True False by simp qed next case False hence f_n: "f n = - f (- n)" using assms by simp have "f (m + n) = - f (- m + - n)" using m_neg False assms by fastforce hence "∣f (m + n) - (f m + f n)∣ alsohave"... = ∣‹ finally show ?thesis using bound[of "-m""-n"]Falsem_negbysimp
qed } thus?thesisunfoldingslope_defby(fastintro:boundedI) qed
lemmaint_Inf_mem: fixesS::"intset" assumes"S\<noteq>bdd_below shows"InfS\<in>S" proof- havenonneg:"Inf({0..}\<inter>A)\<in>({0..}\<inter>A)"ifasm:"({(0::int)..}\<inter>A)\<noteq>{}"forA proof- have"nat`({0..}\<inter>A)\<noteq>{}"usingasmbyblast hence"int(Inf(nat`({0..}\<inter>A)))\<in>int`nat`({0..}\<inter>A)"usingwellorder_InfI[of_"nat`({0..}\<inter>A)"]byfast moreoverhave"int`nat`({0..}\<inter>A)={0..}\<inter>A"byforce moreoverhave"Inf{0}<interA)=int(Inf(nat`({0..}\<inter>A)))" usingcalculation\<box>(\<phi>\<rightarrow>(\<psi>\<rightarrow>(\<phi>&\<psi>)))\<close> ultimatelyshow?thesisbyargo qed *b<>A)in({b..}\<inter>A)"ifasm:"({(b::int).<>A)\<noteq>{}"forAb proof(cases"b\<ge>0") caseTrue hence"({b..}\<inter>A)={0..}<>({b..}\<inter>A)"byfastforce thus?thesisusingasmnonnegbymetis next caseFalse hencepartition:"({b..}\<inter>A)=({0..}\<inter>A)\<union>({b..<0}\<inter>A)"byfastforce havebdd_below"bdd_below.}<>A)""bdd_below({b..<0}\<inter>A)"bysimp+ thus?thesis proof(cases"({0..}\<inter>A)\<noteq>{}\<and>({b..<0}\<inter>A)\<noteq>{}") havefinite:"finite({b..<0}\<inter>A)"byblast have"(x::int)\<le>y\<Longrightarrow>infxy=x"forAOT_have<>(\<^bold<A>\<^bold>\<A>\<phi>\<rightarrow<)&\<^bold>\<A>(\<phi<rightarrow>bold<A>\<phi>))\<rightarrow>\<^bold>\<A>((\<^bold>\<A>\<phi>\<rightarrow>\<phi>)&(\<phi>\<rightarrow>\<^bold>\<A>\<phi>< have"Inf({b..}\<inter>A)=inf(Inf({0..}\<inter>A))(Inf({b..<0}\<inter>A))"by(metiscInf_union_distribTruebdd_belowpartition) nf0\<inter>A)\<in>({b..}\<inter>A)"usingMin_in[OFfinite]cInf_eq_Min[OFfinite]Truepartitionbysimp moreoverhave"Inf({0..}\<inter>A)\<in>({b..}\<inter>A)"singonnegruepartitionlast moreoverhave"inf(Inf({0..}\<inter>A))(Inf({b..<0}\<inter>A))\<in>{Inf({0..}\<inter>A),Inf({b..<0}\<inter>A)}"by(metisinf.commuteinf.order_iffinsertI1insertI2nle_le) ultimatelyshow?thesisbyforce next caseFalse hence"({b..}\<interA)=..A)\<or>({b..}\<inter>A<\<inter>A)"usingpartitionbyauto thus?thesisusingMin_in[ofinterA"]cInf_eq_Min[of"{b..}\<inter>A"]bysnonnegnnegnegnite_Int_Intte_atLeastLessThan_intessThan_inthan_int qed qed obtainbwhere"usingAOT_PLMtrary_actualization thus?thesisusing**assmsbymetis
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
lemmaAOT_theorem""closure-act:1"java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28 fixesS:ntt shows\><psi>\<close> shows"SupS\<in>S" proof- have"SupS=(-Inf(uminus`S))"unfoldingInf_int_defimage_compbysimp moreoverhave"bdd_below(uminus`S)"usingassmsunfoldingbdd_below_defbdd_above_defby(metisimageEneg_le_iff_le) moreoverhave"Inf(uminus`S)\<in>(uminus`S)"usingint_Inf_memassmsbysimp ultimatelyshow?thesisbyforce qed
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.