rs_integral_def[T:TYPE+ from real]: THEORY %---------------------------------------------------------------------------- % Definition of Riemann-Stieltjes Integral %---------------------------------------------------------------------------- BEGIN
ASSUMING IMPORTING deriv_domain_def[T]
connected_domain : ASSUMPTION connected?[T]
not_one_element : ASSUMPTION not_one_element?[T]
ENDASSUMING
IMPORTING rs_partition[T],
reals@real_fun_preds
% AUTO_REWRITE+ finseq_appl
a,b,c,x: VAR T
S: VAR real
f,g,h: VAR [T -> real]
IMPORTING reals@intervals_real[T]
xis_pred?(a:T,(b|a<b),P:partition(a,b))(fs:fseq): MACRO bool = (fs`length = P`length-1 AND (FORALL (ii: below(P`length-1)):
P`seq(ii) <= fs`seq(ii) AND fs`seq(ii) <= P`seq(ii+1)))
xis?(a:T,(b|a<b),P:partition(a,b)): TYPE = (xis_pred?(a,b,P))
xis_bounded: LEMMAFORALL (P: partition(a,b), (xis: xis?(a,b,P)),
(ii: below(P`length-1))):
a <= xis(ii) AND xis(ii) <= b
% AUTO_REWRITE+ xis_lem
Rie_sum(a:T,b:{x:T|a<x},g:[T->real],P:partition(a,b),
xis: xis?(a,b,P),f:[T->real]): real = LET N = P`length-1 IN
sigma[below(N)](0,N-1,(LAMBDA (n: below(N)):
(g(P`seq(n+1)) - g(P`seq(n))) * f(xis(n))))
Rie_sec(a:T,b:{x:T|a<x},g:[T->real],P:partition(a,b), xis: xis?(a,b,P), f:[T->real],
n: upto(P`length-1)): real = IF n = 0 THEN 0 ELSE (g(P`seq(n)) - g(P`seq(n - 1))) * f(xis(n-1)) ENDIF
Rie_sum_alt(a:T,b:{x:T|a<x},g:[T->real],P:partition(a,b),
xis: xis?(a,b,P),f:[T->real]): real = LET N = P`length-1 IN
sigma[upto(N)](1,N,(LAMBDA (n: upto(N)):
Rie_sec(a,b,g,P,xis,f,n)))
Rie_sum_alt_lem: LEMMA a < b IMPLIES FORALL (P: partition(a,b), (xis: xis?(a,b,P))):
Rie_sum(a,b,g,P,xis,f) = Rie_sum_alt(a,b,g,P,xis,f)
Riemann_sum?(a:T,b:{x:T|a<x},P:partition(a,b),g,f:[T->real])(S:real): bool =
(EXISTS (xis: xis?(a,b,P)): LET N = P`length-1 IN
S = Rie_sum(a,b,g,P,xis,f))
integral(a:T,b:{x:T|a<x}, gg:[T->real],ff: { f | integrable?(a,b,gg,f)} ):
{S:real | integral?(a,b,gg,ff,S)}
s: VAR real
integral_def: LEMMA a < b IMPLIES
( (integrable?(a,b,g,f) AND integral(a,b,g,f) = s) IFF integral?(a,b,g,f,s) )
integral_restrict_eq: LEMMA a < b AND
(FORALL x: a <= x AND x <= b IMPLIES
f(x) = h(x)) AND
integrable?(a,b,g,f) IMPLIES integrable?(a,b,g,h) AND
integral(a,b,g,h) = integral(a,b,g,f)
Integrable?(a:T,b:T,g,f:[T->real]): bool = (a = b) OR
(a < b AND integrable?(a,b,g,f)) OR
(b < a AND integrable?(b,a,g,f))
Integrable_funs(a,b,g): TYPE = {f | Integrable?(a,b,g,f)}
Integral?(a:T,b:T,g,f:[T->real],S:real): bool = (a = b AND S = 0) OR
(a < b AND integral?(a,b,g,f,S))
Integral(a:T,b:T,g:[T->real],f:Integrable_funs(a,b,g)): real = IF a = b THEN 0 ELSIF a < b THEN integral(a,b,g,f) ELSE -integral(b,a,g,f) ENDIF % -----------------------------%
% Extending a riemann sum from a partition to a refinement and vice-versa
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 ist noch experimentell.