Skip to content

Commit

Permalink
Fix byteScript following change in HOL
Browse files Browse the repository at this point in the history
  • Loading branch information
myreen committed Mar 30, 2020
1 parent 10e6758 commit b4b1448
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions misc/byteScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ Proof
\\ simp[MAX_DEF]
\\ IF_CASES_TAC \\ fs[NOT_LESS]
>- metis_tac[]
\\ Cases_on`w2n bytes_in_word` \\ fs[] \\ rw[]
\\ Cases_on`n''` \\ fs[]
\\ Cases_on`w2n (bytes_in_word:'a word)` \\ fs[] \\ rw[]
\\ Cases_on`n''` \\ fs[] \\ metis_tac []
QED

Theorem words_of_bytes_append_word:
Expand All @@ -185,7 +185,8 @@ Proof
rw[]
\\ Cases_on`l1` \\ rw[words_of_bytes_def] \\ fs[]
\\ fs[MAX_DEF]
\\ first_x_assum(assume_tac o SYM) \\ fs[ADD1]
\\ qabbrev_tac ‘k = w2n (bytes_in_word:'a word)’
\\ fs[ADD1]
\\ rw[TAKE_APPEND,DROP_APPEND,DROP_LENGTH_NIL] \\ fs[]
QED

Expand Down

0 comments on commit b4b1448

Please sign in to comment.