Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
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
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
Thibaut Pérami
stdpp
Commits
b0065fea
Commit
b0065fea
authored
2 years ago
by
Jan-Oliver Kaiser
Browse files
Options
Downloads
Patches
Plain Diff
Move universe-related telescope tests closer together.
parent
8eb17fc8
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
tests/telescopes.v
+17
-15
17 additions, 15 deletions
tests/telescopes.v
with
17 additions
and
15 deletions
tests/telescopes.v
+
17
−
15
View file @
b0065fea
...
...
@@ -2,11 +2,28 @@ From stdpp Require Import tactics telescopes.
Local
Unset
Mangle
Names
.
(* for stable goal printing *)
Section
universes
.
(** This test would fail without [Unset Universe Minimization ToSet] in [telescopes.v]. *)
Lemma
texist_exist_universes
(
X
:
Type
)
(
P
:
TeleS
(
λ
_
:
X
,
TeleO
)
→
Prop
)
:
texist
P
↔
ex
P
.
Proof
.
by
rewrite
texist_exist
.
Qed
.
(** [tele_arg t] should live at the same universe
as the types inside of [t] because [tele_arg t]
is essentially just a (dependent) product.
*)
Definition
no_bump
@
{
u
}
(
t
:
tele
@
{
u
})
:
Type
@
{
u
}
:=
tele_arg
@
{
u
}
t
.
(* Assert that telescopes are cumulatively universe polymorphic.
See https://gitlab.mpi-sws.org/iris/iris/-/issues/461
*)
Section
cumulativity
.
Monomorphic
Universes
Quant
local
.
Monomorphic
Constraint
local
<
Quant
.
Example
cumul
(
t
:
tele
@
{
local
})
:
tele
@
{
Quant
}
:=
t
.
End
cumulativity
.
End
universes
.
Section
accessor
.
(* This is like Iris' accessors, but in Prop. Just to play with telescopes. *)
Definition
accessor
{
X
:
tele
}
(
α
β
γ
:
X
→
Prop
)
:
Prop
:=
...
...
@@ -47,12 +64,6 @@ Notation "'[TEST' x .. z , P ']'" :=
(
x
binder
,
z
binder
)
.
Check
[
TEST
(
x
y
:
nat
),
x
=
y
]
.
(** [tele_arg t] should live at the same universe
as the types inside of [t] because [tele_arg t]
is essentially just a (dependent) product.
*)
Definition
no_bump
@
{
u
}
(
t
:
tele
@
{
u
})
:
Type
@
{
u
}
:=
tele_arg
@
{
u
}
t
.
(** [tele_arg ..] notation tests.
These tests mainly test type annotations and casts in the [tele_arg]
notations.
...
...
@@ -79,12 +90,3 @@ Example tele_arg_notation_2_dep : [tele (b : bool) (_ : if b then nat else False
assert_succeeds
exact
[
tele_arg
true
;
0
]
.
assert_succeeds
refine
[
tele_arg
true
;
0
]
.
Abort
.
(* Assert that telescopes are cumulatively universe polymorphic.
See https://gitlab.mpi-sws.org/iris/iris/-/issues/461
*)
Section
Cumulativity
.
Monomorphic
Universes
Quant
local
.
Monomorphic
Constraint
local
<
Quant
.
Example
cumul
(
t
:
tele
@
{
local
})
:
tele
@
{
Quant
}
:=
t
.
End
Cumulativity
.
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