1
(***********************************************************************)
5
(* Pierre Weis, projet Cristal, INRIA Rocquencourt *)
7
(* Copyright 2001 Institut National de Recherche en Informatique et *)
8
(* en Automatique. All rights reserved. This file is distributed *)
9
(* only by permission. *)
11
(***********************************************************************)
16
let proposition = analyse_proposition cha�ne in
17
let variables = variables_libres proposition in
19
v�rifie_tautologie proposition variables;
20
begin match variables with
22
print_string "Th�or�me: "
24
print_string ("Th�or�me: pour toute proposition "^var^", ")
26
print_string "Th�or�me: pour toutes propositions ";
27
List.iter (function var -> print_string (var^", ")) variables
31
with R�futation liaisons ->
32
print_string (cha�ne ^ " n'est pas un th�or�me,\n");
33
print_string "car la proposition est fausse quand\n";
36
print_string (var ^ " est ");
37
print_string (if b then "vraie" else "fausse");
44
print_string ">>> "; examine(read_line())
46
with End_of_file -> ();;
48
if !Sys.interactive then () else begin boucle(); exit 0 end;;