Documentation

Linglib.Phonology.Constraints.Profile

Violation Profiles #

OT-tradition names for the neutral violation primitives in Core.Optimization.Evaluation, shared by Optimality Theory (lexicographic comparison) and Harmonic Grammar (weighted aggregation, [riggle-2009]).

Main definitions #

Main results #

@[reducible, inline]

OT-named alias for Lex (Fin n → Nat) — fixed-length violation profile.

Equations
Instances For
    @[reducible, inline]
    abbrev Constraints.buildViolationProfile {C : Type u_1} {n : } (con : CON C n) (c : C) :

    OT-named alias for lexFinNatOf — assemble a profile from a constraint set CON C n.

    Equations
    Instances For
      @[simp]
      theorem Constraints.buildViolationProfile_apply {C : Type u_1} {n : } (con : CON C n) (c : C) (i : Fin n) :
      buildViolationProfile con c i = con i c

      The zero profile is the bottom element: 0 ≤ p for every profile p, so a candidate with no violations wins under any ranking.

      theorem Constraints.ViolationProfile.le_apply_zero {n : } {a b : ViolationProfile (n + 1)} (h : a b) :
      a 0 b 0

      OT-named alias for lexFinNat_le_apply_zero — first-component extraction from a lexicographic .