Draft — This content has not been approved for publication.

Home / Hyperon AI Algorithms / PLN / PLN Full

Responsible: Patrick Hammer, Peter Isaev, Nil Geisweiller, Robert Wunsche

Key contributors covered: Patrick Hammer, Peter Isaev, Nil Geisweiller, Robert Wunsche (production Local-Rule line); Zarathustra Goertzel (post-2024 World-Model line).

Core, historical, and proposal sources: Goertzel et al. (2009), Probabilistic Logic Networks (Springer); Goertzel et al., Real World Reasoning (Atlantis Press); Iklé & Goertzel (2008), Probabilistic Quantifier Logic; Iklé & Goertzel (2010), Grounding Possible Worlds Semantics; Harrigan et al. (2014), Guiding PLN with Attention Allocation; Geisweiller & Yusuf (2023), PLN for Temporal and Procedural Reasoning; Goertzel (2025), Hyperon Whitepaper §5.1, §6.1; Goertzel (2025), PLN Chaining On MORK; Goertzel (2025), PLN FactorGraph MORK v2.

Papers (World-Model line, 2026): xiPLN (Zar & Codex CLI, draft 2026); World-Model Calculus (Zar & Oruži, draft 2026); Wm Pln Book V3 (Zar & Oruži, March 2026); MORK MM2 PathMap Formalization (Zar & Oruži, March 2026); Markov-de Finetti Formalization (Mettapedia Project, April 2026); PLN Review (Zar & Oruži, March 2026).

Status: The PLN cluster currently has two coexisting paradigms:

  • Local-Rule PLN (production) — lib_pln.metta on PeTTa runs the pln0.9 rule surface (~14 rules, multiplicative-confidence pivot since Peter Isaev's commit 7ffce05) under a confidence-priority forward-chaining queue. Runnable / current reference implementation, but per the No-Go theorem (xiPLN §5; Lean-proven in Mettapedia/Logic/PLNJointEvidenceNoGo.lean) formally known to be incomplete for arbitrary world models without joint correlation information.
  • World-Model PLN (Lean-formal) — the post-2024 line in xiPLN and World-Model Calculus. Treats inference as stateful posterior revision with evidence extraction; "fast PLN rules" become Σ-guarded compiled tactics whose soundness is discharged relative to a declared world-model class. Substantial Lean theorem spine; operational runtime closure is explicitly pending per xiPLN.tex §9 ("future work").

Five-tradition cluster map:

  1. Production Local-Rule PLN — PLN/, PLN3 (trueagi-io). Runs as the current reference implementation.
  2. Historical OpenCog / URE / ECAN control — URE Bayesian Thompson + MixtureModel (now legacy); ECAN attention-currency. Did not migrate into production MeTTa PLN; richer historical control architectures were lost in the OpenCog-to-Hyperon transition.
  3. Adjacent ai-agents Python + Lean — ai-agents/atps/scripts/ Python premise selectors + ai-agents/lean-projects/mettapedia/ Lean theorems (xiPLN, World-Model Calculus, MORK-PathMap, Markov-de Finetti). Active formalization + benchmark workspace led by Zarathustra Goertzel.
  4. CeTTa active runtime line — CeTTa/lib/ with lib_pln.metta (production-style mirror), lib_wmpln* (World-Model variants), and biomedical regression tests in tests/support/bio_wmpln_*. Runtime/implementation line; deployment status unverified. Important caveat: lib_wmpln.metta is not verified identical to the cited lib_pln_xi.metta — runtime equivalence remains open per xiPLN.tex's own L566-570 status note.
  5. MORK substrate + formalization — Rust MORK as substrate (MORK per Vandervorst/Clarke/Peterson) plus the adjacent Lean formalization in MORK MM2 PathMap Formalization. The Lean ZAM (Zipper Abstract Machine) soundness theorems exist alongside Rust MORK but are not wired into Rust production. FactorGraph PLN over MORK remains paper-only / proposal — substrate is implementable, but the message-passing engine that would actually use MORK as a FactorGraph runtime is not built.

Source-text gaps: the 2013 FISHGRAM paper (Goertzel et al., "Integrating Deep Learning Based Perception with Probabilistic Logic via Frequent Pattern Mining") is currently a wiki gap — see Deep Learning Perception with PLN. The cited hyperon/PeTTa/lib/lib_pln_xi.metta from the xiPLN paper has not been located in any local clone.

This card provides technical depth beyond the concise PLN index card. PLN (Probabilistic Logic Networks) is Hyperon's primary uncertain reasoning framework — a comprehensive system for deductive, inductive, and abductive inference where beliefs carry graded confidence rather than binary truth. It is one of the oldest and most central components in the OpenCog-to-Hyperon lineage, with roots in the 2008 PLN book and continuous evolution through the Hyperon transition. The post-2024 work has split the PLN research and implementation ecosystem into the two paradigms above; both are active, neither has subsumed the other, and the central architectural question of the cluster is whether the World-Model paradigm will be productionized or remain theorem-level.

Related cards: ECAN Full (attention-guided inference control), MORK Full (execution substrate), MOSES Full (rule evolution), MetaMo Full (goal prioritization), AtomSpace Full (knowledge substrate), PRIMUS Full (ambient cognitive loop)

Core Mechanisms and Inference

Truth Values

PLN represents belief strength as Simple Truth Values (STVs): pairs \(\langle s, c \rangle\) where \(s \in [0,1]\) is the estimated probability and \(c \in [0,1]\) is the confidence (loosely analogous to normalized sample size). Multiple truth value types are supported:

  • Simple (STV): (strength, confidence) — the workhorse representation
  • Evidential (ETV): tracks positive and total evidence counts
  • Distributional: discretized histograms over \([0,1]\), enabling richer uncertainty representation
  • Indefinite: interval-valued probabilities for reasoning under deep uncertainty (from Iklé & Goertzel 2008)

Truth Value Interpretation

PLN truth values carry a dual interpretation that creates practical tension in applications: strength can be read as fuzzy set membership (degree to which an element belongs to a set) or as probabilistic truth (estimated probability of a proposition). These interpretations diverge for mutually exclusive alternatives — e.g., pronoun resolution where exactly one antecedent is correct. The workaround uses confidence (not strength) to encode preference ordering: all candidates at high strength but geometrically decreasing confidence (0.5, 0.25, 0.125…). Default reasoning follows a similar pattern: defaults are simply low-confidence beliefs that get overridden by higher-confidence specific knowledge through TV revision, with no special non-monotonic mechanism required. ContextLinks provide additional scoping when defaults apply only in certain domains. (mailing-list-backed: Either-or-truth-values, default-reasoning, 2014–2016)

Inference Rules

PLN provides a library of inference rules, each with a corresponding truth-value formula that computes output STVs from input STVs:

  • Deduction: \(A \to B,\; B \to C \vdash A \to C\)
  • Induction: \(A \to B,\; A \to C \vdash B \to C\)
  • Abduction: \(A \to C,\; B \to C \vdash A \to B\)
  • Modus Ponens: \(A \to B,\; A \vdash B\)
  • Revision: combines independent evidence for the same proposition
  • Symmetric Modus Ponens: \(A \leftrightarrow B,\; A \vdash B\) (for Similarity links)
  • Negation introduction and elimination
  • Inversion: \(A \to B \vdash B \to A\) (for Inheritance and Implication)
  • Equivalence to Implication: converts between Equivalence and Implication links
  • Transitive Similarity: \(A \sim B,\; B \sim C \vdash A \sim C\)
  • Evaluation Implication: derives implications from evaluation patterns
  • Inheritance-based argument replacement: substitutes predicate arguments via implicit combinators (Evaluation + Inheritance)
  • Member Deduction via Inheritance: \(\text{Member}(x, A),\; A \to B \vdash \text{Member}(x, B)\)

Each rule's TV formula is grounded in probability theory. For example, deduction computes output strength from the conditional probabilities of its premises, with confidence derived from the evidence supporting each link.

ImplicationScopeLink Semantics

PLN distinguishes ImplicationScopeLink from ForAll+ImplicationLink because they compute different truth values. ImplicationScopeLink computes TV as an average conditional probability: \(\sum_x P(x) \cdot Q(x) / \sum_x P(x)\), while ForAllLink wrapping an ImplicationLink uses universal quantification semantics. This semantic split (introduced ~2016) required six scoped link types: ImplicationScope, ExtensionalImplicationScope, IntensionalImplicationScope, and three Equivalence variants. The scoped forms are syntactic sugar — PLN formulas are derived from the non-scoped combinators — but the TV difference is real and affects inference results. (mailing-list-backed: ImplicationLink, 2016)

Inference Control

PLN supports multiple chaining directions:

  • Forward chaining: derive new conclusions from known facts
  • Backward chaining: find evidence to support a query
  • Polyward chaining: combined forward/backward in the same pass

The current MeTTa implementation uses a priority-queue-based derivation engine with stamp-disjoint checking to prevent circular reasoning. The public API provides two entry points:

  • PLN.Derive($Tasks $Beliefs $queryTerm $maxsteps $taskqueuesize $beliefqueuesize) — Returns all derived tasks and beliefs after $maxsteps inference steps
  • PLN.Query($Tasks $Beliefs $queryTerm $maxsteps $taskqueuesize $beliefqueuesize) — Returns the truth value and evidential base of $queryTerm only

Inputs use the sentence format (Sentence ($Term (stv $Strength $Confidence) ($EvidenceID))). Tasks are active sentences driving derivation; Beliefs are additional background knowledge. Evidence IDs enable stamp-disjoint tracking — statistically dependent inputs can share an ID to improve uncertainty reasoning accuracy. PLN is imported into MeTTa code via PeTTa's git-import mechanism: !(git-import! "https://github.com/trueagi-io/PLN.git").

(Provenance: github-wiki, PLN repository wiki — usage guide and inference rules)

Evidence Tracking Strategy

PLN uses a deliberate two-tier approach to evidence tracking. For focused precise deliberative reasoning, stamp-disjoint checking (or full inference trails) prevents circular double-counting of evidence. For large-scale low-accuracy "background" inference, this overhead can be omitted — circular multiple-counting "kinda comes out in the wash" when running broad inference across large AtomSpaces. This design rationale informed the current stamp mechanism as a practical compromise between full inference trail maintenance and no trail tracking at all. Ben Goertzel noted maintaining an auxiliary AtomSpace to store inference digraphs was considered for the precise tier. (mailing-list-backed: Inference-trails, 2017)

Mathematical Foundations

The STV Quantale

The 2025 FactorGraph paper formalizes the message-passing algebra over PLN truth values using quantale-like operations. The carrier is the non-negative quadrant \([0,\infty) \times [0,\infty)\) (not \([0,1]^2\), since messages accumulate during propagation and are normalized at marginal readout).

Accumulation (marginalizing over variables, aggregating incoming messages):

\[\oplus\bigl((s_1,c_1),(s_2,c_2)\bigr) = (s_1 + s_2,\; c_1 + c_2)\]

Conjunction (at factor nodes, reflecting independent conjunction of premises):

\[\otimes\bigl((s_1,c_1),(s_2,c_2)\bigr) = (s_1 \cdot s_2,\; c_1 \cdot c_2)\]
  • Variables: \(s_i\) = strength (estimated probability), \(c_i\) = confidence (normalized evidence weight)
  • Domain: Carrier is \([0,\infty) \times [0,\infty)\) for message-passing; \(\otimes\) is closed on \([0,1]^2\)
  • Assumptions: \(\otimes\) assumes statistical independence between premises
  • Meaning: \(\oplus\) aggregates incoming messages during marginalization; \(\otimes\) combines premise truth values at factor nodes. Messages accumulate via \(\oplus\) and are renormalized at marginal readout.
  • Source: Goertzel (2025), PLN FactorGraph MORK v2

This structure enables PLN to participate in the broader weakness theory framework, where inference scheduling prioritizes steps that maximize weakness reduction per unit cost.

Linear Logic Connection

Ben Goertzel drew an explicit connection between PLN's evidence tracking and resource management in linear logic: the careful tracking of evidence in PLN maps to the resource-sensitivity of linear logic, where different heuristic approximations correspond to multiplicative vs. additive operator-sets. This provides theoretical motivation for PLN's two-operation quantale structure: \(\oplus\) (accumulation) corresponds to additive resource pooling, while \(\otimes\) (conjunction) corresponds to multiplicative resource consumption. (mailing-list-backed: Uncertain-linear-logic-and-PLN-truth-values, 2017)

Context Quantaloid Unification

The broader RawData describes a proposed unification of PLN and NARS as different computational strategies within a single Context Quantaloid framework. Rather than maintaining separate reasoning engines, both would be instantiated from the same algebraic structure — differing in their choice of quantale and update rules but sharing the same compositional semantics. This remains a theoretical proposal. An earlier (2014) precursor — "Fibered Products of Logics" — proposed combining PLN with temporal, deontic, and other logics via category-theoretic pullbacks, where each logic is a functor between categories of AtomSpaces and their combination is a pullback. The key practical insight: semantic fibering would yield auto-generated rules connecting temporal and probabilistic knowledge, e.g. \(TV(\text{Inheritance}\; A\; B) = \int_T TV(\text{AtTime}\; (\text{Inheritance}\; A\; B)\; T)\). (mailing-list-backed: Fibered-products-of-different-logics, 2014)

Independence Assumptions

The quantale product \(\otimes\) assumes independence between premises. The PLN FactorGraph MORK paper describes a heuristic restructuring pass that mitigates this: computing Jaccard similarity between variable neighborhoods to detect dependencies, then either inserting explicit DependencyFactor nodes or clustering correlated variables into macro-variables. This runs in \(O(|E|)\) using PathMap neighbor lookups.

Execution on MORK

The 2025 design documents propose two complementary execution strategies for PLN on MORK. The cluster-pilot review (2026) found these proposals at significantly different implementation maturities — see Implementation status notes below each section.

Backward Chaining (Goal-Directed) — partially implemented

The "PLN Chaining On MORK" paper describes a low-level backward chaining engine with:

  • Atom types: RuleAtom, PatternAtom, GoalAtom, ContinuationAtom, MagicAtom
  • Indices: HeadIndex (predicate+argument-mask → rules), FactIndex (ground/partial facts), UnifyIndex (argument hashes, Bloom filters for fast rejection)
  • Scheduling: best-first search prioritizing by weakness (prefer more general rules), expected gain / cost, and chain length
  • Caching: subgoal memos (transposition table), head filter caches, partial-proof caches — typically 10-100x speedup
  • Locality: KaHyPar hypergraph partitioning of co-activated atoms for NUMA-aware placement
  • Magic sets: push query bindings down into rule bodies to shrink candidate sets before unification

Implementation status: The chaining/repositoryRuleAtom contains DTL backward/forward chaining, proof-tree, iterative-chaining, and inference-control experiments, but the specific MORK-backed "PLN Chaining On MORK" architecture described above is only partially resonant with that repo. The paper's / GoalAtom / ContinuationAtom vocabulary, HeadIndex/FactIndex/UnifyIndex, magic sets, KaHyPar locality, and full memo/cache architecture were not found as an integrated implementation during cluster review.

Factor-Graph Belief Propagation (Background Reasoning) — paper / proposal / benchmark-only

The "PLN FactorGraph MORK v2" paper describes a message-passing implementation where:

  • Each PLN formula becomes a VariableAtom carrying an STV
  • Each inference rule instance becomes a FactorAtom with a local potential function \(\varphi_f : V^k \to V\)
  • FactorVarLinks connect factors to variables; MORK's PathMap indexes neighbor lookups in near-constant time
  • Variable→Factor messages aggregate incoming evidence via \(\oplus\)
  • Factor→Variable messages apply the rule's TV formula via \(\otimes\) and marginalize via existential quantification
  • Supports distributional truth values (matrix-multiply for deduction, matrix-invert for inversion)
  • Handles nested quantifiers via Skolemization with dedicated ExistsSTV and ForAllSTV routines

Implementation status: The MORK / PathMap substrate exists, and adjacent Lean formalization of its semantics exists at MORK MM2 PathMap Formalization. FactorGraph PLN over MORK itself remains paper / proposal / benchmark-only until a message-passing runtime is found or built. The cluster-pilot MORK review found no FactorGraph implementation in MORK Rust source — zero matches for FactorGraph, MessagePass, or BeliefPropagation. The atom vocabulary above (VariableAtom, FactorAtom, FactorVarLinks) is disjoint from the actual implemented atom types in MORK and chaining. The product-quantale algebra (\(\oplus\), \(\otimes\)) is real at the Lean level per the MORK-PathMap formalization, but that formalization specifies substrate semantics, not a message-passing runtime. See xiPLN §8 for the conceptual distinction between semantic factor graphs (world-model factorization) and operational factor graphs (inference control schedulers); the v2 paper's proposal is the latter and is not currently implemented.

When to Use Which (design-level intent)

Per the original 2025 design documents: backward chaining excels for goal-driven, latency-sensitive tasks (QA, dialogue, planning) involving localized portions of the knowledge base; factor-graph propagation excels for broad-based "background inference" that surfaces implicit knowledge across large AtomSpaces — running continuously in PRIMUS's ambient cognitive loop. Note: this is design-level intent. The factor-graph half is unrealized; MORK currently functions as a symbolic rewrite / forward-chaining substrate via (exec ...) programs (cluster-pilot finding), not as a belief-propagation runtime.

Design History and Implementation

Historical Design Decisions (mailing-list-backed)

Rules-as-Atoms Architecture. The 2014 transition from C++ hardcoded PLN rules to AtomSpace-based BindLink rules was a deliberate architectural choice enabling three capabilities: (1) the Pattern Matcher can execute rules directly, (2) PLN can reason about its own rules (meta-inference), and (3) MOSES can evolve new inference rules. However, this immediately created a combinatorial explosion problem — running a Deduction BindLink on a large AtomSpace creates a "gazillion" new InheritanceLinks. The solution was ECAN's attentional focus: only atoms with sufficient Short-Term Importance participate in inference. Tournament selection (choosing \(k\) random atoms and taking the highest-STI one) was adopted as the specific selection mechanism. This architecture — rules-as-atoms with attention-gated combinatorics — defined the Unified Rule Engine design. (Rule engine discussion, Simplifying-the-PLN-rule-set-some-possibilities, 2014)

PLN vs. MLN (Markov Logic Networks). A 2014 bridge to the Tuffy MLN engine established the weight mapping: \(w = c \cdot \log\bigl(s / (1-s)\bigr)\), where \(s\) is PLN strength and \(c\) is confidence. Key finding: Tuffy was much faster for closed-domain batch inference, but PLN's lazy grounding — creating atoms only as needed rather than pre-materializing all possible groundings — avoids the combinatorial explosion that breaks MLN when the constant domain is large. This led to a hybrid strategy: MLN for closed-domain batch processing, PLN for open-world reasoning. The lazy grounding advantage is a fundamental architectural property of the AtomSpace that carries forward to MORK. (PLN-and-MLN, Cosmo Harrigan / Matt Iklé / Ben Goertzel, 2014)

Inference Control as Self-Referential Learning. Nil Geisweiller (2017) proposed and prototyped inference control learning: mining the history of past inference traces to discover patterns that speed up future inferences. The approach is explicitly self-referential — "ultimately you need an AGI to address that, but wait, we have one" — with PLN reasoning about its own inference histories to learn which rules to apply when. This is a direct precursor to the learned control policies in the current MORK-based design. (Inference-control-problem, Inference-meta-learning, 2017)

Backward Chaining as Forward Control. Nil Geisweiller (2016) observed that backward chaining can be embedded within the forward chainer's control mechanism: the backward propagation logic determines which forward steps to take next. This architectural insight — that backward chaining is reducible to goal-directed forward chaining control — anticipated the polyward chaining approach now used in the MeTTa implementation. (The-no-BC, 2016)

The "Reasoning Forests" Gap. A structural limitation acknowledged in the OpenCog-era PLN design: "reasoning can never be particularly deep" due to combinatorial explosion, and the system failed to provide "infrastructure for managing 'reasoning forests', or multiple, independent 'reasoning agents'" — a contrast with machine learning's decision-tree forests that run many independent estimators in parallel. Attention allocation was required to identify "fruitful directions of inference," but even with ECAN guidance, the single-threaded chaining architecture could not explore multiple reasoning paths simultaneously. This limitation directly motivated both the MORK parallel execution model and the geodesic inference control in the current design. (Provenance: official-site, wiki.opencog.org— PLN design notes)

System Interfaces and Dependencies

  • ECAN: attention allocation guides which inferences are worth pursuing, preventing combinatorial explosion. PLN results inform which atoms deserve increased attention. (See Harrigan et al. 2014.)
  • MOSES: PLN evaluates logical consistency of evolved programs; MOSES evolves inference control strategies for PLN.
  • Pattern Mining: mined patterns become inference templates and proof search heuristics.
  • Weakness Theory: the PLN-Quantale framework enables weakness-guided scheduling across both execution modes.
  • Geodesic Control: maintains forward (\(f\)) and backward (\(g\)) factors simultaneously, choosing steps that maximize \(\Delta\log(f \times g)\) per unit cost.
  • MetaMo: motivational framework determines which inference goals are most urgent.

Implementation Anchors

  • PLN (primary) — consolidated lib_pln.metta on PeTTa. Rules: Revision, Modus Ponens, Deduction, Induction, Abduction, Evaluation, Negation. Configurable parameters. Imported via PeTTa git-import.
  • pln-experimental — research platform with complete mathematical formalization (nuPLN.pdf), multiple rule representations (match-based, entailment-based, equality-based, dependent-types), ETV support, program synthesis experiments.
  • chaining — DTL-based forward/backward/polyward chaining, Metamath proofs, modal logic, program verification.
  • PLN2 (patham9/PLN) — fork preserving older modular src/ structure.
  • PLN3 (ngeiswei/PLN) — fork with extended rule set (Symmetric Modus Ponens, Transitive Similarity).
  • hyperon-pln — experimental Hyperon port exploring four implementation approaches with Idris2 prototyping.
  • Legacy: opencog/pln(C++/Scheme, superseded)

Implementation Findings (discussion-backed, code-corroborated)

  • Premise ordering performance: Moving the most specific premise first in modus ponens reduces proof search from minutes (Hyperon Experimental) to ~100ms (PeTTa) — a ~1000× speedup, demonstrating that inference control via premise ordering is a critical optimization even before formal attention allocation. (nil, PLN Development Mattermost, Oct 2025; PeTTa PR #21)
  • STV/Beta distribution conversion: Code at pln-experimental/metta/common/truthvalue/TruthValue.metta provides conversion between PLN Simple Truth Values and Beta distribution parameters. STV strength maps to Beta mode (not mean); confidence relates to sample count via \(w = N/(N+k)\) where \(k\) is lookahead. The product of two Beta distributions is not Beta, but Beta approximation with matched mean/variance works well in practice. (nil, matt_ikle, robert.wuensche, PLN Development, Jun–Jul 2025)
  • Noisy-OR truth function: PLN now supports Truth_NoisyOr alongside Truth_Revision for aggregating independent alternative causes (OR semantics vs. weighted-average revision). Achieves near-identical results to ProbLog on standard benchmarks including noisy-OR disease models. The default P(B|¬A) = 0.2 in modus ponens is now a settable parameter. (abdu, patham9, PLN Mattermost, Mar 2026)
  • Virtual link performance cliff: In OpenCog Classic, wrapping queries in GetLink with virtual links (AbsentLink) caused a 1250× slowdown (4ms → 5s) because the pattern matcher attempted inference on ungrounded variables. The backward chainer never fully supported targets containing virtual links — a fundamental limitation that motivated the MeTTa redesign where pattern matching and rule chaining share a unified execution model. (Alexander Gabriel, Nil Geisweiller, opencog-ml, Mar 2020)
  • PLN-based next token prediction: Experimental use case exploring PLN inductive/abductive reasoning for token prediction — potentially able to emerge ontological hierarchies from text sequences. Use case document at pln-experimental/docs/use-cases/next-token-prediction/. (nil, PLN Development, Jun 2025)
  • Classic PLN performance baseline: The first working multi-step PLN forward inference (March 2016) took 4 days to run 1M inference steps and was non-deterministic due to atoms being sorted by memory address. This was the state of the art in OpenCog Classic — the context against which the ~1000× PeTTa speedup should be measured. (mailing-list-backed: A-pretty-sophisticated-working-PLN-forward-inference-thanks-to-Nil, 2016)

Status and Resources

Current Status

  • Operational: PLN rules and forward/backward chainers run on PeTTa (high-performance) and Hyperon Experimental (reference). Core inference rules implemented: deduction, induction, abduction, modus ponens, conjunction/disjunction introduction/elimination. Pattern mining integration via hyperon-miner. NARS-compatible truth value formulas available.
  • Under development: Factor-graph-based inference on quantale-annotated logical factor graphs; PLN-ECAN integration for attention-guided inference control; PLN v1.0 milestone planning in progress (Jan 2026)
  • Proposed: Full weakness-based inference scheduling (Weakness Theory §6–7); Schrödinger bridge geodesic control for optimal inference paths; MORK-native PLN chaining

Open Problems / Research Directions

  • Independence assumption mitigation at scale (dependency restructuring pass described in FactorGraph paper)
  • Temporal and procedural reasoning extensions (Geisweiller & Yusuf 2023)
  • Effective resource and attention allocation control via ECAN integration
  • Benchmarking infrastructure for comparing chaining vs. factor-graph modes
  • Quantale-based unification of PLN and NARS inference within shared Context Quantaloid

OSLF Foundations for Probabilistic PLN (piPLN) (discussion-backed)

Greg Meredith's OSLF (Observational/Spatial Logic Formulae) framework provides the category-theoretic foundation from which PLN's probabilistic semantics can be formally derived. The "secret decoder ring" bridging OSLF to MeTTa evaluation is:

\[\llbracket (U : X) \rrbracket = \mathbf{for}\;(p \leftarrow \llbracket X \rrbracket \;\mathbf{where}\; \llbracket U \rrbracket)\;\mathbf{yield}\;\{p\}\]

where \(X\) is a sort in the computation theory and \(U\) is a filter on sorts looking for structural and behavioral characteristics. This interprets the Grothendieck construction concretely: collect all program witnesses \(p\) from the semantic space of \(X\) that satisfy filter \(U\). (leithaus, PLN Mattermost, Sep 2023)

Meredith identified three independent sources of fuzziness in OSLF that map to distinct probabilistic mechanisms in piPLN (PLN Mattermost, Nov 2023):

  1. Graph/Evolution: probability distribution over computational transitions → fuzzy modal operator ("how you evolve is nuanced")
  2. Yoneda/Representability: enriched Yoneda lemma where witnesses are probabilistically determined by morphisms → fuzzy identity ("you are kinda who you know")
  3. Poset/Collection: fuzzified membership in the lattice superimposed on Yoneda → graded set membership ("your membership in clubs is nuanced")

Each source can be independently fuzzified or kept crisp, yielding a family of logics ranging from classical to fully probabilistic. The enrichment uses Paige North's weighted (co-)limits machinery. This research direction remains active but pre-implementation.

Primary Sources

Worked Examples in the PLN Repository




it would be nice to have a high level explanation of what PLN is in the beginning.

 

 

Toothbrush reasoning and pln-experimental — exploratory implementation does not lead to any page

Anna.....2026-05-04 21:02:11 UTC

if we include things like this:

lib_pln.metta on PeTTa runs the pln0.9 rule surface (~14 rules, multiplicative-confidence pivot since Peter Isaev's commit 7ffce05)

we should have some automatic update, since commits usually happen pretty often

Anna.....2026-05-04 21:03:55 UTC