Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/PVS/numbers/   (Beweissystem der NASA Version 6.0.9©)  Datei vom 28.9.2014 mit Größe 844 B image not shown  

Quelle  prime_factorization.pvs   Sprache: PVS

 
prime_factorization: THEORY
BEGIN

   IMPORTING ints@primes

   m: VAR posnat
   N,n: VAR nat


   IMPORTING reals@product_fseq_posnat

   fs: VAR fseq

   prime_factorization: LEMMA FORALL m:
                                (EXISTS fs: m = product(fs) AND
                                   (FORALL (i: below(length(fs))): 
                                           prime?(seq(fs)(i))))



   list_of_primes?(fs): bool = (FORALL (i: below(length(fs))): prime?(seq(fs)(i)))

   IMPORTING product_perm_lems

   ordered_list_of_primes?(fs): bool = list_of_primes?(fs) AND
                                       non_decreasing?(fs)
   
   prime_factors: LEMMA FORALL (m: posnat): 
                            (EXISTS fs: m = product_fseq_posnat.product(fs) AND
                               ordered_list_of_primes?(fs))

END prime_factorization

60%


¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.