CakeML:24ff2996f6c2e3ac766616219db3c715df80055f
Fix some errors
#1057 (new-define)
Merging into:49f0d44be26ff907ef52240f3818a4c3caa10598
Merge pull request #1055 from CakeML/pan_news
HOL:7bf55e0eb37d0d68268a5b6c2d55dc2895fd6361
Fix bug in reduceLib.NOT_CONV
Machine:pavlova
Claimed job
Reusing HOL
Starting developers
Finished developers 2s 173MB
Starting developers/bin
Finished developers/bin 22s 1GB
Starting compiler/proofs
FAILED: compiler/proofs
Scanning $(HOLDIR)/src/bag
Scanning $(HOLDIR)/src/sort
Scanning $(HOLDIR)/src/string
Scanning $(HOLDIR)/src/n-bit
Scanning $(HOLDIR)/src/res_quan/src
Scanning $(HOLDIR)/src/finite_maps
Scanning $(HOLDIR)/examples/formal-languages/context-free
Scanning $(HOLDIR)/examples/balanced_bst
Scanning $(HOLDIR)/examples/formal-languages
Scanning $(HOLDIR)/examples/formal-languages/regular
Scanning $(HOLDIR)/src/transfer
Scanning $(HOLDIR)/src/pred_set/src/more_theories
Scanning $(HOLDIR)/src/coalgebras
Scanning $(HOLDIR)/examples/fun-op-sem/lprefix_lub
Scanning $(HOLDIR)/examples/machine-code/hoare-triple
Scanning $(CAKEMLDIR)/developers
Scanning $(CAKEMLDIR)/misc
Scanning $(CAKEMLDIR)/semantics/ffi
Scanning $(CAKEMLDIR)/semantics
Scanning $(CAKEMLDIR)/basis/pure
Scanning $(CAKEMLDIR)/semantics/proofs
Scanning $(CAKEMLDIR)/compiler/parsing
Scanning $(CAKEMLDIR)/translator
Scanning $(CAKEMLDIR)/characteristic
Scanning $(CAKEMLDIR)/translator/monadic/monad_base
Scanning $(CAKEMLDIR)/translator/monadic
Scanning $(CAKEMLDIR)/basis
Scanning $(HOLDIR)/examples/algorithms
Scanning $(HOLDIR)/src/ring/src
Scanning $(HOLDIR)/src/integer
Scanning $(HOLDIR)/examples/machine-code/multiword
Scanning $(CAKEMLDIR)/compiler/backend/pattern_matching
Scanning $(CAKEMLDIR)/unverified/reg_alloc
Scanning $(CAKEMLDIR)/compiler/backend/reg_alloc
Scanning $(HOLDIR)/src/algebra/base
Scanning $(HOLDIR)/src/algebra/construction
Scanning $(HOLDIR)/src/algebra
Scanning $(HOLDIR)/src/hol88
Scanning $(HOLDIR)/src/rational
Scanning $(HOLDIR)/src/real
Scanning $(HOLDIR)/src/floating-point
Scanning $(HOLDIR)/src/monad/more_monads
Scanning $(HOLDIR)/src/update
Scanning $(HOLDIR)/examples/l3-machine-code/common
Scanning $(CAKEMLDIR)/compiler/encoders/asm
Scanning $(CAKEMLDIR)/compiler/backend
Scanning $(CAKEMLDIR)/compiler/encoders/ag32
Scanning $(CAKEMLDIR)/compiler/backend/ag32
Scanning $(HOLDIR)/examples/l3-machine-code/lib
Scanning $(HOLDIR)/examples/l3-machine-code/arm/model
Scanning $(HOLDIR)/examples/machine-code/decompiler
Scanning $(HOLDIR)/examples/l3-machine-code
Scanning $(HOLDIR)/examples/l3-machine-code/arm/step
Scanning $(CAKEMLDIR)/compiler/encoders/arm7
Scanning $(CAKEMLDIR)/compiler/backend/arm7
Scanning $(HOLDIR)/examples/l3-machine-code/arm8/model
Scanning $(HOLDIR)/examples/l3-machine-code/arm8/step
Scanning $(CAKEMLDIR)/compiler/encoders/arm8
Scanning $(CAKEMLDIR)/compiler/backend/arm8
Scanning $(HOLDIR)/examples/l3-machine-code/mips/model
Scanning $(HOLDIR)/examples/l3-machine-code/mips/step
Scanning $(CAKEMLDIR)/compiler/encoders/mips
Scanning $(CAKEMLDIR)/compiler/backend/mips
Scanning $(HOLDIR)/examples/l3-machine-code/riscv/model
Scanning $(HOLDIR)/examples/l3-machine-code/riscv/step
Scanning $(CAKEMLDIR)/compiler/encoders/riscv
Scanning $(CAKEMLDIR)/compiler/backend/riscv
Scanning $(HOLDIR)/examples/l3-machine-code/x64/model
Scanning $(HOLDIR)/examples/l3-machine-code/x64/step
Scanning $(CAKEMLDIR)/compiler/encoders/x64
Scanning $(CAKEMLDIR)/compiler/backend/x64
Scanning $(HOLDIR)/examples/algorithms/unification/triangular
Scanning $(HOLDIR)/src/transfer/examples
Scanning $(HOLDIR)/examples/algorithms/unification/triangular/first-order
Scanning $(HOLDIR)/examples/algorithms/unification/triangular/first-order/compilation
Scanning $(CAKEMLDIR)/compiler/inference
Scanning $(CAKEMLDIR)/pancake
Scanning $(CAKEMLDIR)/pancake/parser
Scanning $(CAKEMLDIR)/compiler
Scanning $(CAKEMLDIR)/compiler/backend/gc
Scanning $(CAKEMLDIR)/compiler/backend/reg_alloc/proofs
Scanning $(CAKEMLDIR)/semantics/alt_semantics
Scanning $(CAKEMLDIR)/semantics/alt_semantics/proofs
Scanning $(CAKEMLDIR)/compiler/backend/semantics
Scanning $(CAKEMLDIR)/compiler/backend/proofs
Scanning $(CAKEMLDIR)/compiler/inference/proofs
Scanning $(CAKEMLDIR)/compiler/parsing/proofs
Scanned 89 directories
Starting work on libTheory
Starting work on ag32Theory
libTheory misc (7s) OK
Starting work on miscTheory
Starting work on ffiTheory
ag32Theory compiler/encoders/ag32 (13s) OK
ffiTheory semantics/ffi (7s) OK
Finished $(CAKEMLDIR)/semantics/ffi [#theories: 1] (7.490s)
miscTheory misc (31s) OK
Starting work on cakeml-heap
Starting work on pattern_commonTheory
Starting work on parmoveTheory
Starting work on gc_sharedTheory
cakeml-heap misc (33s) OK
Finished $(CAKEMLDIR)/misc [#theories: 2] (72.710s)
Starting work on fpValTreeTheory
fpValTreeTheory semantics (1s) OK
Starting work on fpOptTheory
pattern_commonTheory compiler/backend/pattern_matching (15s) OK
Starting work on namespaceTheory
namespaceTheory semantics (2s) OK
Starting work on realOpsTheory
realOpsTheory semantics (1s) OK
Starting work on tokensTheory
fpOptTheory semantics (5s) OK
Starting work on fpSemTheory
gc_sharedTheory compiler/backend/gc (21s) OK
Starting work on mllistTheory
tokensTheory semantics (3s) OK
Starting work on gramTheory
fpSemTheory semantics (2s) OK
Starting work on astTheory
mllistTheory basis/pure (3s) OK
Starting work on tokenUtilsTheory
parmoveTheory compiler/backend/reg_alloc (27s) OK
Starting work on lexer_funTheory
astTheory semantics (7s) OK
Starting work on semanticPrimitivesTheory
gramTheory semantics (7s) OK
Starting work on mlstringTheory
tokenUtilsTheory semantics (9s) OK
Starting work on cmlPtreeConversionTheory
lexer_funTheory semantics (8s) OK
Starting work on mloptionTheory
mloptionTheory basis/pure (2s) OK
Starting work on mlmapTheory
mlmapTheory basis/pure (4s) OK
Starting work on mlvectorTheory
mlstringTheory basis/pure (12s) OK
Starting work on mlintTheory
mlvectorTheory basis/pure (5s) OK
Starting work on mlsetTheory
mlsetTheory basis/pure (2s) OK
Starting work on gramPropsTheory
mlintTheory basis/pure (7s) OK
Starting work on mlprettyprinterTheory
cmlPtreeConversionTheory semantics (18s) OK
Starting work on mlratTheory
mlratTheory basis/pure (4s) OK
Starting work on typeDecToPPTheory
mlprettyprinterTheory basis/pure (7s) OK
Starting work on namespacePropsTheory
typeDecToPPTheory basis/pure (3s) OK
Finished $(CAKEMLDIR)/basis/pure [#theories: 10] (52.670s)
Starting work on cmlPEGTheory
namespacePropsTheory semantics/proofs (6s) OK
Starting work on fromSexpTheory
gramPropsTheory semantics/proofs (15s) OK
Starting work on lexer_implTheory
semanticPrimitivesTheory semantics (37s) OK
Starting work on evaluateTheory
evaluateTheory semantics (5s) OK
Starting work on typeSystemTheory
typeSystemTheory semantics (20s) OK
Starting work on primTypesTheory
primTypesTheory semantics (3s) OK
Starting work on semanticsTheory
semanticsTheory semantics (5s) OK
Finished $(CAKEMLDIR)/semantics [#theories: 16] (141.520s)
Starting work on astPropsTheory
astPropsTheory semantics/proofs (3s) OK
Starting work on fpOptPropsTheory
fpOptPropsTheory semantics/proofs (6s) OK
Starting work on fpSemPropsTheory
lexer_implTheory compiler/parsing (50s) OK
Starting work on semanticPrimitivesPropsTheory
cmlPEGTheory compiler/parsing (64s) OK
Starting work on typeSoundInvariantsTheory
typeSoundInvariantsTheory semantics/proofs (6s) OK
Starting work on cmlParseTheory
cmlParseTheory compiler/parsing (14s) OK
Starting work on cfFFITypeTheory
fromSexpTheory compiler/parsing (73s) OK
Finished $(CAKEMLDIR)/compiler/parsing [#theories: 4] (203.360s)
Starting work on ml_monadBaseTheory
cfFFITypeTheory characteristic (5s) OK
Starting work on MarshallingTheory
semanticPrimitivesPropsTheory semantics/proofs (36s) OK
Starting work on typeSysPropsTheory
MarshallingTheory basis (3s) OK
Starting work on pattern_semanticsTheory
ml_monadBaseTheory translator/monadic/monad_base (21s) OK
Finished $(CAKEMLDIR)/translator/monadic/monad_base [#theories: 1] (21.330s)
Starting work on reg_allocTheory
typeSysPropsTheory semantics/proofs (21s) OK
Starting work on primSemEnvTheory
pattern_semanticsTheory compiler/backend/pattern_matching (21s) OK
Starting work on weakeningTheory
weakeningTheory semantics/proofs (6s) OK
Starting work on pattern_compTheory
primSemEnvTheory semantics/proofs (9s) OK
Starting work on asmTheory
fpSemPropsTheory semantics/proofs (88s) OK
Starting work on evaluatePropsTheory
asmTheory compiler/encoders/asm (17s) OK
Starting work on asmSemTheory
pattern_compTheory compiler/backend/pattern_matching (23s) OK
Finished $(CAKEMLDIR)/compiler/backend/pattern_matching [#theories: 3] (60.650s)
Starting work on backend_commonTheory
backend_commonTheory compiler/backend (5s) OK
Starting work on closLangTheory
reg_allocTheory compiler/backend/reg_alloc (44s) OK
Starting work on linear_scanTheory
asmSemTheory compiler/encoders/asm (17s) OK
Starting work on asmPropsTheory
closLangTheory compiler/backend (8s) OK
Starting work on bviTheory
bviTheory compiler/backend (3s) OK
Starting work on dataLangTheory
dataLangTheory compiler/backend (4s) OK
Starting work on data_liveTheory
data_liveTheory compiler/backend (8s) OK
Starting work on data_simpTheory
data_simpTheory compiler/backend (3s) OK
Starting work on data_spaceTheory
asmPropsTheory compiler/encoders/asm (23s) OK
Finished $(CAKEMLDIR)/compiler/encoders/asm [#theories: 3] (57.800s)
Starting work on bvi_letTheory
bvi_letTheory compiler/backend (4s) OK
Starting work on bvi_tailrecTheory
data_spaceTheory compiler/backend (8s) OK
Starting work on bvi_to_dataTheory
linear_scanTheory compiler/backend/reg_alloc (37s) OK
Finished $(CAKEMLDIR)/compiler/backend/reg_alloc [#theories: 3] (109.010s)
Starting work on bvlTheory
bvlTheory compiler/backend (3s) OK
Starting work on bvl_constTheory
evaluatePropsTheory semantics/proofs (80s) OK
Starting work on typeSoundTheory
bvi_to_dataTheory compiler/backend (28s) OK
Starting work on ml_progTheory
bvi_tailrecTheory compiler/backend (41s) OK
Starting work on db_varsTheory
ml_progTheory translator (14s) OK
Starting work on ml_translatorTheory
db_varsTheory compiler/backend (2s) OK
Starting work on cfHeapsBaseTheory
cfHeapsBaseTheory characteristic (16s) OK
Starting work on clFFITheory
bvl_constTheory compiler/backend (60s) OK
Starting work on runtimeFFITheory
clFFITheory basis (6s) OK
Starting work on fsFFITheory
runtimeFFITheory basis (6s) OK
Starting work on bvl_handleTheory
fsFFITheory basis (10s) OK
Starting work on fsFFIPropsTheory
ml_translatorTheory translator (54s) OK
Starting work on ml_optimiseTheory
bvl_handleTheory compiler/backend (26s) OK
Starting work on ml_pmatchTheory
ml_optimiseTheory translator (16s) OK
Starting work on bvl_inlineTheory
ml_pmatchTheory translator (14s) OK
Starting work on std_preludeTheory
bvl_inlineTheory compiler/backend (7s) OK
Starting work on cfHeapsTheory
fsFFIPropsTheory basis (47s) OK
Starting work on bvl_to_bviTheory
std_preludeTheory translator (15s) OK
Finished $(CAKEMLDIR)/translator [#theories: 5] (115.060s)
Starting work on bvl_jumpTheory
bvl_jumpTheory compiler/backend (2s) OK
Starting work on clos_annotateTheory
cfHeapsTheory characteristic (13s) OK
Starting work on cfStoreTheory
clos_annotateTheory compiler/backend (7s) OK
Starting work on clos_callTheory
clos_callTheory compiler/backend (7s) OK
Starting work on clos_fvsTheory
cfStoreTheory characteristic (17s) OK
Starting work on cfNormaliseTheory
clos_fvsTheory compiler/backend (3s) OK
Starting work on clos_letopTheory
clos_letopTheory compiler/backend (3s) OK
Starting work on clos_opTheory
cfNormaliseTheory characteristic (16s) OK
Starting work on cfAppTheory
typeSoundTheory semantics/proofs(160s) OK
Starting work on semanticsPropsTheory
bvl_to_bviTheory compiler/backend (52s) OK
Starting work on clos_ticksTheory
semanticsPropsTheory semantics/proofs (8s) OK
Finished $(CAKEMLDIR)/semantics/proofs [#theories: 13] (448.960s)
Starting work on clos_mtiTheory
clos_ticksTheory compiler/backend (3s) OK
Starting work on clos_numberTheory
clos_numberTheory compiler/backend (2s) OK
Starting work on stackLangTheory
clos_mtiTheory compiler/backend (5s) OK
Starting work on clos_interpTheory
stackLangTheory compiler/backend (6s) OK
Starting work on wordLangTheory
cfAppTheory characteristic (22s) OK
Starting work on cfTheory
clos_opTheory compiler/backend (34s) OK
Starting work on clos_knownTheory
wordLangTheory compiler/backend (10s) OK
Starting work on word_bignumTheory
clos_interpTheory compiler/backend (24s) OK
Starting work on word_depthTheory
word_depthTheory compiler/backend (4s) OK
Starting work on word_allocTheory
clos_knownTheory compiler/backend (30s) OK
Starting work on clos_to_bvlTheory
word_bignumTheory compiler/backend (29s) OK
Starting work on word_cseTheory
cfTheory characteristic (42s)FAIL<1>
Can't unify term frag list to term list * term (Incompatible types)
Found near
TotalDefn.qDefine "cf_def"
[
QUOTE
" (*#loc 1847 19*)\n cf (p:'ffi ffi_proj) (Lit l) = cf_lit l /\\\n cf (p:'ffi ffi_proj) (Con opt args) = cf_con opt args /\\\n cf (p:'ffi ffi_proj) (Var name) = cf_var name /\\\n cf (p:'ffi ffi_proj) (Let opt e1 e2) =\n (if is_bound_Fun opt e1 then\n (case Fun_body e1 of\n | SOME body =>\n cf_fun (p:'ffi ffi_proj) (THE opt) (Fun_params e1)\n (cf (p:'ffi ffi_proj) body) (cf (p:'ffi ffi_proj) e2)\n | NONE => cf_bottom)\n else\n cf_let opt (cf (p:'ffi ffi_proj) e1) (cf (p:'ffi ffi_proj) e2)) /\\\n cf (p:'ffi ffi_proj) (Letrec funs e) =\n (cf_fun_rec (p:'ffi ffi_proj)\n (MAP (\\x. (x, cf p (SND (SND x)))) (letrec_pull_params funs))\n (cf (p:'ffi ffi_proj) e)) /\\\n cf (p:'ffi ffi_proj) (App op args) =\n (case op of\n | Opn opn =>\n (case args of\n | [x1; x2] => cf_opn opn x1 x2\n | _ => cf_bottom)\n | Opb opb =>\n (case args of\n | [x1; x2] => cf_opb opb x1 x2\n | _ => cf_bottom)\n | Equality =>\n (case args of\n | [x1; x2] => cf_equality x1 x2\n | _ => cf_bottom)\n | Opapp =>\n (case dest_opapp (App op args) of\n | SOME (f, xs) => cf_app (p:'ffi ffi_proj) f xs\n | NONE => cf_bottom)\n | Opref =>\n (case args of\n | [x] => cf_ref x\n | _ => cf_bottom)\n | Opassign =>\n (case args of\n | [r; x] => cf_assign r x\n | _ => cf_bottom)\n | Opderef =>\n (case args of\n | [r] => cf_deref r\n | _ => cf_bottom)\n | Aalloc =>\n (case args of\n | [n; v] => cf_aalloc n v\n | _ => cf_bottom)\n | AallocEmpty =>\n (case args of\n | [u] => cf_aalloc_empty u\n | _ => cf_bottom)\n | Asub =>\n (case args of\n | [l; n] => cf_asub l n\n | _ => cf_bottom)\n | Asub_unsafe =>\n (case args of\n | [l; n] => cf_asub l n\n | _ => cf_bottom)\n | Alength =>\n (case args of\n | [l] => cf_alength l\n | _ => cf_bottom)\n | Aupdate =>\n (case args of\n | [l; n; v] => cf_aupdate l n v\n | _ => cf_bottom)\n | Aupdate_unsafe =>\n (case args of\n | [l; n; v] => cf_aupdate l n v\n | _ => cf_bottom)\n | Aw8alloc =>\n (case args of\n | [n; w] => cf_aw8alloc n w\n | _ => cf_bottom)\n | Aw8sub =>\n (case args of\n | [l; n] => cf_aw8sub l n\n | _ => cf_bottom)\n | Aw8sub_unsafe =>\n (case args of\n | [l; n] => cf_aw8sub l n\n | _ => cf_bottom)\n | Aw8length =>\n (case args of\n | [l] => cf_aw8length l\n | _ => cf_bottom)\n | Aw8update =>\n (case args of\n | [l; n; w] => cf_aw8update l n w\n | _ => cf_bottom)\n | Aw8update_unsafe =>\n (case args of\n | [l; n; w] => cf_aw8update l n w\n | _ => cf_bottom)\n | CopyAw8Aw8 =>\n (case args of\n | [s; so; l; d; do'] => cf_copyaw8aw8 s so l d do'\n | _ => cf_bottom)\n | CopyStrAw8 =>\n (case args of\n | [s; so; l; d; do'] => cf_copystraw8 s so l d do'\n | _ => cf_bottom)\n | CopyAw8Str =>\n (case args of\n | [s; so; l] => cf_copyaw8str s so l\n | _ => cf_bottom)\n | WordFromInt W8 =>\n (case args of\n | [i] => cf_wordFromInt_W8 i\n | _ => cf_bottom)\n | WordFromInt W64 =>\n (case args of\n | [i] => cf_wordFromInt_W64 i\n | _ => cf_bottom)\n | WordToInt W8 =>\n (case args of\n | [w] => cf_wordToInt_W8 w\n | _ => cf_bottom)\n error in quse /scratch/cakeml/regression/cakeml-2614/characteristic/cfScript.sml : Fail "Static Errors"
error in load /scratch/cakeml/regression/cakeml-2614/characteristic/cfScript : Fail "Static Errors"
| WordToInt W64 =>\n (case args of\n | [w] => cf_wordToInt_W64 w\n | _ => cf_bottom)\n | FFI ffi_index =>\n (case args of\n | [c;w] => cf_ffi ffi_index c w\n | _ => cf_bottom)\n | FpFromWord =>\n (case args of\n | [w] => cf_fpfromword w\n | _ => cf_bottom)\n | FpToWord =>\n (case args of\n | [w] => cf_fptoword w\n | _ => cf_bottom)\n | _ => cf_bottom) /\\\n cf (p:'ffi ffi_proj) (Log lop e1 e2) =\n cf_log lop e1 (cf p e2) /\\\n cf (p:'ffi ffi_proj) (If cond e1 e2) =\n cf_if cond (cf p e1) (cf p e2) /\\\n cf (p:'ffi ffi_proj) (Mat e branches) =\n cf_match e (MAP (\\b. (FST b, cf p (SND b))) branches) /\\\n cf (p:'ffi ffi_proj) (Raise e) = cf_raise e /\\\n cf (p:'ffi ffi_proj) (Handle e branches) =\n cf_handle (cf p e) (MAP (\\b. (FST b, cf p (SND b))) branches) /\\\n cf (p:'ffi ffi_proj) (Lannot e _) = cf p e /\\\n cf (p:'ffi ffi_proj) (Tannot e _) = cf p e /\\\n cf _ _ = cf_bottom"
] (SOME (WF_REL_TAC))
Uncaught exception: Fail "Static Errors"
word_allocTheory compiler/backend (17s)MKILLED
clos_to_bvlTheory compiler/backend (7s)MKILLED
word_cseTheory compiler/backend (3s)MKILLED