Abstract data type as an algebra
Builds on Many-sorted algebraInitial algebra semanticsHomomorphismIdentity
Definition
Let be a set of sorts and let be an -sorted signature. An algebraic specification is a pair , where is a set of equations between -terms with variables, each side of the same sort. A model of is a many-sorted -algebra that satisfies every equation of . A model is initial if for every model there is exactly one homomorphism . The abstract data type specified by is the class of initial models of .
Remarks
Initial models exist, and any two of them are isomorphic, so the abstract data type is one isomorphism class of algebras; this is the initial algebra semantics of the specification. An initial model has two features. Every element is the value of a ground term ("no junk"), and two ground terms are equal in it only if proves them equal ("no confusion").
Example: sorts and ; constants and ; operations and ; equations and . The model with carriers and is initial. Each element is the value of a ground term, and two ground terms with the same value are equal by the equations.
Non-example: the model with one element in each sort satisfies but is not initial. A homomorphism from it to the model above would send its single Boolean element to both and , which is impossible.
Reading path
To understand this page from the ground up, read these 5 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Homomorphism concept
- Identity concept
- Initial algebra semantics concept
- Many-sorted algebra concept
- Abstract data type as an algebra definition
Further reading
About this page
| Tag | QPT5H6MM99 |
|---|---|
| URI | m2://QPT5H6MM99 |
| Kind | definition |
| Writing | W0 stub |
| MSC | 68Q65, 08A70 |
| Defines | Abstract data type as an algebra |
| Uses | Many-sorted algebra, Initial algebra semantics, Homomorphism, Identity |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.