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
17
Merge Requests
17
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
9cc138e4
Commit
9cc138e4
authored
Jan 18, 2018
by
Guillaume Melquiond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve boxing of tuples in Coq printer.
parent
94ff3db7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
lib/coq/list/Combine.v
lib/coq/list/Combine.v
+5
-5
src/printer/coq.ml
src/printer/coq.ml
+3
-9
No files found.
lib/coq/list/Combine.v
View file @
9cc138e4
...
...
@@ -19,12 +19,12 @@ Require list.List.
(
*
combine
is
replaced
with
(
Lists
.
List
.
combine
x
x1
)
by
the
coq
driver
*
)
(
*
Why3
goal
*
)
Lemma
combine_def
:
forall
{
a
:
Type
}
{
a_WT
:
WhyType
a
}
{
b
:
Type
}
{
b_WT
:
WhyType
b
}
,
forall
(
x
:
(
list
a
))
(
y
:
(
list
b
)),
match
(
x
,
y
)
with
Lemma
combine_def
:
forall
{
a
:
Type
}
{
a_WT
:
WhyType
a
}
{
b
:
Type
}
{
b_WT
:
WhyType
b
}
,
forall
(
x
:
(
list
a
))
(
y
:
(
list
b
)),
match
(
x
,
y
)
with
|
((
Init
.
Datatypes
.
cons
x0
x1
),
(
Init
.
Datatypes
.
cons
y0
y1
))
=>
((
Lists
.
List
.
combine
x
y
)
=
(
Init
.
Datatypes
.
cons
(
x0
,
y0
)
(
Lists
.
List
.
combine
x1
y1
)))
((
Lists
.
List
.
combine
x
y
)
=
(
Init
.
Datatypes
.
cons
(
x0
,
y0
)
(
Lists
.
List
.
combine
x1
y1
)))
|
_
=>
((
Lists
.
List
.
combine
x
y
)
=
Init
.
Datatypes
.
nil
)
end
.
Proof
.
...
...
src/printer/coq.ml
View file @
9cc138e4
...
...
@@ -183,16 +183,10 @@ let unambig_fs fs =
(** Patterns, terms, and formulas *)
(* unused
let lparen_l fmt () = fprintf fmt "@ ("
*)
let
lparen_r
fmt
()
=
fprintf
fmt
"(@,"
(* unused
let print_paren_l fmt x =
print_list_delim ~start:lparen_l ~stop:rparen ~sep:comma fmt x
*)
let
lparen_r
fmt
()
=
fprintf
fmt
"@[<hov 1>("
let
rparen_r
fmt
()
=
fprintf
fmt
")@]"
let
print_paren_r
fmt
x
=
print_list_delim
~
start
:
lparen_r
~
stop
:
rparen
~
sep
:
comma
fmt
x
print_list_delim
~
start
:
lparen_r
~
stop
:
rparen
_r
~
sep
:
comma
fmt
x
let
arrow
fmt
()
=
fprintf
fmt
" ->@ "
let
print_arrow_list
fmt
x
=
print_list_suf
arrow
fmt
x
...
...
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