Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quellcode-Bibliothek

© Kompilation durch diese Firma

[Weder Korrektheit noch Funktionsfähigkeit der Software werden zugesichert.]

Datei: RobotTest.vdmrt   Sprache: VDM

Untersuchung PVS©

%-------------------------------------------------------------------------
%
%  Basic properties of the set cardinality comparison functions
%
%  For PVS version 3.2.  November 4, 2004
%  ---------------------------------------------------------------------
%      Author: Jerry James ([email protected]), University of Kansas
%
%  EXPORTS
%  -------
%  sets_aux: card_comp_set[T1,T2], card_comp_set[T2,T1],
%    card_comp_set_props[T1,T2]
%
%-------------------------------------------------------------------------
card_comp_set_props[T1: TYPE, T2: TYPE]: THEORY

 EXPORTING ALL WITH card_comp_set[T1, T2], card_comp_set[T2, T1]

 BEGIN

  IMPORTING card_comp_set[T1, T2], card_comp_set[T2, T1]

  % The following imports are for the proofs only
  IMPORTING orders@set_dichotomous, orders@set_antisymmetric

  S1: VAR set[T1]
  S2: VAR set[T2]


  % ==========================================================================
  % We defined card_lt and card_ge as we did to avoid special casing empty
  % sets, which these results show would be necessary.
  % ==========================================================================

  card_lt_surj: LEMMA
    FORALL S1, S2:
      card_lt(S1, S2) IFF
       (EXISTS (t: (S2)): TRUEAND
        NOT (EXISTS (f: [(S1) -> (S2)]): surjective?(f))

  card_ge_surj: LEMMA
    FORALL S1, S2:
      card_ge(S1, S2) IFF
       ((EXISTS (t: (S1)): TRUEAND (FORALL (t: (S2)): FALSE)) OR
        (EXISTS (f: [(S1) -> (S2)]): surjective?(f))


  % ==========================================================================
  % The relationships of the functions
  % ==========================================================================

  card_lt_le: LEMMA FORALL S1, S2: card_lt(S1, S2) => card_le(S1, S2)
  card_gt_ge: LEMMA FORALL S1, S2: card_gt(S1, S2) => card_ge(S1, S2)

  card_lt_gt: LEMMA FORALL S1, S2: card_lt(S1, S2) = card_gt(S2, S1)
  card_le_ge: LEMMA FORALL S1, S2: card_le(S1, S2) = card_ge(S2, S1)
  card_gt_lt: LEMMA FORALL S1, S2: card_gt(S1, S2) = card_lt(S2, S1)
  card_ge_le: LEMMA FORALL S1, S2: card_ge(S1, S2) = card_le(S2, S1)

  card_lt_ge: LEMMA FORALL S1, S2: card_lt(S1, S2) XOR card_ge(S1, S2)
  card_le_gt: LEMMA FORALL S1, S2: card_le(S1, S2) XOR card_gt(S1, S2)

  card_eq_le_ge: LEMMA
    FORALL S1, S2: card_eq(S1, S2) IFF card_le(S1, S2) AND card_ge(S1, S2)
  card_le_lt_eq: LEMMA
    FORALL S1, S2: card_le(S1, S2) IFF card_lt(S1, S2) OR card_eq(S1, S2)
  card_ge_gt_eq: LEMMA
    FORALL S1, S2: card_ge(S1, S2) IFF card_gt(S1, S2) OR card_eq(S1, S2)

  card_lt_neq_ngt: LEMMA
    FORALL S1, S2:
      card_lt(S1, S2) => NOT card_eq(S1, S2) AND NOT card_gt(S1, S2)
  card_gt_neq_nlt: LEMMA
    FORALL S1, S2:
      card_gt(S1, S2) => NOT card_eq(S1, S2) AND NOT card_lt(S1, S2)


  % ==========================================================================
  % (anti)commutativity and (anti)symmetry of the functions
  % ==========================================================================

  card_lt_anticommutative: LEMMA
    FORALL S1, S2: card_lt(S1, S2) => NOT card_lt(S2, S1)

  card_le_antisymmetric: LEMMA
    FORALL S1, S2: card_le(S1, S2) AND card_le(S2, S1) => card_eq(S1, S2)

  card_eq_symmetric: LEMMA FORALL S1, S2: card_eq(S1, S2) = card_eq(S2, S1)

  card_ge_antisymmetric: LEMMA
    FORALL S1, S2: card_ge(S1, S2) AND card_ge(S2, S1) => card_eq(S1, S2)

  card_gt_anticommutative: LEMMA
    FORALL S1, S2: card_gt(S1, S2) => NOT card_gt(S2, S1)


  % ==========================================================================
  % dichotomy and trichotomy of the functions
  % ==========================================================================

  card_lt_trichotomous: LEMMA
    FORALL S1, S2: card_lt(S1, S2) OR card_lt(S2, S1) OR card_eq(S1, S2)

  card_le_dichotomous: LEMMA
    FORALL S1, S2: card_le(S1, S2) OR card_le(S2, S1)

  card_ge_dichotomous: LEMMA
    FORALL S1, S2: card_ge(S1, S2) OR card_ge(S2, S1)

  card_gt_trichotomous: LEMMA
    FORALL S1, S2: card_gt(S1, S2) OR card_gt(S2, S1) OR card_eq(S1, S2)

 END card_comp_set_props

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.48Angebot  Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können  ¤





Druckansicht
unsichere Verbindung
Druckansicht
Hier finden Sie eine Liste der Produkte des Unternehmens

Eigene Datei ansehen




Lebenszyklus

Die hierunter aufgelisteten Ziele sind für diese Firma wichtig


Ziele

Entwicklung einer Software für die statische Quellcodeanalyse


Bot Zugriff



                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik