%----------------------------------------------------------------------------- % Operators for convenience in writing length comparisons that include % possibly infinite csequences. % % It might be nicer to have an "extended nat" type that includes a special % "infinity" value. Then we could define the length operator on all % sequences, which would simplify some other definitions. If you are % interested in trying this approach, please contact me. % % Author: Jerry James <loganjerry@gmail.com> % % This file and its accompanying proof file are distributed under the CC0 1.0 % Universal license: http://creativecommons.org/publicdomain/zero/1.0/. % % Version history: % 2007 Feb 14: PVS 4.0 version % 2011 May 6: PVS 5.0 version % 2013 Jan 14: PVS 6.0 version %-----------------------------------------------------------------------------
csequence_length_comp[T1, T2: TYPE]: THEORY BEGIN
length_eq(cseq1, cseq2): bool =
(is_infinite(cseq1) AND is_infinite(cseq2)) OR
(is_finite(cseq1) AND
is_finite(cseq2) AND length(cseq1) = length(cseq2))
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.