@cite{tessler-franke-2019} on mathlib PMF (Shape B + cost-factor migration) #
@cite{tessler-franke-2019}
PMF-shaped formalisation of the paper's 6 findings. The first PMF
migration with a cost factor in the S1 score:
S1(u | w) ∝ L0(w | u)^α · exp(−C(u)). Validates that RSA.S1Belief's
costFactor : U → ℝ≥0∞ argument handles the canonical exp(-cost) shape.
Friction surfaced (informs API direction) #
- Cost factor as ENNReal:
exp (-utteranceCost u)lives inℝ— needs lift toℝ≥0∞viaENNReal.ofReal. Pattern fromNouwen2024PMF.lean. - 32-state latent:
Latent := HThreshold × HThreshold × NegLexicon(4×4×2). The per-latent leaves are 32-case case-bashes — well beyond hand-discharge. Validates the need forpmf_score_comparetactic. - Shape D mixture: finding
not_unhappy_more_positive_than_not_happycomparesL1 .notUnhappy (deg 3) > L1 .notHappy (deg 3)— same world, DIFFERENT observation. Different from same-observation Shape B; needs cross-observation API analysis.
§0. Domain types #
Happiness degree: 0 (miserable) to 4 (ecstatic).
Equations
Instances For
Threshold values 0–3, used for both θ₁ (positive) and θ₂ (contrary).
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- TesslerFranke2020.PMF.instDecidableEqUtterance x✝ y✝ = if h : x✝.ctorIdx = y✝.ctorIdx then isTrue ⋯ else isFalse ⋯
Equations
- One or more equations did not get rendered due to their size.
Lexicon for morphological negation "un-": contrary (polar opposite with
gap) vs contradictory (complement). Aliased to Features.NegationType.
Instances For
Joint latent state: (θ₁, θ₂, L) — 4 × 4 × 2 = 32 latent states.
Equations
Instances For
Utterance meaning parameterized by thresholds and lexicon, grounded in
shared Semantics.Degree predicates.
Equations
- TesslerFranke2020.PMF.utteranceMeaning θ₁ θ₂ L TesslerFranke2020.PMF.Utterance.happy d = decide (Semantics.Degree.positiveMeaning d θ₁)
- TesslerFranke2020.PMF.utteranceMeaning θ₁ θ₂ L TesslerFranke2020.PMF.Utterance.notHappy d = !decide (Semantics.Degree.positiveMeaning d θ₁)
- TesslerFranke2020.PMF.utteranceMeaning θ₁ θ₂ Features.NegationType.contrary TesslerFranke2020.PMF.Utterance.unhappy d = decide (Semantics.Degree.negativeMeaning d θ₂)
- TesslerFranke2020.PMF.utteranceMeaning θ₁ θ₂ Features.NegationType.contradictory TesslerFranke2020.PMF.Utterance.unhappy d = !decide (Semantics.Degree.positiveMeaning d θ₁)
- TesslerFranke2020.PMF.utteranceMeaning θ₁ θ₂ Features.NegationType.contrary TesslerFranke2020.PMF.Utterance.notUnhappy d = !decide (Semantics.Degree.negativeMeaning d θ₂)
- TesslerFranke2020.PMF.utteranceMeaning θ₁ θ₂ Features.NegationType.contradictory TesslerFranke2020.PMF.Utterance.notUnhappy d = decide (Semantics.Degree.positiveMeaning d θ₁)
Instances For
Utterance cost (morphological complexity): C(un-) = 2, C(not) = 3,
combined additively.
Equations
- TesslerFranke2020.PMF.utteranceCost TesslerFranke2020.PMF.Utterance.happy = 0
- TesslerFranke2020.PMF.utteranceCost TesslerFranke2020.PMF.Utterance.unhappy = 2
- TesslerFranke2020.PMF.utteranceCost TesslerFranke2020.PMF.Utterance.notHappy = 3
- TesslerFranke2020.PMF.utteranceCost TesslerFranke2020.PMF.Utterance.notUnhappy = 5
Instances For
§1. L0 — uniform on extension via RSA.L0OfBoolMeaning #
Lexicon as a function from latent state.
Equations
- TesslerFranke2020.PMF.meaningAt l = TesslerFranke2020.PMF.utteranceMeaning l.1 l.2.1 l.2.2
Instances For
§2. S1Belief — cost-bearing speaker via RSA.S1Belief #
The cost factor: exp (-utteranceCost u). Cast to ℝ≥0∞.
Equations
- TesslerFranke2020.PMF.costFactor u = ENNReal.ofReal (Real.exp (-↑(TesslerFranke2020.PMF.utteranceCost u)))
Instances For
§3. Per-latent L0 + S1g + marginalSpeaker — sketch only #
The per-latent S1g would be RSA.S1Belief (L0_at l) costFactor 1, marginalized
over LatentState via RSA.marginalizeKernel against a uniform latent prior.
Then L1 = PMF.posterior against uniform world prior.
The structural shell follows the ScontrasPearl template exactly. The leaves
(per-latent comparisons across 32 states) are well beyond hand-discharge
without the pmf_score_compare tactic.
This file is a placeholder + friction documentation. Full migration deferred pending tactic infrastructure.