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
d3414ad2
There was a problem fetching the pipeline summary.
Commit
d3414ad2
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
rename some eqtype lemmas
parent
2fc79e0d
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/typing/product.v
+8
-7
8 additions, 7 deletions
theories/typing/product.v
theories/typing/shr_bor.v
+2
-2
2 additions, 2 deletions
theories/typing/shr_bor.v
theories/typing/uninit.v
+3
-3
3 additions, 3 deletions
theories/typing/uninit.v
with
13 additions
and
12 deletions
theories/typing/product.v
+
8
−
7
View file @
d3414ad2
...
...
@@ -176,20 +176,21 @@ Section typing.
-
simpl
.
iFrame
.
Qed
.
Lemma
eqtype_
prod_flatten
E
L
tyl1
tyl2
tyl3
:
Lemma
prod_flatten
E
L
tyl1
tyl2
tyl3
:
eqtype
E
L
(
Π
(
tyl1
++
Π
tyl2
::
tyl3
))
(
Π
(
tyl1
++
tyl2
++
tyl3
))
.
Proof
.
unfold
product
.
induction
tyl1
;
simpl
;
last
by
f_equiv
.
induction
tyl2
.
by
rewrite
left_id
.
by
rewrite
/=
-
assoc
;
f_equiv
.
Qed
.
Lemma
eqtype_
prod_
nil_
flatten
E
L
tyl1
tyl2
:
Lemma
prod_flatten
_l
E
L
tyl1
tyl2
:
eqtype
E
L
(
Π
(
Π
tyl1
::
tyl2
))
(
Π
(
tyl1
++
tyl2
))
.
Proof
.
apply
(
eqtype_
prod_flatten
_
_
[])
.
Qed
.
Lemma
eqtype_
prod_flatten_
nil
E
L
tyl1
tyl2
:
Proof
.
apply
(
prod_flatten
_
_
[])
.
Qed
.
Lemma
prod_flatten_
r
E
L
tyl1
tyl2
:
eqtype
E
L
(
Π
(
tyl1
++
[
Π
tyl2
]))
(
Π
(
tyl1
++
tyl2
))
.
Proof
.
by
rewrite
(
eqtype_
prod_flatten
E
L
tyl1
tyl2
[])
app_nil_r
.
Qed
.
Lemma
eqtype_
prod_app
E
L
tyl1
tyl2
:
Proof
.
by
rewrite
(
prod_flatten
E
L
tyl1
tyl2
[])
app_nil_r
.
Qed
.
Lemma
prod_app
E
L
tyl1
tyl2
:
eqtype
E
L
(
Π
[
Π
tyl1
;
Π
tyl2
])
(
Π
(
tyl1
++
tyl2
))
.
Proof
.
by
rewrite
-
eqtype_prod_flatten_nil
-
eqtype_prod_nil_flatten
.
Qed
.
Proof
.
by
rewrite
-
prod_flatten_r
-
prod_flatten_l
.
Qed
.
End
typing
.
This diff is collapsed.
Click to expand it.
theories/typing/shr_bor.v
+
2
−
2
View file @
d3414ad2
...
...
@@ -15,7 +15,7 @@ Section shr_bor.
Qed
.
Global
Instance
subtype_shr_bor_mono
E
L
:
Proper
(
lctx_lft_incl
E
L
--
>
subtype
E
L
==>
subtype
E
L
)
shr_bor
.
Proper
(
flip
(
lctx_lft_incl
E
L
)
==
>
subtype
E
L
==>
subtype
E
L
)
shr_bor
.
Proof
.
intros
κ1
κ2
Hκ
ty1
ty2
Hty
.
apply
subtype_simple_type
.
iIntros
(??)
"#LFT #HE #HL H"
.
iDestruct
(
Hκ
with
"HE HL"
)
as
"#Hκ"
.
...
...
@@ -25,7 +25,7 @@ Section shr_bor.
by
iApply
"Hs1"
.
Qed
.
Global
Instance
subtype_shr_bor_mono'
E
L
:
Proper
(
lctx_lft_incl
E
L
==>
subtype
E
L
--
>
flip
(
subtype
E
L
))
shr_bor
.
Proper
(
lctx_lft_incl
E
L
==>
flip
(
subtype
E
L
)
==
>
flip
(
subtype
E
L
))
shr_bor
.
Proof
.
intros
??????
.
by
apply
subtype_shr_bor_mono
.
Qed
.
Global
Instance
subtype_shr_bor_proper
E
L
κ
:
Proper
(
eqtype
E
L
==>
eqtype
E
L
)
(
shr_bor
κ
)
.
...
...
This diff is collapsed.
Click to expand it.
theories/typing/uninit.v
+
3
−
3
View file @
d3414ad2
...
...
@@ -17,10 +17,10 @@ Section uninit.
Lemma
uninit_sz
n
:
ty_size
(
uninit
n
)
=
n
.
Proof
.
induction
n
.
done
.
simpl
.
by
f_equal
.
Qed
.
Lemma
eqtype_
uninit_product
E
L
ns
:
Lemma
uninit_product
E
L
ns
:
eqtype
E
L
(
uninit
(
foldr
plus
0
%
nat
ns
))
(
Π
(
uninit
<$>
ns
))
.
Proof
.
induction
ns
as
[|
n
ns
IH
]
.
done
.
revert
IH
.
by
rewrite
/=
/
uninit
replicate_plus
eqtype_
prod_
nil_
flatten
-!
eqtype_
prod_app
=>
->
.
by
rewrite
/=
/
uninit
replicate_plus
prod_flatten
_l
-!
prod_app
=>
->
.
Qed
.
End
uninit
.
\ No newline at end of file
End
uninit
.
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