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
Rodolphe Lepigre
Iris
Commits
3fdd636a
Commit
3fdd636a
authored
Feb 23, 2016
by
Robbert Krebbers
Browse files
Tweak decidable equality for language syntax.
parent
7b0417ad
Changes
1
Show whitespace changes
Inline
Side-by-side
heap_lang/lang.v
View file @
3fdd636a
...
...
@@ -51,15 +51,15 @@ Inductive val :=
|
LocV
(
l
:
loc
).
Global
Instance
base_lit_dec_eq
(
l1
l2
:
base_lit
)
:
Decision
(
l1
=
l2
).
Proof
.
rewrite
/
Decision
.
decide
equality
;
apply
decide
,
_
.
Q
ed
.
Proof
.
solve_decision
.
Defin
ed
.
Global
Instance
un_op_dec_eq
(
op1
op2
:
un_op
)
:
Decision
(
op1
=
op2
).
Proof
.
rewrite
/
Decision
.
decide
equality
;
apply
decide
,
_
.
Q
ed
.
Proof
.
solve_decision
.
Defin
ed
.
Global
Instance
bin_op_dec_eq
(
op1
op2
:
bin_op
)
:
Decision
(
op1
=
op2
).
Proof
.
rewrite
/
Decision
.
decide
equality
;
apply
decide
,
_
.
Q
ed
.
Proof
.
solve_decision
.
Defin
ed
.
Global
Instance
expr_dec_eq
(
e1
e2
:
expr
)
:
Decision
(
e1
=
e2
).
Proof
.
rewrite
/
Decision
.
decide
equality
;
apply
decide
,
_
.
Q
ed
.
Proof
.
solve_decision
.
Defin
ed
.
Global
Instance
val_dec_eq
(
v1
v2
:
val
)
:
Decision
(
v1
=
v2
).
Proof
.
rewrite
/
Decision
.
decide
equality
;
apply
decide
,
_
.
Q
ed
.
Proof
.
solve_decision
.
Defin
ed
.
Delimit
Scope
lang_scope
with
L
.
Bind
Scope
lang_scope
with
expr
val
.
...
...
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