Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
David Swasey
coq-stdpp
Commits
2bc00178
Commit
2bc00178
authored
Oct 28, 2017
by
Ralf Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
document side-effects of importing std++
parent
7bb46268
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
README.md
README.md
+14
-0
theories/base.v
theories/base.v
+9
-1
No files found.
README.md
View file @
2bc00178
...
...
@@ -20,6 +20,20 @@ The key features of this library are as follows:
`set_solver`
for goals involving set operations.
-
It is entirely dependency- and axiom-free.
## Side-effects
Importing std++ has some side effects as the library sets some global options.
Notably:
*
`Generalizable All Variables`
: This option enables implicit generalization in
arguments of the form
`` `{...}``
(i.e., anonymous arguments). Unfortunately, it
also enables implicit generalization in
`Instance`
. We think that the fact
taht both behaviors are coupled together is a
[
bug in Coq
](
https://github.com/coq/coq/issues/6030
)
.
*
The behavior of
`Program`
is tweaked:
`Unset Transparent Obligations`
,
`Obligation Tactic := idtac`
,
`Add Search Blacklist "_obligation_"`
. See
[
`base.v`
](
`theories/base.v`
)
for further details.
## History
Coq-std++ has originally been developed by Robbert Krebbers as part of his
...
...
theories/base.v
View file @
2bc00178
...
...
@@ -4,12 +4,20 @@
that are used throughout the whole development. Most importantly it contains
abstract interfaces for ordered structures, collections, and various other data
structures. *)
Global
Generalizable
All
Variables
.
From
Coq
Require
Export
Morphisms
RelationClasses
List
Bool
Utf8
Setoid
.
Set
Default
Proof
Using
"Type"
.
Export
ListNotations
.
From
Coq
.
Program
Require
Export
Basics
Syntax
.
(** Enable implicit generalization. *)
(* This option enables implicit generalization in arguments of the form
`{...} (i.e., anonymous arguments). Unfortunately, it also enables
implicit generalization in `Instance`. We think that the fact taht both
behaviors are coupled together is a [bug in
Coq](https://github.com/coq/coq/issues/6030). *)
Global
Generalizable
All
Variables
.
(** * Tweak program *)
(** 1. Since we only use Program to solve logical side-conditions, they should
always be made Opaque, otherwise we end up with performance problems due to
...
...
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