Skip to content

Commit f456bc3

Browse files
1 parent b8016ad commit f456bc3

4 files changed

Lines changed: 32 additions & 15 deletions

File tree

‎refman/_sources/tactics/rnd.rst.txt‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ If the conclusion is a probabilistic Hoare logic statement judgement whose progr
121121
which can be provided explicitly. When `E`` is not
122122
specified, it is inferred from the current postcondition.
123123

124+
The `rnd` tactic additionally verifies that the bound is non-negative,
125+
as a separate goal, and tries to close it automatically.
126+
124127
.. ecproof::
125128
:title: Probabilistic Hoare logic example (upper bound)
126129

@@ -145,9 +148,11 @@ If the conclusion is a probabilistic Hoare logic statement judgement whose progr
145148
(* The post now has two clauses, the first is to prove the
146149
probability upper bound on the event, and the second one is to
147150
prove that the event holding implies the
148-
previous postcondition. *)
149-
skip => *;split.
150-
+ by smt(dbool1E).
151+
previous postcondition. A third goal requires the bound to
152+
be non-negative. *)
153+
+ skip => *;split.
154+
+ by smt(dbool1E).
155+
by smt().
151156
by smt().
152157
qed.
153158

0 commit comments

Comments
 (0)