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
cec07bb8
There was a problem fetching the pipeline mini graph.
Commit
cec07bb8
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
fix build
parent
32f9c45d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/typing/product.v
+12
-8
12 additions, 8 deletions
theories/typing/product.v
with
12 additions
and
8 deletions
theories/typing/product.v
+
12
−
8
View file @
cec07bb8
...
...
@@ -140,7 +140,8 @@ Section typing.
Global
Instance
prod2_assoc
E
L
:
Assoc
(
eqtype
E
L
)
product2
.
Proof
.
split
;
(
split
;
simpl
;
[
by
rewrite
assoc
|
|];
intros
;
iIntros
"_ _ _ H"
)
.
split
;
(
iIntros
;
(
iSplit
;
first
by
rewrite
/=
assoc
);
iSplit
;
iAlways
;
last
iIntros
(??);
iIntros
(??)
"H"
)
.
-
iDestruct
"H"
as
(
vl1
vl'
)
"(% & Ho1 & H)"
.
iDestruct
"H"
as
(
vl2
vl3
)
"(% & Ho2 & Ho3)"
.
subst
.
iExists
_,
_
.
iSplit
.
by
rewrite
assoc
.
iFrame
.
iExists
_,
_
.
by
iFrame
.
...
...
@@ -152,29 +153,32 @@ Section typing.
iDestruct
"H"
as
(
vl2
vl3
)
"(% & Ho1 & Ho2)"
.
subst
.
iExists
_,
_
.
iSplit
.
by
rewrite
-
assoc
.
iFrame
.
iExists
_,
_
.
by
iFrame
.
-
iDestruct
"H"
as
(
E1'
E3
)
"(% & H & Hs3)"
.
iDestruct
"H"
as
(
E1
E2
)
"(% & Hs1 & Hs2)"
.
rewrite
shift_loc_assoc_nat
.
iDestruct
"H"
as
(
E1
E2
)
"(% & Hs1 & Hs2)"
.
rewrite
/=
shift_loc_assoc_nat
.
iExists
E1
,
(
E2
∪
E3
)
.
iSplit
.
by
iPureIntro
;
set_solver
.
iFrame
.
iExists
E2
,
E3
.
iSplit
.
by
iPureIntro
;
set_solver
.
by
iFrame
.
Qed
.
Global
Instance
prod2_unit_leftid
E
L
:
LeftId
(
eqtype
E
L
)
unit
product2
.
Proof
.
intros
ty
.
split
;
(
split
;
[
done
|
|]);
intros
;
iIntros
"#LFT _ _ H"
.
intros
ty
.
split
;
(
iIntros
;
(
iSplit
;
first
done
);
iSplit
;
iAlways
;
last
iIntros
(??);
iIntros
(??)
"H"
)
.
-
iDestruct
"H"
as
(?
?)
"(% & % & ?)"
.
by
subst
.
-
iDestruct
"H"
as
(?
?)
"(% & ? & ?)"
.
rewrite
shift_loc_0
.
iApply
(
ty_shr_mono
with
"LFT []"
);
last
done
.
set_solver
.
iApply
lft_incl_refl
.
iApply
(
ty_shr_mono
with
"[] []"
);
[|
done
|
|
done
]
.
set_solver
.
iApply
lft_incl_refl
.
-
iExists
[],
_
.
eauto
.
-
iExists
∅
,
F
.
rewrite
shift_loc_0
.
iFrame
.
by
iPureIntro
;
set_solver
.
-
iExists
∅
,
_
.
rewrite
shift_loc_0
.
iFrame
.
by
iPureIntro
;
set_solver
.
Qed
.
Global
Instance
prod2_unit_rightid
E
L
:
RightId
(
eqtype
E
L
)
unit
product2
.
Proof
.
intros
ty
.
split
;
(
split
;
[
by
rewrite
/=
-
plus_n_O
|
|]);
intros
;
iIntros
"#LFT _ _ H"
.
intros
ty
.
split
;
(
iIntros
;
(
iSplit
;
first
by
rewrite
/=
-
plus_n_O
);
iSplit
;
iAlways
;
last
iIntros
(??);
iIntros
(??)
"H"
)
.
-
iDestruct
"H"
as
(?
?)
"(% & ? & %)"
.
subst
.
by
rewrite
app_nil_r
.
-
iDestruct
"H"
as
(?
?)
"(% & ? & _)"
.
iApply
(
ty_shr_mono
with
"
LFT
[]"
);
last
done
.
set_solver
.
iApply
lft_incl_refl
.
iApply
(
ty_shr_mono
with
"
[]
[]"
);
[|
done
|
|
done
]
.
set_solver
.
iApply
lft_incl_refl
.
-
iExists
_,
[]
.
rewrite
app_nil_r
.
eauto
.
-
iExists
F
,
∅.
iFrame
.
by
iPureIntro
;
set_solver
.
-
iExists
_
,
∅.
iFrame
.
by
iPureIntro
;
set_solver
.
Qed
.
Lemma
eqtype_prod_flatten
E
L
tyl1
tyl2
tyl3
:
...
...
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