Polymoprhic Typing Rule
We will say a monomorphic type
In simpler terms, think of a polymorphic type like a template and a monomorphic type like a filled-out form of that template. The process described is like saying, “To prove that this filled-out form is based on a specific template, show me how you substituted the placeholders in the template with actual information to get this form.
Signatures
Polymorphic constant signatures:
Polymorphic Unary Primitive Operators:
Polymorphic Binary Primitive Operators:
Rules
Constants:
Variables:
Unary Primitive Operators:
Binary Prmitive Operators:
If then else rule:
Application rule: