Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
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
Michael Sammler
iris-coq
Commits
8566ab65
Commit
8566ab65
authored
5 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
make gFunctors_lookup not longer a coercion
parent
20b50c44
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/base_logic/lib/iprop.v
+5
-5
5 additions, 5 deletions
theories/base_logic/lib/iprop.v
theories/base_logic/lib/own.v
+1
-1
1 addition, 1 deletion
theories/base_logic/lib/own.v
with
6 additions
and
6 deletions
theories/base_logic/lib/iprop.v
+
5
−
5
View file @
8566ab65
...
...
@@ -42,14 +42,13 @@ Definition gFunctors := { n : nat & fin n → gFunctor }.
Definition
gid
(
Σ
:
gFunctors
)
:=
fin
(
projT1
Σ
)
.
Definition
gFunctors_lookup
(
Σ
:
gFunctors
)
:
gid
Σ
→
gFunctor
:=
projT2
Σ
.
Coercion
gFunctors_lookup
:
gFunctors
>->
Funclass
.
Definition
gname
:=
positive
.
Canonical
Structure
gnameO
:=
leibnizO
gname
.
(** The resources functor [iResF Σ A := ∀ i : gid, gname -fin-> (Σ i) A]. *)
Definition
iResF
(
Σ
:
gFunctors
)
:
urFunctor
:=
discrete_funURF
(
λ
i
,
gmapURF
gname
(
Σ
i
))
.
discrete_funURF
(
λ
i
,
gmapURF
gname
(
gFunctors_lookup
Σ
i
))
.
(** We define functions for the empty list of functors, the singleton list of
...
...
@@ -81,7 +80,8 @@ lock invariant.
The contraints to can be expressed using the type class [subG Σ1 Σ2], which
expresses that the functors [Σ1] are contained in [Σ2]. *)
Class
subG
(
Σ1
Σ2
:
gFunctors
)
:=
in_subG
i
:
{
j
|
Σ1
i
=
Σ2
j
}
.
Class
subG
(
Σ1
Σ2
:
gFunctors
)
:=
in_subG
i
:
{
j
|
gFunctors_lookup
Σ1
i
=
gFunctors_lookup
Σ2
j
}
.
(** Avoid trigger happy type class search: this line ensures that type class
search is only triggered if the arguments of [subG] do not contain evars. Since
...
...
@@ -120,7 +120,7 @@ Module Type iProp_solution_sig.
Global
Declare
Instance
iPreProp_cofe
{
Σ
}
:
Cofe
(
iPrePropO
Σ
)
.
Definition
iResUR
(
Σ
:
gFunctors
)
:
ucmraT
:=
discrete_funUR
(
λ
i
,
gmapUR
gname
(
Σ
i
(
iPrePropO
Σ
)
_))
.
discrete_funUR
(
λ
i
,
gmapUR
gname
(
gFunctors_lookup
Σ
i
(
iPrePropO
Σ
)
_))
.
Notation
iProp
Σ
:=
(
uPred
(
iResUR
Σ
))
.
Notation
iPropO
Σ
:=
(
uPredO
(
iResUR
Σ
))
.
Notation
iPropI
Σ
:=
(
uPredI
(
iResUR
Σ
))
.
...
...
@@ -142,7 +142,7 @@ Module Export iProp_solution : iProp_solution_sig.
Global
Instance
iPreProp_cofe
{
Σ
}
:
Cofe
(
iPrePropO
Σ
)
:=
_
.
Definition
iResUR
(
Σ
:
gFunctors
)
:
ucmraT
:=
discrete_funUR
(
λ
i
,
gmapUR
gname
(
Σ
i
(
iPrePropO
Σ
)
_))
.
discrete_funUR
(
λ
i
,
gmapUR
gname
(
gFunctors_lookup
Σ
i
(
iPrePropO
Σ
)
_))
.
Notation
iProp
Σ
:=
(
uPred
(
iResUR
Σ
))
.
Notation
iPropO
Σ
:=
(
uPredO
(
iResUR
Σ
))
.
...
...
This diff is collapsed.
Click to expand it.
theories/base_logic/lib/own.v
+
1
−
1
View file @
8566ab65
...
...
@@ -9,7 +9,7 @@ individual CMRAs instead of (lists of) CMRA *functors*. This additional class is
needed because Coq is otherwise unable to solve type class constraints due to
higher-order unification problems. *)
Class
inG
(
Σ
:
gFunctors
)
(
A
:
cmraT
)
:=
InG
{
inG_id
:
gid
Σ
;
inG_prf
:
A
=
Σ
inG_id
(
iPrePropO
Σ
)
_
}
.
InG
{
inG_id
:
gid
Σ
;
inG_prf
:
A
=
gFunctors_lookup
Σ
inG_id
(
iPrePropO
Σ
)
_
}
.
Arguments
inG_id
{_
_}
_
.
Lemma
subG_inG
Σ
(
F
:
gFunctor
)
:
subG
F
Σ
→
inG
Σ
(
F
(
iPrePropO
Σ
)
_)
.
...
...
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