Documentation

Linglib.Core.Inheritance.Default

Default Inheritance — Local Properties + BFS Lookup + Best Fit Principle #

@cite{hudson-2010} §2.5, §3.5, §4.6.4

A node's value for a relation r is determined by:

  1. Its local value if one is specified (localProps net node r).
  2. Otherwise, the value of its nearest ancestor in the isA chain that has a local value for r — the Best Fit Principle: "When a default conflicts with a more specific fact, the specific fact wins" @cite{hudson-2010} §4.6.4. Hudson attributes the principle to Winograd's earlier work on frame-based defaults but generalises it from frames to a property of the cognitive network as a whole.

Like ancestors, the BFS recursion is bounded by nodeUniverse.length rather than a magic constant — finite networks always reach a fixpoint.

The override case (where a child specifies a local value that differs from its parent's) is the empirical heart of WG: passive inherits transitive's arg-structure but overrides slot 1; the inverted auxiliary inherits the verb's subject slot but overrides its direction.

def Core.Inheritance.localProps {α R : Type} [DecidableEq α] [DecidableEq R] (net : Network α R) (node : α) (r : R) :
List α

Local property values: targets of .prop links from node with label r. A node may have multiple values for the same relation (e.g., a bird has two wings).

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    def Core.Inheritance.inheritedBound {α R : Type} [DecidableEq α] [DecidableEq R] (net : Network α R) (node : α) (r : R) :
    List α

    Bounded BFS for inherited property values. The bound parameter is intended to be ≥ (nodeUniverse net).length. Structurally recursive on Nat.

    Equations
    Instances For
      def Core.Inheritance.inherited {α R : Type} [DecidableEq α] [DecidableEq R] (net : Network α R) (node : α) (r : R) :
      List α

      Inherited property values for relation r, resolved by the Best Fit Principle: the most specific (nearest ancestor in the isA chain) wins. Recursion bound derived from network size.

      Equations
      Instances For
        theorem Core.Inheritance.bestFit_local {α R : Type} [DecidableEq α] [DecidableEq R] (net : Network α R) (node : α) (r : R) (h : localProps net node r []) :
        inherited net node r = localProps net node r

        If a node has local properties for r, inherited returns them directly (local overrides inherited).