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
ce00f184
Commit
ce00f184
authored
9 months ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Tweak comments and CHANGELOG.
parent
3c517fd8
No related branches found
No related tags found
1 merge request
!561
Allow `map_imap` to be used in nested recursive fixpoints.
Pipeline
#105951
passed
9 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-1
2 additions, 1 deletion
CHANGELOG.md
tests/fin_maps.v
+2
-1
2 additions, 1 deletion
tests/fin_maps.v
with
4 additions
and
2 deletions
CHANGELOG.md
+
2
−
1
View file @
ce00f184
...
@@ -13,7 +13,8 @@ API-breaking change is listed.
...
@@ -13,7 +13,8 @@ API-breaking change is listed.
-
Make the build script compatible with BSD systems. (by Yiyun Liu)
-
Make the build script compatible with BSD systems. (by Yiyun Liu)
-
Rename lemmas
`X_length`
into
`length_X`
, see the sed script below for an
-
Rename lemmas
`X_length`
into
`length_X`
, see the sed script below for an
overview. This follows https://github.com/coq/coq/pull/18564.
overview. This follows https://github.com/coq/coq/pull/18564.
-
Redefine
`map_imap`
so it can be used in nested recursive
`Fixpoint`
s.
-
Redefine
`map_imap`
so its closure argument can contain recursive
occurrences of a
`Fixpoint`
.
The following
`sed`
script should perform most of the renaming
The following
`sed`
script should perform most of the renaming
(on macOS, replace
`sed`
by
`gsed`
, installed via e.g.
`brew install gnu-sed`
).
(on macOS, replace
`sed`
by
`gsed`
, installed via e.g.
`brew install gnu-sed`
).
...
...
This diff is collapsed.
Click to expand it.
tests/fin_maps.v
+
2
−
1
View file @
ce00f184
...
@@ -435,7 +435,8 @@ Proof. discriminate. Qed.
...
@@ -435,7 +435,8 @@ Proof. discriminate. Qed.
Goal
GTest
{[
GTest
{[
1
:=
GTest
∅
]}
:=
GTest
∅
]}
≠@
{
gtest
(
gtest
nat
)}
GTest
∅.
Goal
GTest
{[
GTest
{[
1
:=
GTest
∅
]}
:=
GTest
∅
]}
≠@
{
gtest
(
gtest
nat
)}
GTest
∅.
Proof
.
discriminate
.
Qed
.
Proof
.
discriminate
.
Qed
.
(* Test that [map_imap] can be used in nested recursive fixpoints. *)
(* Test that a fixpoint can be recursively invoked in the closure argument
of [map_imap]. *)
Fixpoint
gtest_imap
`{
Countable
K
}
(
j
:
K
)
(
t
:
gtest
K
)
:
gtest
K
:=
Fixpoint
gtest_imap
`{
Countable
K
}
(
j
:
K
)
(
t
:
gtest
K
)
:
gtest
K
:=
let
'
(
GTest
ts
)
:=
t
in
let
'
(
GTest
ts
)
:=
t
in
GTest
(
map_imap
(
λ
i
t
,
guard
(
i
=
j
);;
Some
(
gtest_imap
j
t
))
ts
)
.
GTest
(
map_imap
(
λ
i
t
,
guard
(
i
=
j
);;
Some
(
gtest_imap
j
t
))
ts
)
.
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