Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Service Desk
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
lambda-rust
Commits
7a60a06e
Commit
7a60a06e
authored
6 years ago
by
Hai Dang
Browse files
Options
Downloads
Patches
Plain Diff
bump gpfsl
parent
2c328265
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#12909
passed
6 years ago
Stage: build
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
opam
+1
-1
1 addition, 1 deletion
opam
theories/typing/soundness.v
+3
-3
3 additions, 3 deletions
theories/typing/soundness.v
theories/typing/type_context.v
+2
-2
2 additions, 2 deletions
theories/typing/type_context.v
with
6 additions
and
6 deletions
opam
+
1
−
1
View file @
7a60a06e
...
@@ -10,5 +10,5 @@ build: [make "-j%{jobs}%"]
...
@@ -10,5 +10,5 @@ build: [make "-j%{jobs}%"]
install: [make "install"]
install: [make "install"]
remove: [ "sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/lrust'" ]
remove: [ "sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/lrust'" ]
depends: [
depends: [
"coq-gpfsl" { (= "dev.2018-11-
04
.0.
06dc5416
") | (= "dev") }
"coq-gpfsl" { (= "dev.2018-11-
15
.0.
5b0cfc8b
") | (= "dev") }
]
]
This diff is collapsed.
Click to expand it.
theories/typing/soundness.v
+
3
−
3
View file @
7a60a06e
...
@@ -26,12 +26,12 @@ Section type_soundness.
...
@@ -26,12 +26,12 @@ Section type_soundness.
Theorem
type_soundness
`{
typePreG
Σ
}
(
main
:
val
)
σ
t
:
Theorem
type_soundness
`{
typePreG
Σ
}
(
main
:
val
)
σ
t
:
(
∀
`{
typeG
Σ
},
typed_val
main
main_type
)
→
(
∀
`{
typeG
Σ
},
typed_val
main
main_type
)
→
rtc
erased_step
([(
main
[
exit_cont
]
at
init_tview
)
%
E
],
mkGB
∅
∅
∅
)
(
t
,
σ
)
→
rtc
erased_step
([(
main
[
exit_cont
]
at
init_tview
)
%
E
],
mkGB
∅
∅
)
(
t
,
σ
)
→
(* nonracing_threadpool t σ ∧ *)
(* TODO : prove DRF theorem *)
(* nonracing_threadpool t σ ∧ *)
(* TODO : prove DRF theorem *)
(
∀
e
𝓥
,
(
e
at
𝓥
)
%
E
∈
t
→
is_Some
(
to_val
e
)
∨
reducible
(
e
at
𝓥
)
σ
)
.
(
∀
e
𝓥
,
(
e
at
𝓥
)
%
E
∈
t
→
is_Some
(
to_val
e
)
∨
reducible
(
e
at
𝓥
)
σ
)
.
Proof
.
Proof
.
intros
Hmain
Hrtc
.
intros
Hmain
Hrtc
.
cut
(
adequate
NotStuck
(
main
[
exit_cont
]
%
E
at
init_tview
)
(
mkGB
∅
∅
∅
)
(
λ
_
_,
True
))
.
cut
(
adequate
NotStuck
(
main
[
exit_cont
]
%
E
at
init_tview
)
(
mkGB
∅
∅
)
(
λ
_
_,
True
))
.
{
(* split. by eapply adequate_nonracing. *)
{
(* split. by eapply adequate_nonracing. *)
intros
.
intros
.
edestruct
(
adequate_not_stuck
NotStuck
(
main
[
exit_cont
]
%
E
at
init_tview
))
edestruct
(
adequate_not_stuck
NotStuck
(
main
[
exit_cont
]
%
E
at
init_tview
))
...
@@ -64,7 +64,7 @@ End type_soundness.
...
@@ -64,7 +64,7 @@ End type_soundness.
Theorem
type_soundness_closed
(
main
:
val
)
σ
t
:
Theorem
type_soundness_closed
(
main
:
val
)
σ
t
:
(
∀
`{
typeG
typeΣ
},
typed_val
main
main_type
)
→
(
∀
`{
typeG
typeΣ
},
typed_val
main
main_type
)
→
rtc
erased_step
([(
main
[
exit_cont
]
at
init_tview
)
%
E
],
mkGB
∅
∅
∅
)
(
t
,
σ
)
→
rtc
erased_step
([(
main
[
exit_cont
]
at
init_tview
)
%
E
],
mkGB
∅
∅
)
(
t
,
σ
)
→
(* nonracing_threadpool t σ ∧ *)
(* TODO : prove DRF theorem *)
(* nonracing_threadpool t σ ∧ *)
(* TODO : prove DRF theorem *)
(
∀
e
𝓥
,
(
e
at
𝓥
)
%
E
∈
t
→
is_Some
(
to_val
e
)
∨
reducible
(
e
at
𝓥
)
σ
)
.
(
∀
e
𝓥
,
(
e
at
𝓥
)
%
E
∈
t
→
is_Some
(
to_val
e
)
∨
reducible
(
e
at
𝓥
)
σ
)
.
Proof
.
intros
.
eapply
@
type_soundness
;
try
done
.
apply
_
.
Qed
.
Proof
.
intros
.
eapply
@
type_soundness
;
try
done
.
apply
_
.
Qed
.
This diff is collapsed.
Click to expand it.
theories/typing/type_context.v
+
2
−
2
View file @
7a60a06e
...
@@ -56,8 +56,8 @@ Section type_context.
...
@@ -56,8 +56,8 @@ Section type_context.
eval_path
p
=
Some
v
→
Closed
[]
p
.
eval_path
p
=
Some
v
→
Closed
[]
p
.
Proof
.
Proof
.
intros
Hpv
.
revert
v
Hpv
.
intros
Hpv
.
revert
v
Hpv
.
induction
p
as
[|
|
|
|
|[]
p
IH
[|
|
|[]|
|
|
|
|
|
|
|
|
|
|
|]
_|
induction
p
as
[|
|
|
|
|[]
p
IH
[|
|
|[]|
|
|
|
|
|
|
|
|
|
|]
_|
|
|
|
|
|
|
|
|
|]=>
//.
|
|
|
|
|
|
|
|]=>
//.
-
unfold
eval_path
=>?
/
of_to_val
<-.
apply
is_closed_of_val
.
-
unfold
eval_path
=>?
/
of_to_val
<-.
apply
is_closed_of_val
.
-
simpl
.
destruct
(
eval_path
p
)
as
[[[]|]|];
intros
?
[
=
<-
]
.
-
simpl
.
destruct
(
eval_path
p
)
as
[[[]|]|];
intros
?
[
=
<-
]
.
specialize
(
IH
_
eq_refl
)
.
apply
_
.
specialize
(
IH
_
eq_refl
)
.
apply
_
.
...
...
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