CakeML:a2057e6cc146098766fa1fb9bf9e62a067d6cfda
pancake/crep_arith: simplify constant multiplies
#1169 (talsewell:pan-const-multiply)
Merging into:746d1d4ef5cfd3c36348e399360d616cbcc44142
Merge pull request #1170 from CakeML/mcandidate-fix
HOL:725300ce5d22e30174177682d5870306852113d5
Apply a patch to lem_relation before Holmake runs
Machine:lammmington
Claimed job
Building HOL
Starting developers
Finished developers 2s 186MB
Starting developers/bin
Finished developers/bin 5s 591MB
Starting misc
Finished misc 56s 2GB
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)/src/integer
Scanning $(HOLDIR)/src/transfer
Scanning $(HOLDIR)/src/pred_set/src/more_theories
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/real/analysis
Scanning $(HOLDIR)/examples/misc
Scanning $(HOLDIR)/examples/balanced_bst
Scanning $(HOLDIR)/examples/formal-languages
Scanning $(HOLDIR)/src/search
Scanning $(HOLDIR)/examples/formal-languages/regular
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)/examples/machine-code/multiword
Scanning $(CAKEMLDIR)/compiler/backend/pattern_matching
Scanning $(CAKEMLDIR)/unverified/reg_alloc
Scanning $(CAKEMLDIR)/compiler/backend/reg_alloc
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 91 directories
Starting work on NTpropertiesTheory
Starting work on simpleSexpTheory
Starting work on balanced_mapTheory
Starting work on FormalLangTheory
FormalLangTheory examples/formal-languages (1s) OK
Finished $(HOLDIR)/examples/formal-languages [#theories: 1] (1.970s)
Starting work on charsetTheory
NTpropertiesTheory examples/formal-languages/context-free (4s) OK
Starting work on vec_mapTheory
vec_mapTheory examples/formal-languages/regular (1s) OK
Starting work on temporalTheory
simpleSexpTheory examples/formal-languages/context-free (5s) OK
Starting work on simpleSexpPEGTheory
temporalTheory examples/machine-code/hoare-triple (3s) OK
Finished $(HOLDIR)/examples/machine-code/hoare-triple [#theories: 1] (3.100s)
Starting work on ffiTheory
simpleSexpPEGTheory examples/formal-languages/context-free (3s) OK
Starting work on simpleSexpParseTheory
charsetTheory examples/formal-languages/regular (7s) OK
Starting work on regexpTheory
ffiTheory semantics/ffi (7s) OK
Finished $(CAKEMLDIR)/semantics/ffi [#theories: 1] (7.220s)
Starting work on fpValTreeTheory
fpValTreeTheory semantics (1s) OK
Starting work on fpOptTheory
simpleSexpParseTheory examples/formal-languages/context-free (10s) OK
Finished $(HOLDIR)/examples/formal-languages/context-free [#theories: 4] (23.230s)
Starting work on namespaceTheory
namespaceTheory semantics (2s) OK
Starting work on realOpsTheory
fpOptTheory semantics (4s) OK
Starting work on fpSemTheory
realOpsTheory semantics (1s) OK
Starting work on tokensTheory
fpSemTheory semantics (1s) OK
Starting work on astTheory
regexpTheory examples/formal-languages/regular (15s) OK
Starting work on mllistTheory
tokensTheory semantics (3s) OK
Starting work on gramTheory
mllistTheory basis/pure (2s) OK
Starting work on tokenUtilsTheory
astTheory semantics (7s) OK
Starting work on semanticPrimitivesTheory
gramTheory semantics (7s) OK
Starting work on lexer_funTheory
tokenUtilsTheory semantics (7s) OK
Starting work on cmlPtreeConversionTheory
cmlPtreeConversionTheory semantics (19s) OK
Starting work on mlstringTheory
semanticPrimitivesTheory semantics (35s) OK
Starting work on evaluateTheory
mlstringTheory basis/pure (12s) OK
Starting work on typeSystemTheory
lexer_funTheory semantics (39s) OK
Starting work on mlintTheory
evaluateTheory semantics (5s) OK
Starting work on mloptionTheory
mloptionTheory basis/pure (2s) OK
Starting work on astPropsTheory
astPropsTheory semantics/proofs (1s) OK
Starting work on gramPropsTheory
mlintTheory basis/pure (7s) OK
Starting work on mlratTheory
typeSystemTheory semantics (12s) OK
Starting work on primTypesTheory
primTypesTheory semantics (1s) OK
Starting work on semanticsTheory
mlratTheory basis/pure (3s) OK
Starting work on typeDecToPPTheory
typeDecToPPTheory basis/pure (2s) OK
Starting work on namespacePropsTheory
semanticsTheory semantics (4s) OK
Finished $(CAKEMLDIR)/semantics [#theories: 16] (155.360s)
Starting work on fpOptPropsTheory
namespacePropsTheory semantics/proofs (6s) OK
Starting work on semanticPrimitivesPropsTheory
fpOptPropsTheory semantics/proofs (5s) OK
Starting work on fpSemPropsTheory
gramPropsTheory semantics/proofs (14s) OK
Starting work on typeSoundInvariantsTheory
typeSoundInvariantsTheory semantics/proofs (4s) OK
Starting work on cmlPEGTheory
semanticPrimitivesPropsTheory semantics/proofs (34s) OK
Starting work on typeSysPropsTheory
balanced_mapTheory examples/balanced_bst(134s) OK
Starting work on osetTheory
osetTheory examples/balanced_bst (5s) OK
Finished $(HOLDIR)/examples/balanced_bst [#theories: 2] (139.910s)
Starting work on regexp_mapTheory
regexp_mapTheory examples/formal-languages/regular (3s) OK
Starting work on regexp_compilerTheory
typeSysPropsTheory semantics/proofs (20s) OK
Starting work on mlmapTheory
mlmapTheory basis/pure (4s) OK
Starting work on mlsetTheory
regexp_compilerTheory examples/formal-languages/regular (15s) OK
Finished $(HOLDIR)/examples/formal-languages/regular [#theories: 5] (42.710s)
Starting work on mlvectorTheory
mlsetTheory basis/pure (2s) OK
Starting work on primSemEnvTheory
mlvectorTheory basis/pure (4s) OK
Starting work on mlprettyprinterTheory
cmlPEGTheory compiler/parsing (62s) OK
Starting work on weakeningTheory
primSemEnvTheory semantics/proofs (7s) OK
Starting work on cmlParseTheory
weakeningTheory semantics/proofs (5s) OK
Starting work on fromSexpTheory
mlprettyprinterTheory basis/pure (7s) OK
Finished $(CAKEMLDIR)/basis/pure [#theories: 10] (50.060s)
Starting work on lexer_implTheory
cmlParseTheory compiler/parsing (7s) OK
Starting work on cfFFITypeTheory
cfFFITypeTheory characteristic (4s) OK
Starting work on ml_monadBaseTheory
fpSemPropsTheory semantics/proofs (91s) OK
Starting work on evaluatePropsTheory
ml_monadBaseTheory translator/monadic/monad_base (15s) OK
Finished $(CAKEMLDIR)/translator/monadic/monad_base [#theories: 1] (15.320s)
Starting work on MarshallingTheory
MarshallingTheory basis (3s) OK
Starting work on spt_closureTheory
spt_closureTheory examples/algorithms (1s) OK
Finished $(HOLDIR)/examples/algorithms [#theories: 1] (1.500s)
Starting work on multiwordTheory
lexer_implTheory compiler/parsing (43s) OK
Starting work on pattern_commonTheory
pattern_commonTheory compiler/backend/pattern_matching (9s) OK
Starting work on pattern_semanticsTheory
multiwordTheory examples/machine-code/multiword (25s) OK
Starting work on mc_multiwordTheory
pattern_semanticsTheory compiler/backend/pattern_matching (13s) OK
Starting work on pattern_compTheory
fromSexpTheory compiler/parsing (67s) OK
Finished $(CAKEMLDIR)/compiler/parsing [#theories: 4] (180.560s)
Starting work on reg_allocTheory
pattern_compTheory compiler/backend/pattern_matching (14s) OK
Finished $(CAKEMLDIR)/compiler/backend/pattern_matching [#theories: 3] (36.110s)
Starting work on parmoveTheory
mc_multiwordTheory examples/machine-code/multiword (35s) OK
Finished $(HOLDIR)/examples/machine-code/multiword [#theories: 2] (61.480s)
Finished $(HOLDIR)/examples/l3-machine-code/common (0.000s)
Starting work on asmTheory
evaluatePropsTheory semantics/proofs (81s) OK
Starting work on typeSoundTheory
parmoveTheory compiler/backend/reg_alloc (21s) OK
Starting work on evaluate_decTheory
asmTheory compiler/encoders/asm (10s) OK
Starting work on asmSemTheory
reg_allocTheory compiler/backend/reg_alloc (36s) OK
Starting work on linear_scanTheory
evaluate_decTheory translator (6s) OK
Starting work on ml_progTheory
asmSemTheory compiler/encoders/asm (9s) OK
Starting work on asmPropsTheory
ml_progTheory translator (12s) OK
Starting work on ml_translatorTheory
asmPropsTheory compiler/encoders/asm (14s) OK
Starting work on cfHeapsBaseTheory
linear_scanTheory compiler/backend/reg_alloc (31s) OK
Finished $(CAKEMLDIR)/compiler/backend/reg_alloc [#theories: 3] (89.530s)
Finished $(CAKEMLDIR)/compiler/encoders/asm [#theories: 3] (35.330s)
Starting work on backend_commonTheory
backend_commonTheory compiler/backend (4s) OK
Starting work on closLangTheory
cfHeapsBaseTheory characteristic (15s) OK
Starting work on clFFITheory
clFFITheory basis (4s) OK
Starting work on runtimeFFITheory
closLangTheory compiler/backend (7s) OK
Starting work on fsFFITheory
runtimeFFITheory basis (3s) OK
Starting work on bviTheory
bviTheory compiler/backend (2s) OK
Starting work on dataLangTheory
fsFFITheory basis (9s) OK
Starting work on fsFFIPropsTheory
dataLangTheory compiler/backend (3s) OK
Starting work on data_liveTheory
data_liveTheory compiler/backend (5s) OK
Starting work on data_simpTheory
data_simpTheory compiler/backend (2s) OK
Starting work on data_spaceTheory
fsFFIPropsTheory basis (10s)FAIL<1>
Saved theorem _______ "ffi_open_out_length"
Saved theorem _______ "read_length"
Saved theorem _______ "ffi_read_length"
Saved theorem _______ "ffi_write_length"
Saved theorem _______ "ffi_close_length"
Saved definition ____ "fastForwardFD_def"
Saved theorem _______ "validFD_fastForwardFD"
Saved theorem _______ "validFileFD_fastForwardFD"
Saved theorem _______ "fastForwardFD_inode_tbl"
Saved theorem _______ "fastForwardFD_files"
Saved theorem _______ "ADELKEY_fastForwardFD_elim"
Saved theorem _______ "fastForwardFD_ADELKEY_same"
Saved theorem _______ "fastForwardFD_0"
Saved theorem _______ "fastForwardFD_with_numchars"
Saved theorem _______ "fastForwardFD_numchars"
Saved theorem _______ "fastForwardFD_maxFD"
Saved theorem _______ "wfFS_fastForwardFD"
Saved theorem _______ "fsupdate_fastForwardFD_comm"
Saved theorem _______ "wfFS_fsupdate"
Saved theorem _______ "fsupdate_unchanged"
Saved theorem _______ "fsupdate_o"
Saved theorem _______ "fsupdate_o_0"
Saved theorem _______ "fsupdate_comm"
Saved theorem _______ "fsupdate_MAP_FST_infds"
Saved theorem _______ "fsupdate_MAP_FST_inode_tbl"
Saved theorem _______ "fsupdate_MAP_FST_files"
Saved theorem _______ "validFD_fsupdate"
Saved theorem _______ "validFileFD_fsupdate"
Saved theorem _______ "fsupdate_numchars"
Saved theorem _______ "fsupdate_ADELKEY"
Saved theorem _______ "fsupdate_0_numchars"
Saved theorem _______ "fsupdate_maxFD"
Saved theorem _______ "get_file_content_numchars"
Saved theorem _______ "get_file_content_validFD"
Saved theorem _______ "get_file_content_fsupdate"
Saved theorem _______ "get_file_content_fsupdate_unchanged"
Proof of
fs fd c pos n.
get_file_content (bumpFD fd fs n) fd =
OPTION_MAP (I ## $+ n) (get_file_content fs fd)
failed.
Failed to prove theorem get_file_content_bumpFD.
Exception raised at Tactical.FIRST_ASSUM:
error in quse /scratch/cakeml/regression2/cakeml-2824/basis/fsFFIPropsScript.sml : HOL_ERR {message = "", origin_function = "FIRST_ASSUM", origin_structure = "Tactical", source_location = Loc_Unknown}
error in load /scratch/cakeml/regression2/cakeml-2824/basis/fsFFIPropsScript : HOL_ERR {message = "", origin_function = "FIRST_ASSUM", origin_structure = "Tactical", source_location = Loc_Unknown}
Uncaught exception at /scratch/cakeml/regression2/HOL-725300ce5d22e30174177682d5870306852113d5/src/prekernel/Feedback.sml:124: HOL_ERR {message = "", origin_function = "FIRST_ASSUM", origin_structure = "Tactical", source_location = Loc_Unknown}
typeSoundTheory semantics/proofs (83s)MKILLED
ml_translatorTheory translator (52s)MKILLED
data_spaceTheory compiler/backend (3s)MKILLED