SSL ordered_subset.pvs
Interaktion und PortierbarkeitPVS
%------------------------------------------------------------------------- % % Sets that pivot about an element. This includes prefixes and suffixes, % as well as generalizations of upto, below, upfrom, and above sets. % % For PVS version 3.2. February 28, 2005 % --------------------------------------------------------------------- % Author: Jerry James (jamesj@acm.org), University of Kansas % % EXPORTS % ------- % prelude: orders[T], relation_props2[T, T, T, T], relations[T], sets[T] % orders: closure_ops[T], indexed_sets_extra, ordered_subset[T], % relation_iterate[T], relations_extra[T] % %-------------------------------------------------------------------------
ordered_subset[T: TYPE]: THEORY BEGIN
IMPORTING sets[T], closure_ops[T]
ord: VAR (order?)
t, r: VAR T
S, R: VAR set
<: VAR pred[[T, T]]
% ========================================================================== % Prefixes and suffixes % ==========================================================================
prefix?(S, <): bool = FORALL t, (r: (S)): t < r => member(t, S)
prefix?(<)(S): MACRO bool = prefix?(S, <)
% Ideally, we'd write the following as: % down(tr)(t): MACRO (lower_set?(tr)) = upto(t,tr) % up(tr)(t): MACRO (upper_set?(tr)) = upfrom(t,tr) % But upto and upfrom have been given overly restrictive types (i.e. they % are only defined on order relations not merely transitive relations).
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.