step_fun_props[T: TYPE+ FROM real]: THEORY %------------------------------------------------------------------------------ % % Theory and proofs taken from Introduction to Analysis (Maxwell Rosenlicht) % % Author: Rick Butler NASA Langley %------------------------------------------------------------------------------ BEGIN
ASSUMING IMPORTING deriv_domain_def[T]
connected_domain : ASSUMPTION connected?[T]
not_one_element : ASSUMPTION not_one_element?[T]
ENDASSUMING
% AUTO_REWRITE+ not_one_element
% <=(x,y:T): bool = x <= y %% hide ugly restrictions
is_step: LEMMA a < b AND
(EXISTS (P: partition[T](a,b)): %% PROVED %% Let N = length(P), xx = seq(P) IN
(FORALL (ii: below(N-1)): (EXISTS (fv: real):
(FORALL x: xx(ii) < x AND x < xx(ii+1) IMPLIES
f(x) = fv)))) IMPLIES
step_function?(a,b,f)
UUPart(a:T, b:{x:T|a<x}, c: {x:T|b<x}, P1: partition[T](a,b),
P2: partition[T](b, c)): partition[T](a,c) = LET N1 = length(P1),
NUU = length(P1) + length(P2) - 1 IN
(# length := NUU,
seq := (LAMBDA (kk: below(NUU)): IF kk < N1 THEN P1`seq(kk) ELSE P2`seq(kk-N1+1) ENDIF)
#)
split_step_is_step: LEMMA a < b AND b < c AND%% PROVED %%
step_function?(a, b, f) AND
step_function?(b, c, g) IMPLIES
step_function?(a, c,
(LAMBDA (x: T): IF x < a OR x > c THEN 0 ELSIF x <= b THEN f(x) ELSE g(x) ENDIF))
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.