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