Sum of not equals
JohnsonBound.sum_of_not_equals
Plain-language statement
Counting pairs that disagree at position i in terms of choose_2.
Source project: ArkLib
Person-level attribution pending.
Source-pinned research
Search theorem names, mathematical ideas, modules, topics, projects, and role-labelled researchers. Open a result for its complete indexed Lean declaration and source record.
This index contains 44 research declarations. Search 10,000 more complete Mathlib declarations.
44 results
Clear filtersJohnsonBound.sum_of_not_equals
Plain-language statement
Counting pairs that disagree at position i in terms of choose_2.
Source project: ArkLib
Person-level attribution pending.
JohnsonBound.sum_sum_K_i_eq_n_sub_d
Plain-language statement
Total choose_2 over all coordinates equals choose_2(|B|) · (n - d).
Source project: ArkLib
Person-level attribution pending.
List.find?_pair_map
Project documentation
our own variant of map_congr, for mapM -/ public theorem mapM_congr [Monad m] [LawfulMonad m] {f g : α → m β} : ∀ {l : List α}, (∀ x ∈ l, f x = g x) → mapM f l = mapM g l := by intro l rw [← mapM'_eq_mapM, ← mapM'_eq_mapM] exact mapM'_congr public theorem to_option_distr_mapM' {α β ε} {l : List α} {f: α → Except ε β} : (List.mapM' f l).toOption = (List.ma...
Source project: Cedar Specification
Person-level attribution pending.
List.foldlM_of_assoc_some
Project documentation
our own variant of map_congr, for mapM -/ public theorem mapM_congr [Monad m] [LawfulMonad m] {f g : α → m β} : ∀ {l : List α}, (∀ x ∈ l, f x = g x) → mapM f l = mapM g l := by intro l rw [← mapM'_eq_mapM, ← mapM'_eq_mapM] exact mapM'_congr public theorem to_option_distr_mapM' {α β ε} {l : List α} {f: α → Except ε β} : (List.mapM' f l).toOption = (List.ma...
Source project: Cedar Specification
Person-level attribution pending.
List.forall₂_compose_mapM_right
Plain-language statement
Applying mapM on the RHS list of Forall₂ leads to new Forall₂ relation if certain conditions are met.
Source project: Cedar Specification
Person-level attribution pending.
List.forall₂_implies_all_left
Plain-language statement
Note the converse is not true: counterexample R is =, xs is [1], ys is [1, 2]
Source project: Cedar Specification
Person-level attribution pending.