anoma / juvix

A language for intent-centric and declarative decentralised applications
https://docs.juvix.org
GNU General Public License v3.0
449 stars 54 forks source link

Positivity checker false positive #3058

Closed janmasrovira closed 7 hours ago

janmasrovira commented 6 days ago

The following should not pass the positivity test

module box;

type Box (A : Type) := mkBox A;

type P (A : Type) := mkP : (Box (P A) -> P A) -> P A;