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
6d64bcb5
Commit
6d64bcb5
authored
2 years ago
by
Jan-Oliver Kaiser
Browse files
Options
Downloads
Patches
Plain Diff
Enable cumulativity for telescopes.
parent
8b17ca72
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/telescopes.v
+9
-0
9 additions, 0 deletions
tests/telescopes.v
theories/telescopes.v
+1
-0
1 addition, 0 deletions
theories/telescopes.v
with
10 additions
and
0 deletions
tests/telescopes.v
+
9
−
0
View file @
6d64bcb5
...
@@ -79,3 +79,12 @@ Example tele_arg_notation_2_dep : [tele (b : bool) (_ : if b then nat else False
...
@@ -79,3 +79,12 @@ Example tele_arg_notation_2_dep : [tele (b : bool) (_ : if b then nat else False
assert_succeeds
exact
[
tele_arg
true
;
0
]
.
assert_succeeds
exact
[
tele_arg
true
;
0
]
.
assert_succeeds
refine
[
tele_arg
true
;
0
]
.
assert_succeeds
refine
[
tele_arg
true
;
0
]
.
Abort
.
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.
theories/telescopes.v
+
1
−
0
View file @
6d64bcb5
...
@@ -2,6 +2,7 @@ From stdpp Require Import base tactics.
...
@@ -2,6 +2,7 @@ From stdpp Require Import base tactics.
From
stdpp
Require
Import
options
.
From
stdpp
Require
Import
options
.
Local
Set
Universe
Polymorphism
.
Local
Set
Universe
Polymorphism
.
Local
Set
Polymorphic
Inductive
Cumulativity
.
(** Without this flag, Coq minimizes some universes to [Set] when they
(** Without this flag, Coq minimizes some universes to [Set] when they
should not be, e.g. in [texist_exist].
should not be, e.g. in [texist_exist].
...
...
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