subtyping - How to define Subtypes in Isabelle and what they mean? -


the question regarding subtyping in isabelle lengthy here. simple question how can define type b subtype of if define below:

typedecl 

by doing make operations , relations defined on (they not printed here) accessible elements of type b.

a bit more complex example define b , c subtype of such b , c disjoint, , every element of either of type b or of type c.

thanks

isabelle not have subtypes, although aspects of subtyping can emulated explained in thread. if want use same operation on different types, may want isabelle's type classes.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -