Documentation

Linglib.Morphology.Construction.SameExcept

Same-except relations #

Two items over a shared position space are the same except at a set S of positions when they agree everywhere outside S ([CJ12]; [JA20] §3.7). This is literally Set.EqOn on the complement, so the relation inherits mathlib's equal-on API. William James' observation that comparison presupposes a common frame is the domain-general root; the shared position type Pos encodes the Gentner-Sagi structural-alignment presupposition — the two items are already put into correspondence.

What happens at the except-positions classifies the relation. In an elaboration, one side is decorated and the other empty (): the same as the other plus something else. In a contrast, both sides are decorated and differ. [JA20] add a third reading for the schema-to-instance case, where the item strictly dominates the schema (Instantiation); they hedge what to call it, and strict order is one settled reading, not William James' or [CJ12]'s. The three cases are intentionally non-exhaustive — double contrasts and elaborations in different places satisfy none.

A schema itself expresses a same-except relation to its instances (Instantiation.instantiates): the instantiation case entails Schema.Instantiates.

Main declarations #

@[reducible, inline]
abbrev Morphology.Construction.SameExcept {Pos : Type u_1} {α : Type u_2} (f g : Posα) (S : Set Pos) :

Two items are the same except at S when they agree off S: Set.EqOn on the complement.

Equations
Instances For
    theorem Morphology.Construction.SameExcept.symm {Pos : Type u_1} {α : Type u_2} {f g : Posα} {S : Set Pos} (h : SameExcept f g S) :

    Same-except is symmetric.

    theorem Morphology.Construction.SameExcept.mono {Pos : Type u_1} {α : Type u_2} {f g : Posα} {S T : Set Pos} (hST : ST) (h : SameExcept f g S) :

    Same-except is monotone in the except-set: agreeing off a smaller set implies agreeing off a larger one.

    theorem Morphology.Construction.SameExcept.trans {Pos : Type u_1} {α : Type u_2} {f g k : Posα} {S : Set Pos} (h₁ : SameExcept f g S) (h₂ : SameExcept g k S) :

    Same-except is transitive at a fixed except-set.

    def Morphology.Construction.Instantiation {Pos : Type u_1} {α : Type u_2} [PartialOrder α] (f g : Posα) (S : Set Pos) :

    The schema-to-instance case: same except at S, where the second strictly dominates the first — [JA20]'s added third reading.

    Equations
    Instances For
      theorem Morphology.Construction.Instantiation.instantiates {Pos : Type u_1} {α : Type u_2} [PartialOrder α] {s : Schema Pos α} {w : Posα} {S : Set Pos} (h : Instantiation s.body w S) :

      The schema-instance relation is a same-except relation: an instantiation of a schema's description entails Schema.Instantiates.

      def Morphology.Construction.Elaboration {Pos : Type u_1} {α : Type u_2} [PartialOrder α] [OrderBot α] (f g : Posα) (S : Set Pos) :

      An elaboration: same except at S, where the first side is present and the second empty — the same as the other plus something else.

      Equations
      Instances For
        def Morphology.Construction.Contrast {Pos : Type u_1} {α : Type u_2} [PartialOrder α] [OrderBot α] (f g : Posα) (S : Set Pos) :

        A contrast: same except at S, where both sides are present and distinct.

        Equations
        Instances For
          theorem Morphology.Construction.Contrast.symm {Pos : Type u_1} {α : Type u_2} [PartialOrder α] [OrderBot α] {f g : Posα} {S : Set Pos} (h : Contrast f g S) :
          Contrast g f S

          Contrast is symmetric.