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
2ec23bde
Commit
2ec23bde
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Turn some non-recursive `Fixpoint`s into `Definition`s.
parent
6401d876
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#29522
passed
4 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/hlist.v
+2
-2
2 additions, 2 deletions
theories/hlist.v
theories/natmap.v
+1
-1
1 addition, 1 deletion
theories/natmap.v
with
3 additions
and
3 deletions
theories/hlist.v
+
2
−
2
View file @
2ec23bde
...
...
@@ -14,9 +14,9 @@ Fixpoint tapp (As Bs : tlist) : tlist :=
Fixpoint
happ
{
As
Bs
}
(
xs
:
hlist
As
)
(
ys
:
hlist
Bs
)
:
hlist
(
tapp
As
Bs
)
:=
match
xs
with
hnil
=>
ys
|
hcons
x
xs
=>
hcons
x
(
happ
xs
ys
)
end
.
Fixpoint
hhead
{
A
As
}
(
xs
:
hlist
(
tcons
A
As
))
:
A
:=
Definition
hhead
{
A
As
}
(
xs
:
hlist
(
tcons
A
As
))
:
A
:=
match
xs
with
hnil
=>
()
|
hcons
x
_
=>
x
end
.
Fixpoint
htail
{
A
As
}
(
xs
:
hlist
(
tcons
A
As
))
:
hlist
As
:=
Definition
htail
{
A
As
}
(
xs
:
hlist
(
tcons
A
As
))
:
hlist
As
:=
match
xs
with
hnil
=>
()
|
hcons
_
xs
=>
xs
end
.
Fixpoint
hheads
{
As
Bs
}
:
hlist
(
tapp
As
Bs
)
→
hlist
As
:=
...
...
This diff is collapsed.
Click to expand it.
theories/natmap.v
+
1
−
1
View file @
2ec23bde
...
...
@@ -258,7 +258,7 @@ Instance natmap_dom {A} : Dom (natmap A) natset := mapset_dom.
Instance
:
FinMapDom
nat
natmap
natset
:=
mapset_dom_spec
.
(* Fixpoint avoids this definition from being unfolded *)
Fixpoint
bools_to_natset
(
βs
:
list
bool
)
:
natset
:=
Definition
bools_to_natset
(
βs
:
list
bool
)
:
natset
:=
let
f
(
β
:
bool
)
:=
if
β
then
Some
()
else
None
in
Mapset
$
list_to_natmap
$
f
<$>
βs
.
Definition
natset_to_bools
(
sz
:
nat
)
(
X
:
natset
)
:
list
bool
:=
...
...
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