Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tej Chajed
iris
Commits
23f7fac4
Commit
23f7fac4
authored
Feb 12, 2016
by
Ralf Jung
Browse files
bind types to scopes as early as possible, to functions get their arguments set appropriately
parent
492609d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
algebra/upred.v
View file @
23f7fac4
...
...
@@ -15,6 +15,10 @@ Local Transparent uPred_holds.
Add
Printing
Constructor
uPred
.
Instance
:
Params
(@
uPred_holds
)
3
.
Delimit
Scope
uPred_scope
with
I
.
Bind
Scope
uPred_scope
with
uPred
.
Arguments
uPred_holds
{
_
}
_
%
I
_
_
.
Section
cofe
.
Context
{
M
:
cmraT
}.
Instance
uPred_equiv
:
Equiv
(
uPred
M
)
:
=
λ
P
Q
,
∀
x
n
,
...
...
@@ -185,10 +189,6 @@ Program Definition uPred_valid {M A : cmraT} (a : A) : uPred M :=
{|
uPred_holds
n
x
:
=
✓
{
n
}
a
|}.
Solve
Obligations
with
naive_solver
eauto
2
using
cmra_validN_le
.
Delimit
Scope
uPred_scope
with
I
.
Bind
Scope
uPred_scope
with
uPred
.
Arguments
uPred_holds
{
_
}
_
%
I
_
_
.
Arguments
uPred_entails
_
_
%
I
_
%
I
.
Notation
"P ⊑ Q"
:
=
(
uPred_entails
P
%
I
Q
%
I
)
(
at
level
70
)
:
C_scope
.
Notation
"(⊑)"
:
=
uPred_entails
(
only
parsing
)
:
C_scope
.
Notation
"■ φ"
:
=
(
uPred_const
φ
%
C
%
type
)
...
...
heap_lang/heap_lang.v
View file @
23f7fac4
...
...
@@ -49,6 +49,9 @@ Inductive val :=
|
InjRV
(
v
:
val
)
|
LocV
(
l
:
loc
).
Delimit
Scope
lang_scope
with
L
.
Bind
Scope
lang_scope
with
expr
val
.
Fixpoint
of_val
(
v
:
val
)
:
expr
:
=
match
v
with
|
RecV
f
x
e
=>
Rec
f
x
e
...
...
heap_lang/notation.v
View file @
23f7fac4
Require
Export
heap_lang
.
derived
.
Delimit
Scope
lang_scope
with
L
.
Bind
Scope
lang_scope
with
expr
val
.
(* What about Arguments for hoare triples?. *)
Arguments
wp
{
_
_
}
_
_
%
L
_
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment