Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RefinedC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
RefinedC
Commits
a889efa0
Commit
a889efa0
authored
4 years ago
by
Michael Sammler
Browse files
Options
Downloads
Patches
Plain Diff
simplify option fmap none
parent
c94fb809
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#41612
passed
4 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/lithium/simpl_instances.v
+4
-0
4 additions, 0 deletions
theories/lithium/simpl_instances.v
with
4 additions
and
0 deletions
theories/lithium/simpl_instances.v
+
4
−
0
View file @
a889efa0
...
...
@@ -433,6 +433,10 @@ Proof. unfold FastDone in *; subst. split; naive_solver. Qed.
Global
Instance
simpl_both_fmap_Some
A
f
(
o
:
option
A
)
(
x
:
A
):
SimplBothRel
(
=
)
(
f
<$>
o
)
(
Some
x
)
(
∃
x'
,
o
=
Some
x'
∧
x
=
f
x'
)
.
Proof
.
unfold
SimplBothRel
.
rewrite
fmap_Some
.
naive_solver
.
Qed
.
Global
Instance
simplify_option_fmap_None
{
A
B
}
(
f
:
A
→
B
)
(
x
:
option
A
)
:
SimplBothRel
(
=
)
(
f
<$>
x
)
(
None
)
(
x
=
None
)
.
Proof
.
by
split
;
rewrite
fmap_None
.
Qed
.
Global
Instance
simpl_both_rotate_lookup_Some
A
b
l
i
(
x
:
A
):
SimplBothRel
(
=
)
(
rotate
b
l
!!
i
)
(
Some
x
)
(
l
!!
rotate_nat_add
b
i
(
length
l
)
=
Some
x
∧
(
i
<
length
l
)
%
nat
)
.
Proof
.
unfold
SimplBothRel
.
by
rewrite
lookup_rotate_r_Some
.
Qed
.
...
...
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