src/HOL/IsaMakefile
author wenzelm
Mon Jul 07 09:09:21 1997 +0200 (1997-07-07)
changeset 3505 1cb4ea47d967
parent 3482 ef918a90f9bf
child 3540 acd60238f191
permissions -rw-r--r--
eliminated chmod -w;
     1 #
     2 # $Id$
     3 #
     4 # IsaMakefile for HOL
     5 #
     6 
     7 #### Base system
     8 
     9 OUT = $(ISABELLE_OUTPUT)
    10 
    11 NAMES = HOL Ord Set Fun subset equalities Prod Relation Trancl Sum WF WF_Rel \
    12 	mono Lfp Gfp NatDef Nat intr_elim indrule Inductive Finite Arith \
    13 	Divides Power Sexp Univ List RelPow Option
    14 
    15 PROVERS = hypsubst.ML classical.ML blast.ML \
    16 	simplifier.ML splitter.ML nat_transitive.ML 
    17 
    18 TFL   = dcterm.sml post.sml rules.new.sml rules.sig \
    19 	sys.sml tfl.sig tfl.sml thms.sig thms.sml thry.sig thry.sml   \
    20 	usyntax.sig usyntax.sml utils.sig utils.sml
    21 
    22 FILES = ROOT.ML add_ind_def.ML datatype.ML hologic.ML \
    23 	ind_syntax.ML cladata.ML simpdata.ML \
    24 	typedef.ML thy_syntax.ML thy_data.ML ../Pure/section_utils.ML \
    25 	$(NAMES:%=%.thy) $(NAMES:%=%.ML) $(TFL:%=../TFL/%) \
    26 	$(PROVERS:%=../Provers/%)
    27 
    28 $(OUT)/HOL: $(OUT)/Pure $(FILES)
    29 	@$(ISATOOL) usedir -b $(OUT)/Pure HOL
    30 
    31 $(OUT)/Pure:
    32 	@cd ../Pure; $(ISATOOL) make
    33 
    34 
    35 #### Tests and examples
    36 
    37 ## Inductive definitions: simple examples
    38 
    39 INDUCT_FILES =  Perm Comb Mutil SList LList LFilter Acc PropLog Term Simult
    40 
    41 INDUCT_FILES = Induct/ROOT.ML \
    42 	    $(INDUCT_NAMES:%=Induct/%.thy) $(INDUCT_NAMES:%=Induct/%.ML)
    43 
    44 Induct:	$(OUT)/HOL $(INDUCT_FILES)
    45 	@$(ISATOOL) usedir $(OUT)/HOL Induct
    46 
    47 
    48 ## IMP-semantics example
    49 
    50 IMP_NAMES = Expr Com Natural Transition Denotation Hoare VC
    51 IMP_FILES = IMP/ROOT.ML $(IMP_NAMES:%=IMP/%.thy) $(IMP_NAMES:%=IMP/%.ML)
    52 
    53 IMP:	$(OUT)/HOL $(IMP_FILES)
    54 	@$(ISATOOL) usedir $(OUT)/HOL IMP
    55 
    56 
    57 ## Hoare logic
    58 
    59 Hoare_NAMES = Hoare Arith2 Examples
    60 Hoare_FILES = Hoare/ROOT.ML $(Hoare_NAMES:%=Hoare/%.thy) \
    61 	      $(Hoare_NAMES:%=Hoare/%.ML)
    62 
    63 Hoare:	$(OUT)/HOL $(Hoare_FILES)
    64 	@$(ISATOOL) usedir $(OUT)/HOL Hoare
    65 
    66 
    67 ## The integers in HOL
    68 
    69 INTEG_NAMES = Equiv Integ Group Ring Lagrange IntRingDefs IntRing
    70 
    71 INTEG_FILES = Integ/ROOT.ML \
    72 	      $(INTEG_NAMES:%=Integ/%.thy) $(INTEG_NAMES:%=Integ/%.ML)
    73 
    74 Integ:	$(OUT)/HOL $(INTEG_FILES)
    75 	@$(ISATOOL) usedir $(OUT)/HOL Integ
    76 
    77 
    78 ## I/O Automata (meta theory only)
    79 
    80 
    81 IOA_FILES = IOA/ROOT.ML IOA/Asig.thy IOA/Asig.ML IOA/IOA.thy \
    82   IOA/IOA.ML IOA/Solve.thy IOA/Solve.ML
    83 
    84 IOA: $(OUT)/HOL $(IOA_FILES)
    85 	@$(ISATOOL) usedir $(OUT)/HOL IOA
    86 
    87 
    88 ## Authentication & Security Protocols
    89 
    90 Auth_NAMES = Message Shared NS_Shared OtwayRees OtwayRees_AN OtwayRees_Bad \
    91 	     Recur WooLam Yahalom Yahalom2 \
    92 	     Public NS_Public_Bad NS_Public TLS
    93 
    94 AUTH_FILES = Auth/ROOT.ML $(AUTH_NAMES:%=Auth/%.thy) $(AUTH_NAMES:%=Auth/%.ML)
    95 
    96 Auth:	$(OUT)/HOL $(AUTH_FILES)
    97 	@$(ISATOOL) usedir $(OUT)/HOL Auth
    98 
    99 
   100 ## Modelchecker invocation
   101 
   102 MC_FILES = Modelcheck/CTL.thy Modelcheck/Example.ML \
   103   Modelcheck/Example.thy Modelcheck/MCSyn.ML Modelcheck/MCSyn.thy \
   104   Modelcheck/MuCalculus.ML Modelcheck/MuCalculus.thy Modelcheck/ROOT.ML
   105 
   106 Modelcheck: $(OUT)/HOL $(MC_FILES)
   107 	@$(ISATOOL) usedir $(OUT)/HOL Modelcheck
   108 
   109 
   110 ## Properties of substitutions
   111 
   112 SUBST_NAMES = AList Subst Unifier UTerm Unify
   113 
   114 SUBST_FILES = Subst/ROOT.ML \
   115 	      $(SUBST_NAMES:%=Subst/%.thy) $(SUBST_NAMES:%=Subst/%.ML)
   116 
   117 Subst:	$(OUT)/HOL $(SUBST_FILES)
   118 	@$(ISATOOL) usedir $(OUT)/HOL Subst
   119 
   120 
   121 ## Confluence of Lambda-calculus
   122 
   123 LAMBDA_NAMES = Lambda ParRed Commutation Eta
   124 
   125 LAMBDA_FILES = Lambda/ROOT.ML \
   126 	      $(LAMBDA_NAMES:%=Lambda/%.thy) $(LAMBDA_NAMES:%=Lambda/%.ML)
   127 
   128 Lambda:	 $(OUT)/HOL $(LAMBDA_FILES)
   129 	@$(ISATOOL) usedir $(OUT)/HOL Lambda
   130 
   131 
   132 ## Type inference without let
   133 
   134 W0_NAMES = I Maybe MiniML Type W
   135 
   136 W0_FILES = W0/ROOT.ML \
   137 	      $(W0_NAMES:%=W0/%.thy) $(W0_NAMES:%=W0/%.ML)
   138 
   139 W0: $(OUT)/HOL $(W0_FILES)
   140 	@$(ISATOOL) usedir $(OUT)/HOL W0
   141 
   142 
   143 ## Type inference with let
   144 
   145 MINIML_NAMES = Generalize Instance Maybe MiniML Type W
   146 
   147 MINIML_FILES = MiniML/ROOT.ML \
   148 	      $(MINIML_NAMES:%=MiniML/%.thy) $(MINIML_NAMES:%=MiniML/%.ML)
   149 
   150 MiniML: $(OUT)/HOL $(MINIML_FILES)
   151 	@$(ISATOOL) usedir $(OUT)/HOL MiniML
   152 
   153 
   154 ## Lexical analysis
   155 
   156 LEX_FILES = Auto AutoChopper Chopper Prefix
   157 
   158 LEX_FILES = Lex/ROOT.ML \
   159 	    $(LEX_NAMES:%=Lex/%.thy) $(LEX_NAMES:%=Lex/%.ML)
   160 
   161 Lex:	$(OUT)/HOL $(LEX_FILES)
   162 	@$(ISATOOL) usedir $(OUT)/HOL Lex
   163 
   164 
   165 ## Axiomatic type classes examples
   166 
   167 AXC_GROUP_FILES = Group.ML Group.thy GroupDefs.ML GroupDefs.thy \
   168 	GroupInsts.thy Monoid.thy MonoidGroupInsts.thy ROOT.ML Sigs.thy
   169 
   170 AXC_LATTICE_FILES = CLattice.ML CLattice.thy LatInsts.ML LatInsts.thy \
   171 	LatMorph.ML LatMorph.thy LatPreInsts.ML LatPreInsts.thy \
   172 	Lattice.ML Lattice.thy OrdDefs.ML OrdDefs.thy OrdInsts.thy \
   173 	Order.ML Order.thy ROOT.ML tools.ML
   174 
   175 AXC_TUTORIAL_FILES = BoolGroupInsts.thy Group.ML Group.thy Monoid.thy \
   176 	MonoidGroupInsts.thy ProdGroupInsts.thy Product.thy \
   177 	ProductInsts.thy ROOT.ML Semigroup.thy Semigroups.thy Sigs.thy \
   178 	Xor.ML Xor.thy
   179 
   180 AXCLASSES_FILES = AxClasses/ROOT.ML \
   181 	$(AXC_GROUP_FILES:%=AxClasses/Group/%) \
   182 	$(AXC_LATTICE_FILES:%=AxClasses/Lattice/%) \
   183 	$(AXC_TUTORIAL_FILES:%=AxClasses/Tutorial/%)
   184 
   185 AxClasses: $(OUT)/HOL $(AXCLASSES_FILES)
   186 	@$(ISATOOL) usedir $(OUT)/HOL AxClasses
   187 	@$(ISATOOL) usedir -s AxClasses-Group $(OUT)/HOL AxClasses/Group
   188 	@$(ISATOOL) usedir -s AxClasses-Lattice $(OUT)/HOL AxClasses/Lattice
   189 	@$(ISATOOL) usedir -s AxClasses-Tutorial $(OUT)/HOL AxClasses/Tutorial
   190 
   191 
   192 ## Higher-order quotients and example fractionals
   193 
   194 QUOT_FILES = Quot/ROOT.ML Quot/PER0.thy Quot/PER0.ML Quot/PER.thy Quot/PER.ML \
   195 	Quot/HQUOT.thy Quot/HQUOT.ML Quot/NPAIR.thy Quot/NPAIR.ML \
   196 	Quot/FRACT.thy Quot/FRACT.ML
   197 Quot:	$(OUT)/HOL $(QUOT_FILES)
   198 	@$(ISATOOL) usedir $(OUT)/HOL Quot
   199 
   200 
   201 ## Miscellaneous examples
   202 
   203 EX_NAMES = Recdef Fib Primes Primrec NatSum String BT InSort Qsort Puzzle MT
   204 
   205 EX_FILES = ex/ROOT.ML ex/cla.ML ex/meson.ML ex/mesontest.ML ex/rel.ML \
   206 	   ex/set.ML $(EX_NAMES:%=ex/%.thy) $(EX_NAMES:%=ex/%.ML)
   207 
   208 ex:	$(OUT)/HOL $(EX_FILES)
   209 	@$(ISATOOL) usedir $(OUT)/HOL ex
   210 
   211 
   212 ## Full test
   213 
   214 test:	$(OUT)/HOL \
   215 		Subst Induct IMP Hoare Lex Integ Auth Modelcheck Lambda  \
   216 		W0 MiniML IOA AxClasses Quot ex
   217 	echo 'Test examples ran successfully' > test
   218 
   219 
   220 .PRECIOUS: $(OUT)/Pure $(OUT)/HOL