Boolean Mask Partition of Derivative Directions
ProvedFunctionalInequalities.Analysis.selected_mask_partition_readablefunctional-inequalitieskls-conjecturekls-modularkls-readablelog-concave
This is a combinatorial lemma for the ordered selection operation selected.
For any type , any , any list of directions , and any Boolean mask :
- The lengths of the selected and complementary lists add to .
- Their concatenation is a permutation of
List.ofFn h. - The mask selecting exactly one fixed index produces the singleton list .
- If
selected h qhas length , then is the indicator of some single index.
The result is purely combinatorial and supports the subset bookkeeping in higher-order Leibniz expansions.
Original Lean declaration header
Within namespace FunctionalInequalities.Analysis. Shown in its original module context. Proof omitted.
theorem selected_mask_partition {E : Type*} {m : ℕ}
(h : Fin m → E) (q : Fin m → Bool) :
(selected h q).length + (selected h (fun i => !(q i))).length = m ∧
(selected h q ++ selected h (fun i => !(q i))).Perm (List.ofFn h) ∧
(∀ i : Fin m, selected h (fun j => decide (j = i)) = [h i]) ∧
((selected h q).length = 1 → ∃ i : Fin m, q = fun j => decide (j = i))
Module navigation
Module: Analysis/IteratedDerivative/Bilinear.
Previous: sum_filter_eq_two_mul_sum_filter_of_compl_invariant.
Source excerpt, lines 177–182 · Frozen source 408915f.
Preamble
import Definitions.Def_KLSModular_FunctionalInequalities_Analysis_IteratedDerivative_Bilinear
Formal statement
theorem FunctionalInequalities.Analysis.selected_mask_partition_readable {E : Type*} {m : ℕ}
(h : Fin m → E) (q : Fin m → Bool) :
(selected h q).length + (selected h (fun i => !(q i))).length = m ∧
(selected h q ++ selected h (fun i => !(q i))).Perm (List.ofFn h) ∧
(∀ i : Fin m, selected h (fun j => decide (j = i)) = [h i]) ∧
((selected h q).length = 1 → ∃ i : Fin m, q = fun j => decide (j = i)) := by sorry
Source
Lean source: https://github.com/human-ai-mathematics/kls-lean/blob/408915f/formalization/FunctionalInequalities/Analysis/IteratedDerivative/Bilinear.lean#L172-L294 (repository human-ai-mathematics/kls-lean, commit 408915f, module `FunctionalInequalities.Analysis.IteratedDerivative.Bilinear`, declaration `FunctionalInequalities.Analysis.selected_mask_partition`; the repository is private at upload time).