Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
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
Abel Nieto
Iris
Commits
c7842c94
Commit
c7842c94
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Version of `app` for proof mode.
parent
6dd5b570
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/proofmode/base.v
+4
-1
4 additions, 1 deletion
theories/proofmode/base.v
theories/proofmode/reduction.v
+2
-2
2 additions, 2 deletions
theories/proofmode/reduction.v
with
6 additions
and
3 deletions
theories/proofmode/base.v
+
4
−
1
View file @
c7842c94
...
...
@@ -98,7 +98,10 @@ Qed.
Lemma
ident_beq_reflect
i1
i2
:
reflect
(
i1
=
i2
)
(
ident_beq
i1
i2
)
.
Proof
.
apply
iff_reflect
.
by
rewrite
ident_beq_true
.
Qed
.
(** Copies of some [option] combinators for better reduction control. *)
(** Copies of some functions on [list] and [option] for better reduction control. *)
Fixpoint
pm_app
{
A
}
(
l1
l2
:
list
A
)
:
list
A
:=
match
l1
with
[]
=>
l2
|
x
::
l1
=>
x
::
pm_app
l1
l2
end
.
Definition
pm_option_bind
{
A
B
}
(
f
:
A
→
option
B
)
(
mx
:
option
A
)
:
option
B
:=
match
mx
with
Some
x
=>
f
x
|
None
=>
None
end
.
Arguments
pm_option_bind
{_
_}
_
!
_
/.
...
...
This diff is collapsed.
Click to expand it.
theories/proofmode/reduction.v
+
2
−
2
View file @
c7842c94
...
...
@@ -16,8 +16,8 @@ Declare Reduction pm_eval := cbv [
envs_clear_spatial
envs_clear_intuitionistic
envs_incr_counter
envs_split_go
envs_split
env_to_prop_go
env_to_prop
env_to_prop_and_go
env_to_prop_and
(* PM
option combinator
s *)
pm_option_bind
pm_from_option
pm_option_fun
(* PM
list and option function
s *)
pm_app
pm_option_bind
pm_from_option
pm_option_fun
]
.
Ltac
pm_eval
t
:=
eval
pm_eval
in
t
.
...
...
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