Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Boards
Labels
Milestones
Merge Requests
11
Merge Requests
11
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
2a683f9c
Commit
2a683f9c
authored
Oct 12, 2011
by
MARCHE Claude
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hoare logic: while rule
parent
df3b860b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
examples/hoare_logic/imp.why
examples/hoare_logic/imp.why
+5
-0
examples/hoare_logic/imp/why3session.xml
examples/hoare_logic/imp/why3session.xml
+37
-2
No files found.
examples/hoare_logic/imp.why
View file @
2a683f9c
...
...
@@ -225,6 +225,11 @@ lemma if_rule:
valid_triple (Fand p (Fnot (Fterm e))) i2 q ->
valid_triple p (Sif e i1 i2) q
lemma while_rule:
forall e:expr, inv:fmla, i:stmt.
valid_triple (Fand (Fterm e) inv) i inv ->
valid_triple inv (Swhile e i) (Fand (Fnot (Fterm e)) inv)
end
...
...
examples/hoare_logic/imp/why3session.xml
View file @
2a683f9c
...
...
@@ -52,11 +52,11 @@
version=
"2.19"
/>
<file
name=
"../imp.why"
verified=
"
tru
e"
verified=
"
fals
e"
expanded=
"true"
>
<theory
name=
"Imp"
verified=
"
tru
e"
verified=
"
fals
e"
expanded=
"true"
>
<goal
name=
"ident_eq_dec"
...
...
@@ -401,6 +401,41 @@
<result
status=
"valid"
time=
"0.51"
/>
</proof>
</goal>
<goal
name=
"while_rule"
sum=
"94fbdb08982a09191521520728619166"
proved=
"false"
expanded=
"true"
shape=
"avalid_tripleV1aSwhileV0V2aFandaFnotaFtermV0V1Iavalid_tripleaFandaFtermV0V1V2V1F"
>
<proof
prover=
"coq"
timelimit=
"3"
edited=
"imp_Imp_while_rule_1.v"
obsolete=
"true"
><undone/>
</proof>
<proof
prover=
"cvc3"
timelimit=
"3"
edited=
""
obsolete=
"false"
>
<result
status=
"timeout"
time=
"3.09"
/>
</proof>
<proof
prover=
"alt-ergo"
timelimit=
"3"
edited=
""
obsolete=
"false"
>
<result
status=
"timeout"
time=
"3.09"
/>
</proof>
<proof
prover=
"z3"
timelimit=
"3"
edited=
""
obsolete=
"false"
>
<result
status=
"timeout"
time=
"3.09"
/>
</proof>
</goal>
</theory>
</file>
</why3session>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment