Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
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
Package registry
Model registry
Operate
Terraform modules
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
Pierre Roux
Iris
Commits
6dd5b570
Commit
6dd5b570
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Version of `negb` for proof mode.
parent
8169d405
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/proofmode/base.v
+4
-0
4 additions, 0 deletions
theories/proofmode/base.v
theories/proofmode/reduction.v
+2
-1
2 additions, 1 deletion
theories/proofmode/reduction.v
with
6 additions
and
1 deletion
theories/proofmode/base.v
+
4
−
0
View file @
6dd5b570
...
@@ -17,6 +17,10 @@ the actual operations that may appear in users' proofs. *)
...
@@ -17,6 +17,10 @@ the actual operations that may appear in users' proofs. *)
Lemma
lazy_andb_true
(
b1
b2
:
bool
)
:
b1
&&&
b2
=
true
↔
b1
=
true
∧
b2
=
true
.
Lemma
lazy_andb_true
(
b1
b2
:
bool
)
:
b1
&&&
b2
=
true
↔
b1
=
true
∧
b2
=
true
.
Proof
.
destruct
b1
,
b2
;
intuition
congruence
.
Qed
.
Proof
.
destruct
b1
,
b2
;
intuition
congruence
.
Qed
.
Definition
negb
(
b
:
bool
)
:
bool
:=
if
b
then
false
else
true
.
Lemma
negb_true
b
:
negb
b
=
true
↔
b
=
false
.
Proof
.
by
destruct
b
.
Qed
.
Fixpoint
Pos_succ
(
x
:
positive
)
:
positive
:=
Fixpoint
Pos_succ
(
x
:
positive
)
:
positive
:=
match
x
with
match
x
with
|
(
p
~
1
)
%
positive
=>
((
Pos_succ
p
)
~
0
)
%
positive
|
(
p
~
1
)
%
positive
=>
((
Pos_succ
p
)
~
0
)
%
positive
...
...
This diff is collapsed.
Click to expand it.
theories/proofmode/reduction.v
+
2
−
1
View file @
6dd5b570
...
@@ -6,7 +6,8 @@ From iris.proofmode Require Import base environments.
...
@@ -6,7 +6,8 @@ From iris.proofmode Require Import base environments.
do not reduce e.g. before unification happens in [iApply].*)
do not reduce e.g. before unification happens in [iApply].*)
Declare
Reduction
pm_eval
:=
cbv
[
Declare
Reduction
pm_eval
:=
cbv
[
(* base *)
(* base *)
base
.
beq
base
.
Pos_succ
base
.
ascii_beq
base
.
string_beq
base
.
positive_beq
base
.
ident_beq
base
.
negb
base
.
beq
base
.
Pos_succ
base
.
ascii_beq
base
.
string_beq
base
.
positive_beq
base
.
ident_beq
(* environments *)
(* environments *)
env_lookup
env_lookup_delete
env_delete
env_app
env_replace
env_lookup
env_lookup_delete
env_delete
env_app
env_replace
env_dom
env_intuitionistic
env_spatial
env_counter
env_spatial_is_nil
envs_dom
env_dom
env_intuitionistic
env_spatial
env_counter
env_spatial_is_nil
envs_dom
...
...
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