Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/PVS/numbers/     Datei vom 28.9.2014 mit Größe 545 B image not shown  

Quelle  sqrt_two.pvs   Sprache: PVS

 

sqrt_two: THEORY
%-------------------------------------------------------------------------
% the proof that the square root of two is irrational
% Author: Alfons Geser, HTWK Leipzig, Germany
% Date: May, 2009
%-------------------------------------------------------------------------
BEGIN

  IMPORTING reals@sqrt, ints@gcd_fractions

  n: VAR nat

  even_or_odd: LEMMA divides(2, n) IFF NOT divides(2, n + 1)

  two_divides_sq: LEMMA divides(2, sq(n)) IFF divides(2, n)

  sqrt2_is_irrational: THEOREM NOT rational_pred(sqrt(2))

END sqrt_two

Messung
CHZG
8210010094

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland