product_nat: THEORY %------------------------------------------------------------------------------ % The products theory introduces and defines properties of the product % function that multiples an arbitrary function F: [nat -> int] over a range % from low to high % % high % ---- % product(low, high, F) = | | F(j) % | | % j = low % % AUTHORS: % % Rick Butler NASA Langley Research Center % Paul Miner NASA Langley Research Center % %------------------------------------------------------------------------------ BEGIN
product_shift_i: THEOREM 0 <= low + i IMPLIES
product(low+i,high+i,F) =
product(low,high, (LAMBDA (n: nat): IF n < low THEN 0 ELSE F(n+i) ENDIF))
% These next two are now trivial instatiations of the updated framework.
product_first_ge : THEOREM high >= low IMPLIES% slightly more general
product(low, high, F) = F(low) * product(low+1, high, F)
product_split_ge : THEOREM low-1 <= i AND i <= high IMPLIES
product(low, high, F) =
product(low, i, F) * product(i+1, high, F)
% ---- Auto-rewrites
ing: VAR negint
product_0_neg: LEMMA product(0,ing,F) = 1
AUTO_REWRITE+ product_0_neg
END product_nat
¤ 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.0.1Bemerkung:
(vorverarbeitet)
¤
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.