How can I represent this set union in Coq?
Domain.png
Can it be like :
Inductive Domain : Set :=
| int : nat -> Domain
| float : float -> Domain
| string : string -> Domain.
Yeah, I suppose ∪ with a dot over it represents a disjoint union, and cases of an Inductive
(or Variant
) give you basically that.
(This should be in a different thread, by the way.)
Last updated: Apr 20 2024 at 03:40 UTC