Sign In

Communications of the ACM


Fiction as Model Theory

View as: Print Mobile App Share:
Robin K. Hill, University of Wyoming

People like to play with physical and social laws and regularities, to construct imaginary universes, to step into such universes and look around. We enjoy games, drama, books, and other renderings of such fictional universes. We find them fun. People like to make models. These are commonly models close to our own world with carefully selected critical differences. But we can only inhabit a universe that gives us ground to stand on—or its equivalent.

Those of us familiar with mathematical logic or theoretical computer science know that models are important to formal theory, where a theory is simply symbols formed into axioms together with all the statements that follow from them, and that an interpretation is a domain, or set of objects, along with some way of associating those objects with the appropriate components of the statements. And we know that an interpretation that makes all the axioms and other statements true, that is, a model (in its mathematical logic sense), demonstrates consistency of the theory. Almost any mathematical logic text will provide a thorough treatment of model theory. See Boolos and Jeffrey 1974 for an account that does not gloss over the details, or Kleene 1967 for an authoritative account that lets no detail escape.

It looks like fiction adheres to model theory. Both, in effect, present an artificial world, a theory, by proposing rules that give its objects and properties and their associations, their nature and relationships. This activity is called—especially in science fiction—"worldbuilding," and studied in literature as narrative theory. Those theories come to life through interpretations. This sense of "interpretation," as defined above, is not the theme or literary contribution, as the word might be used in literature, but that sense might also apply as we consider the models of fiction.

Let's consider some examples of theories and interpretations induced by worlds.

Thistown and Thattown

Suppose an author wants to write the story of Thistown and Thattown, each of which lies on the River Flowind, 10 miles long from headwaters to confluence. Debbie and Darcie, young women who are former war nurses live in Thistown, 47 miles as the crow flies from Thattown. Darcie has never seen a hypodermic needle, and doesn't know how to give her elderly son a shot... Inconsistencies abound! The interpretation given by the particulars of the story, with its conflicting measures of distance and ages and other issues, does not bear out the theory embodied in our understanding of way the world works. This author is in deep trouble, and we abandon him to his fate.

Numbers xx, yy, and zz

Here is the theory:

xx < yy
(xx - yy) > zz
yy > (zz + xx)

No interpretation will satisfy that, because no number xx (under the standard interpretations of '>' and '<') has the properties of being both (1) > yy + zz and (2) < yy + zz, each of which is derivable from the theory. This is a straightforward example, on the scale of a toy, of a theory with no model (in the domain of numbers), because it is not consistent.

Presburger Arithmetic

A much more important exemplar is Presburger Arithmetic, consistent as shown by its model in the natural numbers ℕ. This matters. This tells us that our conception of additive arithmetic is solid, meaningful, and able to generate dependable truth.

Motley Properties

Suppose we want to write an odd story in which some possessions have the peculiar property that their size increases as their color gets darker, and not only that, but some integer encoding of the name of the owner decreases as the color gets darker. We are relying on a theory about a set S1 of objects with properties size and color, and a set S2 of owners with property name and its encoding, and a set of relations among those objects. What if S1 is automobiles and S2 is people, the integer encoding is pretty much anything, and so forth? No good—we know plenty of counter-examples to the claim that large cars are darker in color than relatively small cars, not to mention counterexamples to the bizarre bit about the names, under any encoding. But (as the word "interpretation" implies) there might be other domains and associations that can be made to fit the system defined by the statements above. (If you the reader are waiting for a clever interpretation that provides a model... sorry.)

A work of fiction is consistent when the objects, events, and relationships do not strike discords; when we, the readers, can participate via imagination in what's going on, without restraint, comfortably and coherently; when the inferences to which we are led align with what we already understand. Enduring works of fiction from Greek tragedies to "King Lear" and beyond show the power of derivation of future circumstances from past circumstances. Though a foolish consistency be the hobgoblin of little minds, a proven consistency be the rock upon which reasoning rests, the reasoning that allows us to make sense of the proposed world, to fill in its blanks.

In the great bulk of fiction where the ambient universe is our own, with the familiar physics and social norms, biology and temporal cycles, the necessity for worldbuilding shrinks to the negligible. The reader of fiction assumes, sensibly enough, that the imaginary world aligns with our general knowledge except as specified otherwise. That's why science fiction must take care to specify otherwise. In the sci-fi writer's handbook by Ochoa and Osier (1993), as the authors provide detailed frameworks of scientific facts, they note that science fiction is "more than anything else, an intense examination and manipulation of knowledge: scientific, historical, and political." That manipulation, for specification of a world in "hard" sci-fi (respecting our laws of physics), requires a lot of preliminary work, says Michael Brotherton, author and astronomer, requiring, for instance, complex backtracking through a spreadsheet to adjust physical parameters to the gravity of the chosen locale. (We bypass the popular science fiction and fantasy that gain wild popular appeal in spite of shaky foundations in any coherent science, real or imagined, acknowledging that audiences are often content not to push the interpretation too far.)

Authors that set stories in the mundane world, identical to ours except for the fictional characters and local events in focus, are following the common practice described by the narrative theorist Marie-Laure Ryan as the accessibility relations "identity of properties" and "compatibility of inventory" (Ryan 1991). In the crime stories and mysteries that constitute another genre of popular fiction, other standards regarding circumstances, coincidences, and revelations are suggested (Auden 1948). They would serve as axioms; they would become part of the theory, and a work based on that theory would be assessed by how faithful is the interpretation. Note that in murder mystery fiction, the adherence to reality in the background is offset by the departure from reality in the formula. No murder, as far as I can tell, has ever—ever!—been committed in a closed society made up of intriguing suspects where the detective forges through misleading clues to a revelation that comes as a complete surprise. The thousands of novels that we turn out under that paradigm may confuse posterity about life in our society.

Computer games also rely heavily on imaginary built worlds, but the player probes a closed computable system rather than a messy world with indeterminate boundaries. As in hacking, where the agent tries to guess the rules of a system in order to gain access to resources, computable systems restrict the nature of the blanks to fill in. Consider models in games versus models in fiction as illustrated by the detective board game Clue. In a round of Clue, the killer is found through repeated application of a single propositional calculus inference rule, Resolution, which constitutes the theory, a rather impoverished theory. In a mystery novel, the protagonists move through space and time, secondary stories and events, development of character, and sly presentation of hypothetical models incorporating identity of the perpetrator that seem plausible only to be undermined by a fact (a newly exposed proposition), exploiting the much richer interpretation afforded by the mundane world as a theory.

If we are to take the analogy seriously, we must test it by applying the components of model theory to fiction, adapting the definition given by mathematical logic.

  1. In fiction, where is the theory? The story is not the theory. The theory is the assumptions that underlie the story, serving as axioms, and that may remain largely tacit, as backstory for characters or as the specifications of worldbuilding. A good author does not weary the reader with direct fulsome accounts of the worldbuilding or backstory (Klems 2013), but allows the specifications to emerge as necessary. For mundane fiction, the theory is our universe itself, commonly called "the world," or rather, the theory the grounds it, known to us only in bits and pieces.
  2. In fiction, what is the domain? Anything goes; that is, the set of possible objects may be drawn from the familiar, including people, forces, events, artifacts, or a domain of aliens and attendant objects, or an unknown domain that contains such things as brillig and toves.
  3. What is the interpretation? The interpretation is the elements of the story—the manifestation of the system or theory in terms of the particulars from the domain and how they behave. Although revealed dynamically, the interpretation is static, an association or assignment that fulfills the (tacit) theory, so it's not the narration itself. The narration is the vehicle of interpretation.
  4. What is proven to be true? Any events, characters or other fictional elements of the interpretation that are derived from the theory (the assumed or built world) are granted the warrant of truth, fictional truth anyway. Although lively discussion continues about exactly what it means, most narrative theorists accept that statements such as "Sherlock Holmes lived at 221B Baker Street" can be called true.
  5. What enjoys the consistency entailed? The reader! In fiction, the security of a consistent foundation provides the groundwork for appreciation. Fiction not only grounds the narrative in the background theory, but, conversely, it can postulate, through an interpretation presented with a conviction of its truth, axioms of the background theory, as "Lord of the Flies" reveals unsavory laws of human behavior.

Both fiction and formal theory require consistency, secured by models, which are interpretations that make the constituent statements true in the appropriate world. Such a result helps tie formality to reality. So what is the real affordance provided by consistency; what does it allow us to do? Consistency allows us to tell what's going on, and it allows us to figure out more about what's going on. In mathematical logic, the mechanisms of formal systems solve our problems. In the real world, sometimes fiction, conscientiously contemplated, solves our problems.


Auden, W.H. 1948. "The Guilty Vicarage: Notes on The Detective Story, By an Addict." Harper's Magazine 196[5]:406-12.

Boolos, George S. and Jeffrey, Richard. 1974. Computability and Logic. Cambridge University Press.

Brotherton, Michael. 2016. Personal communication, December 5th.

Consistency. (2016, December 24). In Wikipedia, The Free Encyclopedia. Retrieved December 29, 2016, from

Kleene, Stephen. 1967. Mathematical Logic. John Wiley & Sons, Inc.

Klems, Brian. 2013. "How to Weave Backstory Into Your Novel Seamlessly" in editor's blog "The Writer's Dig." Writer's Digest online.

Ochoa, George and Osier, Jeffrey. 1993. The Writer's Guide to Creating a Science Fiction Universe. Writer's Digest Books.

Ryan, Marie-Laure. 1991. "Possible Worlds, Artificial Intelligence, and Narrative Theory." Indiana University Press.


Robin K. Hill is adjunct professor in the Department of Philosophy, and in the Wyoming Institute for Humanities Research, of the University of Wyoming. She has been a member of ACM since 1978.


Luther Branting

Pennington N, Hastie R. (1992) proposed an influential theory that jury decisions consist of a choice between competing narratives (e.g., the prosecution or plaintiff's and the defendant's) based on the degree of consistency between each narrative and the facts in evidence. In the terminology of your blog, I think that this would be like choosing the theory that best accords with the model. A complication is that the model itself is in dispute with, in general, inclusion of key facts in the model dependent on the credibility of the witnesses who testify to them.

A related idea is that precedent-based legal argumentation consists of choosing the most "coherent" legal theory of a case (McCarty 1997). In this approach, the facts of a case are taken as given (a reasonable assumption in an appellate setting in which findings of fact at the trial level are taken as conclusive unless they is a complete absence of any evidence that could be taken as supporting them) and theories are alternative ways of characterizing these facts in terms of legal concepts. What constitutes "coherence" in this context is a matter of dispute.

Both these examples involve model/theory agreement, but the agreement is more a matter of plausibility, likelihood, or parsimony than logical consistency.

McCarty, T. (1997). Some arguments about legal arguments, Proceedings of the Sixth International Conference on Artificial Intelligence and Law (pp.215-224).

Pennington, N., Hastie, R. (1992). Explaining the Evidence: Tests of the Story Model for Juror Decision Making Journal of Personality and Social Psychology. 62: 189-206.

Pennington, N., & Hastie, R. (1993). The story model for juror decision making. In R. Hastie (Ed.), Inside the juror: The psychology of juror decision making (pp. 192-221). New York: Cambridge University Press.

Robin Hill

Thank you, Dr. Branting, for mentioning legal reasoning, a discipline that came up a few times in my research, but upon which I myself am not qualified to comment. Your analysis suggests another facet of the reading of fiction (or history) --- that the reader may negotiate an agreement between model and theory over several iterations of adjustment to one or the other.

CACM Administrator

The following letter was published in the Letters to the Editor in the March 2017 CACM (
--CACM Administrator

Robin K. Hill raised an interesting point in her blog post "Fiction as Model Theory" that fictional characters and worlds need to follow certain rules rules that can be formalized and verified for consistency. Fiction in general, and science fiction in particular, has always been of considerable interest to scholarly researchers. What was notable in Hill's post was her suggestion of using formalism in rather unconventional domains domains not traditionally identified with computation-related methods.

I have personally taken a similar path and, together with my colleagues, discovered the utility of formalizing ideas from unconventional domains. These range from modeling complex living environments in self-organizing arrays of motion sensors to identifying unexpected emergent patterns in the spread of disease in large-scale human populations or even in cousin marriages.(1) Likewise, I have found that formal specification can prove useful in terms of representing community-identified cognitive development of scholarly researchers measured as a function of their citation indices.(2)

Could a longer work of fiction, say, a novel or novella, benefit from such treatment? After all, well-written novels often invent their own internally consistent landscapes. They also often involve a rather complex interplay of characters, multiple plotlines, backstories, and conflicts. Scholarly researchers have even identified social networks of fictional characters influencing major events in these make-believe worlds. It is indeed the interplay of characters in conflict that makes for a potential page-turner or, at least, a novel worth reading.

While fiction authors have developed their own instruments, ranging from Randy Ingermanson's so-called "snowflake method" to Shawn Coyne's "story grid" for editors, what is of particular interest to me is the recurrence of self-similar patterns in well-written fiction. Snowflakes consist of fractals, and Coyne has identified similar patterns in well-written novels repeating in sub-scenes he calls "beats" and in scenes, scene sequences, and even the Aristotelian three-act structure; that is, same pattern, different scales. The "story grid" method performs a quantitative dissection of fiction, allowing editors to help create generally engaging fiction.

Fractals, or mathematical sets repeating at multiple scales, appear frequently in nature. Examples range from Romanesco broccoli to river basins and ferns. Prominent identification of fractal-related scholarly work includes the Mandelbrot set, Serpinski's carpet, Koch Snowflake, Julia set, strange attractor, and unified mass central triangle. We can thus infer well-written works of fiction might be better modeled through a combination of formal specification and fractals. Formalism could thus be useful even for people associated with the novel-publishing industry.

Muaz A. Niazi
Islamabad, Pakistan


(1.) Akhtar, N., Niazi, M, Mustafa, F., and Hussain, A. A discrete event system specification (DEVS)-based model of consanguinity. Journal of Theoretical Biology 285, 1 (Sept. 2011), 103112.

(2.) Hussain, A. and Niazi, M. Toward a formal, visual framework of emergent cognitive development of scholars. Cognitive Computation 6, 1 (Mar. 2014), 113124.

Displaying all 3 comments

Sign In for Full Access
» Forgot Password? » Create an ACM Web Account