src/HOL/IsaMakefile
author oheimb
Sat Feb 15 17:45:08 1997 +0100 (1997-02-15)
changeset 2635 835820c1591d
parent 2607 a224a2865e05
child 2826 0b0d9e3bc661
permissions -rw-r--r--
cosmetic
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@2448
     9
OUT = $(ISABELLE_OUTPUT_DIR)
wenzelm@2448
    10
wenzelm@2448
    11
NAMES = HOL Ord Set Fun subset equalities Prod Relation Trancl Sum WF \
wenzelm@2448
    12
	mono Lfp Gfp Nat intr_elim indrule Inductive Finite Arith \
wenzelm@2448
    13
	Sexp Univ List RelPow Option
wenzelm@2448
    14
wenzelm@2448
    15
FILES = ROOT.ML add_ind_def.ML datatype.ML hologic.ML \
wenzelm@2448
    16
	ind_syntax.ML cladata.ML simpdata.ML \
wenzelm@2448
    17
	typedef.ML thy_syntax.ML thy_data.ML ../Pure/section_utils.ML \
wenzelm@2448
    18
	../Provers/hypsubst.ML ../Provers/classical.ML \
wenzelm@2448
    19
	../Provers/simplifier.ML ../Provers/splitter.ML \
wenzelm@2448
    20
	$(NAMES:%=%.thy) $(NAMES:%=%.ML)
wenzelm@2448
    21
wenzelm@2448
    22
$(OUT)/HOL: $(OUT)/Pure $(FILES)
wenzelm@2473
    23
	@$(ISABELLE) -e "make_html := $(ISABELLE_HTML);" -qu $(OUT)/Pure HOL
wenzelm@2448
    24
	@chmod -w $@
wenzelm@2448
    25
wenzelm@2448
    26
$(OUT)/Pure:
wenzelm@2473
    27
	@cd ../Pure; $(ISATOOL) make
wenzelm@2448
    28
wenzelm@2448
    29
wenzelm@2448
    30
## TFL (requires integration into HOL proper)
wenzelm@2448
    31
wenzelm@2448
    32
TFL_NAMES = mask tfl thms thry usyntax utils
wenzelm@2448
    33
TFL_FILES = ../TFL/ROOT.ML ../TFL/sys.sml \
wenzelm@2448
    34
            $(TFL_NAMES:%=../TFL/%.sig) $(TFL_NAMES:%=../TFL/%.sml)
wenzelm@2448
    35
wenzelm@2448
    36
TFL:	$(OUT)/HOL $(TFL_FILES)
wenzelm@2607
    37
	@$(ISABELLE) -qe 'exit_use_dir"../TFL"; quit();' HOL
wenzelm@2473
    38
wenzelm@2448
    39
wenzelm@2448
    40
wenzelm@2473
    41
#### Tests and examples
wenzelm@2473
    42
wenzelm@2448
    43
## IMP-semantics example
wenzelm@2448
    44
wenzelm@2448
    45
IMP_NAMES = Expr Com Natural Transition Denotation Hoare VC
wenzelm@2448
    46
IMP_FILES = IMP/ROOT.ML $(IMP_NAMES:%=IMP/%.thy) $(IMP_NAMES:%=IMP/%.ML)
wenzelm@2448
    47
wenzelm@2448
    48
IMP:	$(OUT)/HOL $(IMP_FILES)
wenzelm@2473
    49
	@$(ISATOOL) testdir $(OUT)/HOL IMP
wenzelm@2448
    50
wenzelm@2448
    51
wenzelm@2448
    52
## Hoare logic
wenzelm@2448
    53
wenzelm@2448
    54
Hoare_NAMES = Hoare Arith2 Examples
wenzelm@2448
    55
Hoare_FILES = Hoare/ROOT.ML $(Hoare_NAMES:%=Hoare/%.thy) \
wenzelm@2448
    56
	      $(Hoare_NAMES:%=Hoare/%.ML)
wenzelm@2448
    57
wenzelm@2448
    58
Hoare:	$(OUT)/HOL $(Hoare_FILES)
wenzelm@2473
    59
	@$(ISATOOL) testdir $(OUT)/HOL Hoare
wenzelm@2448
    60
wenzelm@2448
    61
wenzelm@2448
    62
## The integers in HOL
wenzelm@2448
    63
wenzelm@2448
    64
INTEG_NAMES = Equiv Integ Group Ring Lagrange IntRingDefs IntRing
wenzelm@2448
    65
wenzelm@2448
    66
INTEG_FILES = Integ/ROOT.ML \
wenzelm@2448
    67
	      $(INTEG_NAMES:%=Integ/%.thy) $(INTEG_NAMES:%=Integ/%.ML)
wenzelm@2448
    68
wenzelm@2448
    69
Integ:	$(OUT)/HOL $(INTEG_FILES)
wenzelm@2473
    70
	@$(ISATOOL) testdir $(OUT)/HOL Integ
wenzelm@2448
    71
wenzelm@2448
    72
wenzelm@2448
    73
## I/O Automata
wenzelm@2448
    74
wenzelm@2448
    75
IOA_NTP_NAMES = Abschannel Action Correctness Impl Lemmas Multiset Packet \
wenzelm@2448
    76
		Receiver Sender
wenzelm@2448
    77
IOA_ABP_NAMES = Action Correctness Lemmas
wenzelm@2448
    78
IOA_MT_NAMES = Asig IOA Solve
wenzelm@2448
    79
wenzelm@2448
    80
IOA_FILES = IOA/NTP/ROOT.ML IOA/ABP/ROOT.ML IOA/NTP/Spec.thy \
wenzelm@2448
    81
 $(IOA_NTP_NAMES:%=IOA/NTP/%.thy) $(IOA_NTP_NAMES:%=IOA/NTP/%.ML) \
wenzelm@2448
    82
 IOA/ABP/Abschannel.thy IOA/ABP/Abschannel_finite.thy IOA/ABP/Env.thy \
wenzelm@2448
    83
 IOA/ABP/Impl.thy IOA/ABP/Impl_finite.thy IOA/ABP/Packet.thy \
wenzelm@2448
    84
 IOA/ABP/Receiver.thy IOA/ABP/Sender.thy IOA/ABP/Spec.thy \
wenzelm@2448
    85
 $(IOA_ABP_NAMES:%=IOA/ABP/%.thy) $(IOA_ABP_NAMES:%=IOA/ABP/%.ML) \
wenzelm@2448
    86
 $(IOA_MT_NAMES:%=IOA/meta_theory/%.thy) $(IOA_MT_NAMES:%=IOA/meta_theory/%.ML)
wenzelm@2448
    87
wenzelm@2448
    88
IOA:	$(OUT)/HOL $(IOA_FILES)
wenzelm@2473
    89
	@$(ISATOOL) testdir $(OUT)/HOL IOA/NTP
wenzelm@2473
    90
	@$(ISATOOL) testdir $(OUT)/HOL IOA/ABP
wenzelm@2448
    91
wenzelm@2448
    92
wenzelm@2448
    93
## Authentication & Security Protocols
wenzelm@2448
    94
wenzelm@2448
    95
Auth_NAMES = Message Shared NS_Shared OtwayRees OtwayRees_AN OtwayRees_Bad \
wenzelm@2473
    96
	     Recur WooLam Yahalom Yahalom2 Public NS_Public_Bad NS_Public
wenzelm@2448
    97
wenzelm@2448
    98
AUTH_FILES = Auth/ROOT.ML $(AUTH_NAMES:%=Auth/%.thy) $(AUTH_NAMES:%=Auth/%.ML)
wenzelm@2448
    99
wenzelm@2448
   100
Auth:	$(OUT)/HOL $(AUTH_FILES)
wenzelm@2473
   101
	@$(ISATOOL) testdir $(OUT)/HOL Auth
wenzelm@2448
   102
wenzelm@2448
   103
wenzelm@2448
   104
## Properties of substitutions
wenzelm@2448
   105
wenzelm@2448
   106
SUBST_NAMES = AList Setplus Subst Unifier UTerm UTLemmas
wenzelm@2448
   107
wenzelm@2448
   108
SUBST_FILES = Subst/ROOT.ML \
wenzelm@2448
   109
	      $(SUBST_NAMES:%=Subst/%.thy) $(SUBST_NAMES:%=Subst/%.ML)
wenzelm@2448
   110
wenzelm@2448
   111
Subst:	$(OUT)/HOL $(SUBST_FILES)
wenzelm@2473
   112
	@$(ISATOOL) testdir $(OUT)/HOL Subst
wenzelm@2448
   113
wenzelm@2448
   114
wenzelm@2448
   115
## Confluence of Lambda-calculus
wenzelm@2448
   116
wenzelm@2448
   117
LAMBDA_NAMES = Lambda ParRed Commutation Eta
wenzelm@2448
   118
wenzelm@2448
   119
LAMBDA_FILES = Lambda/ROOT.ML \
wenzelm@2448
   120
	      $(LAMBDA_NAMES:%=Lambda/%.thy) $(LAMBDA_NAMES:%=Lambda/%.ML)
wenzelm@2448
   121
wenzelm@2448
   122
Lambda:	 $(OUT)/HOL $(LAMBDA_FILES)
wenzelm@2473
   123
	@$(ISATOOL) testdir $(OUT)/HOL Lambda
wenzelm@2448
   124
wenzelm@2448
   125
nipkow@2527
   126
## Type inference without let
nipkow@2527
   127
nipkow@2527
   128
W0_NAMES = I Maybe MiniML Type W
nipkow@2527
   129
nipkow@2527
   130
W0_FILES = W0/ROOT.ML \
nipkow@2527
   131
	      $(W0_NAMES:%=W0/%.thy) $(W0_NAMES:%=W0/%.ML)
wenzelm@2448
   132
nipkow@2527
   133
W0: $(OUT)/HOL $(W0_FILES)
nipkow@2527
   134
	@$(ISATOOL) testdir $(OUT)/HOL W0
nipkow@2527
   135
nipkow@2527
   136
nipkow@2527
   137
## Type inference with let
nipkow@2527
   138
nipkow@2527
   139
MINIML_NAMES = Generalize Instance Maybe MiniML Type W
wenzelm@2448
   140
wenzelm@2448
   141
MINIML_FILES = MiniML/ROOT.ML \
wenzelm@2448
   142
	      $(MINIML_NAMES:%=MiniML/%.thy) $(MINIML_NAMES:%=MiniML/%.ML)
wenzelm@2448
   143
wenzelm@2448
   144
MiniML: $(OUT)/HOL $(MINIML_FILES)
wenzelm@2473
   145
	@$(ISATOOL) testdir $(OUT)/HOL MiniML
wenzelm@2448
   146
wenzelm@2448
   147
wenzelm@2448
   148
## Lexical analysis
wenzelm@2448
   149
wenzelm@2448
   150
LEX_FILES = Auto AutoChopper Chopper Prefix
wenzelm@2448
   151
wenzelm@2448
   152
LEX_FILES = Lex/ROOT.ML \
wenzelm@2448
   153
	    $(LEX_NAMES:%=Lex/%.thy) $(LEX_NAMES:%=Lex/%.ML)
wenzelm@2448
   154
wenzelm@2448
   155
Lex:	$(OUT)/HOL $(LEX_FILES)
wenzelm@2473
   156
	@$(ISATOOL) testdir $(OUT)/HOL Lex
wenzelm@2448
   157
wenzelm@2448
   158
wenzelm@2545
   159
## Axiomatic type classes examples
wenzelm@2545
   160
wenzelm@2545
   161
AXC_GROUP_FILES = Group.ML Group.thy GroupDefs.ML GroupDefs.thy \
wenzelm@2545
   162
	GroupInsts.thy Monoid.thy MonoidGroupInsts.thy ROOT.ML Sigs.thy
wenzelm@2545
   163
wenzelm@2545
   164
AXC_LATTICE_FILES = CLattice.ML CLattice.thy LatInsts.ML LatInsts.thy \
wenzelm@2545
   165
	LatMorph.ML LatMorph.thy LatPreInsts.ML LatPreInsts.thy \
wenzelm@2545
   166
	Lattice.ML Lattice.thy OrdDefs.ML OrdDefs.thy OrdInsts.thy \
wenzelm@2545
   167
	Order.ML Order.thy ROOT.ML tools.ML
wenzelm@2545
   168
wenzelm@2545
   169
AXC_TUTORIAL_FILES = BoolGroupInsts.thy Group.ML Group.thy Monoid.thy \
wenzelm@2545
   170
	MonoidGroupInsts.thy ProdGroupInsts.thy Product.thy \
wenzelm@2545
   171
	ProductInsts.thy ROOT.ML Semigroup.thy Semigroups.thy Sigs.thy \
wenzelm@2545
   172
	Xor.ML Xor.thy
wenzelm@2545
   173
wenzelm@2545
   174
AXCLASSES_FILES = AxClasses/ROOT.ML \
wenzelm@2545
   175
	$(AXC_GROUP_FILES:%=AxClasses/Group/%) \
wenzelm@2545
   176
	$(AXC_LATTICE_FILES:%=AxClasses/Lattice/%) \
wenzelm@2545
   177
	$(AXC_TUTORIAL_FILES:%=AxClasses/Tutorial/%)
wenzelm@2545
   178
wenzelm@2545
   179
AxClasses: $(OUT)/HOL $(AXCLASSES_FILES)
wenzelm@2545
   180
	@$(ISATOOL) testdir $(OUT)/HOL AxClasses
wenzelm@2545
   181
	@$(ISATOOL) testdir $(OUT)/HOL AxClasses/Group
wenzelm@2545
   182
	@$(ISATOOL) testdir $(OUT)/HOL AxClasses/Lattice
wenzelm@2545
   183
	@$(ISATOOL) testdir $(OUT)/HOL AxClasses/Tutorial
wenzelm@2545
   184
wenzelm@2545
   185
wenzelm@2448
   186
## Miscellaneous examples
wenzelm@2448
   187
wenzelm@2448
   188
EX_NAMES = String BT Perm Comb InSort Qsort LexProd \
wenzelm@2448
   189
	   Puzzle Mutil Primes NatSum SList LList Acc PropLog Term Simult MT
wenzelm@2448
   190
wenzelm@2448
   191
EX_FILES = ex/ROOT.ML ex/cla.ML ex/meson.ML ex/mesontest.ML ex/rel.ML \
wenzelm@2448
   192
	   ex/set.ML $(EX_NAMES:%=ex/%.thy) $(EX_NAMES:%=ex/%.ML)
wenzelm@2448
   193
wenzelm@2448
   194
ex:	$(OUT)/HOL $(EX_FILES)
wenzelm@2473
   195
	@$(ISATOOL) testdir $(OUT)/HOL ex
wenzelm@2448
   196
wenzelm@2448
   197
wenzelm@2448
   198
## Full test
wenzelm@2448
   199
oheimb@2635
   200
test:	$(OUT)/HOL \
oheimb@2635
   201
	TFL IMP Hoare Lex Integ Auth Subst Lambda W0 MiniML IOA AxClasses ex
wenzelm@2448
   202
	echo 'Test examples ran successfully' > test
wenzelm@2448
   203
wenzelm@2448
   204
wenzelm@2448
   205
.PRECIOUS: $(OUT)/Pure $(OUT)/HOL