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
Model registry
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
Iris
stdpp
Commits
5e36b905
Commit
5e36b905
authored
5 months ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Also add a test for `map_Forall`.
parent
6bb1fc01
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!575
Enable `map_Forall2` to be used in nested inductive relations
Pipeline
#107962
passed
5 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/fin_maps.v
+6
-1
6 additions, 1 deletion
tests/fin_maps.v
with
6 additions
and
1 deletion
tests/fin_maps.v
+
6
−
1
View file @
5e36b905
...
...
@@ -440,8 +440,13 @@ Fixpoint gtest_imap `{Countable K} (j : K) (t : gtest K) : gtest K :=
let
'
(
GTest
ts
)
:=
t
in
GTest
(
map_imap
(
λ
i
t
,
guard
(
i
=
j
);;
Some
(
gtest_imap
j
t
))
ts
)
.
(** Test that [map_Forall2] can be used in an inductive definition without
(** Test that [map_Forall P] and [map_Forall2 P] can be used in an inductive
definition with a recursive occurence in the predicate/relation [P] without
bothering the positivity checker. *)
Inductive
gtest_pred
`{
Countable
K
}
:
gtest
K
→
Prop
:=
|
GTest_pred
ts
:
map_Forall
(
λ
_,
gtest_pred
)
ts
→
gtest_pred
(
GTest
ts
)
.
Inductive
gtest_rel
`{
Countable
K
}
:
relation
(
gtest
K
)
:=
|
GTest_rel
ts1
ts2
:
map_Forall2
(
λ
_,
gtest_rel
)
ts1
ts2
→
gtest_rel
(
GTest
ts1
)
(
GTest
ts2
)
.
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