Skip to content

Commit

Permalink
Fix a proof in iocatProg
Browse files Browse the repository at this point in the history
  • Loading branch information
xrchz committed Dec 16, 2018
1 parent b96f4c1 commit 754f13d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/iocatProgScript.sml
@@ -1,11 +1,11 @@
(* (*
Faster cat: process 2048 chars at a time. Faster cat: process 2048 chars at a time.
*) *)

open preamble basis open preamble basis


val _ = new_theory "iocatProg" val _ = new_theory "iocatProg"



val _ = translation_extends"basisProg"; val _ = translation_extends"basisProg";


val st = get_ml_prog_state; val st = get_ml_prog_state;
Expand Down Expand Up @@ -198,7 +198,7 @@ val cat_spec0 = Q.prove(
fs[ALOOKUP_inFS_fname_openFileFS_nextFD]) >> fs[ALOOKUP_inFS_fname_openFileFS_nextFD]) >>
qmatch_goalsub_abbrev_tac `STDIO fs'` >> qmatch_goalsub_abbrev_tac `STDIO fs'` >>
xlet_auto_spec (SOME (Q.SPECL[`nextFD fs`,`fs'`] close_STDIO_spec)) xlet_auto_spec (SOME (Q.SPECL[`nextFD fs`,`fs'`] close_STDIO_spec))
>- xsimpl >- (xsimpl \\ simp[Abbr`fs'`])
>- (xsimpl >> fs[InvalidFD_exn_def,Abbr`fs'`,up_stdo_def] >> >- (xsimpl >> fs[InvalidFD_exn_def,Abbr`fs'`,up_stdo_def] >>
simp[validFileFD_def] simp[validFileFD_def]
\\ drule (GEN_ALL ALOOKUP_inFS_fname_openFileFS_nextFD) \\ drule (GEN_ALL ALOOKUP_inFS_fname_openFileFS_nextFD)
Expand Down

0 comments on commit 754f13d

Please sign in to comment.