Additive contents and the orders they induce #
Finitely additive (FinAddMeasure) and qualitatively additive
(QualAddMeasure) probability contents on Set W, valued in an ordered field,
and the qualitative probability orders they induce.
Main definitions #
FinAddMeasure,QualAddMeasure— withFunLikeapplicationm A,ofFintype(discrete contents),map(pushforward).QualAddMeasure.toQualitativeProbability,FinAddMeasure.toQualAdd,FinAddMeasure.toQualitativeProbability.
Implementation notes #
The contents are generic over an ordered field K: ℝ gives classical
[0,1]-valued measures, ℚ the computable theory. On a finite state space the
two agree (rational and real linear feasibility coincide), and only ℚ supports
the constructive Farkas (Core/Order/FourierMotzkin.lean) and decide-checked
models (Representability.lean) behind the representation theorems.
FinAddMeasure mirrors mathlib's MeasureTheory.AddContent interface (FunLike,
primed axiom fields with unprimed lemmas); re-founding on AddContent itself
would trade the ordered-field axioms for monoid-valued contents over a set
system with sUnion side conditions, so the structure stays local.
FinAddMeasure.inducedGe is Order.Preimage ⇑m (· ≥ ·).
A finitely additive probability measure on subsets of W, valued in an
ordered field K. The value type is left generic: instantiate at ℚ for the
constructive, decide-able representation theory and at ℝ for classical
[0,1]-valued measures (see the module docstring).
The measure applies as a function: m A, via FunLike.
- toFun : Set W → K
The measure function. Apply the measure itself:
m A. Non-negativity. Use the lemma
nonneg.Finite additivity on disjoint sets. Use the lemma
additive.- total' : self.toFun Set.univ = 1
Normalization. Use the lemma
total.
Instances For
Equations
- ComparativeProbability.FinAddMeasure.instFunLikeSet = { coe := ComparativeProbability.FinAddMeasure.toFun, coe_injective := ⋯ }
Measure-induced comparative likelihood A ≿ B ↔ μ(A) ≥ μ(B) — the
≿-reading (QualitativeProbability.ge) consumed by the logic layer; the
order itself is toQualitativeProbability.
Equations
- m.inducedGe A B = (m A ≥ m B)
Instances For
μ(∅) = 0 for any finitely additive measure. Follows from additivity: μ(∅ ∪ ∅) = μ(∅) + μ(∅), but ∅ ∪ ∅ = ∅.
Subset monotonicity: A ⊆ B → μ(A) ≤ μ(B).
Complement measure: μ(A) + μ(Aᶜ) = 1.
Qualitative additivity for a finitely additive measure: splitting A and B
into the shared part A ∩ B and the private parts cancels the shared part.
The measure of a finite set is the sum of its singleton measures.
Pushforward of a finitely additive measure along a map.
Equations
- ComparativeProbability.FinAddMeasure.map f m = { toFun := fun (A : Set α) => m (f ⁻¹' A), nonneg' := ⋯, additive' := ⋯, total' := ⋯ }
Instances For
The discrete measure with weight w i on the atom i (the PMF.ofFintype
pattern).
Equations
- ComparativeProbability.FinAddMeasure.ofFintype w hw hw1 = { toFun := fun (A : Set W) => ∑ i : W, if i ∈ A then w i else 0, nonneg' := ⋯, additive' := ⋯, total' := ⋯ }
Instances For
Qualitatively additive measures #
A qualitatively additive measure on subsets of W.
Unlike FinAddMeasure, this does NOT require μ(A ∪ B) = μ(A) + μ(B)
for disjoint A, B. Instead it requires the weaker qualitative additivity
condition: μ(A) ≥ μ(B) ↔ μ(A \ B) ≥ μ(B \ A).
Every qualitative probability order on a finite carrier is represented by
one (exists_qualAddMeasure_repr), by an affine renormalisation of the
dominated-set count.
- toFun : Set W → K
The measure function. Apply the measure itself:
m A. Non-negativity. Use the lemma
nonneg.- empty' : self.toFun ∅ = 0
The impossible proposition has measure zero. Use the lemma
mu_empty. - total' : self.toFun Set.univ = 1
Normalization. Use the lemma
total. Qualitative additivity. Use the lemma
qualAdd.
Instances For
Equations
- ComparativeProbability.QualAddMeasure.instFunLikeSet = { coe := ComparativeProbability.QualAddMeasure.toFun, coe_injective := ⋯ }
Qualitative additivity: μ(A) ≤ μ(B) ↔ μ(A ∖ B) ≤ μ(B ∖ A).
Measure-induced comparative likelihood A ≿ B ↔ μ(A) ≥ μ(B) (the
≿-reading; see FinAddMeasure.inducedGe).
Equations
- m.inducedGe A B = (m A ≥ m B)
Instances For
Subset monotonicity: A ⊆ B → μ(A) ≤ μ(B). From qualAdd + μ(∅) = 0 + nonneg.
A qualitatively additive measure induces a qualitative probability order.
Equations
- m.toQualitativeProbability = { le := fun (A B : Set W) => m A ≤ m B, mono' := ⋯, nonTrivial := ⋯, total := ⋯, trans' := ⋯, additive := ⋯ }
Instances For
Every finitely additive measure is qualitatively additive. Proof: μ(A) = μ(A \ B) + μ(A ∩ B) and μ(B) = μ(B \ A) + μ(A ∩ B), so μ(A) ≥ μ(B) ↔ μ(A \ B) ≥ μ(B \ A).
Instances For
Every finitely additive measure induces a qualitative probability order,
through toQualAdd.