Skip to content

Commit

Permalink
Merge pull request #1085 from CakeML/parse_err
Browse files Browse the repository at this point in the history
  • Loading branch information
myreen authored Nov 12, 2024
2 parents 6437d8c + d78cf7f commit d8b47ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/bot/MonitorProofScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,8 @@ Theorem stop_spec:
(IOBOT w)
(POSTv bv.
IOBOT w *
&BOOL (w.wo.stop_oracle 0) bv)`,
&BOOL (w.wo.stop_oracle 0) bv)
Proof
rw [IOBOT_def] \\ qpat_abbrev_tac `Q = $POSTv _`
\\ simp [bot_ffi_part_def, IOx_def, IO_def]
\\ xpull \\ qunabbrev_tac `Q` >>
Expand Down Expand Up @@ -1411,7 +1412,8 @@ Theorem stop_spec:
qexists_tac`b`>>
qexists_tac`WORD8`>>simp[Abbr`b`]>>rw[]>>
simp[ml_translatorTheory.EqualityType_NUM_BOOL]>>
simp[IOBOT_def]>>xsimpl);
simp[IOBOT_def]>>xsimpl
QED

(* eventually on oracle sequences *)
Definition eventually_def:
Expand Down
2 changes: 1 addition & 1 deletion pancake/proofs/crep_to_loopProofScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -3017,7 +3017,7 @@ Proof
>- (
(* general call case *)
rw []
\\ qmatch_goalsub_abbrev_tac ‘domain l SUBSET rhs`
\\ qmatch_goalsub_abbrev_tac ‘domain l SUBSET rhs
\\ reverse (qsuff_tac `domain l SUBSET rhs`)
>- (
fs [Abbr `rhs`]
Expand Down
2 changes: 1 addition & 1 deletion tutorial/wordfreqProgScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ Theorem wordfreq_spec:
(* EXERCISE: write the specification for the wordfreq program *)
(* hint: it should be very similar to wordcount_spec (in wordcountProgScript.sml) *)
(* hint: use wordfreq_output_spec to produce the desired output *)

Proof
(* The following proof sketch should work when you have roughly the right
specification
Expand Down

0 comments on commit d8b47ad

Please sign in to comment.