Wondering if this is a known issue or whether I should report it on github.
Loading the following code in coqide, using coq 8.9.1 I get a stack overflow on the last line.
Definition Not (x : Type) := x -> False.
Record Apply (f : Type -> Type) (a : Type) : Type :=
MkApply { runApply : forall b, b = a -> f b }.
Inductive Oops : Type :=
MkOops : Apply Not Oops -> Oops.
This topic was moved here from #Coq users > Stack overflow during positivity checking (?) by Karl Palmskog.
moving to this stream where stack overflows and similar things are more frequently discussed
This gives a universe inconsistency error on master, FWIW.
I also get the universe inconsistency when inlining the definition of Apply.
Edit: or rather I used to in a situation with no strict positivity issue, with the strict positivity issue I get that error first.
gallais has marked this topic as resolved.
Last updated: Sep 09 2024 at 05:02 UTC