How to define subtypes in Isabelle and what do they mean?
Isabelle's subtyping question is very long here . So my simple question is, how can I define the type of B as a subtype of A if I define A as shown below:
typedecl A
By doing this, I would like to make all the operations and relationships defined on A (they don't print here) available to elements of type B.
A more complex example is to define B and C as a subtype of A, such that B and C are disjoint and each element of A is either type B or type C.
thank
0
source to share
1 answer
Isabelle has no subtypes, although some aspects of subtyping can be emulated as described in another thread . If you want to use the same operation for different types, you may need to look into classes like Isabelle.
+1
source to share