OBJ family
The lineage defined by one idea: a program is an equational theory and computation is rewriting. OBJ introduced parameterized programming — theories, views and module expressions — and that module system is the ancestor of Ada, ML and C++ generics; Maude, CafeOBJ and BOBJ extend the logic.
Overview
The OBJ family is the lineage of algebraic specification languages that treat a program as an equational theory and its execution as term rewriting. Joseph Goguen's group at UCSD began it in 1976, and its module system — theories, views, parameterized modules — spread into Ada, ML and C++.
Distinctive traits
- One logical reading of every member: programs are sets of sentences, and computation is deduction in that logic. The semantics is not an add-on.
- Parameterized programming is the family's invention: a module takes a theory as a parameter and a view discharges it, so instantiation is a proof obligation rather than a type substitution.
- User-definable mixfix syntax. Members declare
if_then_else_fior_+_as ordinary operators with precedence and gathering, so a specification can keep the notation of the domain it models. - Order-sorted typing makes subtypes, overloading and coercion one mechanism rather than three features layered on a core.
- Module expressions — summation, renaming, instantiation — make the module system itself an algebra, which is what later languages borrowed piecemeal.
- Members disagree about the logic, not the shape: OBJ3 stays equational, rewriting logic (Maude) and hidden algebra (CafeOBJ, BOBJ) extend it.
Members and what each one changed
| Language | Relationship to OBJ | What it changed |
|---|---|---|
| OBJ | the family root — OBJ3 is its canonical implementation | order-sorted equational logic, mixfix syntax, parameterized programming |
| Maude | OBJ3's equational sublanguage plus rewriting logic | rules as first-class statements, reflection, LTL model checking, the Maude module algebra |
| CafeOBJ | modern successor, JAIST-led | hidden sorts and behavioural specification, institution-based multi-logic semantics, proof scores |
| BOBJ | behavioural extension of OBJ3, written in Java | circular coinductive rewriting, automatic cobases, higher-order modules |
| Eqlog | OBJ3 plus order-sorted unification and backtracking | narrowing as the default semantics, retracts for runtime typing |
| FOOPS | declarative object-oriented layer on OBJ3 | classes, declarative method axioms, a module interconnection language |
The recurring move is keeping the logic while replacing the engine: Maude re-implemented OBJ's equational core with AC-matching automata and added rules; CafeOBJ kept OBJ3's surface and generalised the semantics to a family of institutions; BOBJ kept the surface and changed what equality means. None rewrote the module system — every one of them still instantiates modules with theories and views.
Status
The lineage is live through Maude 3.5.1 (2025) and CafeOBJ 1.6.2 (2024), both actively released. The original OBJ3 is dormant — version 2.06 (2000) was the last release, now BSD-licensed and Common Lisp-hosted — but remains the reference for what the family's syntax and module system mean.
History
The first implementation of initial algebra semantics by term rewriting appeared in OBJ in the mid-1970s; the characteristic syntax arrived in Goguen's 1977 paper. OBJ2 (1985) added Clear-style parameterized modules, OBJ3 (1988) rebuilt the operational semantics on order-sorted rewriting, and BOBJ followed with behavioural specification. Maude's first public release came in 1999 and CafeOBJ was launched as a Japanese-funded consortium project in April 1997.
For the semantic background that all members share, see Goguen and Malcolm's Algebraic Semantics of Imperative Programs, which teaches program semantics entirely in OBJ3.
Languages in this family (6)
Sources & references
- Official sitecseweb.ucsd.edu
- Introducing OBJ — official OBJ3 manual (Goguen, Winkler, Meseguer, Futatsugi, Jouannaud)cseweb.ucsd.edu
- CafeOBJ Project Press Release, 22 April 1997 — UCSDcseweb.ucsd.edu
- Maude Overview — Maude has been influenced in important ways by OBJ3maude.cs.illinois.edu
- Algebraic Semantics of Imperative Programs (Goguen and Malcolm, MIT Press)cseweb.ucsd.edu