MindFormal v1.0.0One Mind

MindFormal.Tools.A699Shared.LabelBounds

def MindFormal.A699Shared.IsLabelMass {I : Type u_1} [Fintype I] (p : I → ℝ) :
Equations
Instances For
    theorem MindFormal.A699Shared.IsLabelMass.le_one {I : Type u_1} [Fintype I] {p : I → ℝ} (hp : IsLabelMass p) (i : I) :
    p i ≤ 1
    theorem MindFormal.A699Shared.two_le_sum {I : Type u_1} [Fintype I] (f : I → ℝ) (hf : ∀ (i : I), 0 ≤ f i) (i j : I) (hij : i ≠ j) :
    f i + f j ≤ ∑ k : I, f k
    theorem MindFormal.A699Shared.IsLabelMass.other {I : Type u_1} [Fintype I] {p : I → ℝ} (hp : IsLabelMass p) (i j : I) (hij : i ≠ j) :
    p i ≤ 1 - p j
    theorem MindFormal.A699Shared.protected_label_bounds {I : Type u_1} [Fintype I] {p q : I → ℝ} (hp : IsLabelMass p) (hq : IsLabelMass q) {ε : ℝ} (i j : I) (hpi : 1 - ε ≤ p i) (hqj : 1 - ε ≤ q j) :
    (i ≠ j → 1 - 2 * ε ≤ 1 - ∑ k : I, p k * q k) ∧ (i = j → 1 - ∑ k : I, p k * q k ≤ 2 * ε)

    Protected distinct labels have disagreement at least 1-2ε; protected equal labels have disagreement at most 2ε. This applies to the complete probability vector, including the missing label.

    theorem MindFormal.A699Shared.label_l1_point {I : Type u_1} [Fintype I] {p : I → ℝ} (hp : IsLabelMass p) (i : I) :
    ∑ k : I, |p k - if k = i then 1 else 0| = 2 * (1 - p i)
    theorem MindFormal.A699Shared.protected_excess_bounds {I : Type u_1} [Fintype I] {p q : I → ℝ} (hp : IsLabelMass p) (hq : IsLabelMass q) {ε : ℝ} (hε : 0 ≤ ε) (hε2 : ε ≤ 1 / 2) (i j : I) (hpi : 1 - ε ≤ p i) (hqj : 1 - ε ≤ q j) :
    (i ≠ j → (1 - 2 * ε) ^ 2 ≤ (∑ k : I, (p k - q k) ^ 2) / 2) ∧ (i = j → (∑ k : I, (p k - q k) ^ 2) / 2 ≤ 8 * ε ^ 2)

    The excess score separates two protected distinct labels and is small when both records concentrate on the same label. These are the CC5 fine-loss bounds before averaging over a shared training history.