The paradigm function into word trees #
The engine's state type Z is unconstrained ([BS17]'s PFM1,
Paradigm/Function.lean), so the paradigm function runs at
Z := Word.Tree M as readily as at material sequences. An affix-transparent
vocabulary interprets into both, and toList intertwines the two runs
(toList_paradigmFunction_tree); the emitted tree's stem is the chosen leaf
under any classification counting the vocabulary's material as inflectional
([Spe13b]'s inflection-hood by provenance), and a kind-coherent
vocabulary emits a kind-coherent tree.
Main declarations #
AffixAction— a prefix or suffix action carrying its affix; interprets into the engine at trees (toTreeAction) and at sequences (toAction)toList_paradigmFunction_tree,stem_paradigmFunction_tree,isKindCoherent_paradigmFunction_tree— linearization, stem, and coherence of the tree-valued run
The affix-transparent vocabulary #
A prefix or suffix action carrying its affix; rules over AffixAction
cannot carry referrals.
- pre
{M : Type u_4}
(m : M)
: AffixAction M
Prepend the affix.
- suf
{M : Type u_4}
(m : M)
: AffixAction M
Append the affix.
Instances For
The affix an action attaches.
Equations
Instances For
Apply an affix action to a tree.
Equations
- (Morphology.PFM.AffixAction.pre m).apply x✝ = Morphology.Word.Tree.prefixed m x✝
- (Morphology.PFM.AffixAction.suf m).apply x✝ = x✝.suffixed m
Instances For
Apply an affix action to a material sequence.
Equations
- (Morphology.PFM.AffixAction.pre m).applyList x✝ = m :: x✝
- (Morphology.PFM.AffixAction.suf m).applyList x✝ = x✝ ++ [m]
Instances For
The engine interpretation at tree-valued state.
Equations
Instances For
The engine interpretation at material sequences.
Equations
Instances For
The affix is bound on the side apply places it.
Equations
- (Morphology.PFM.AffixAction.pre m).KindCoherent = (m.side? = some Morphology.Morph.Side.before)
- (Morphology.PFM.AffixAction.suf m).KindCoherent = (m.side? = some Morphology.Morph.Side.after)
Instances For
The tree-valued run #
The tree-valued run linearizes to the sequence-valued run: the recorded structure is what the engine did.
Under any classification counting the vocabulary's material as inflectional, the tree-valued run's stem is the chosen leaf.
A kind-coherent vocabulary over a root-or-free stem leaf emits a kind-coherent tree.