------------------------------ MODULE HumanLife ------------------------------ EXTENDS Naturals, Sequences CONSTANTS MaxAge \* Maximum age humans can live Events \* Set of possible events/actions in a human life States \* Set of possible states in a human life VARIABLES age \* Current age of the individual state \* Current state of the individual (e.g., childhood, adulthood, old age) history \* Sequence of past events in the individual's life Init == /\ age = 0 /\ state = "childhood" /\ history = <<>> Next == /\ age < MaxAge /\ \/ state = "childhood" /\ ... \/ state = "adulthood" /\ ... \/ state = "old age" /\ ... ===============================================================================