From: Ferruccio Guidi Date: Wed, 13 May 2009 19:30:53 +0000 (+0000) Subject: interpretations placed right after the corresponding definitions (in this way the... X-Git-Tag: make_still_working~3980 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=dc7fa75e39843dd9db19130fb352c274291befff;p=helm.git interpretations placed right after the corresponding definitions (in this way the script is reconstructed correctly) logic/equality and datatypes/bool reconstructed :) --- diff --git a/helm/software/matita/library/datatypes/bool.ma b/helm/software/matita/library/datatypes/bool.ma index da04dd381..f78264d68 100644 --- a/helm/software/matita/library/datatypes/bool.ma +++ b/helm/software/matita/library/datatypes/bool.ma @@ -44,7 +44,10 @@ definition notb : bool \to bool \def match b with [ true \Rightarrow false | false \Rightarrow true ]. - + +(* FG: interpretation right after definition *) +interpretation "boolean not" 'not x = (notb x). + theorem notb_elim: \forall b:bool.\forall P:bool \to Prop. match b with [ true \Rightarrow P false @@ -66,8 +69,6 @@ apply eq_f. assumption. qed. -interpretation "boolean not" 'not x = (notb x). - definition andb : bool \to bool \to bool\def \lambda b1,b2:bool. match b1 with @@ -115,6 +116,9 @@ definition orb : bool \to bool \to bool\def [ true \Rightarrow true | false \Rightarrow b2]. +(* FG: interpretation right after definition *) +interpretation "boolean or" 'or x y = (orb x y). + theorem orb_elim: \forall b1,b2:bool. \forall P:bool \to Prop. match b1 with [ true \Rightarrow P true @@ -122,8 +126,6 @@ match b1 with intros 3.elim b1.exact H. exact H. qed. -interpretation "boolean or" 'or x y = (orb x y). - definition if_then_else : bool \to Prop \to Prop \to Prop \def \lambda b:bool.\lambda P,Q:Prop. match b with