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 #
SameExcept— agreement off a position set (Set.EqOnon the complement)SameExcept.symm,SameExcept.mono,SameExcept.trans— the equal-on APIElaboration,Contrast,Instantiation— the classification at the except-positionsContrast.symm— contrast is symmetricInstantiation.instantiates— the schema-instance relation is a same-except relation
Two items are the same except at S when they agree off S: Set.EqOn
on the complement.
Equations
- Morphology.Construction.SameExcept f g S = Set.EqOn f g Sᶜ
Instances For
Same-except is symmetric.
Same-except is monotone in the except-set: agreeing off a smaller set implies agreeing off a larger one.
Same-except is transitive at a fixed except-set.
The schema-to-instance case: same except at S, where the second strictly
dominates the first — [JA20]'s added third reading.
Equations
- Morphology.Construction.Instantiation f g S = (Morphology.Construction.SameExcept f g S ∧ ∀ p ∈ S, f p < g p)
Instances For
The schema-instance relation is a same-except relation: an instantiation of a
schema's description entails Schema.Instantiates.
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
- Morphology.Construction.Elaboration f g S = (Morphology.Construction.SameExcept f g S ∧ ∀ p ∈ S, f p ≠ ⊥ ∧ g p = ⊥)
Instances For
A contrast: same except at S, where both sides are present and distinct.
Equations
- Morphology.Construction.Contrast f g S = (Morphology.Construction.SameExcept f g S ∧ ∀ p ∈ S, f p ≠ ⊥ ∧ g p ≠ ⊥ ∧ f p ≠ g p)