Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ReLoC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
ReLoC
Commits
113b1926
Commit
113b1926
authored
6 years ago
by
Dan Frumin
Browse files
Options
Downloads
Patches
Plain Diff
trying to get notation to work
parent
a7ce476f
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
theories/typing/interp.v
+48
-0
48 additions, 0 deletions
theories/typing/interp.v
with
48 additions
and
0 deletions
theories/typing/interp.v
+
48
−
0
View file @
113b1926
...
@@ -91,4 +91,52 @@ Section semtypes.
...
@@ -91,4 +91,52 @@ Section semtypes.
apply
I
.
by
f_equiv
.
apply
I
.
by
f_equiv
.
Defined
.
Defined
.
Definition
bin_log_related_def
(
E
:
coPset
)
(
Δ
:
list
lty2
)
(
Γ
:
stringmap
type
)
(
e
e'
:
expr
)
(
τ
:
type
)
:
iProp
Σ
:=
fmap
(
λ
τ
,
interp
τ
Δ
)
Γ
⊨
e
<<
e'
:
(
interp
τ
Δ
)
.
Definition
bin_log_related_aux
:
seal
bin_log_related_def
.
Proof
.
by
eexists
.
Qed
.
Definition
bin_log_related
:=
unseal
bin_log_related_aux
.
Definition
bin_log_related_eq
:
bin_log_related
=
bin_log_related_def
:=
seal_eq
bin_log_related_aux
.
End
semtypes
.
End
semtypes
.
Notation
"'{' E ';' Δ ';' Γ '}' ⊨ e '≤log≤' e' : τ"
:=
(
bin_log_related
E
Δ
Γ
e
%
E
e'
%
E
(
τ
)
%
F
)
(
at
level
74
,
E
at
level
50
,
Δ
at
next
level
,
Γ
at
next
level
,
e
,
e'
at
next
level
,
τ
at
level
98
,
format
"'[hv' '{' E ';' Δ ';' Γ '}' ⊨ '/ ' e '/' '≤log≤' '/ ' e' : τ ']'"
)
.
Notation
"'{' Δ ';' Γ '}' ⊨ e '≤log≤' e' : τ"
:=
(
bin_log_related
⊤
Δ
Γ
e
%
E
e'
%
E
(
τ
)
%
F
)
(
at
level
74
,
Δ
at
level
50
,
Γ
at
next
level
,
e
,
e'
at
next
level
,
τ
at
level
98
,
format
"'[hv' '{' Δ ';' Γ '}' ⊨ '/ ' e '/' '≤log≤' '/ ' e' : τ ']'"
)
.
Notation
"Γ ⊨ e '≤log≤' e' : τ"
:=
(
∀
Δ
,
bin_log_related
⊤
Δ
Γ
e
%
E
e'
%
E
(
τ
)
%
F
)
%
I
(
at
level
74
,
e
,
e'
at
next
level
,
τ
at
level
98
,
format
"'[hv' Γ ⊨ '/ ' e '/' '≤log≤' '/ ' e' : τ ']'"
)
.
(* TODO:
If I set the level for τ at 98 then the
following wouldn't pass:
Lemma refinement1 `{logrelG Σ} Γ :
Γ ⊨ #() ≤log≤ #() : (Unit → Unit) → TNat.
If the level is 99 then the following is not parsed.
Lemma refinement1 `{logrelG Σ} Γ :
Γ ⊨ #() ≤log≤ #() : (Unit → Unit) → TNat -∗ True.
*)
Section
props
.
Context
`{
relocG
Σ
}
.
(* Lemma fupd_logrel E1 E2 Δ Γ e e' τ : *)
(* ((|={E1,E2}=> ({E2;Δ;Γ} ⊨ e ≤log≤ e' : τ)) *)
(* -∗ {E1;Δ;Γ} ⊨ e ≤log≤ e' : τ)%I. *)
End
props
.
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