The duplication incentive survives every choice of error weights
Lax303562.WeightedFamily · concepts/Lax303562/WeightedFamily.lean · lax-303562
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
Panoptic Quality is the member of the family of metrics
which weigh false positives by and false negatives by . One might hope that some choice of weights removes the incentive to duplicate matched predictions under all-pairs accumulation. It does not: a duplicate adds one true positive and no error, so the weights never enter the condition, which is the same for every and . Under one-to-one matching the duplicate is a false positive, and it lowers the score exactly when false positives carry positive weight; with it leaves the score unchanged, so is the precise hypothesis. The last statement identifies Panoptic Quality as the member .
Concept map
Evidence
This concept declares 6 statements. Each proof establishes one of them relative to its assumptions.
1 dup_iff proven
2 falsePositive_eq_of_zero_weight proven
3 falsePositive_lt proven
4 no_weights_remove_incentive proven
5 opposite_directions proven
6 pq_eq_wm_half proven
Lean source view on GitHub
| 1 | import Lax303562.PanopticQuality |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: The duplication incentive survives every choice of error weights |
| 6 | type: theorem |
| 7 | --- |
| 8 | Panoptic Quality is the member `a = b = ½` of the family of metrics |
| 9 | |
| 10 | |
| 11 | |
| 12 | which weigh false positives by `a` and false negatives by `b`. One might hope |
| 13 | that some choice of weights removes the incentive to duplicate matched |
| 14 | predictions under all-pairs accumulation. It does not: a duplicate adds one true |
| 15 | positive and no error, so the weights never enter the condition, which is the |
| 16 | same `v > m_{a,b}` for every `a` and `b`. Under one-to-one matching the duplicate |
| 17 | is a false positive, and it lowers the score exactly when false positives carry |
| 18 | positive weight; with `a = 0` it leaves the score unchanged, so `0 < a` is the |
| 19 | precise hypothesis. The last statement identifies Panoptic Quality as the member |
| 20 | `a = b = ½`. |
| 21 | -/ |
| 22 | |
| 23 | namespace Lax303562.WeightedFamily |
| 24 | |
| 25 | open Lax303562.PanopticQuality |
| 26 | |
| 27 | /-- The weighted denominator: matched pairs count `1`, false positives `a`, false |
| 28 | negatives `b`. -/ |
| 29 | noncomputable def wden (a b : ℝ) (n fp fn : ℕ) : ℝ := (n : ℝ) + a * fp + b * fn |
| 30 | |
| 31 | /-- The weighted metric: the matched IoU sum over the weighted denominator. -/ |
| 32 | noncomputable def wm (a b s : ℝ) (n fp fn : ℕ) : ℝ := s / wden a b n fp fn |
| 33 | |
| 34 | /-- Under all-pairs accumulation a duplicate with IoU `v` raises the weighted |
| 35 | metric exactly when `v` exceeds it, for every choice of weights. -/ |
| 36 | axiom dup_iff (a b s v : ℝ) (n fp fn : ℕ) (hd : 0 < wden a b n fp fn) : |
| 37 | wm a b s n fp fn < wm a b (s + v) (n + 1) fp fn ↔ wm a b s n fp fn < v |
| 38 | |
| 39 | /-- No choice of weights removes the incentive: for all `a` and `b`, a duplicate |
| 40 | better than the current score raises it. -/ |
| 41 | axiom no_weights_remove_incentive (s v : ℝ) (n fp fn : ℕ) : |
| 42 | ∀ a b : ℝ, 0 < wden a b n fp fn → wm a b s n fp fn < v → |
| 43 | wm a b s n fp fn < wm a b (s + v) (n + 1) fp fn |
| 44 | |
| 45 | /-- Under one-to-one matching the duplicate is a false positive, which lowers a |
| 46 | positive score whenever false positives carry positive weight. -/ |
| 47 | axiom falsePositive_lt (a b s : ℝ) (n fp fn : ℕ) (ha : 0 < a) (hs : 0 < s) |
| 48 | (hd : 0 < wden a b n fp fn) : |
| 49 | wm a b s n (fp + 1) fn < wm a b s n fp fn |
| 50 | |
| 51 | /-- With weight `a = 0` on false positives, a false positive leaves the score |
| 52 | unchanged: the hypothesis `0 < a` above is exact. -/ |
| 53 | axiom falsePositive_eq_of_zero_weight (b s : ℝ) (n fp fn : ℕ) : |
| 54 | wm 0 b s n (fp + 1) fn = wm 0 b s n fp fn |
| 55 | |
| 56 | /-- Both directions at once, for the whole family. -/ |
| 57 | axiom opposite_directions (a b s v : ℝ) (n fp fn : ℕ) |
| 58 | (ha : 0 < a) (hs : 0 < s) (hd : 0 < wden a b n fp fn) |
| 59 | (hv : wm a b s n fp fn < v) : |
| 60 | wm a b s n fp fn < wm a b (s + v) (n + 1) fp fn ∧ |
| 61 | wm a b s n (fp + 1) fn < wm a b s n fp fn |
| 62 | |
| 63 | /-- Panoptic Quality is the member `a = b = ½` of the family. -/ |
| 64 | axiom pq_eq_wm_half (s : ℝ) (n fp fn : ℕ) : |
| 65 | pq s n fp fn = wm (1 / 2) (1 / 2) s n fp fn |
| 66 | |
| 67 | end Lax303562.WeightedFamily |
| 68 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments