Say I define a couple of new types in Lean 4:
inductive A : Typeinductive B : Typeinductive C : Type
I want a predicate that returns true
if the provided parameter's type is A
, and false
otherwise. Something like this:
boolean myPredicate ( provided : Type ) { if typeof ( provided ) == A then return TRUE; else return FALSE; }
How should I proceed?