AI Wiki中文/EN

Temporal logic: possible completion and inevitable completion

时序逻辑

Check infinite CTL paths in a finite graph, derive least and greatest fixed points, and test path quantifier order.

On this pageIntuitionMathematics & methodImplementationLimitationsExercisesResearch connections

A job can remain completable and still never complete

A hypothetical job controller has five states. A queued job can wait or start running. A running job can finish or request a retry. A retry returns it to the queue. Completion is represented by an explicit self-loop: after finishing, the job stays finished. An isolated state also loops forever, but cannot be reached from the queue.

StatePossible next statesLabels that are true
queuedqueued, runningsafe
runningdone, retrysafe
retryqueuednone
donedonesafe, done
isolatedisolatednone

The label safe is a chosen property of this teaching model: queueing, running and completion meet a local condition; retry does not. It is not a claim that retry is inherently dangerous.

From queued, a completion path exists: queued → running → done → done → …. Yet the execution queued → queued → queued → … is also allowed. Even if waiting is removed, queued → running → retry → queued → … can avoid completion indefinitely. “Completion remains possible” therefore differs from “completion is inevitable.”

Temporal logic makes such statements precise. It talks about how propositions hold across execution steps, including branches and repetition. A finite state graph can represent infinitely many steps and paths. The computation-tree view and the total-transition assumption appear explicitly in Clarke and Emerson’s original manuscript. Original semantics, printed p7, PDF page 10.

A state is a position; a path chooses an entire execution

Use a finite, nonempty Kripke structure M=(S,R,L)M=(S,R,L). SS is the state set, RR lists permitted next steps, and L(s)L(s) lists the atomic propositions true at state ss. We require a total transition relation: every state has at least one successor. Here “total” does not mean that every state is connected to every other state.

M=(S,R,L),0<∣S∣<∞,R⊆S×S,∀s∈S ∃t∈S:(s,t)∈R,π=s0s1…, (si,si+1)∈R.M=(S,R,L),\quad0<|S|<\infty,\quad R\subseteq S\times S,\quad\forall s\in S\ \exists t\in S:(s,t)\in R,\quad\pi=s_0s_1\ldots,\ (s_i,s_{i+1})\in R.

A path π\pi is infinite and may repeat states. State formulas ask about one state, while path formulas ask about one selected execution. Labels give a complete truth valuation for this model: an atom absent from a state’s labels is false there. That is a modelling choice, unlike treating an incomplete knowledge base’s missing fact as unknown.

On a path at position ii, next XX moves one transition forward; eventually FF permits any finite delay; always GG covers every later position. Strong until UU requires its right operand to become true, with its left operand holding strictly before that point:

π,i⊨Xφ⟺π,i+1⊨φ,π,i⊨Fφ⟺∃k≥i:π,k⊨φ,π,i⊨Gφ⟺∀k≥i:π,k⊨φ,π,i⊨φUψ⟺∃k≥i:(π,k⊨ψ ∧ ∀j∈[i,k):π,j⊨φ).\begin{aligned}\pi,i\models X\varphi&\Longleftrightarrow\pi,i+1\models\varphi,\\\pi,i\models F\varphi&\Longleftrightarrow\exists k\geq i:\pi,k\models\varphi,\\\pi,i\models G\varphi&\Longleftrightarrow\forall k\geq i:\pi,k\models\varphi,\\\pi,i\models\varphi U\psi&\Longleftrightarrow\exists k\geq i:\bigl(\pi,k\models\psi\ \land\ \forall j\in[i,k):\pi,j\models\varphi\bigr).\end{aligned}

The present position counts for FF, GG and UU. If ψ\psi already holds, φUψ\varphi U\psi holds regardless of φ\varphi now. If φ\varphi holds forever but ψ\psi never occurs, strong until fails. These steps are not milliseconds; the model supplies no clock or deadline. Clarke, temporal-logic slides 6–13.

Linear temporal logic, LTL, builds formulas along a single path. In system verification, its path formula is usually required on every path from the designated starting state. Computation tree logic, CTL, allows path quantifiers inside state formulas. EE chooses some path from the state currently being evaluated; AA requires every such path:

M,s⊨Eθ⟺∃π from s:π,0⊨θ,M,s⊨Aθ⟺∀π from s:π,0⊨θ.M,s\models E\theta\Longleftrightarrow\exists\pi\text{ from }s:\pi,0\models\theta,\qquad M,s\models A\theta\Longleftrightarrow\forall\pi\text{ from }s:\pi,0\models\theta.

In CTL each temporal operator is paired with a path quantifier: EXφEX\varphi, E[φUψ]E[\varphi U\psi], EGφEG\varphi, and their universal counterparts. Nested CTL state formulas can choose a new path at a later state. In AG(EF done)AG(EF\,done), every reachable state must have some route to completion; that route need not be the continuation chosen by the execution that reached the state. The LTL path condition G(F done)G(F\,done) requires a done occurrence at or after every position of that same execution, equivalently infinitely many occurrences. In this example, done remains true forever once reached, so this condition reduces to eventual completion. Clarke, slides 14–18.

Our core uses atoms, true, negation, conjunction, EXEX, EUEU and EGEG. The helper functions below expand the other operators into that core:

AXφ≡¬EX¬φ,EFφ≡E[⊤Uφ],AFφ≡¬EG¬φ,AGφ≡¬EF¬φ,A[φUψ]≡¬E[¬ψ U (¬φ∧¬ψ)]∧¬EG¬ψ.\begin{aligned}AX\varphi&\equiv\neg EX\neg\varphi,\\EF\varphi&\equiv E[\top U\varphi],\\AF\varphi&\equiv\neg EG\neg\varphi,\\AG\varphi&\equiv\neg EF\neg\varphi,\\A[\varphi U\psi]&\equiv\neg E[\neg\psi\ U\ (\neg\varphi\land\neg\psi)]\land\neg EG\neg\psi.\end{aligned}

The two parts of the last line rule out different failures: a finite prefix reaches a state where the left condition fails before the right condition arrives; or a path avoids the right condition forever. Omitting the second part quietly turns strong until into a weaker requirement. The operator reductions are given in Clarke’s slide 18.

Quantifier order cannot be exchanged. Consider two additional, fully specified graphs, with proposition pp true only at the indicated state:

Graph and initial stateAG(EF p)AG(EF\,p)EF(AG p)EF(AG\,p)
Start at a; a → a or b, b → a; pp only at btruefalse
Start at s; s → g or b, g → g, b → b; pp only at gfalsetrue

In the first graph, reaching pp remains possible everywhere, but no state guarantees pp forever: b must return to a. In the second, a path reaches g and stays there, but another path reaches b and loses every possibility of pp. These are concrete counterexamples to either implication between the two displayed CTL properties, not a proof that two arbitrary temporal languages have the same or different expressive power.

Grow the until set; shrink the globally set

Let ⟦φ⟧\llbracket\varphi\rrbracket be the set of states satisfying φ\varphi. Define the existential predecessor operation Pre⁡(Z)={s∈S:∃t∈Z,(s,t)∈R}\operatorname{Pre}(Z)=\{s\in S:\exists t\in Z,(s,t)\in R\}. Once smaller formulas have been evaluated, Boolean connectives are set operations and EXEX is one predecessor computation.

For until, start with no states and grow the least fixed point. Write P=⟦φ⟧P=\llbracket\varphi\rrbracket and Q=⟦ψ⟧Q=\llbracket\psi\rrbracket:

⟦E[φUψ]⟧=μZ.(Q∪(P∩Pre⁡(Z))),Z0=∅,Zi+1=Q∪(P∩Pre⁡(Zi)).\llbracket E[\varphi U\psi]\rrbracket=\mu Z.\bigl(Q\cup(P\cap\operatorname{Pre}(Z))\bigr),\qquad Z_0=\varnothing,\quad Z_{i+1}=Q\cup(P\cap\operatorname{Pre}(Z_i)).

Every state in QQ enters immediately. A state in PP enters when it has a successor already known to reach QQ correctly. Inductively, each added state has a finite witness prefix. Conversely, a shortest valid prefix has no repeated state before its goal, so its starting state enters after finitely many rounds. Totality ensures that this prefix can be extended to an infinite path. Starting from all states would allow unsupported loops with no eventual goal.

For globally, start with every state and shrink the greatest fixed point:

⟦EGφ⟧=νZ.(P∩Pre⁡(Z)),Z0=S,Zi+1=P∩Pre⁡(Zi).\llbracket EG\varphi\rrbracket=\nu Z.\bigl(P\cap\operatorname{Pre}(Z)\bigr),\qquad Z_0=S,\quad Z_{i+1}=P\cap\operatorname{Pre}(Z_i).

Remove states that do not satisfy φ\varphi or cannot continue within the current set. At the fixed point, every remaining state satisfies φ\varphi and has a successor still inside, so successors can be chosen indefinitely. Conversely, all states on any infinite φ\varphi path survive every round by induction. The result is therefore exactly the states admitting such a path. Whenever such a path exists in a finite graph, there is a witness consisting of a finite prefix followed by a repeating cycle, often called a lasso. Starting from the empty set would discard every such cycle. Clarke, fixed-point slides 2–11; original manuscript, printed pp9–10.

Both transformers are monotone in ZZ. The until sequence grows and the globally sequence shrinks. Each strict change adds or removes at least one of N=∣S∣N=|S| states. There are at most NN changes and one final equality check. This is a termination argument for finite inputs, with no fairness or bounded execution-length assumption.

The complete program accepts a nonempty graph dictionary, with nonempty string state names and list/tuple successor lists. Every listed successor must be a declared state; deadlocks are rejected. labels must have exactly the same state keys and list/tuple collections of nonempty proposition names. Duplicate edges and labels have set semantics. An atomic proposition not appearing in any label is false everywhere; the API has no separately declared proposition vocabulary to catch that spelling mistake.

Formula syntax uses exact tagged tuples. ('p', 'done') is an atom, ('true',) is true, and the core tags are not, and, ex, eu and eg, with the arities shown by the helpers. AF(...) returns expanded core tuples; the raw tag ('af', ...) is not accepted. The explicit compilation stack checks the formula and assigns postorder IDs without relying on Python recursion. Reusing a tuple in two places still counts as two occurrences in the expanded formula tree.

check returns the complete satisfying-state set. It is global model checking; to ask about queued, test membership in that set. An empty satisfying set means that no state satisfies the formula, even though this total graph has infinite paths from every state. It does not return a path certificate. iterations records each fixed-point occurrence’s postorder ID, operator and successive set sizes, including the initial size and final repeated size. Those sizes explain the work but do not identify the states of a witness. Every predecessor call deliberately scans all normalized edges, so edge_tests counts edge visits exactly.

# Python 3.10+; standard library only. Every path is infinite.
def name(value):
    if type(value) is not str or not value:
        raise ValueError('names must be nonempty strings')
    return value


def names(value):
    if type(value) not in (list, tuple):
        raise ValueError('use a list or tuple of names')
    return frozenset(name(x) for x in value)


TRUE = ('true',)
def P(p): return ('p', p)
def Not(f): return ('not', f)
def And(f, g): return ('and', f, g)
def EX(f): return ('ex', f)
def EU(f, g): return ('eu', f, g)
def EG(f): return ('eg', f)
# These helpers construct core syntax; validation occurs in check().
def AX(f): return Not(EX(Not(f)))
def EF(f): return EU(TRUE, f)
def AF(f): return Not(EG(Not(f)))
def AG(f): return Not(EF(Not(f)))
def AU(f, g):
    return And(Not(EU(Not(g), And(Not(f), Not(g)))), Not(EG(Not(g))))


class CTL:
    def __init__(self, graph, labels):
        if type(graph) is not dict or not graph:
            raise ValueError('graph must be a nonempty dictionary')
        states = frozenset(name(s) for s in graph)
        edges = {}
        for s, raw in graph.items():
            targets = names(raw)
            if not targets or not targets <= states:
                raise ValueError('each state needs declared successors; no deadlocks')
            edges[s] = targets
        if type(labels) is not dict or set(labels) != states:
            raise ValueError('labels must contain exactly the state keys')
        self.states = states
        self.edges = edges
        self.labels = {s: names(labels[s]) for s in states}

    @staticmethod
    def _compile(formula):
        # Explicit stack, postorder IDs. Shared tuples are expanded as a tree.
        arity = {'true': 0, 'p': 0, 'not': 1, 'and': 2,
                 'ex': 1, 'eu': 2, 'eg': 1}
        todo, values, nodes = [(formula, False)], [], []
        while todo:
            f, ready = todo.pop()
            if not ready:
                if type(f) is not tuple or not f or type(f[0]) is not str:
                    raise ValueError('a formula must be a tagged tuple')
                tag = f[0]
                if tag not in arity or len(f) != (2 if tag == 'p' else 1 + arity[tag]):
                    raise ValueError('unknown operator or wrong arity')
                if tag in ('true', 'p'):
                    node = (tag,) if tag == 'true' else (tag, name(f[1]))
                    nodes.append(node)
                    values.append(len(nodes) - 1)
                else:
                    todo.append((f, True))
                    todo.extend((child, False) for child in reversed(f[1:]))
            else:
                k = arity[f[0]]
                children = tuple(values[-k:])
                del values[-k:]
                nodes.append((f[0],) + children)
                values.append(len(nodes) - 1)
        return nodes

    def check(self, formula):
        nodes = self._compile(formula)
        satisfied, iterations = [], []
        calls = edge_tests = 0

        def predecessor(target):
            nonlocal calls, edge_tests
            calls += 1
            out = set()
            for s, successors in self.edges.items():
                for t in successors:
                    edge_tests += 1
                    if t in target:
                        out.add(s)
            return frozenset(out)

        for index, f in enumerate(nodes):
            tag = f[0]
            if tag == 'true':
                out = self.states
            elif tag == 'p':
                out = frozenset(s for s in self.states if f[1] in self.labels[s])
            elif tag == 'not':
                out = self.states - satisfied[f[1]]
            elif tag == 'and':
                out = satisfied[f[1]] & satisfied[f[2]]
            elif tag == 'ex':
                out = predecessor(satisfied[f[1]])
            else:
                left = satisfied[f[1]]
                out = frozenset() if tag == 'eu' else self.states
                sizes = [len(out)]
                while True:
                    pre = predecessor(out)
                    nxt = (satisfied[f[2]] | (left & pre)) if tag == 'eu' else left & pre
                    sizes.append(len(nxt))
                    if nxt == out:
                        break
                    out = nxt
                iterations.append((index, tag, tuple(sizes)))
            satisfied.append(out)
        return {'states': satisfied[-1], 'nodes': len(nodes),
                'predecessor_calls': calls, 'edge_tests': edge_tests,
                'iterations': tuple(iterations)}


# Hypothetical job controller; 'done' explicitly stutters forever.
GRAPH = {'queued': ('queued', 'running'), 'running': ('done', 'retry'),
         'retry': ('queued',), 'done': ('done',), 'isolated': ('isolated',)}
LABELS = {'queued': ('safe',), 'running': ('safe',), 'retry': (),
          'done': ('safe', 'done'), 'isolated': ()}
model = CTL(GRAPH, LABELS)
done, safe = P('done'), P('safe')
QUERIES = [('EF done', EF(done)), ('AF done', AF(done)),
           ('AG EF done', AG(EF(done))), ('EG not done', EG(Not(done))),
           ('E[safe U done]', EU(safe, done)), ('A[safe U done]', AU(safe, done))]
for label, formula in QUERIES:
    result = model.check(formula)
    print(label, tuple(sorted(result['states'])))
for label, formula in [('EU rounds', EU(safe, done)), ('EG rounds', EG(Not(done)))]:
    result = model.check(formula)
    print(label, result['iterations'], 'edge tests', result['edge_tests'])

# Quantifier order: renewable possibility versus an eventually secure region.
cycle = CTL({'a': ('a', 'b'), 'b': ('a',)}, {'a': (), 'b': ('p',)})
fork = CTL({'s': ('g', 'b'), 'g': ('g',), 'b': ('b',)},
           {'s': (), 'g': ('p',), 'b': ()})
for label, system, initial in [('cycle', cycle, 'a'), ('fork', fork, 's')]:
    print(label, 'AG EF p', initial in system.check(AG(EF(P('p'))))['states'],
          'EF AG p', initial in system.check(EF(AG(P('p'))))['states'])

Running the file prints:

EF done ('done', 'queued', 'retry', 'running')
AF done ('done',)
AG EF done ('done', 'queued', 'retry', 'running')
EG not done ('isolated', 'queued', 'retry', 'running')
E[safe U done] ('done', 'queued', 'running')
A[safe U done] ('done',)
EU rounds ((2, 'eu', (0, 1, 2, 3, 3)),) edge tests 28
EG rounds ((2, 'eg', (5, 4, 4)),) edge tests 14
cycle AG EF p True EF AG p False
fork AG EF p False EF AG p True

There are seven distinct edges. The safe-until-done calculation grows through the empty set, then done, then done plus running, then those states plus queued, followed by an unchanged round. Four predecessor calls therefore make 28 edge visits. For EG¬doneEG\neg done, the initial five states shrink to four and stay there, producing 14 visits. The isolated state satisfies that existential property even though it is unreachable from the queue; the returned set covers every model state.

For costs, let BB include the raw graph/label row and name-occurrence count, let NN and MM count distinct states and edges, and let KK count occurrences in the expanded core formula tree. With unit-cost names/counters and expected hash operations, constructing the model takes O(B)O(B) time and space. Compilation is O(K)O(K). Each predecessor call costs O(N+M)O(N+M), and each temporal occurrence makes at most N+1N+1 calls. A check call therefore takes O(K(N+1)(N+M))O(K(N+1)(N+M)) time, with O(KN)O(KN) extra space for subformula sets, compilation storage and size histories. Including the model gives O(B+KN)O(B+KN) space. Sorting states for the demo adds O(Nlog⁡(2+N))O(N\log(2+N)) per printed set. String lengths and large-integer bit costs require separate accounting. This bound describes the full-scan implementation, not the best achievable CTL algorithm. Macro expansion or repeated shared subtrees can make KK much larger than the number of tuple objects allocated by a caller.

An infinite-path model is not a finite log

A log that ends before completion does not determine whether the job will ever complete. A hundred successful runs do not eliminate a permitted infinite retry path. The program checks all paths represented by a supplied finite graph, under its exact transition and label semantics; it neither infers that graph from logs nor establishes that the graph captures a deployed system correctly.

Deadlocks need an explicit modelling decision. Adding a self-loop to a terminal state means its labels persist forever and changes next-step properties. The program refuses to make this change silently. The self-loop on done is part of the supplied model. Because every accepted state has a successor, no universal temporal claim is accepted merely because the model supplies zero paths from that state.

No fairness condition is assumed. If a loop can postpone a runnable job forever, that loop remains a path. A model that excludes certain unfair executions is a different verification problem and may change AFAF or EGEG answers. Removing only the queued self-loop does not fix this example: the retry cycle still avoids completion. Restricting running to transition only to done, as well as removing queue waiting, does make completion inevitable from the queue. Neither change says what a real scheduler will do without evidence supporting that model.

A false property at a starting state is a result about that state and model; it is not a proof that the formula is unsatisfiable in every possible model. Likewise, a true property is not a synthesis of a controller that can enforce it against an adversary. This program returns truth sets without action ownership, strategies or probabilities.

The implementation covers the stated propositional CTL core and its helpers. It does not check arbitrary LTL path formulas, CTL* formulas, finite-trace temporal logic, real-time deadlines, probabilistic transitions or fairness-constrained paths. Modal and epistemic logic uses related accessibility structures for possibility and knowledge; a knowledge alternative should not silently become a later time step.

Find the execution that changes the answer

  1. At queued, why is EF doneEF\,done true while AF doneAF\,done is false? Remove the queued self-loop. Is the universal property now true? Give the relevant paths.

    Answer: queued → running → done → done → … witnesses EFEF. queued → queued → … refutes AFAF. Without that self-loop, queued → running → retry → queued → … still refutes AFAF. If running is also restricted to done, every path from queued reaches done after two steps. The isolated self-loop remains outside that initial-state argument.

  2. A single state loops to itself, pp is true, and qq is false. Evaluate E[pUq]E[pUq], EGpEGp and A[pUq]A[pUq]. What happens if the least/greatest initialization is exchanged, or the infinite-avoidance part of the AUAU expansion is omitted?

    Answer: E[pUq]E[pUq] and A[pUq]A[pUq] are false because qq never occurs; EGpEGp is true. Initializing the until fixed point with all states wrongly accepts the loop. Initializing globally with the empty set wrongly rejects it. The finite-bad-prefix part of the AUAU expansion sees no position violating pp, so alone it wrongly accepts the loop; ¬EG¬q\neg EG\neg q is what excludes perpetual avoidance.

  3. The input contains one state, labelled pp, with no successors. What should the program do? If the modeller explicitly adds a self-loop, what are EXpEXp, AXpAXp and EX¬pEX\neg p? Does a now-satisfied qq require pp at the same position for pUqpUq?

    Answer: Reject the deadlock input. With an explicit self-loop, EXpEXp and AXpAXp are true, and EX¬pEX\neg p is false. These are properties of the completed model, not automatic interpretations of a stopped log. For until, if qq is true now, the witnessing index is zero, so there are no earlier positions requiring pp; pUqpUq is true even if pp is false now.

  4. Explain both rows of the quantifier-order table without using a fixed-point calculation. Which mistaken path choice would turn AG(EF p)AG(EF\,p) into a same-execution claim?

    Answer: In the a/b graph, every reachable state can get to b, where pp holds, but no state can guarantee staying at pp because b returns to a. In the fork, one path reaches the permanent pp state g, while another reaches b, which can never reach pp. Thus the table’s truth values are respectively true/false and false/true. Requiring each EFEF witness to follow the already selected outer execution would erase its fresh existential choice. The all-a path in the first graph illustrates the error: it never visits pp despite preserving that possibility at every step.

Keep semantics, algorithms and modelling evidence separate

Clarke and Emerson’s synchronization-skeleton manuscript distinguishes two tasks: checking an existing finite structure against a formula, and synthesizing a structure from a satisfiable specification. Its section 3 defines branching-time operators, section 4 characterizes them by fixed points, and section 5 uses subformula truth labels for model checking. This chapter implements the first task with a deliberately small program; it does not reproduce the paper’s synthesis procedure or its process-indexed transition operators. Original manuscript, PDF pages 2, 8–16.

For a compact reading sequence, use Clarke’s temporal-logic slides 6–18 for state/path formulas and operator reductions, then fixed-point slides 2–11 for the finite-lattice argument. Work through the chosen initial state and transition assumptions before changing the algorithm. Propositional logic supplies the Boolean layer; graph search helps explain finite until witnesses.

The executed tests use finite simple paths for EUEU and strongly connected components plus reachability for EGEG. Universal until is checked separately by enumerating finite violating prefixes and repeated-state infinite counterexamples, without using the program’s AUAU reduction as its reference. Across all total graphs with one, two or three states and all two-atom labelings, there are 353 graphs and 22,100 labelled models; 18 formula patterns give 397,800 core-and-helper comparisons, plus direct universal checks. Further cases cover nested formulas, duplicate input, opaque names, 1,501 nested negations, shared-subtree expansion, invalid inputs and the incorrect fixed-point initializations. These are AI technical checks of the finite mathematical interface. They do not constitute a human review or validate the controller model against an actual job service.

Make a prediction, then check

A queued job may wait or run; a running job may finish or retry, a retry returns to the queue, and completion persists. Which statement holds from the queue?

Choose one answer

Learning objectives

  • Distinguish states from infinite paths, X/F/G/U operators and A/E quantifiers. Use two graphs to refute interchange of AG EF and EF AG, and explain the difference between LTL and CTL path selection.
  • Derive the least fixed point for EU and the greatest fixed point for EG. Prove termination and correctness on finite models, and check the current-position and perpetual-avoidance cases for strong until.
  • Run and independently verify a global CTL core checker. Explain total graphs, label truth, the absence of fairness assumptions, deadlock rejection, formula expansion costs, and the unimplemented LTL, real-time and probabilistic cases.

Prerequisites & connections

Explore related knowledge →

References

  1. Design and Synthesis of Synchronization Skeletons Using Branching Time Temporal Logic — author manuscript
    Edmund M. Clarke; E. Allen Emerson
  2. Model Checking II — Temporal Logic Model Checking, CMU 15-817, Fall 2009
    Edmund M. Clarke, Jr. · 2009
  3. Model Checking III — Basic Fixpoint Theorems, CMU 15-817, Fall 2009
    Edmund M. Clarke, Jr. · 2009

Version1 · Editorial status: Recorded technical checks completed

View technical check record (AI)

Codex · 2026-09-05 · Codex technical check: primary-source locations, original runnable models, independent finite-state oracles, bilingual review and second-agent cross-checks; not independent human peer review.

  • Complete original bilingual articles with six anchors, six identical displays, identical full Python, ten lines of actual output, and four answered exercises. Reread nonempty finite total graphs, the state/path distinction, complete label truth, present-inclusive strong until, fresh path choices under A/E, and two AG EF versus EF AG counterexamples. The core and macros are explicit. No implementation of full LTL, CTL*, finite-log, real-time, probabilistic or fairness-constrained semantics is claimed. The independent AI reviewer requested a more precise explanation of G(F done): done must recur at or after every position on the same path, equivalently infinitely often. Only because the example preserves done forever does this reduce to eventual completion. Both locales now state that distinction; code and formulas are unchanged.
  • All eight author tests actually passed. The independent EU reference enumerates finite simple prefixes; the EG reference uses Tarjan SCCs to identify cycles and then reaches them within states satisfying the subformula. Neither uses the article’s fixed-point iteration as its semantic oracle. All total graphs with one, two or three states give 1 + 9 + 343 = 353 graphs. Respectively 4, 16 and 64 two-atom labelings give 22,100 models; 18 formula patterns yield 397,800 state-set comparisons.
  • Each exhaustive model also directly checks AU, AF and AX, for 66,300 universal checks. The AU/AF reference enumerates bad finite prefixes or repeated states before the goal as infinite lasso counterexamples, without reusing the article’s EU/EG duality. AX quantifies over direct successors. Fixed-point size histories are strictly monotone until final equality, have length at most N + 2, and edge_tests equals the number of distinct edges times predecessor_calls.
  • Another 240 cases from seed 563109, with one through seven states and nested core formulas of depth zero through four, compare against the path/SCC reference. Duplicating and reversing edges preserves the entire return dictionary, and deep-copied inputs remain unchanged. State names include Chinese characters and newlines; the atom never, missing from all labels, evaluates false. A formula with 1,501 nested negations executes without Python recursion. Shared conjunction subtrees for k = 0 through 8 have exactly 2^(k+1) - 1 expanded nodes.
  • Actually checked the main global truth sets, the EU history (0,1,2,3,3) with 28 edge visits, the EG history (5,4,4) with 14 edge visits, and the quantifier-order initial-state results True/False and False/True. Removing the queued self-loop still fails AF completion because of the retry cycle; also removing running-to-retry makes the queue satisfy AF while isolated still fails. Global truth sets explicitly cover states unreachable from the chosen initial state.
  • Executed a mutated program exchanging the EU and EG initial sets: a p self-loop without q is wrongly accepted by EU and rejected by EG, unlike the correct program. Keeping only AU’s finite-bad-prefix exclusion wrongly accepts forever-p/no-q; the full macro rejects it. Verified zero-step until with a false left operand and a true goal, empty truth sets, TRUE and not TRUE, isolated cycles, deadlock rejection, and EX TRUE on an explicit self-loop.
  • Thirteen invalid models and twenty invalid formulas raise ValueError. Cases cover an empty graph, bad containers, empty or undeclared successors, bad names, mismatched label keys, a string used as a label collection, Boolean label items, empty/list formulas, unknown operators, wrong arities, raw AF tags and bad atoms. Clearing caller graph and label dictionaries leaves copied semantics intact. There is no deadlock completion or vacuous universal acceptance from pathless states. No budget or partial-output API exists; complete answers require a finished finite run.
  • Mathematical and cost self-review covers EU finite prefixes and least closure, EG infinitely continuable subgraphs and greatest closure, and at most N strict changes plus final equality. Existence of an EG infinite path permits choosing a lasso witness; it does not mean every infinite path is periodic. Construction costs O(B), with K measured on the expanded formula tree. Check time is O(K(N+1)(N+M)) and additional space is O(KN). Full-edge scans, size histories, demo sorting, and string/integer bit-cost assumptions are explicit.
  • Individual strict MDX/KaTeX and actual React static HTML pass in both locales, each with six displays, four strong-formatted answers and six stable anchors, without math errors or emphasis remnants outside code. Reread under the repository’s neutral technical Humanizer rules, without copying original synchronization-skeleton or mutex figures or course code. These are AI technical self-checks, awaiting independent cross-review; review remains written. No repository edit, whole-site build, browser check or real-controller acceptance is claimed. The final metadata pass restored normal English word boundaries throughout public text and review notes without changing the technical claims.
  • Read the complete bilingual prose, program, eight author tests and final metadata without edits. Checked finite nonempty total graphs, label truth, whole-formula validation, state/path distinctions, present-inclusive strong until, fresh A/E path choices, and both AG EF versus EF AG counterexamples. No algorithm or final mathematical defect found. Suggested explaining G(F done) as a done occurrence at or after every position, hence infinitely often; only persistence of done in this example reduces it to eventual completion. The author updated both locales and metadata, and the final wording was reread.
  • The independent semantic reference enumerates every subset of the finite lattice. EU is the intersection of all prefixed sets Z containing Q and every P predecessor of Z. EG is the union of all postfixed sets Z contained in P whose states each have a successor in Z. This calls neither the article Pre nor its fixed-point iteration and does not reuse the author simple-path/Tarjan-SCC oracle. Recursive syntax composition yields complete truth sets.
  • Actually checked 22,501 models, 269,366 complete queries and 1,934,528 prefixed/postfixed candidates. The corpus includes all total graphs with one through three states and all two-atom labelings, giving 22,100 models times twelve patterns; seed 739081 adds 320 cases with one through seven states and depth-four formulas, the first eighty also reordered/duplicated, plus six main-model queries. Every complete truth set agrees.
  • A third reference uses Boolean matrix powers instead of round-by-round Pre: with A=Diag(P)R, EU stage k>=1 is (I or A)^(k-1)Q and EG stage k is A^k times the all-one vector. Repeated squaring independently computes stages. Checked 6,902 complete return dictionaries, 7,841 fixed-point histories and 24,701 stage sets; independent postorder syntax counting checks nodes, IDs and calls, and edge_tests equals normalized edge count times all Pre calls.
  • Reran all eight author tests successfully. Verified the main EU sizes (0,1,2,3,3) with 28 edge visits, EG sizes (5,4,4) with 14 edge visits, and every displayed output. Without fairness, both the queue self-loop and retry cycle permit noncompletion; removing only the self-loop is insufficient. Checked zero-step strong until, the perpetual-avoidance term for universal until, deadlock rejection, absent propositions being false in all labels, input snapshots and expanded-tree counting of shared subformulas.
  • Separately checked the general proof and executions: the EU least fixed point corresponds to finite prefixes; the EG greatest fixed point supports indefinitely chosen successors and retains every qualifying infinite path at each round. Existence in a finite graph permits choosing a lasso witness, not claiming every path is periodic. Each operator has at most N strict changes plus final equality. K counts expanded formula occurrences; O(K(N+1)(N+M)) time and O(KN) additional space account for full-edge scans, all subformula sets and size histories. O(B) construction, O(B+KN) total storage and demo-sorting costs are appropriate.
  • After the final clarification, independent strict MDX/KaTeX and actual React HTML pass with six displays, six stable headings and four strong answers per locale. Python and displays are byte-identical. Rendered math annotations number 116 in English and 117 in Chinese: only exercise 3 repeats inline p once in Chinese, with equivalent semantics and no missing formula. All seven cost annotations are complete, without math errors, trailing display spaces or emphasis remnants outside code. Direct internal links resolve to actual articles. This is AI technical cross-review, not human peer review; no author/repository edits or browser/whole-site acceptance were performed.
  • Promoted the full prose, equations, code and exercises. Tests read formal MDX only; removed temporary fallbacks/draft skips and updated review assertion to checked. Algorithm and independent references are unchanged; final record binds both locale hashes.
  • Publication migration check: the deliberately incorrect fixed-point variant also reads the full program from formal MDX, removing the remaining temporary BASE path. Preserved all assertions detecting the wrong EU/EG results after swapped initial sets. The final301 specialized tests passed.
  • Publication navigation check: linked completed chapters directly and removed their obsolete planned labels. Unfinished topics still link to the catalogue with their status stated. Reversible replacements are recorded; other technical content is unchanged and both hashes are rebound.

Source locations checked:

  • Design and Synthesis of Synchronization Skeletons Using Branching Time Temporal Logic — author manuscript · Actually downloaded the original author-hosted, 66-page manuscript to /tmp/aiwiki-next-temporal-logic/clarke-emerson-skeletons.pdf. Native pdftotext produced 66 form-feed characters and no substantive text. Rendered and OCR-read PDF pages 1–18, retained as ce-first10-ocr.txt and ce-11-18-ocr.txt. PDF page 1 verifies authors and title; page 2 (abstract) and pages 3–7 (introduction and model) distinguish checking an existing finite structure from synthesis. Page 8 contains the section 3 CTL syntax. PDF page 10, printed page 7, specifies a total union of process relations, infinite paths, state-label semantics, and strong AU/EU with an index greater than or equal to zero. Page 11 gives abbreviations. PDF pages 13–14, printed pages 9–10, contain the section 4 monotone predicate lattice, least EU and greatest EG fixed points, and the EF proof. PDF pages 15–16, printed pages 11–12, contain section 5 subformula state labeling and finite termination. Visually inspected ce-10.png, ce-13.png and ce-14.png for the critical definitions and fixed-point signs. Also read page 17’s SCC discussion of an additional infinitely-often operator, without mistaking it for the implemented EG operator. No audit of the remaining pages or implementation of the original synthesis procedure is claimed. The manuscript has no clear title-page date; metadata omits the year rather than equating it with an abridged conference version.
  • Model Checking II — Temporal Logic Model Checking, CMU 15-817, Fall 2009 · Actually opened the official lecture2.pdf and read slides 6–18 through web text. Slide 6, lines 54–68: Kripke (S,R,L), totality and infinite paths. Slides 7–11, lines 69–136: linear versus branching time, state/path grammar and quantified semantics. Slides 12–13, lines 137–157: the present-inclusive convention and dualities. Slides 14–16, lines 158–184: CTL’s paired operators, LTL path syntax and the expressiveness discussion. Slide 18, lines 193–204: the EX/EG/EU basis and precise two-part AU reduction. The article uses explicit counterexamples rather than claiming to prove whole-language expressiveness. Read the course homepage at https://www.cs.cmu.edu/~emc/15817-f09/, lines 13–15, to verify Fall 2009. Did not adopt slide 12’s informal infinitesimal-duration explanation, historical reference dates or old performance claims.
  • Model Checking III — Basic Fixpoint Theorems, CMU 15-817, Fall 2009 · Actually opened the official lecture3.pdf. Slides 2–5, web lines 6–87: finite predicate lattice, monotonicity, continuity and extremal iteration. Slides 6–8, lines 88–147: least/greatest initialization and termination by finite cardinality. Slide 9, lines 148–174: exact AU/EU/AF/EF/AG/EG fixed points. Slides 10–11, lines 175–212: EU monotonicity and finite-prefix proof. The program starts EU at the empty set and EG at all states, counts at most N changes plus a final equality evaluation, and does not reuse course pseudocode or diagrams. These lecture sources were checked through web text, not visually rendered PDFs. A 2010 Platzer note was also consulted but was not used as the core semantic source because its earlier partial-order and LTL conventions differ from this explicitly total next-step graph.
  • Design and Synthesis of Synchronization Skeletons Using Branching Time Temporal Logic — author manuscript · Independently opened the author-hosted 66-page PDF through web; it has no extracted text. Read the retained local OCR for title/authors, abstract, section 3 syntax and semantics, section 4 lattice/fixed-point argument, and start of section 5 finite subformula checking. Actually viewed ce-10.png, ce-13.png and ce-14.png, confirming printed pages 7, 9 and 10: total union of process relations, infinite paths, strong until with index at least zero; predicate inclusion lattice, monotonicity, greatest EG and least EF/EU context. These are the original manuscript internal pages, not abridged conference pagination. No title-page publication date is inferred, no fresh local download or audit of all 66 pages is claimed.
  • Model Checking II — Temporal Logic Model Checking, CMU 15-817, Fall 2009 · Independently opened official lecture2.pdf (32 pages) through web and read slides 6–18: finite total Kripke triples/infinite paths; state/path grammar; X/F/G/U with present-inclusive F/G/U; CTL operator/path-quantifier pairing versus LTL; EX/EU/EG basis and the two-part AU reduction on slide 18. Also read the official Fall 2009 course homepage at https://www.cs.cmu.edu/~emc/15817-f09/ to verify the course year. The chapter counterexamples concern two displayed CTL formulas, not an independent whole-language expressiveness theorem. No historical performance numbers or visual rendering of these slides claimed.
  • Model Checking III — Basic Fixpoint Theorems, CMU 15-817, Fall 2009 · Independently opened official lecture3.pdf (16 pages) through web and read slides 2–11: finite predicate powerset lattice, monotonicity and extremal endpoints; least/greatest iteration and finite termination; CTL fixed-point equations on slide 9; EU monotonicity and finite-prefix proof on slides 10–11. Checked the distinction between these mathematical characterizations and the deliberately naive full-edge teaching implementation. No claim that this implementation achieves an optimized linear model checker.

Related topics

No matches. Try a synonym or acronym.

0 results shown

Wrap the whole query in double quotes for a phrase match.