Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
stdpp
Commits
c60c5192
Commit
c60c5192
authored
Oct 06, 2017
by
Robbert Krebbers
Browse files
Add a constant `tc_opaque` for type class opaque definitions.
parent
fe8930b6
Pipeline
#4598
passed with stages
in 10 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
theories/base.v
View file @
c60c5192
...
...
@@ -24,6 +24,13 @@ Arguments unseal {_ _} _ : assert.
Arguments
seal_eq
{
_
_
}
_
:
assert
.
Unset
Primitive
Projections
.
(** Typeclass opaque definitions *)
(* The constant [tc_opaque] is used to make definitions opaque for just type
class search. Note that [simpl] is set up to always unfold [tc_opaque]. *)
Definition
tc_opaque
{
A
}
(
x
:
A
)
:
A
:
=
x
.
Typeclasses
Opaque
tc_opaque
.
Arguments
tc_opaque
{
_
}
_
/.
(* Below we define type class versions of the common logical operators. It is
important to note that we duplicate the definitions, and do not declare the
existing logical operators as type classes. That is, we do not say:
...
...
Write
Preview
Supports
Markdown
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