Skip to content
Snippets Groups Projects
Commit 2be948e4 authored by Ralf Jung's avatar Ralf Jung
Browse files

docs: timeless rule for invariants

parent d1f3cf37
No related branches found
No related tags found
No related merge requests found
......@@ -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.}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment