Boolean Mask Partition of Derivative Directions
ProvedFunctionalInequalities.Analysis.selected_mask_partition_408915ffunctional-inequalitieskls-408915fkls-conjecturelog-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.
Superseded upload. This snapshot was replaced by FunctionalInequalities.Analysis.selected_mask_partition_readable: open the readable replacement. The replacement preserves the frozen source and mathematical statement, with a compact declaration context. This historical node remains available for existing imports.
Preamble
import Definitions.Def_KLS408915f_FunctionalInequalities_Analysis_IteratedDerivative_Bilinear import Definitions.Def_KLS408915f_FunctionalInequalities_Analysis_IteratedDerivative_Symmetry import Mathlib.Algebra.BigOperators.Group.Finset.Pi import Mathlib.Analysis.Calculus.FDeriv.Bilinear import Mathlib.Analysis.Calculus.FDeriv.Symmetric import Mathlib.Data.List.FinRange noncomputable section open scoped ContDiff section namespace FunctionalInequalities end FunctionalInequalities open FunctionalInequalities section namespace FunctionalInequalities.Analysis end FunctionalInequalities.Analysis open FunctionalInequalities FunctionalInequalities.Analysis
Formal statement
theorem FunctionalInequalities.Analysis.selected_mask_partition_408915f {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).