Documentation

LeanAPAP.Prereqs.Function.Indicator.Defs

Indicator #

def indicate {α : Type u_2} {β : Type u_3} [DecidableEq α] [Semiring β] (s : Finset α) (a : α) :
β
Equations
Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem indicate_apply {α : Type u_2} {β : Type u_3} [DecidableEq α] [Semiring β] {s : Finset α} (x : α) :
      𝟭 s x = if x s then 1 else 0
      @[simp]
      theorem indicate_empty {α : Type u_2} {β : Type u_3} [DecidableEq α] [Semiring β] :
      @[simp]
      theorem indicate_univ {α : Type u_2} {β : Type u_3} [DecidableEq α] [Semiring β] [Fintype α] :
      𝟭 Finset.univ = 1
      theorem indicate_inter_apply {α : Type u_2} {β : Type u_3} [DecidableEq α] [Semiring β] (s t : Finset α) (x : α) :
      𝟭 (s t) x = 𝟭 s x * 𝟭 t x
      theorem indicate_inter {α : Type u_2} {β : Type u_3} [DecidableEq α] [Semiring β] (s t : Finset α) :
      𝟭 (s t) = 𝟭 s * 𝟭 t
      theorem map_indicate {α : Type u_2} {β : Type u_3} {γ : Type u_4} [DecidableEq α] [Semiring β] [Semiring γ] (f : β →+* γ) (s : Finset α) (x : α) :
      f (𝟭 s x) = 𝟭 s x
      @[simp]
      theorem indicate_image {α : Type u_2} (β : Type u_3) [DecidableEq α] [Semiring β] {α' : Type u_5} [DecidableEq α'] (e : α α') (s : Finset α) (a : α') :
      𝟭 (Finset.image (⇑e) s) a = 𝟭 s (e.symm a)
      @[simp]
      theorem indicate_apply_eq_zero {α : Type u_2} {β : Type u_3} [DecidableEq α] [Semiring β] {s : Finset α} [Nontrivial β] {a : α} :
      𝟭 s a = 0 as
      theorem indicate_apply_ne_zero {α : Type u_2} {β : Type u_3} [DecidableEq α] [Semiring β] {s : Finset α} [Nontrivial β] {a : α} :
      𝟭 s a 0 a s
      @[simp]
      theorem indicate_eq_zero {α : Type u_2} {β : Type u_3} [DecidableEq α] [Semiring β] {s : Finset α} [Nontrivial β] :
      𝟭 s = 0 s =
      theorem indicate_ne_zero {α : Type u_2} {β : Type u_3} [DecidableEq α] [Semiring β] {s : Finset α} [Nontrivial β] :
      𝟭 s 0 s.Nonempty
      @[simp]
      theorem support_indicate {α : Type u_2} (β : Type u_3) [DecidableEq α] [Semiring β] {s : Finset α} [Nontrivial β] :
      theorem sum_indicate {α : Type u_2} (β : Type u_3) [DecidableEq α] [Semiring β] [Fintype α] (s : Finset α) :
      x : α, 𝟭 s x = s.card
      theorem card_eq_sum_indicate {α : Type u_2} [DecidableEq α] [Fintype α] (s : Finset α) :
      s.card = x : α, 𝟭 s x
      @[simp]
      theorem indicate_vadd {α : Type u_2} (β : Type u_3) [DecidableEq α] [Semiring β] {G : Type u_5} [AddGroup G] [AddAction G α] (g : G) (s : Finset α) (a : α) :
      𝟭 (g +ᵥ s) a = 𝟭 s (-g +ᵥ a)
      @[simp]
      theorem indicate_smul {α : Type u_2} (β : Type u_3) [DecidableEq α] [Semiring β] {G : Type u_5} [Group G] [MulAction G α] (g : G) (s : Finset α) (a : α) :
      𝟭 (g s) a = 𝟭 s (g⁻¹ a)
      @[simp]
      theorem indicate_neg {α : Type u_2} (β : Type u_3) [DecidableEq α] [Semiring β] [AddGroup α] (s : Finset α) (a : α) :
      𝟭 (-s) a = 𝟭 s (-a)
      @[simp]
      theorem indicate_inv {α : Type u_2} (β : Type u_3) [DecidableEq α] [Semiring β] [Group α] (s : Finset α) (a : α) :
      theorem indicate_inf_apply {ι : Type u_1} {α : Type u_2} {β : Type u_3} [DecidableEq α] [CommSemiring β] [Fintype α] (s : Finset ι) (t : ιFinset α) (x : α) :
      𝟭 (s.inf t) x = is, 𝟭 (t i) x
      theorem indicate_inf {ι : Type u_1} {α : Type u_2} {β : Type u_3} [DecidableEq α] [CommSemiring β] [Fintype α] (s : Finset ι) (t : ιFinset α) :
      𝟭 (s.inf t) = is, 𝟭 (t i)
      @[simp]
      theorem conj_indicate_apply {α : Type u_2} {β : Type u_3} [DecidableEq α] [CommSemiring β] [StarRing β] (s : Finset α) (a : α) :
      (starRingEnd β) (𝟭 s a) = 𝟭 s a
      @[simp]
      theorem conj_indicate {α : Type u_2} {β : Type u_3} [DecidableEq α] [CommSemiring β] [StarRing β] (s : Finset α) :
      (starRingEnd (αβ)) (𝟭 s) = 𝟭 s
      @[simp]
      theorem indicate_nonneg {α : Type u_2} {β : Type u_3} [DecidableEq α] [OrderedSemiring β] {s : Finset α} :
      0 𝟭 s
      @[simp]
      theorem indicate_pos {α : Type u_2} {β : Type u_3} [DecidableEq α] [OrderedSemiring β] {s : Finset α} [Nontrivial β] :
      0 < 𝟭 s s.Nonempty
      theorem Finset.Nonempty.indicate_pos {α : Type u_2} {β : Type u_3} [DecidableEq α] [OrderedSemiring β] {s : Finset α} [Nontrivial β] :
      s.Nonempty0 < 𝟭 s

      Alias of the reverse direction of indicate_pos.

      Normalised indicator #

      def mu {α : Type u_2} {β : Type u_3} [DecidableEq α] [DivisionSemiring β] (s : Finset α) :
      αβ

      The normalised indicate of a set.

      Equations
      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem mu_apply {α : Type u_2} {β : Type u_3} [DecidableEq α] [DivisionSemiring β] {s : Finset α} (x : α) :
          mu s x = (↑s.card)⁻¹ * if x s then 1 else 0
          @[simp]
          theorem mu_empty {α : Type u_2} {β : Type u_3} [DecidableEq α] [DivisionSemiring β] :
          mu = 0
          theorem map_mu {α : Type u_2} {β : Type u_3} {γ : Type u_4} [DecidableEq α] [DivisionSemiring β] [DivisionSemiring γ] (f : β →+* γ) (s : Finset α) (x : α) :
          f (mu s x) = mu s x
          theorem mu_univ_eq_const {α : Type u_2} {β : Type u_3} [DecidableEq α] [DivisionSemiring β] [Fintype α] :
          mu Finset.univ = Function.const α (↑(Fintype.card α))⁻¹
          @[simp]
          theorem mu_apply_eq_zero {α : Type u_2} {β : Type u_3} [DecidableEq α] [DivisionSemiring β] {s : Finset α} [CharZero β] {a : α} :
          mu s a = 0 as
          theorem mu_apply_ne_zero {α : Type u_2} {β : Type u_3} [DecidableEq α] [DivisionSemiring β] {s : Finset α} [CharZero β] {a : α} :
          mu s a 0 a s
          @[simp]
          theorem mu_eq_zero {α : Type u_2} {β : Type u_3} [DecidableEq α] [DivisionSemiring β] {s : Finset α} [CharZero β] :
          mu s = 0 s =
          theorem mu_ne_zero {α : Type u_2} {β : Type u_3} [DecidableEq α] [DivisionSemiring β] {s : Finset α} [CharZero β] :
          mu s 0 s.Nonempty
          @[simp]
          theorem support_mu {α : Type u_2} (β : Type u_3) [DecidableEq α] [DivisionSemiring β] [CharZero β] (s : Finset α) :
          theorem card_smul_mu {α : Type u_2} (β : Type u_3) [DecidableEq α] [DivisionSemiring β] [CharZero β] (s : Finset α) :
          s.card mu s = 𝟭 s
          theorem card_smul_mu_apply {α : Type u_2} (β : Type u_3) [DecidableEq α] [DivisionSemiring β] [CharZero β] (s : Finset α) (x : α) :
          s.card mu s x = 𝟭 s x
          @[simp]
          theorem sum_mu {α : Type u_2} (β : Type u_3) [DecidableEq α] [DivisionSemiring β] {s : Finset α} [CharZero β] [Fintype α] (hs : s.Nonempty) :
          x : α, mu s x = 1
          @[simp]
          theorem mu_vadd {α : Type u_2} (β : Type u_3) [DecidableEq α] [DivisionSemiring β] {G : Type u_5} [AddGroup G] [AddAction G α] (g : G) (s : Finset α) (a : α) :
          mu (g +ᵥ s) a = mu s (-g +ᵥ a)
          @[simp]
          theorem mu_smul {α : Type u_2} (β : Type u_3) [DecidableEq α] [DivisionSemiring β] {G : Type u_5} [Group G] [MulAction G α] (g : G) (s : Finset α) (a : α) :
          mu (g s) a = mu s (g⁻¹ a)
          @[simp]
          theorem mu_neg {α : Type u_2} (β : Type u_3) [DecidableEq α] [DivisionSemiring β] [AddGroup α] (s : Finset α) (a : α) :
          mu (-s) a = mu s (-a)
          @[simp]
          theorem mu_inv {α : Type u_2} (β : Type u_3) [DecidableEq α] [DivisionSemiring β] [Group α] (s : Finset α) (a : α) :
          mu s⁻¹ a = mu s a⁻¹
          @[simp]
          theorem conj_mu_apply {α : Type u_2} (β : Type u_3) [DecidableEq α] [Semifield β] [StarRing β] (s : Finset α) (a : α) :
          (starRingEnd β) (mu s a) = mu s a
          @[simp]
          theorem conj_mu {α : Type u_2} (β : Type u_3) [DecidableEq α] [Semifield β] [StarRing β] (s : Finset α) :
          (starRingEnd (αβ)) (mu s) = mu s
          @[simp]
          theorem mu_nonneg {α : Type u_2} {β : Type u_3} [DecidableEq α] [LinearOrderedSemifield β] {s : Finset α} :
          0 mu s
          @[simp]
          theorem mu_pos {α : Type u_2} {β : Type u_3} [DecidableEq α] [LinearOrderedSemifield β] {s : Finset α} :
          0 < mu s s.Nonempty
          theorem Finset.Nonempty.mu_pos {α : Type u_2} {β : Type u_3} [DecidableEq α] [LinearOrderedSemifield β] {s : Finset α} :
          s.Nonempty0 < mu s

          Alias of the reverse direction of mu_pos.