Skip to content
Snippets Groups Projects
Commit 6d64bcb5 authored by Jan-Oliver Kaiser's avatar Jan-Oliver Kaiser
Browse files

Enable cumulativity for telescopes.

parent 8b17ca72
No related branches found
No related tags found
No related merge requests found
...@@ -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.
...@@ -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].
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment