Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adam
stdpp
Commits
88123eee
Commit
88123eee
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add test for new gmap.
parent
82cf79ba
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/fin_maps.v
+15
-0
15 additions, 0 deletions
tests/fin_maps.v
with
15 additions
and
0 deletions
tests/fin_maps.v
+
15
−
0
View file @
88123eee
...
...
@@ -358,6 +358,21 @@ Proof.
end
);
abstract
congruence
.
Defined
.
Lemma
gtest_ind'
`{
Countable
K
}
(
P
:
gtest
K
→
Prop
)
:
(
∀
ts
,
map_Forall
(
λ
_,
P
)
ts
→
P
(
GTest
ts
))
→
∀
t
,
P
t
.
Proof
.
intros
Hnode
t
.
remember
(
gtest_size
t
)
as
n
eqn
:
Hn
.
revert
t
Hn
.
induction
(
lt_wf
n
)
as
[
n
_
IH
];
intros
[
ts
]
->
;
simpl
in
*.
apply
Hnode
.
revert
ts
IH
.
apply
(
map_fold_ind
(
λ
r
ts
,
(
∀
n'
,
n'
<
S
r
→
_)
→
map_Forall
(
λ
_,
P
)
ts
))
.
-
intros
IH
.
apply
map_Forall_empty
.
-
intros
k
t
m
r
?
IHm
IHt
.
apply
map_Forall_insert
;
[
done
|]
.
split
.
+
eapply
IHt
;
[|
done
];
lia
.
+
eapply
IHm
.
intros
;
eapply
IHt
;[|
done
];
lia
.
Qed
.
(** We show that [gtest K] is countable itself. This means that we can use
[gtest K] (which involves nested uses of [gmap]) as keys in [gmap]/[gset], i.e.,
[gmap (gtest K) V] and [gset (gtest K)]. And even [gtest (gtest K)].
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment