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
125
Issues
125
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
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
00009264
Commit
00009264
authored
Apr 18, 2012
by
Jean-Christophe Filliâtre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coq tactic: fixed bug related to order of type parameters
parent
5574a1cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
14 deletions
+22
-14
Makefile.in
Makefile.in
+9
-0
src/coq-tactic/test.v
src/coq-tactic/test.v
+11
-13
src/coq-tactic/why3tac.ml
src/coq-tactic/why3tac.ml
+2
-1
No files found.
Makefile.in
View file @
00009264
...
...
@@ -838,6 +838,12 @@ src/coq-tactic/.why3-vo-opt: lib/coq-tactic/Why3.v lib/coq-tactic/why3tac.cmxs
WHY3NOCONFIG
=
42
$(COQC)
-opt
-I
lib/coq-tactic/
$<
&&
\
touch
src/coq-tactic/.why3-vo-opt
test-coq-tactic.byte
:
src/coq-tactic/.why3-vo-byte
$(COQC)
-byte
-I
lib/coq-tactic/ src/coq-tactic/test.v
test-coq-tactic.opt
:
src/coq-tactic/.why3-vo-opt
$(COQC)
-opt
-I
lib/coq-tactic/ src/coq-tactic/test.v
# depend and clean targets
ifneq
"$(MAKECMDGOALS)" "clean"
...
...
@@ -1025,6 +1031,9 @@ install_local: bin/why3doc
bench
::
bin/why3.@OCAMLBEST@ bin/why3ml.@OCAMLBEST@ bin/why3config.@OCAMLBEST@ plugins $(TOOLS)
$(MAKE)
test-api.@OCAMLBEST@
sh bench/bench
"bin/why3.@OCAMLBEST@"
"bin/why3ml.@OCAMLBEST@"
@
if
test
"@enable_coq_plugin@"
=
"yes"
;
then
\
echo
"=== checking the Coq tactic ==="
;
\
$(MAKE)
test-coq-tactic.@OCAMLBEST@
;
fi
###############
# test targets
...
...
src/coq-tactic/test.v
View file @
00009264
...
...
@@ -28,11 +28,6 @@ with forest : Set :=
|
Nil
:
forest
|
Cons
:
tree
->
forest
->
forest
.
Print
plus
.
Print
tree_rect
.
Fixpoint
tree_size
(
t
:
tree
)
:
Z
:=
match
t
with
|
Leaf
=>
0
|
Node
_
f
=>
1
+
forest_size
f
end
...
...
@@ -129,14 +124,10 @@ Qed.
End
S
.
Print
All
.
Goal
True
.
ae
.
Qed
.
Print
sorted
.
Goal
sorted
_
(
@
nil
nat
).
ae
.
Qed
.
...
...
@@ -178,8 +169,6 @@ Goal p' O.
ae
.
Qed
.
Print
plus
.
Goal
plus
O
O
=
O
.
ae
.
Qed
.
...
...
@@ -227,8 +216,6 @@ Qed.
(
*
recursive
predicate
definition
*
)
Print
In
.
Goal
In
0
(
cons
1
(
cons
0
nil
)).
ae
.
Qed
.
...
...
@@ -324,3 +311,14 @@ Goal forall x : ptree' Z, x=x.
ae
.
Qed
.
(
*
order
of
type
parameters
matters
*
)
Definition
wgt
(
k
:
(
nat
*
Z
)
%
type
)
:=
match
k
with
|
(
_
,
p
)
=>
p
end
.
Implicit
Arguments
wgt
.
Goal
wgt
(
S
O
,
3
)
=
3.
ae
.
Qed
.
src/coq-tactic/why3tac.ml
View file @
00009264
...
...
@@ -182,7 +182,8 @@ let decomp_type_quantifiers env t =
let
tv
=
Ty
.
create_tvsymbol
(
preid_of_id
id
)
in
Idmap
.
add
id
(
Some
(
Ty
.
ty_var
tv
))
m
,
tv
in
Util
.
map_fold_left
add
Idmap
.
empty
vars
,
env
,
t
let
tvm
,
vars
=
Util
.
map_fold_left
add
Idmap
.
empty
vars
in
(
tvm
,
List
.
rev
vars
)
,
env
,
t
in
loop
[]
t
...
...
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