src/HOL/MicroJava/J/Decl.ML
author oheimb
Tue, 17 Oct 2000 08:41:42 +0200
changeset 10229 10e2d29a77de
parent 10042 7164dc0d24d8
child 10613 78b1d6c3ee9c
permissions -rw-r--r--
cosmetics
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9348
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     1
(*  Title:      HOL/MicroJava/J/Decl.ML
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     2
    ID:         $Id$
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     3
    Author:     David von Oheimb
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     4
    Copyright   1999 Technische Universitaet Muenchen
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     5
*)
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     6
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     7
val finite_is_class = prove_goalw thy [is_class_def,class_def,o_def] "finite {C. is_class G C}" (K [
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     8
	rtac finite_map_of 1]);
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     9
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
    10
val is_classI = prove_goalw thy [is_class_def]
10042
7164dc0d24d8 unsymbolized
kleing
parents: 9348
diff changeset
    11
"!!G. class G C = Some c ==> is_class G C" (K [Auto_tac]);
9348
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
    12
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
    13
val is_classD = prove_goalw thy [is_class_def]
10042
7164dc0d24d8 unsymbolized
kleing
parents: 9348
diff changeset
    14
"!!G. is_class G C ==> \\<exists>sc fs ms. class G C = Some (sc,fs,ms)" (K [
9348
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
    15
	not_None_tac 1, pair_tac "y" 1, pair_tac "ya" 1, Auto_tac]);