How to define a subformula of an inductively defined type in Agda?
问题 I'm trying to define a simple predicate to determine if a formula is a subformula of a given formal over a simple inductively defined syntax. I'm running into a few, presumably simple, problems. (i) I'd rather use a parameterized module with a given type A. How can one import the information that A is a set, in the sense that A has decideable equality? If this can't be done, what are some workarounds? This is why I have Nat instead. (ii) Is the t1 ≡ (t2 // t3) (and similairly defined)