Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
119
Issues
119
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
bd3a1496
Commit
bd3a1496
authored
May 29, 2018
by
Jean-Christophe Filliâtre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vstte12_tree_reconstruction: removed Coq tactic in one of the two proofs
parent
4e33158c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
18 deletions
+39
-18
examples/vstte12_tree_reconstruction/vstte12_tree_reconstruction_WP_ZipperBased_right_nil_1.v
.../vstte12_tree_reconstruction_WP_ZipperBased_right_nil_1.v
+38
-16
examples/vstte12_tree_reconstruction/why3session.xml
examples/vstte12_tree_reconstruction/why3session.xml
+1
-2
No files found.
examples/vstte12_tree_reconstruction/vstte12_tree_reconstruction_WP_ZipperBased_right_nil_1.v
View file @
bd3a1496
...
...
@@ -90,9 +90,24 @@ Axiom g_append :
forall
(
l1
:
(
list
(
Z
*
tree
)
%
type
))
(
l2
:
(
list
(
Z
*
tree
)
%
type
)),
(
g
(
Init
.
Datatypes
.
app
l1
l2
))
->
g
l1
.
Require
Import
Why3
.
Ltac
z
:=
why3
"Z3,4.4.1,"
timelimit
5
;
admit
.
Ltac
ae
:=
why3
"Alt-Ergo,2.0.0,"
;
admit
.
Axiom
depths_length
:
forall
(
t
:
tree
)
(
d
:
Z
),
(
1
%
Z
<=
(
list
.
Length
.
length
(
depths
d
t
)))
%
Z
.
Axiom
forest_depths_length
:
forall
(
l
:
(
list
(
Z
*
tree
)
%
type
)),
(
0
%
Z
<=
(
list
.
Length
.
length
(
forest_depths
l
)))
%
Z
.
Axiom
g_tail
:
forall
(
l1
:
(
list
(
Z
*
tree
)
%
type
))
(
l2
:
(
list
(
Z
*
tree
)
%
type
)),
(
g
(
Init
.
Datatypes
.
app
l1
l2
))
->
g
l2
.
Axiom
key_lemma
:
forall
(
t
:
tree
)
(
l
:
(
list
(
Z
*
tree
)
%
type
))
(
d
:
Z
)
(
d1
:
Z
)
(
t1
:
tree
)
(
s
:
(
list
Z
)),
(
d
<
d1
)
%
Z
->
(
1
%
Z
<=
(
list
.
Length
.
length
l
))
%
Z
->
(
g
(
Lists
.
List
.
rev
(
Init
.
Datatypes
.
cons
(
d1
,
t1
)
l
)))
->
~
((
forest_depths
(
Init
.
Datatypes
.
cons
(
d1
,
t1
)
l
))
=
(
Init
.
Datatypes
.
app
(
depths
d
t
)
s
)).
(
*
Why3
goal
*
)
Theorem
right_nil
:
...
...
@@ -101,36 +116,43 @@ Theorem right_nil :
~
((
forest_depths
(
Lists
.
List
.
rev
l
))
=
(
depths
d
t
)).
(
*
Why3
intros
l
h1
h2
t
d
.
*
)
intros
l
H
hg
.
replace
l
with
(
List
.
rev
(
List
.
rev
l
))
in
H
,
hg
by
z
.
replace
l
with
(
List
.
rev
(
List
.
rev
l
))
in
H
,
hg
.
2
:
apply
Reverse
.
reverse_reverse
.
generalize
H
;
clear
H
.
generalize
hg
;
clear
hg
.
generalize
(
List
.
rev
l
).
clear
l
.
destruct
l
.
(
*
l
=
Nil
=>
contradiction
*
)
intros
;
ae
.
intros
.
simpl
in
H
.
omega
.
(
*
l
=
Cons
*
)
intros
.
destruct
p
as
(
d1
,
t1
).
intros
eq
.
assert
(
d
<
d1
)
%
Z
.
simpl
in
eq
.
assert
(
d
<=
d1
)
%
Z
by
z
.
assert
(
d
<=
d1
)
%
Z
.
apply
(
depths_subtree
_
_
_
_
_
eq
)
.
assert
(
d
<>
d1
)
%
Z
.
intro
.
subst
.
assert
(
depths
d1
t
=
app
(
depths
d1
t
)
nil
)
by
z
.
assert
(
t
=
t1
)
by
z
.
assert
(
depths
d1
t
=
app
(
depths
d1
t
)
nil
).
auto
with
*
.
assert
(
t
=
t1
).
rewrite
H1
in
eq
.
generalize
(
depths_unique
_
_
_
_
_
eq
).
intuition
.
subst
.
assert
(
forest_depths
l
=
nil
)
by
z
.
assert
(
forest_depths
l
=
nil
).
rewrite
H1
in
eq
at
2.
generalize
(
depths_unique
_
_
_
_
_
eq
).
intuition
.
simpl
in
H
.
destruct
l
.
ae
.
destruct
l
.
simpl
in
H
.
omega
.
assert
(
cons
p
l
=
nil
).
destruct
(
cons
p
l
);
auto
.
simpl
in
H2
.
destruct
p0
.
z
.
simpl
in
H2
.
destruct
p0
.
generalize
(
depths_head
t
z
).
destruct
(
depths
z
t
).
intuition
.
simpl
in
H2
.
discriminate
H2
.
discriminate
H3
.
omega
.
generalize
eq
;
clear
eq
.
replace
(
depths
d
t
)
with
(
app
(
depths
d
t
)
nil
)
by
z
.
replace
(
depths
d
t
)
with
(
app
(
depths
d
t
)
nil
).
2
:
rewrite
Append
.
Append_l_nil
;
trivial
.
apply
key_lemma
;
auto
.
simpl
in
H
.
ae
.
Admitted
.
simpl
in
H
.
rewrite
Append
.
Append_length
in
H
.
rewrite
Reverse
.
Reverse_length
in
H
.
simpl
in
H
.
omega
.
Qed
.
examples/vstte12_tree_reconstruction/why3session.xml
View file @
bd3a1496
...
...
@@ -3,7 +3,6 @@
"http://why3.lri.fr/why3session.dtd">
<why3session
shape_version=
"4"
>
<prover
id=
"0"
name=
"Alt-Ergo"
version=
"2.0.0"
timelimit=
"1"
steplimit=
"0"
memlimit=
"1000"
/>
<prover
id=
"1"
name=
"Coq"
version=
"8.7.2"
timelimit=
"0"
steplimit=
"0"
memlimit=
"0"
/>
<prover
id=
"4"
name=
"CVC4"
version=
"1.5"
timelimit=
"5"
steplimit=
"0"
memlimit=
"1000"
/>
<prover
id=
"5"
name=
"Coq"
version=
"8.7.1"
timelimit=
"5"
steplimit=
"0"
memlimit=
"1000"
/>
<prover
id=
"7"
name=
"Eprover"
version=
"1.8-001"
timelimit=
"5"
steplimit=
"0"
memlimit=
"1000"
/>
...
...
@@ -130,7 +129,7 @@
<proof
prover=
"5"
edited=
"vstte12_tree_reconstruction_ZipperBased_key_lemma_2.v"
><result
status=
"valid"
time=
"2.27"
/></proof>
</goal>
<goal
name=
"right_nil"
proved=
"true"
>
<proof
prover=
"5"
timelimit=
"29"
memlimit=
"0"
edited=
"vstte12_tree_reconstruction_WP_ZipperBased_right_nil_1.v"
><result
status=
"valid"
time=
"
1.54
"
/></proof>
<proof
prover=
"5"
timelimit=
"29"
memlimit=
"0"
edited=
"vstte12_tree_reconstruction_WP_ZipperBased_right_nil_1.v"
><result
status=
"valid"
time=
"
0.42
"
/></proof>
</goal>
<goal
name=
"main_lemma"
proved=
"true"
>
<proof
prover=
"4"
timelimit=
"1"
><result
status=
"valid"
time=
"0.07"
/></proof>
...
...
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