Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
transfinite
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
transfinite
Commits
9ba8b512
Commit
9ba8b512
authored
5 months ago
by
Simon Spies
Browse files
Options
Downloads
Patches
Plain Diff
use tokens instead of auth
parent
8a9e98cf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#111593
passed
5 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/examples/termination/logrel.v
+9
-10
9 additions, 10 deletions
theories/examples/termination/logrel.v
with
9 additions
and
10 deletions
theories/examples/termination/logrel.v
+
9
−
10
View file @
9ba8b512
...
@@ -4,29 +4,28 @@ From iris.base_logic.lib Require Export invariants na_invariants.
...
@@ -4,29 +4,28 @@ From iris.base_logic.lib Require Export invariants na_invariants.
From
iris
.
heap_lang
Require
Export
lang
lifting
.
From
iris
.
heap_lang
Require
Export
lang
lifting
.
From
iris
.
proofmode
Require
Import
tactics
.
From
iris
.
proofmode
Require
Import
tactics
.
From
iris
.
heap_lang
Require
Import
proofmode
notation
metatheory
.
From
iris
.
heap_lang
Require
Import
proofmode
notation
metatheory
.
From
iris
.
algebra
Require
Import
auth
.
From
iris
.
algebra
Require
Import
auth
excl
.
From
iris
.
algebra
.
ordinals
Require
Import
arithmetic
.
From
iris
.
algebra
.
ordinals
Require
Import
arithmetic
.
Set
Default
Proof
Using
"Type"
.
Set
Default
Proof
Using
"Type"
.
Section
token_ra
.
Section
token_ra
.
Context
{
SI
:
indexT
}
{
Σ
:
gFunctors
SI
}
`{
!
inG
Σ
(
authR
(
unitUR
SI
))}
.
(* NOTE: compared to the original submission, this version now uses the
more canonical exclusive resource algebra (instead of auth(unit)). *)
Context
{
SI
:
indexT
}
{
Σ
:
gFunctors
SI
}
`{
!
inG
Σ
(
exclR
(
unitO
SI
))}
.
Definition
tok
γ
:=
own
γ
(
●
())
.
Definition
tok
γ
:=
own
γ
(
Excl
())
.
Lemma
tok_alloc
:
⊢
(|
==>
∃
γ
,
tok
γ
)
%
I
.
Lemma
tok_alloc
:
⊢
(|
==>
∃
γ
,
tok
γ
)
%
I
.
Proof
.
Proof
.
iStartProof
.
iMod
(
own_alloc
(
●
()));
auto
.
iStartProof
.
iMod
(
own_alloc
(
Excl
()));
auto
.
done
.
by
apply
auth_auth_valid
.
Qed
.
Qed
.
Lemma
tok_unique
γ
:
tok
γ
∗
tok
γ
⊢
False
.
Lemma
tok_unique
γ
:
tok
γ
∗
tok
γ
⊢
False
.
Proof
.
Proof
.
rewrite
/
tok
-
own_op
own_valid
-
auth_auth_frac_op
uPred
.
discrete_valid
.
rewrite
/
tok
-
own_op
own_valid
uPred
.
discrete_valid
.
iIntros
(
Htok
)
.
apply
->
(
@
auth_auth_frac_valid
SI
)
in
Htok
.
iIntros
(
Htok
)
.
destruct
Htok
.
destruct
Htok
as
[
Htok
_]
.
apply
->
(
@
frac_valid'
SI
)
in
Htok
.
exfalso
.
by
eapply
Qp_not_plus_q_ge_1
.
Qed
.
Qed
.
End
token_ra
.
End
token_ra
.
...
@@ -86,7 +85,7 @@ Definition get : val :=
...
@@ -86,7 +85,7 @@ Definition get : val :=
end
.
end
.
Section
semantic_model
.
Section
semantic_model
.
Context
{
SI
}
{
Σ
:
gFunctors
SI
}
`{
Heap
:
!
heapG
Σ
}
`{
TimeCredits
:
!
tcG
Σ
}
`{
Sequential
:
!
seqG
Σ
}
`{
FBI
:
FiniteBoundedExistential
SI
}
`{
Tok
:
!
inG
Σ
(
auth
R
(
unit
UR
SI
))}
.
Context
{
SI
}
{
Σ
:
gFunctors
SI
}
`{
Heap
:
!
heapG
Σ
}
`{
TimeCredits
:
!
tcG
Σ
}
`{
Sequential
:
!
seqG
Σ
}
`{
FBI
:
FiniteBoundedExistential
SI
}
`{
Tok
:
!
inG
Σ
(
excl
R
(
unit
O
SI
))}
.
Implicit
Types
(
l
r
:
loc
)
.
Implicit
Types
(
l
r
:
loc
)
.
Implicit
Types
(
n
:
nat
)
.
Implicit
Types
(
n
:
nat
)
.
...
...
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