min_array[N: posnat, T: TYPE, <= : (total_order?[T]) ]: THEORY %------------------------------------------------------------------------ % % min (basic definitions and properties) % ------------------------------------------- % % Author: Ricky W. Butler % % This theory defines the minimum function over an array of values % from an ordered type. This is done in an implementation-independent % manner. % % Imin(A,ii,jj) = general definition of minimum of array A % over the internal from ii to jj. Returns the % index into the array. % % imin(A) = general definition of minimum of array A. % Returns the index into the array. % % min(A) = general definition of minimum of array A. % Returns the minimal element. % % Notes: % 1. The properties of imin and min are readily obtained via % TYPEPRED "min" and TYPEPRED "imin" or through use of % min_lem and imin_lem. % 2. Since there may be replicates in A, the return type of imin % may not be a singleton set. % %------------------------------------------------------------------------
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.