Linear threshold functions on finite domains #
Evaluation, nonzero coordinate support and magnitude ranks for real-weight threshold functions on arbitrary finite input types. Restriction and counting arguments can import this module without the depth-two circuit constructor.
Main definitions #
Cslib.Circuits.Boolean.WeightedThreshold.ltfEval: evaluation with threshold ties accepted.Cslib.Circuits.Boolean.WeightedThreshold.ltfSupport: nonzero input coefficients.Cslib.Circuits.Boolean.WeightedThreshold.ltfWeightRank: number of nonzero coefficients with magnitude at least that of the selected coordinate, including ties.
@[simp]
theorem Cslib.Circuits.Boolean.WeightedThreshold.mem_ltfSupport {ι : Type u_1} [Fintype ι] (a : ι → ℝ) (i : ι) :
noncomputable def Cslib.Circuits.Boolean.WeightedThreshold.ltfWeightRank {ι : Type u_1} [Fintype ι] (a : ι → ℝ) (i : ι) :
The weight rank k_i = #{j ∈ ltfSupport a | |a i| ≤ |a j|} of coordinate i in ltfSupport a
(counting nonzero weights of magnitude at least |a i|).
theorem Cslib.Circuits.Boolean.WeightedThreshold.one_le_ltfWeightRank {ι : Type u_1} [Fintype ι] {a : ι → ℝ} {i : ι} (hi : i ∈ ltfSupport a) :
1 ≤ ltfWeightRank a i
For every i ∈ ltfSupport a, 1 ≤ ltfWeightRank a i.
theorem Cslib.Circuits.Boolean.WeightedThreshold.ltfWeightRank_le_of_abs_le {ι : Type u_1} [Fintype ι] (a : ι → ℝ) {i j : ι} (hij : |a i| ≤ |a j|) :
If |a i| ≤ |a j|, then ltfWeightRank a j ≤ ltfWeightRank a i.