Documentation

Linglib.Phonology.HarmonicGrammar.Deformation

The Constraint-Framework Deformation Lattice #

[SL06] [PS93] [GJ03] [Rig09b] [Lit05]

OT, HG, MaxEnt, and Stochastic OT are not four unrelated frameworks but the four corners of a single deformation lattice, parameterised by two independent dequantization axes:

                    weights = real-valued, exp-separated?
                  ───────────────────────────────────────►
                     no                       yes
              ┌─────────────────────┬──────────────────────┐
   soft   ⌃   │                     │                      │
   (α<∞)  │   │      MaxEnt         │   Stochastic OT      │
          │   │   (real-soft)       │  (categorical-soft)  │
          │   │                     │                      │
   ───────┼───┼─────────────────────┼──────────────────────┤
          │   │                     │                      │
   hard   │   │        HG           │        OT            │
   (α→∞)  │   │   (real-hard)       │  (categorical-hard)  │
          │   │                     │                      │
              └─────────────────────┴──────────────────────┘

Going around the lattice diagonally — MaxEnt → OT — is then the composition: dequantize the temperature and exponentially separate the weights. The composite limit theorem is maxent_ot_limit in OTLimit.lean.

What this file adds #

OTLimit.lean already proves maxent_ot_limit via softmax_argmax_limit (Banach-style concentration of softmax on argmax). This file provides the algebraic, semiring-level restatement: the same composite limit viewed through the lens of lseFinset (the warped semiring's additive operator at finite temperature). The two viewpoints are equivalent — softmax(α·H)(c) → 1 iff lseFinset α H → H(c) — but the lse picture makes the two dequantization axes visible side-by-side.

Concretely:

  1. lse_aggregator_tendsto_winner_harmony — the lseFinset α aggregator on harmony scores tends to the harmony of the OT winner as α → ∞. This is argmax_winner_iff_lse_max_limit composed with ot_lex_imp_higher_harmony.

This says: the OT winner is exactly the candidate whose harmony "tracks the soft aggregator all the way to the limit."

The Soft Aggregator on Harmony Scores #

theorem HarmonicGrammar.lse_aggregator_tendsto_winner_harmony {C : Type u_1} [DecidableEq C] (ranking : List (Constraints.Constraint C)) (M : ) (hM : 0 < M) (cands : Finset C) (c_opt : C) (hc_opt : c_opt cands) (hbound : ccands, conranking, con c M) (hlex : ccands, c c_opt(toLex fun (i : Fin ranking.length) => ranking.get i c_opt) < toLex fun (i : Fin ranking.length) => ranking.get i c) :
Filter.Tendsto (fun (α : ) => Core.Optimization.lseFinset α cands (Constraints.harmonyScore ranking.get (expWeights ranking.length M))) Filter.atTop (nhds (Constraints.harmonyScore ranking.get (expWeights ranking.length M) c_opt))

The lseFinset α aggregator applied to harmony scores converges to the OT winner's harmony as α → ∞.

This is the lse-flavored restatement of maxent_ot_limit. Where maxent_ot_limit says the softmax probability concentrates on the OT winner, this says the warped aggregator's value converges to the OT winner's harmony — i.e., the OT winner is exactly the candidate whose harmony is realised in the dequantized limit of the warped semiring's additive operator.

The proof composes:

  1. ot_lex_imp_higher_harmony (HG–OT agreement under exponentially separated weights)
  2. argmax_winner_iff_lse_max_limit (the dequantized argmax bridge, § 4 of Core/Optimization/Semiring.lean)