Skip to content

Commit

Permalink
Add handy RTC related lemma
Browse files Browse the repository at this point in the history
  • Loading branch information
agomezl committed May 16, 2018
1 parent a4f5689 commit fce0354
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projection/proofs/endpointPropsScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ val RTC_SANDWICH = Q.store_thm("RTC_SANDWICH",
`!R a b c d. R^* a b /\ R b c /\ R^* c d ==> R^* a d`,
metis_tac[RTC_RTC,RTC_SINGLE])

val RTC_SPLIT = Q.store_thm("RTC_SPLIT",
`∀R x y z. R^* x z ∧ R^* z y ⇒ R^* x y`,
metis_tac[RTC_RTC,RTC_SINGLE])

val INDEX_FIND_normalize = Q.store_thm("INDEX_FIND_normalize",
`!l n. OPTION_MAP SND (INDEX_FIND n f l) = OPTION_MAP SND (INDEX_FIND 0 f l)`,
Induct_on `l` >> rpt strip_tac >> rw[INDEX_FIND_def]);
Expand Down

0 comments on commit fce0354

Please sign in to comment.