Free Types: Difference between revisions - ProB Documentation

Free Types: Difference between revisions

Vella (talk | contribs)
No edit summary
Vella (talk | contribs)
m Vella moved page Freetypes to Free Types
(No difference)

Revision as of 12:11, 22 April 2024

Summary

Free types exist in Z and in the Rodin theory plugin and are supported by ProB. You can also define new free types in classical B by adding a FREETYPES clause with free type definitions separated by semicolon.

Here is a definition of an inductive type IntList for lists of integers constructed using inil and icons:

FREETYPES
  IntList = inil, icons(INTEGER*IntList)

What is a Free Type