AFTD Auto-Formalizing Theoretical Domains

finset_indicator_vec

def

The indicator vector 1_S ∈ ℝ^m of a set S ⊆ {0, …, m−1}.

Statement

def finset_indicator_vec {m : ℕ} (S : Finset (Fin m)) : Fin m → ℝ
Defined in
arXiv:2610.07387 (Stronger hardness for submodular maximization subject to a matroid constraint), Sec. 2.2
Verified
07 Oct 2026
Axioms
none listed
Used by 7

Lean source view module on GitHub

/-- The indicator vector `1_S ∈ ℝ^m` of `S ⊆ Fin m`. -/
def finset_indicator_vec {m : ℕ} (S : Finset (Fin m)) : Fin m → ℝ :=
  fun u => if u ∈ S then 1 else 0
See it in the graphDiscuss this resultChallenge it