Theorem 1, eqs. (5)-(7): equal likelihood ratios give the difference identity
ProvedLinearIdentifiability.likelihood_ratio_identityLet be a data distribution as in Section 2.1, and let and be two models of the form (1) with on the data. Let occur in the data and let . Then the likelihood ratios agree,
and, the normalising constants cancelling,
This is the identity (7) on which the identifiability of rests.
Formalization Note The paper writes the support condition as (a typo); it is stated here as: and lie in one candidate set with , which is what the proof uses.
import Mathlib import Definitions.Def_LinearIdentifiability_Basic open Matrix
namespace LinearIdentifiability
theorem likelihood_ratio_identity {X Y : Type*} {M : ℕ}
(pD : PMF (X × Y × Finset Y)) (hD : IsDataDistribution pD)
(f' fstar : X → Fin M → ℝ) (g' gstar : Y → Fin M → ℝ)
(hp : ModelsAgreeOnData pD f' g' fstar gstar)
(x : X) (S : Finset Y) (hS : IsSupported pD x S) (yA yB : Y) (hA : yA ∈ S) (hB : yB ∈ S) :
modelProb f' g' x S yA / modelProb f' g' x S yB =
modelProb fstar gstar x S yA / modelProb fstar gstar x S yB ∧
(g' yA - g' yB) ⬝ᵥ f' x = (gstar yA - gstar yB) ⬝ᵥ fstar x := by sorry
end LinearIdentifiabilityRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let and be arbitrary types (inputs and targets) and a natural number; is allowed, in which case all vectors in are empty and every dot product below equals .
Data distribution. Let be a probability mass function on triples , where , and is a finite subset of . Say a pair occurs in the data if for at least one . Assume is a data distribution, meaning both of the following hold:
- has finite support;
- for every pair that occurs in the data and every , if and only if .
Models. Let be two representation maps and two context maps. For any such pair , the model probability is defined, for , a finite and , by
This definition is taken literally, with two consequences:
- is not required to lie in ;
- if , the denominator is and the value is by the convention that division by zero gives .
Agreement hypothesis. Assume the two models agree on the data: for every pair occurring in the data and every ,
Fixed data. Fix and a finite such that occurs in the data. Fix with and . The case is allowed. Because contains , it is nonempty, so each normalizing sum above is strictly positive.
Conclusion. The theorem asserts that both of the following hold:
- the probability ratios coincide,
- the dot products of context differences with the representations coincide,
Here the division in item 1 is ordinary real division, again with the convention that dividing by gives .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.