Skip to content

Instantly share code, notes, and snippets.

@donovancrichton
Created February 24, 2022 09:35
Show Gist options
  • Save donovancrichton/ead684b114057218f588fae45080e7c2 to your computer and use it in GitHub Desktop.
Save donovancrichton/ead684b114057218f588fae45080e7c2 to your computer and use it in GitHub Desktop.
Not strictly positivite when using an equality proof inside a data type that has a forward declaration
%default total
data Foo : Type
-- comment out the next line to have things type check.
data Bar : Foo -> Foo -> Type
data Foo : Type where
MkFoo : Foo
data Bar : Foo -> Foo -> Type where
MkBar : {f : Foo} -> {prf : f = MkFoo} -> Bar f f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment