src/HOL/IsaMakefile
author nipkow
Mon, 27 Apr 1998 16:45:11 +0200
changeset 4830 bd73675adbed
parent 4777 379f32b0ae40
child 4864 3abfe2093aa0
permissions -rw-r--r--
Added a few lemmas. Renamed expand_const -> split_const.

#
# $Id$
#
# IsaMakefile for HOL
#

## targets

default: HOL
images: HOL TLA
test: HOL-Subst HOL-Induct HOL-IMP HOL-Hoare HOL-Lex HOL-Integ \
  HOL-Auth HOL-UNITY HOL-Modelcheck HOL-Lambda HOL-W0 HOL-MiniML HOL-IOA \
  HOL-AxClasses HOL-AxClasses-Group HOL-AxClasses-Lattice \
  HOL-AxClasses-Tutorial HOL-Quot HOL-ex TLA-Inc TLA-Buffer TLA-Memory
all: images test


## global settings

SRC = $(ISABELLE_HOME)/src
OUT = $(ISABELLE_OUTPUT)
LOG = $(OUT)/log


## HOL

HOL: Pure $(OUT)/HOL

Pure:
	@cd $(SRC)/Pure; $(ISATOOL) make Pure

$(OUT)/HOL: $(OUT)/Pure $(SRC)/Provers/Arith/cancel_sums.ML \
  $(SRC)/Provers/Arith/nat_transitive.ML $(SRC)/Provers/blast.ML \
  $(SRC)/Provers/clasimp.ML $(SRC)/Provers/classical.ML \
  $(SRC)/Provers/hypsubst.ML $(SRC)/Provers/simplifier.ML \
  $(SRC)/Provers/splitter.ML $(SRC)/Pure/section_utils.ML \
  $(SRC)/TFL/dcterm.sml $(SRC)/TFL/post.sml $(SRC)/TFL/rules.new.sml \
  $(SRC)/TFL/rules.sig $(SRC)/TFL/sys.sml $(SRC)/TFL/tfl.sig \
  $(SRC)/TFL/tfl.sml $(SRC)/TFL/thms.sig $(SRC)/TFL/thms.sml \
  $(SRC)/TFL/thry.sig $(SRC)/TFL/thry.sml $(SRC)/TFL/usyntax.sig \
  $(SRC)/TFL/usyntax.sml $(SRC)/TFL/utils.sig $(SRC)/TFL/utils.sml \
  Arith.ML Arith.thy Divides.ML Divides.thy Finite.ML Finite.thy \
  Fun.ML Fun.thy Gfp.ML Gfp.thy HOL.ML HOL.thy Inductive.ML \
  Inductive.thy Lfp.ML Lfp.thy List.ML List.thy Map.ML Map.thy Nat.ML \
  Nat.thy NatDef.ML NatDef.thy Option.ML Option.thy Ord.ML Ord.thy \
  Power.ML Power.thy Prod.ML Prod.thy ROOT.ML RelPow.ML RelPow.thy \
  Relation.ML Relation.thy Set.ML Set.thy Sexp.ML Sexp.thy Sum.ML \
  Sum.thy Trancl.ML Trancl.thy Univ.ML Univ.thy Vimage.ML Vimage.thy \
  WF.ML WF.thy WF_Rel.ML WF_Rel.thy add_ind_def.ML arith_data.ML \
  cladata.ML datatype.ML equalities.ML equalities.thy hologic.ML \
  ind_syntax.ML indrule.ML indrule.thy intr_elim.ML intr_elim.thy \
  mono.ML mono.thy record.ML simpdata.ML subset.ML subset.thy \
  thy_data.ML thy_syntax.ML typedef.ML
	@$(ISATOOL) usedir -b $(OUT)/Pure HOL


## HOL-Subst

HOL-Subst: HOL $(LOG)/HOL-Subst.gz

$(LOG)/HOL-Subst.gz: $(OUT)/HOL Subst/AList.ML Subst/AList.thy \
  Subst/ROOT.ML Subst/Subst.ML Subst/Subst.thy Subst/UTerm.ML \
  Subst/UTerm.thy Subst/Unifier.ML Subst/Unifier.thy Subst/Unify.ML \
  Subst/Unify.thy
	@$(ISATOOL) usedir $(OUT)/HOL Subst


## HOL-Induct

HOL-Induct: HOL $(LOG)/HOL-Induct.gz

$(LOG)/HOL-Induct.gz: $(OUT)/HOL Induct/Acc.ML Induct/Acc.thy \
  Induct/Com.ML Induct/Com.thy Induct/Comb.ML Induct/Comb.thy \
  Induct/Exp.ML Induct/Exp.thy Induct/LFilter.ML Induct/LFilter.thy \
  Induct/LList.ML Induct/LList.thy Induct/Mutil.ML Induct/Mutil.thy \
  Induct/Perm.ML Induct/Perm.thy Induct/PropLog.ML Induct/PropLog.thy \
  Induct/ROOT.ML Induct/SList.ML Induct/SList.thy Induct/Simult.ML \
  Induct/Simult.thy Induct/Term.ML Induct/Term.thy
	@$(ISATOOL) usedir $(OUT)/HOL Induct


## HOL-IMP

HOL-IMP: HOL $(LOG)/HOL-IMP.gz

$(LOG)/HOL-IMP.gz: $(OUT)/HOL IMP/Com.ML IMP/Com.thy IMP/Denotation.ML \
  IMP/Denotation.thy IMP/Expr.ML IMP/Expr.thy IMP/Hoare.ML IMP/Hoare.thy \
  IMP/Natural.ML IMP/Natural.thy IMP/ROOT.ML IMP/Transition.ML \
  IMP/Transition.thy IMP/VC.ML IMP/VC.thy
	@$(ISATOOL) usedir $(OUT)/HOL IMP


## HOL-Hoare

HOL-Hoare: HOL $(LOG)/HOL-Hoare.gz

$(LOG)/HOL-Hoare.gz: $(OUT)/HOL Hoare/Arith2.ML Hoare/Arith2.thy \
  Hoare/Examples.ML Hoare/Examples.thy Hoare/Hoare.ML Hoare/Hoare.thy \
  Hoare/ROOT.ML
	@$(ISATOOL) usedir $(OUT)/HOL Hoare


## HOL-Lex

HOL-Lex: HOL $(LOG)/HOL-Lex.gz

$(LOG)/HOL-Lex.gz: $(OUT)/HOL \
  Lex/AutoChopper.thy Lex/AutoChopper.ML Lex/AutoChopper1.thy \
  Lex/AutoMaxChop.thy Lex/AutoMaxChop.ML Lex/AutoProj.thy Lex/AutoProj.ML \
  Lex/Automata.thy Lex/Automata.ML Lex/Chopper.thy Lex/DA.thy Lex/DA.ML \
  Lex/MaxChop.thy Lex/MaxChop.ML Lex/MaxPrefix.thy Lex/MaxPrefix.ML \
  Lex/NA.thy Lex/NAe.thy Lex/NAe.ML Lex/NAe_of_RegExp.thy Lex/NAe_of_RegExp.ML\
  Lex/Prefix.thy Lex/Prefix.ML Lex/ROOT.ML \
  Lex/RegExp.thy Lex/RegSet.thy Lex/RegSet.ML \
  Lex/RegSet_of_nat_DA.thy Lex/RegSet_of_nat_DA.ML
	@$(ISATOOL) usedir $(OUT)/HOL Lex


## HOL-Integ

HOL-Integ: HOL $(LOG)/HOL-Integ.gz

$(LOG)/HOL-Integ.gz: $(OUT)/HOL Integ/Bin.ML Integ/Bin.thy \
  Integ/Equiv.ML Integ/Equiv.thy Integ/Group.ML Integ/Group.thy \
  Integ/IntRing.ML Integ/IntRing.thy Integ/IntRingDefs.ML \
  Integ/IntRingDefs.thy Integ/Integ.ML Integ/Integ.thy Integ/Lagrange.ML \
  Integ/Lagrange.thy Integ/ROOT.ML Integ/Ring.ML Integ/Ring.thy
	@$(ISATOOL) usedir $(OUT)/HOL Integ


## HOL-Auth

HOL-Auth: HOL $(LOG)/HOL-Auth.gz

$(LOG)/HOL-Auth.gz: $(OUT)/HOL Auth/Event.ML Auth/Event.thy \
  Auth/Message.ML Auth/Message.thy Auth/NS_Public.ML Auth/NS_Public.thy \
  Auth/NS_Public_Bad.ML Auth/NS_Public_Bad.thy Auth/NS_Shared.ML \
  Auth/NS_Shared.thy Auth/OtwayRees.ML Auth/OtwayRees.thy \
  Auth/OtwayRees_AN.ML Auth/OtwayRees_AN.thy Auth/OtwayRees_Bad.ML \
  Auth/OtwayRees_Bad.thy Auth/Public.ML Auth/Public.thy Auth/ROOT.ML \
  Auth/Recur.ML Auth/Recur.thy Auth/Shared.ML Auth/Shared.thy \
  Auth/TLS.ML Auth/TLS.thy Auth/WooLam.ML Auth/WooLam.thy \
  Auth/Yahalom.ML Auth/Yahalom.thy Auth/Yahalom2.ML Auth/Yahalom2.thy
	@$(ISATOOL) usedir $(OUT)/HOL Auth


## HOL-UNITY

HOL-UNITY: HOL $(LOG)/HOL-UNITY.gz

$(LOG)/HOL-UNITY.gz: $(OUT)/HOL UNITY/ROOT.ML\
  UNITY/Channel.ML UNITY/Channel.thy UNITY/Common.ML UNITY/Common.thy\
  UNITY/Deadlock.ML UNITY/Deadlock.thy UNITY/FP.ML UNITY/FP.thy\
  UNITY/LessThan.ML UNITY/LessThan.thy UNITY/Mutex.ML UNITY/Mutex.thy\
  UNITY/Network.ML UNITY/Network.thy UNITY/Reach.ML UNITY/Reach.thy\
  UNITY/SubstAx.ML UNITY/SubstAx.thy UNITY/Token.ML UNITY/Token.thy\
  UNITY/Traces.ML UNITY/Traces.thy UNITY/UNITY.ML UNITY/UNITY.thy\
  UNITY/Update.ML UNITY/Update.thy UNITY/WFair.ML UNITY/WFair.thy
	@$(ISATOOL) usedir $(OUT)/HOL UNITY


## HOL-Modelcheck

HOL-Modelcheck: HOL $(LOG)/HOL-Modelcheck.gz

$(LOG)/HOL-Modelcheck.gz: $(OUT)/HOL Modelcheck/CTL.thy \
  Modelcheck/Example.ML Modelcheck/Example.thy Modelcheck/MCSyn.ML \
  Modelcheck/MCSyn.thy Modelcheck/MuCalculus.ML	\
  Modelcheck/MuCalculus.thy Modelcheck/ROOT.ML
	@$(ISATOOL) usedir $(OUT)/HOL Modelcheck


## HOL-Lambda

HOL-Lambda: HOL $(LOG)/HOL-Lambda.gz

$(LOG)/HOL-Lambda.gz: $(OUT)/HOL Lambda/Commutation.ML \
  Lambda/Commutation.thy Lambda/Eta.ML Lambda/Eta.thy Lambda/Lambda.ML \
  Lambda/Lambda.thy Lambda/ParRed.ML Lambda/ParRed.thy Lambda/ROOT.ML
	@$(ISATOOL) usedir $(OUT)/HOL Lambda


## HOL-W0

HOL-W0: HOL $(LOG)/HOL-W0.gz

$(LOG)/HOL-W0.gz: $(OUT)/HOL W0/I.ML W0/I.thy W0/Maybe.ML W0/Maybe.thy \
  W0/MiniML.ML W0/MiniML.thy W0/ROOT.ML W0/Type.ML W0/Type.thy W0/W.ML \
  W0/W.thy
	@$(ISATOOL) usedir $(OUT)/HOL W0


## HOL-MiniML

HOL-MiniML: HOL $(LOG)/HOL-MiniML.gz

$(LOG)/HOL-MiniML.gz: $(OUT)/HOL MiniML/Generalize.ML \
  MiniML/Generalize.thy MiniML/Instance.ML MiniML/Instance.thy \
  MiniML/Maybe.ML MiniML/Maybe.thy MiniML/MiniML.ML MiniML/MiniML.thy \
  MiniML/ROOT.ML MiniML/Type.ML MiniML/Type.thy MiniML/W.ML MiniML/W.thy
	@$(ISATOOL) usedir $(OUT)/HOL MiniML


## HOL-IOA

HOL-IOA: HOL $(LOG)/HOL-IOA.gz

$(LOG)/HOL-IOA.gz: $(OUT)/HOL IOA/Asig.ML IOA/Asig.thy IOA/IOA.ML \
  IOA/IOA.thy IOA/ROOT.ML IOA/Solve.ML IOA/Solve.thy
	@$(ISATOOL) usedir $(OUT)/HOL IOA


## HOL-AxClasses

HOL-AxClasses: HOL $(LOG)/HOL-AxClasses.gz

$(LOG)/HOL-AxClasses.gz: $(OUT)/HOL AxClasses/ROOT.ML
	@$(ISATOOL) usedir $(OUT)/HOL AxClasses


## HOL-AxClasses-Group

HOL-AxClasses-Group: HOL-AxClasses $(LOG)/HOL-AxClasses-Group.gz

$(LOG)/HOL-AxClasses-Group.gz: $(OUT)/HOL AxClasses/Group/Group.ML \
  AxClasses/Group/Group.thy AxClasses/Group/GroupDefs.ML \
  AxClasses/Group/GroupDefs.thy AxClasses/Group/GroupInsts.thy \
  AxClasses/Group/Monoid.thy AxClasses/Group/MonoidGroupInsts.thy \
  AxClasses/Group/ROOT.ML AxClasses/Group/Sigs.thy
	@$(ISATOOL) usedir -s AxClasses-Group $(OUT)/HOL AxClasses/Group


## HOL-AxClasses-Lattice

HOL-AxClasses-Lattice: HOL-AxClasses $(LOG)/HOL-AxClasses-Lattice.gz

$(LOG)/HOL-AxClasses-Lattice.gz: $(OUT)/HOL AxClasses/Lattice/CLattice.ML \
  AxClasses/Lattice/CLattice.thy AxClasses/Lattice/LatInsts.ML \
  AxClasses/Lattice/LatInsts.thy AxClasses/Lattice/LatMorph.ML \
  AxClasses/Lattice/LatMorph.thy AxClasses/Lattice/LatPreInsts.ML \
  AxClasses/Lattice/LatPreInsts.thy AxClasses/Lattice/Lattice.ML \
  AxClasses/Lattice/Lattice.thy AxClasses/Lattice/OrdDefs.ML \
  AxClasses/Lattice/OrdDefs.thy AxClasses/Lattice/OrdInsts.thy \
  AxClasses/Lattice/Order.ML AxClasses/Lattice/Order.thy \
  AxClasses/Lattice/ROOT.ML AxClasses/Lattice/tools.ML
	@$(ISATOOL) usedir -s AxClasses-Lattice $(OUT)/HOL AxClasses/Lattice


## HOL-AxClasses-Tutorial

HOL-AxClasses-Tutorial: HOL-AxClasses $(LOG)/HOL-AxClasses-Tutorial.gz

$(LOG)/HOL-AxClasses-Tutorial.gz: $(OUT)/HOL \
  AxClasses/Tutorial/BoolGroupInsts.thy AxClasses/Tutorial/Group.ML \
  AxClasses/Tutorial/Group.thy AxClasses/Tutorial/Monoid.thy \
  AxClasses/Tutorial/MonoidGroupInsts.thy \
  AxClasses/Tutorial/ProdGroupInsts.thy AxClasses/Tutorial/Product.thy \
  AxClasses/Tutorial/ProductInsts.thy AxClasses/Tutorial/ROOT.ML \
  AxClasses/Tutorial/Semigroup.thy AxClasses/Tutorial/Semigroups.thy \
  AxClasses/Tutorial/Sigs.thy AxClasses/Tutorial/Xor.ML \
  AxClasses/Tutorial/Xor.thy
	@$(ISATOOL) usedir -s AxClasses-Tutorial $(OUT)/HOL AxClasses/Tutorial


## HOL-Quot

HOL-Quot: HOL $(LOG)/HOL-Quot.gz

$(LOG)/HOL-Quot.gz: $(OUT)/HOL Quot/FRACT.ML Quot/FRACT.thy \
  Quot/HQUOT.ML Quot/HQUOT.thy Quot/NPAIR.ML Quot/NPAIR.thy Quot/PER.ML \
  Quot/PER.thy Quot/PER0.ML Quot/PER0.thy Quot/ROOT.ML
	@$(ISATOOL) usedir $(OUT)/HOL Quot


## HOL-ex

HOL-ex: HOL $(LOG)/HOL-ex.gz

$(LOG)/HOL-ex.gz: $(OUT)/HOL ex/BT.ML ex/BT.thy ex/Fib.ML ex/Fib.thy \
  ex/InSort.ML ex/InSort.thy ex/MT.ML ex/MT.thy ex/NatSum.ML \
  ex/NatSum.thy ex/Primes.ML ex/Primes.thy ex/Primrec.ML ex/Primrec.thy \
  ex/Puzzle.ML ex/Puzzle.thy ex/Qsort.ML ex/Qsort.thy ex/ROOT.ML \
  ex/Recdef.ML ex/Recdef.thy ex/String.ML ex/String.thy ex/cla.ML \
  ex/meson.ML ex/mesontest.ML ex/rel.ML ex/set.ML
	@$(ISATOOL) usedir $(OUT)/HOL ex


## TLA

TLA: HOL $(OUT)/TLA

$(OUT)/TLA: $(OUT)/HOL TLA/Action.ML TLA/Action.thy TLA/IntLemmas.ML \
  TLA/Intensional.ML TLA/Intensional.thy TLA/ROOT.ML TLA/Stfun.ML \
  TLA/Stfun.thy TLA/TLA.ML TLA/TLA.thy TLA/cladata.ML TLA/hypsubst.ML
	@cd TLA; $(ISATOOL) usedir -b $(OUT)/HOL TLA


## TLA-Inc

TLA-Inc: TLA $(LOG)/TLA-Inc.gz

$(LOG)/TLA-Inc.gz: $(OUT)/TLA TLA/Inc/Inc.thy TLA/Inc/Inc.ML \
  TLA/Inc/Pcount.thy
	@cd TLA; $(ISATOOL) usedir $(OUT)/TLA Inc


## TLA-Buffer

TLA-Buffer: TLA $(LOG)/TLA-Buffer.gz

$(LOG)/TLA-Buffer.gz: $(OUT)/TLA TLA/Buffer/Buffer.thy \
  TLA/Buffer/Buffer.ML TLA/Buffer/DBuffer.thy TLA/Buffer/DBuffer.ML
	@cd TLA; $(ISATOOL) usedir $(OUT)/TLA Buffer


## TLA-Memory

TLA-Memory: TLA $(LOG)/TLA-Memory.gz

$(LOG)/TLA-Memory.gz: $(OUT)/TLA TLA/Memory/MIParameters.thy \
  TLA/Memory/MIlive.ML TLA/Memory/MIsafe.ML TLA/Memory/MemClerk.ML \
  TLA/Memory/MemClerk.thy TLA/Memory/MemClerkParameters.ML \
  TLA/Memory/MemClerkParameters.thy TLA/Memory/Memory.ML \
  TLA/Memory/Memory.thy TLA/Memory/MemoryImplementation.ML \
  TLA/Memory/MemoryImplementation.thy TLA/Memory/MemoryParameters.ML \
  TLA/Memory/MemoryParameters.thy TLA/Memory/ProcedureInterface.ML \
  TLA/Memory/ProcedureInterface.thy TLA/Memory/RPC.ML TLA/Memory/RPC.thy \
  TLA/Memory/RPCMemoryParams.thy TLA/Memory/RPCParameters.ML \
  TLA/Memory/RPCParameters.thy
	@cd TLA; $(ISATOOL) usedir $(OUT)/TLA Memory


## clean

clean:
	@rm -f $(OUT)/HOL $(LOG)/HOL.gz $(LOG)/HOL-Subst.gz \
	  $(LOG)/HOL-Induct.gz $(LOG)/HOL-IMP.gz $(LOG)/HOL-Hoare.gz \
	  $(LOG)/HOL-Lex.gz $(LOG)/HOL-Integ.gz \
	  $(LOG)/HOL-Auth.gz $(LOG)/HOL-UNITY.gz \
	  $(LOG)/HOL-Modelcheck.gz $(LOG)/HOL-Lambda.gz $(LOG)/HOL-W0.gz \
	  $(LOG)/HOL-MiniML.gz $(LOG)/HOL-IOA.gz $(LOG)/HOL-AxClasses.gz \
	  $(LOG)/HOL-AxClasses-Group.gz $(LOG)/HOL-AxClasses-Lattice.gz \
	  $(LOG)/HOL-AxClasses-Tutorial.gz $(LOG)/HOL-Quot.gz \
	  $(LOG)/HOL-ex.gz $(OUT)/TLA $(LOG)/TLA.gz $(LOG)/TLA-Inc.gz \
	  $(LOG)/TLA-Buffer.gz $(LOG)/TLA-Memory.gz