Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
coq-stdpp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Swasey
coq-stdpp
Commits
3ac5cc06
Commit
3ac5cc06
authored
Feb 13, 2015
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add shallow embedded assertion language.
Ported from popl2014 branch.
parent
6f504682
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
theories/base.v
theories/base.v
+8
-0
No files found.
theories/base.v
View file @
3ac5cc06
...
...
@@ -160,6 +160,12 @@ Notation "X ≢ Y":= (¬X ≡ Y) (at level 70, no associativity) : C_scope.
Notation
"( X ≢)"
:
=
(
λ
Y
,
X
≢
Y
)
(
only
parsing
)
:
C_scope
.
Notation
"(≢ X )"
:
=
(
λ
Y
,
Y
≢
X
)
(
only
parsing
)
:
C_scope
.
Class
EquivE
E
A
:
=
equivE
:
E
→
relation
A
.
Instance
:
Params
(@
equivE
)
4
.
Notation
"X ≡{ Γ } Y"
:
=
(
equivE
Γ
X
Y
)
(
at
level
70
,
format
"X ≡{ Γ } Y"
)
:
C_scope
.
Notation
"(≡{ Γ } )"
:
=
(
equivE
Γ
)
(
only
parsing
,
Γ
at
level
1
)
:
C_scope
.
(** The type class [LeibnizEquiv] collects setoid equalities that coincide
with Leibniz equality. We provide the tactic [fold_leibniz] to transform such
setoid equalities into Leibniz equalities, and [unfold_leibniz] for the
...
...
@@ -192,6 +198,8 @@ equality. *)
Instance
equiv_default_relation
`
{
Equiv
A
}
:
DefaultRelation
(
≡
)
|
3
.
Hint
Extern
0
(
_
≡
_
)
=>
reflexivity
.
Hint
Extern
0
(
_
≡
_
)
=>
symmetry
;
assumption
.
Hint
Extern
0
(
_
≡
{
_
}
_
)
=>
reflexivity
.
Hint
Extern
0
(
_
≡
{
_
}
_
)
=>
symmetry
;
assumption
.
(** ** Operations on collections *)
(** We define operational type classes for the traditional operations and
...
...
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