From 2be948e492031e44e9c4dadac29d66fc443012ff Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 16 Mar 2016 14:10:32 +0100 Subject: [PATCH] docs: timeless rule for invariants --- docs/derived.tex | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/derived.tex b/docs/derived.tex index 60afd02e..df806403 100644 --- a/docs/derived.tex +++ b/docs/derived.tex @@ -202,6 +202,18 @@ The following rules can be derived for Hoare triples. \inferH{Ht-false} {} {\hoare{\FALSE}{\expr}{\Ret \val. \prop}[\mask]} +\and +\inferH{Ht-inv} + {\hoare{\later\propC*\prop}{\expr}{\Ret\val.\later\propC*\propB}[\mask] \and + \physatomic{\expr} + } + {\knowInv\iname\propC \proves \hoare{\prop}{\expr}{\Ret\val.\propB}[\mask \uplus \set\iname]} +\and +\inferH{Ht-inv-timeless} + {\hoare{\propC*\prop}{\expr}{\Ret\val.\propC*\propB}[\mask] \and + \physatomic{\expr} \and \timeless\propC + } + {\knowInv\iname\propC \proves \hoare{\prop}{\expr}{\Ret\val.\propB}[\mask \uplus \set\iname]} \end{mathparpagebreakable} \paragraph{Lifting of operational semantics.} -- GitLab