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
8b17ca72
Commit
8b17ca72
authored
May 13, 2022
by
Ralf Jung
Browse files
Merge branch 'robbert/issue_139' into 'master'
Set `Hint Mode` for `FinSet`. Closes
#139
See merge request
!379
parents
ebb89887
54a2f992
Pipeline
#65930
passed with stage
in 4 minutes and 42 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
8b17ca72
...
...
@@ -18,6 +18,8 @@ Coq 8.11 is no longer supported.
-
Rename "unsealing" lemmas from
`_eq`
to
`_unseal`
. This affects
`ndot_eq`
and
`nclose_eq`
. These unsealing lemmas are internal, so in principle you should
not rely on them.
-
Declare
`Hint Mode`
for
`FinSet A C`
so that
`C`
is input, and
`A`
is output
(i.e., inferred from
`C`
).
## std++ 1.7.0 (2022-01-22)
...
...
tests/gmap.v
View file @
8b17ca72
...
...
@@ -82,3 +82,10 @@ Proof.
Fail
progress
simplify_eq
.
done
.
Qed
.
(** Test case for issue #139 *)
Lemma
test_issue_139
(
m
:
gmap
nat
nat
)
:
∃
x
,
x
∉
dom
m
.
Proof
.
destruct
(
exist_fresh
(
dom
m
))
;
eauto
.
Qed
.
theories/base.v
View file @
8b17ca72
...
...
@@ -1468,6 +1468,8 @@ Class FinSet A C `{ElemOf A C, Empty C, Singleton A C, Union C,
elem_of_elements
(
X
:
C
)
x
:
x
∈
elements
X
↔
x
∈
X
;
NoDup_elements
(
X
:
C
)
:
NoDup
(
elements
X
)
}.
Global
Hint
Mode
FinSet
-
!
-
-
-
-
-
-
-
-
:
typeclass_instances
.
Class
Size
C
:
=
size
:
C
→
nat
.
Global
Hint
Mode
Size
!
:
typeclass_instances
.
Global
Arguments
size
{
_
_
}
!
_
/
:
simpl
nomatch
,
assert
.
...
...
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