Zulip Chat Archive
Stream: new members
Topic: Has type
Daniel Dávalos (Dec 05 2023 at 14:59):
How can I define if an element has a type or ?
I want to write something this
def preset {\alpha : Type} {\beta : Type} {\gamma : Type} (t : ? ) : Set \gamma :=
if (t : \alpha)? then do_something t else do_else t
Martin Dvořák (Dec 05 2023 at 14:59):
Last updated: Dec 20 2023 at 11:08 UTC