Essay · Symbolic AI, Natural-Language Bridge & Architecture

Axioma vs. McCarthy's Advice Taker: Side-by-Side Papers, Natural-Language Bridge, and General AI Architecture

Status: Live Implementation & Comparative Specification — December 2026. Verified across axiomalang, axiomakb, axiomaagent, and axiomacascade.

Companion essays: Axioma and the Calculemus Lineage; The Organon as a Test Suite; Epistemic Grounding; Gaps & Gluts.

Interactive Side-by-Side: McCarthy's Papers ↔ Natural Language ↔ Axioma Code

Zero .ax syntax required via AxiomaAgent + MCP

1. Was McCarthy's Goal to Achieve AGI?

Yes — explicitly and from the beginning. When John McCarthy coined the term "Artificial Intelligence" for the 1956 Dartmouth Summer Research Project, "AI" meant human-level general intelligence. Only decades later — after much of the field narrowed into domain-specific statistical classifiers, game engines, and search tools — did researchers introduce "AGI" (and McCarthy himself used "Human-Level AI", notably in his 2007 retrospective "From Here to Human-Level AI").

McCarthy's 1959 Advice Taker ("Programs with Common Sense") was never conceived as a narrow route-planner or expert system. It was his architectural thesis for what separates a general intelligence from a fixed-purpose program:

  1. Generality requires purpose-neutral declarative knowledge: A narrow program embeds domain knowledge inside procedural control flow, forcing a programmer to rewrite code whenever the task or environment shifts. A general intelligence stores facts declaratively ("locked doors require keys", "deadlines are transitive") so the same world knowledge transfers across unforeseen goals.
  2. Online teachability ("taking advice"): Humans acquire new competence in real time by being told facts, standing orders, policies, and exceptions — integrating them immediately into deliberation without surgery on the underlying cognitive substrate.
  3. Common sense as the true bottleneck to generality: As early as 1958–1959, McCarthy recognized that formal games and algebra are easier than everyday reality because the open world violates completeness at every turn:
    • Incomplete knowledge (epistemological adequacy, McCarthy & Hayes 1969; McCarthy 1990): An agent rarely observes full state; it must represent what it does not know and act to find out.
    • Ubiquitous exceptions (circumscription, McCarthy 1980): Almost every common-sense rule ("cars are drivable", "highways are open") is defeasible and subject to open-ended qualifications.
    • Context dependence (formalized contexts, McCarthy 1993): Truth and terminology depend on situational, temporal, source, and agent perspectives (ist(c, p)).
    • Action and inertia (situation calculus, McCarthy 1963; McCarthy & Hayes 1969; Reiter 1991): Planning requires deducing what changes when an action executes — and what persists unchanged (the Frame Problem).

Why Purely Symbolic AI Stalled — and Why Pure LLMs Stall at the Opposite Pole

McCarthy's forty-year program hit two hard walls:

Modern large language models inverted that capability profile: LLMs excel at open-world natural-language translation, common-sense plausibility, and heuristic search (ars inveniendi, Leibniz's art of discovery), yet lack non-explosive consistency, exact state tracking, dimensional/financial precision, cascading retraction, and verifiable precondition checking (ars iudicandi, the art of judgment).

The Axioma ecosystem thesis: Pairing LLM orchestration (AxiomaAgent + AxiomaCascade) with a co-resident symbolic programming and epistemic knowledge runtime (Axioma + AxiomaKB) closes both halves of McCarthy's Advice Taker without pretending to decide undecidable first-order logic.


2. Scorecard Across McCarthy's Five Foundational Papers (1959–1993)

Advice Taker Pillar McCarthy Source Axioma Ecosystem Realization Status
Co-resident homoiconic code + deduction Programs with Common Sense (1959); Lisp (1960) Held AST (hold/quote, [logic | φ], ast_rewrite) + first-class functions + 20 logic/solver modes in one value space Shipped
Dynamic declarative updates ("tell, don't rewrite") Programs with Common Sense (1959, pp. 75–79) axiom, postulate, assert, <==, <~~, forget_cascade, persistent SQLite AxiomaKB (preview/apply/receipt) Shipped
Non-monotonic defaults & abnormality Circumscription (1980) default_theory, defeasible <~~ rules (capped at Conjecture), disjunctive [logic/asp | ...], [solver/advice] unless clauses Shipped
Epistemological adequacy & partial theories AI, Logic & Formalizing Common Sense (1990, §1, §7) Distinct bottoms none vs. om (Ω), Belnap B4 (true/false/both/neither), Free Logic (E!), 6-tier grounding, K/T/S4/S5/GL Kripke models Exceeds 1990
Hyperintensional attitude opacity Formalizing Common Sense (1990, §5); Frege (1892) believes(agent, [logic | φ]), knows(agent, [logic | φ]), and attitude_holds(agent, [logic | φ]) preserve held AST presentation across === coreference Shipped
First-class contexts (ist) & lifting rules Notes on Formalizing Context (1993); Guha (1991) ContextGraph DAG + context_assert_fact + context_lift_rule + rule-executing ist(g, c, [logic | φ]) and [logic/ist | g, c: φ] Shipped
Situation Calculus, Frame Problem & Ability (can) McCarthy & Hayes (1969); Reiter (1991); McCarthy (1990, §4) [solver/advice | ...] ([solver/sitcalc | ...]), can_do(...), and import "advice" compile lifted actions into Reiter successor-state progression + om epistemic-gap detection Shipped
Causal intervention (do) & counterfactuals McCarthy (1990) causal adequacy; Pearl (2009) import "advice.causal" (scm, scm_observe, scm_do parent-severing graph surgery, scm_counterfactual twin-network evaluation) Shipped
Scaled AGM belief contraction on refutation Duhem–Quine; AGM (1985); Belnap (1977) minimal_revisions + Reiter breadth-first HS-Tree kb_contract_plan (scales past 16-premise bitmask cap; supports both B4=both gluts and goal refutations) + atomic kb_apply_contraction receipts Shipped
Decidable fragment routing & EPR (∃*∀*) Ramsey (1930); Church–Turing honesty logic_regime, [logic/auto | φ], and [logic/epr | φ] (exact Herbrand grounding of function-free ∃*∀* to DPLL SAT; explicit ∀∃ Skolem refusal) Shipped
NL intake & "Standing Orders" search control Open problem in McCarthy (1959, p. 84; 1990, p. 166) AxiomaAgent (Evaluate/Query/Derive/Check/Explain/Update) + AxiomaCascade + [solver/advice] cost / prefer / avoid standing orders Shipped

3. Side-by-Side Syntax: McCarthy's Papers vs. Runnable Axioma

Every Axioma snippet below uses live, shipped constructs verified in tests/axioma/advice/test_advice_taker_complete.ax.

3.1 Property Lists & Spatial Transitivity — McCarthy (1959), "Programs with Common Sense", pp. 79–83

McCarthy (1959) Paper Notation:

% Airport premises (1959)
at(I, desk).
at(desk, home).
at(car, home).
at(home, county).
at(airport, county).
walkable(home).
drivable(county).

% Transitivity of containment/location
∀x ∀y ∀z (at(x, y) ∧ at(y, z) ⊃ at(x, z))

Axioma Realization (.ax):

relation direct_at(x, y)
relation at_loc(x, y)
relation walkable(p)
relation drivable(p)

axiom direct_at("me", "desk")
axiom direct_at("desk", "home")
axiom direct_at("car", "home")
axiom direct_at("home", "county")
axiom direct_at("airport", "county")
axiom walkable("home")
axiom drivable("county")

at_loc(X, Y) <== direct_at(X, Y)
at_loc(X, Z) <== direct_at(X, Y) and at_loc(Y, Z)

expect { P | P <- at_loc("me", P) } == {"desk", "home", "county"}

3.2 Circumscription & Non-Monotonic Defaults — McCarthy (1980), "Circumscription", pp. 27–39

McCarthy (1980) Paper Notation:

% Minimize abnormality predicate ab/1
∀x (vehicle(x) ∧ ¬ab(usable(x)) ⊃ usable_vehicle(x))
∀x ∀y (in_county(x, y) ∧ ¬ab(route(x, y)) ⊃ passable_route(x, y))

% Specific abnormality cancellers
∀v (flat_battery(v) ⊃ ab(usable(v)))
∀x ∀y (road_closed(x, y) ⊃ ab(route(x, y)))

Axioma Realization (.ax):

relation vehicle(v)
relation flat_battery(v)
relation road_closed(x, y)
relation usable_vehicle(v)
relation passable_route(x, y)

axiom vehicle("car")

# Defeasible <~~ rules cap derived grounding at "conjecture" (never "theorem")
usable_vehicle(V) <~~ vehicle(V) and not flat_battery(V)
passable_route(X, Y) <~~
    at_loc(X, C) and at_loc(Y, C) and drivable(C) and not road_closed(X, Y)

holds_init: [logic/holds | passable_route("home", "airport")]
expect holds_init.result == true
expect grounding("passable_route", "home", "airport") == "conjecture"

3.3 Epistemological Adequacy (om) & Hyperintensional Attitude Opacity — McCarthy (1990) §1, §5 & Frege (1892)

McCarthy (1990) Paper Notation:

% Partial knowledge without forced binary truth values
¬knows_whether(I, parking_open(airport))

% Referential opacity in belief reports:
% Even if hwy_101 = bayshore_fwy, believing open(hwy_101)
% does not entail believing open(bayshore_fwy)
believes(dispatcher, open(hwy_101))

Axioma Realization (.ax):

# 1. Distinct bottoms: `none` (absence) != `om` (Kleene Ω epistemic unknown)
parking_open: om
expect parking_open != none
expect not ((true and om) == false) and ((false and om) == false)

# 2. Held-AST propositional attitudes block extensional `===` substitution
dispatcher: agent("dispatcher")
hwy_101: "US-101"
bayshore_fwy: hwy_101
expect hwy_101 === bayshore_fwy

believes(dispatcher, [logic | route_open(hwy_101)])
expect attitude_holds(dispatcher, [logic | route_open(hwy_101)]) == true
expect attitude_holds(dispatcher, [logic | route_open(bayshore_fwy)]) == false

3.4 First-Class Contexts (ist) & Guha Lifting Rules — McCarthy (1993), "Notes on Formalizing Context"

McCarthy (1993) Paper Notation:

% Contextualized truth and inheritance
c_morning ≺ c_base
ist(c_base, drivable(county))
ist(c_dot_feed, road_closed(home, airport))

% Lifting rule from external traffic source into morning planning context
ist(c_outer, ist(c_dot_feed, road_closed(x, y)) ∧ reliable(c_dot_feed)
    ⊃ ist(c_morning, road_closed(x, y)))

Axioma Realization (.ax):

cg: context_graph("airport_cg", "Morning Advice Taker Contexts")
context_create(cg, "c_base", "Base Geography", "domain")
context_create(cg, "c_morning", "Morning Trip", "epistemic")
context_create(cg, "c_dot_feed", "DOT Traffic Alert", "source")
context_set_parent(cg, "c_morning", "c_base")

context_assert_fact(cg, "c_base", [logic | direct_at("home", "county")], "true", 1.0)
context_assert_fact(cg, "c_base", [logic | direct_at("airport", "county")], "true", 1.0)
context_assert_fact(cg, "c_base", [logic | drivable("county")], "true", 1.0)

# Before lifting traffic alert, route is passable inside c_morning via <~~ rule:
expect ist(cg, "c_morning", [logic | passable_route("home", "airport")]).result == true

# External Cascade feed posits road closure in c_dot_feed; lift into c_morning:
context_assert_fact(cg, "c_dot_feed", [logic | road_closed("home", "airport")], "true", 0.92)
context_lift_rule(cg, "c_dot_feed", "c_morning", "road_closed", 0.80)

# Now `<~~` rule re-evaluates inside c_morning with road_closed active:
ist_morning: [logic/ist | cg, "c_morning": passable_route("home", "airport")]
expect ist_morning.result == false

3.5 Situation Calculus, Frame Persistence, can Ability & Standing Orders — McCarthy (1959); McCarthy & Hayes (1969); Reiter (1991)

McCarthy (1959 / 1969 / 1990) Paper Notation:

% Preconditions & Ability
holds(at(p, x), s) ∧ walkable_between(x, y) ⊃ can(p, walk(p, x, y), s)

% Successor-State / Law of Inertia (Frame Problem)
holds(at(p, y), result(walk(p, x, y), s))
holds(f, s) ∧ ¬abnormal(f, a, s) ⊃ holds(f, result(a, s))

% Standing Orders: prefer shortest/lowest-cost legal action plan achieving goal
goal: holds(at(me, airport), s_final)

Axioma Realization (.ax):

trip: [solver/advice |
    initial  at("me", "desk"), in_place("desk", "home"), in_place("car", "home"),
             walkable("home"), usable("car"),
             passable("home", "airport"), passable("home", "station"),
             rail_line("station", "airport"), car_locked("car")
    unknown  bridge_inspected("old_bridge")
    goal     at("me", "airport")
    horizon  5
    prefer   drive

    action walk(Who, From, To)
      | poss at(Who, From), in_place(From, P), in_place(To, P), walkable(P)
      | add  at(Who, To)
      | del  at(Who, From)
      | cost 1

    action unlock_and_board(Who, V)
      | poss at(Who, V), usable(V)
      | add  inside(Who, V)
      | del  car_locked(V)
      | cost 1

    action drive(Who, V, From, To)
      | poss inside(Who, V), in_place(V, From), passable(From, To)
      | unless road_closed(From, To)
      | add  at(Who, To), in_place(V, To)
      | del  at(Who, From), in_place(V, From)
      | cost 2

    action take_train(Who, From, To)
      | poss at(Who, From), rail_line(From, To)
      | add  at(Who, To)
      | del  at(Who, From)
      | cost 5
]

expect trip.solved == true
expect trip.steps == 3
expect trip.plan[1] == "walk(me, desk, car)"
expect trip.plan[3] == "drive(me, car, home, airport)"
# Frame persistence: untouched fluents (`walkable(home)`) survive automatically
expect "walkable(home)" in trip.final_state

When an action schema includes a Scherl–Levesque (1993) knowledge-producing | sense <fluent> clause (for example action check_pocket(Who) | poss at(Who, "home") | sense has_keys(Who) | cost 1), [solver/advice | ...] synthesizes a verified AND-OR contingent branching plan (res.contingent == true, res.contingent_plan with if_true / if_false branches) whenever every sensor outcome reaches goal within horizon and sensing either unlocks an otherwise blocked goal or has positive Value of Information over blind fallback.


3.6 Scaled AGM Belief Contraction & Bernays–Schönfinkel–Ramsey (∃*∀*) — AGM (1985); Ramsey (1930)

Axioma Realization (.ax):

# 1. Reiter HS-Tree Contraction Plan + Atomic Receipt (scales past 16 premises)
plan_c: kb_contract_plan("passable_route", "home", "airport")
# Ranks weakest-entrenched minimal hitting sets first (datum/hypothesis before axiom)
receipt: kb_apply_contraction(plan_c[1])
expect receipt.schema == "axioma.contraction.receipt/1"

# 2. Decidable EPR (∃*∀* function-free FOL) via exact Herbrand DPLL grounding
epr_sat: [logic/epr | exists x. forall y. (Loves(x, y) or not Loves(y, x))]
expect epr_sat.engine == "epr" and epr_sat.regime == "decidable" and epr_sat.result == true

# Out-of-fragment ∀x.∃y alternation (Skolem function → infinite Herbrand universe) refuses cleanly:
expect is_error(try([logic/epr | forall x. exists y. Loves(x, y)])) == true

3.7 Pearlian Causal Intervention (do) vs. Observation — import "advice.causal"

import "advice.causal"

# Classic Rain → WetGrass ← Sprinkler causal fork
m: scm("lawn")
m = scm_add_exogenous(m, "rain", false)
m = scm_add_node(m, "sprinkler", ["rain"], env => not env["rain"])
m = scm_add_node(m, "wet", ["rain", "sprinkler"], env => env["rain"] or env["sprinkler"])

# Intervention `do(sprinkler := false)` severs `rain -> sprinkler` while keeping `rain -> wet`:
m_intervened: scm_do(m, {"sprinkler": false})
expect scm_eval(m_intervened, "wet") == false

# Twin-network counterfactual: given rain=true & sprinkler=false, what if do(rain := false)?
expect scm_counterfactual(m, {"rain": false}, "wet", {"rain": false}) == false

4. Building General AI Systems on the Completed Axioma Stack

Completing the Advice Taker loop transforms how autonomous AI systems are built across the four-repository ecosystem (axiomalang, axiomakb, axiomaagent, axiomacascade):

  1. Structured Multi-Context World Models Instead of Flat Vector RAG (AxiomaKB + ContextGraph + ist): Long-running agents store domain ontology, operational facts, external intelligence (AxiomaCascade), and hypothetical plans inside DAG-inherited ContextGraph microtheories. Conflicting reports produce paraconsistent Belnap B4 gluts ("both") rather than prompt corruption or classical ex falso explosion.
  2. Neural Proposal, Symbolic Verification ("LLM as Intuition, Axioma as Executive Prefrontal Verifier"): AxiomaAgent translates unstructured user requests and environment observations into candidate Axioma assertions, rules, and [solver/advice | ...] specifications inside a sandbox context (kb_preview). Axioma verifies types, SI Quantity / Money invariants, can_do preconditions, Reiter frame effects, and SolveResult.Regime decidability before any external side effect executes.
  3. Zero-Redeploy Online Teachability: Human operators give standing orders and policy exceptions mid-operation ("During Q4 freeze, block schema migrations unless severity-1 hotfix"). Those compile directly into <== (hard constraint) or <~~ (defeasible default) rules with AxiomaKB audit receipts — governing every subsequent plan immediately without retraining weights or editing Go/Python application code.
  4. Epistemic Active Inquiry (om Gap Resolution): When [solver/advice | ...] encounters an unknown (om) precondition blocking an otherwise promising plan, it surfaces the exact missing fluent in .epistemic_gaps rather than hallucinating — allowing AxiomaAgent to schedule a targeted sensor read, API lookup, or ask_user clarification first.
  5. Auditable Multi-Agent Epistemology: Subagents exchange typed SolveResult verdicts, kb_contract_plan hitting sets, scm_do causal counterfactuals, and machine-checked proof(...) certificates rather than lossy natural-language summaries.

4.1 Zero-Syntax Natural-Language Bridge (AxiomaAgent ↔︎ advisor MCP ↔︎ AxiomaCascade)

Human users do not need to memorize .ax syntax ([solver/advisor | ...], context_assert_fact, kb_contract_plan, [logic/epr | ...]) to build or run Axioma Advisor programs (realizing McCarthy's 1959 Advice Taker):


5. Primary References

Alchourrón, C. E., Gärdenfors, P., & Makinson, D. (1985). On the logic of theory change: Partial meet contraction and revision functions. Journal of Symbolic Logic, 50(2), 510–530.

Belnap, N. D. (1977). A useful four-valued logic (How a Computer Should Think). In Modern Uses of Multiple-Valued Logic, 8–37.

Frege, G. (1892). Über Sinn und Bedeutung. Zeitschrift für Philosophie und philosophische Kritik, 100, 25–50.

Guha, R. V. (1991). Contexts: A Formalization and Some Applications. Ph.D. thesis, Stanford University (supervised by John McCarthy).

McCarthy, J. (1959). Programs with common sense. Proceedings of the Teddington Conference on the Mechanization of Thought Processes, 75–91.

McCarthy, J., & Hayes, P. J. (1969). Some philosophical problems from the standpoint of artificial intelligence. Machine Intelligence, 4, 463–502.

McCarthy, J. (1980). Circumscription — A form of non-monotonic reasoning. Artificial Intelligence, 13(1–2), 27–39.

McCarthy, J. (1990). Artificial intelligence, logic and formalizing common sense. In R. Thomason (Ed.), Philosophical Logic and Artificial Intelligence, 161–190.

McCarthy, J. (1993). Notes on formalizing context. Proceedings of IJCAI-93, 555–560.

McCarthy, J. (2007). From here to human-level AI. Artificial Intelligence, 171(18), 1174–1182.

Pearl, J. (2009). Causality: Models, Reasoning, and Inference (2nd ed.). Cambridge University Press.

Ramsey, F. P. (1930). On a problem of formal logic. Proceedings of the London Mathematical Society, s2-30(1), 264–286.

Reiter, R. (1987). A theory of diagnosis from first principles. Artificial Intelligence, 32(1), 57–95. (HS-Tree hitting-set algorithm.)

Reiter, R. (1991). The frame problem in the situation calculus: A simple solution (sometimes) and a completeness result for goal regression. In Artificial Intelligence and Mathematical Theory of Computation (essays in honor of John McCarthy), 359–380.