Documentation

FirstOrderMethodsOptimization_Beck_2017.Chap03.Definition_3_13

def median_set (A : Finset ) :
Set

Definition 3.13: median_set A is the set of real numbers β such that at least half of the elements of the finite nonempty set A lie below β and at least half lie above β.

Instances For
    @[simp]
    theorem median_set_empty :
    median_set =

    The median set of the empty finite set is empty.

    theorem median_set_eq_inter_of_nonempty {A : Finset } (hA : A.Nonempty) :
    median_set A = {β : | A.card 2 * {aA | a β}.card} {β : | A.card 2 * {aA | β a}.card}

    For a nonempty finite set, median_set A is exactly the intersection of the two defining counting conditions.

    theorem mem_median_set_iff_of_nonempty {A : Finset } (hA : A.Nonempty) {β : } :
    β median_set A A.card 2 * {aA | a β}.card A.card 2 * {aA | β a}.card

    For a nonempty finite set, membership in median_set A means satisfying the two median-count inequalities.

    @[simp]
    theorem mem_median_set_iff {A : Finset } {β : } :
    β median_set A A.Nonempty A.card 2 * {aA | a β}.card A.card 2 * {aA | β a}.card

    Membership in median_set A is equivalent to A being nonempty together with the two median-count inequalities.

    theorem median_set_eq_singleton_of_strictMono_odd (m : ) (a : Fin (2 * m + 1)) (ha : StrictMono a) :
    median_set (Finset.image a Finset.univ) = {a (Fin.ofNat (2 * m + 1) m)}

    The odd-case characterization from Definition 3.13: for a strictly increasing odd tuple, the median set is the singleton containing the middle entry.

    theorem median_set_eq_Icc_of_strictMono_even (m : ) (a : Fin (2 * (m + 1))) (ha : StrictMono a) :
    median_set (Finset.image a Finset.univ) = Set.Icc (a (Fin.ofNat (2 * (m + 1)) m)) (a (Fin.ofNat (2 * (m + 1)) (m + 1)))

    The even-case characterization from Definition 3.13: for a strictly increasing even tuple, the median set is the closed interval between the two middle entries.