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
Tej Chajed
iris
Commits
a05071cc
Commit
a05071cc
authored
1 year ago
by
Robbert Krebbers
Committed by
Ralf Jung
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
add comment to nat_local_update
parent
05b62d19
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iris/algebra/numbers.v
+3
-0
3 additions, 0 deletions
iris/algebra/numbers.v
with
3 additions
and
0 deletions
iris/algebra/numbers.v
+
3
−
0
View file @
a05071cc
...
...
@@ -32,6 +32,8 @@ Section nat.
Proof
.
by
intros
????
?
%
Nat
.
add_cancel_l
.
Qed
.
Lemma
nat_local_update
(
x
y
x'
y'
:
nat
)
:
(** Morally [x - y = x' - y']: the difference between auth and frag must
stay the same with this update. Written using [+] due to underflow. *)
x
+
y'
=
x'
+
y
→
(
x
,
y
)
~l
~>
(
x'
,
y'
)
.
Proof
.
intros
??;
apply
local_update_unital_discrete
=>
z
_
.
...
...
@@ -221,6 +223,7 @@ Section Z.
Global
Instance
Z_cancelable
(
x
:
Z
)
:
Cancelable
x
.
Proof
.
by
intros
????
?
%
Z
.
add_cancel_l
.
Qed
.
(** The difference between auth and frag must stay the same with this update. *)
Lemma
Z_local_update
(
x
y
x'
y'
:
Z
)
:
x
-
y
=
x'
-
y'
→
(
x
,
y
)
~l
~>
(
x'
,
y'
)
.
Proof
.
...
...
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