url stringclasses 147
values | commit stringclasses 147
values | file_path stringlengths 7 101 | full_name stringlengths 1 94 | start stringlengths 6 10 | end stringlengths 6 11 | tactic stringlengths 1 11.2k | state_before stringlengths 3 2.09M | state_after stringlengths 6 2.09M |
|---|---|---|---|---|---|---|---|---|
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | exact Set.InjOn.mono (fun x hx β¦ (mem_Ioo.1 (mem_filter.1 hx).1).2.le) $
fun x hx y hy β¦ tsub_inj_right hx hy | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A n + countelements B n
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
hfim : image (fun x => n - x) (filter (fun x => x β B) (Ioo 0 n)) = filter (fun x =... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | rw [β hca, β hcb] at hc | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A n + countelements B n
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B (n - 1)
β’ (... | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A (n - 1) + countelements B (n - 1)
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | rwa [β Finset.card_pos] | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A (n - 1) + countelements B (n - 1)
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | rw [β filter_or, β tsub_zero n, β Nat.card_Ioo] | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A (n - 1) + countelements B (n - 1)
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B... | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A (n - 1) + countelements B (n - 1)
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | exact card_filter_le _ _ | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A (n - 1) + countelements B (n - 1)
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | rw [card_union_add_card_inter, β lem1, countelements] | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A (n - 1) + countelements B (n - 1)
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B... | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A (n - 1) + countelements B (n - 1)
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | congr | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A (n - 1) + countelements B (n - 1)
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B... | case e_a.e_s.e_s.e_b
A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A (n - 1) + countelements B (n - 1)
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).c... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | exact (tsub_add_cancel_of_le $ Nat.succ_le_iff.2 hn1).symm | case e_a.e_s.e_s.e_b
A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A (n - 1) + countelements B (n - 1)
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).c... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | rw [β hui] at hc | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A (n - 1) + countelements B (n - 1)
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B... | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc :
n β€
(filter (fun x => x β A) (Ioo 0 n) βͺ filter (fun x => x β {n} - B) (Ioo 0 n)).card +
(filter (fun x => x β A) (Ioo 0 n) β© filter (fun x => x β {n} - B) (Ioo 0 n)).card
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | by_contra! hip | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc :
n β€
(filter (fun x => x β A) (Ioo 0 n) βͺ filter (fun x => x β {n} - B) (Ioo 0 n)).card +
(filter (fun x => x β A) (Ioo 0 n) β© filter (fun x => x β {n} - B) (Ioo 0 n)).card
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb... | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc :
n β€
(filter (fun x => x β A) (Ioo 0 n) βͺ filter (fun x => x β {n} - B) (Ioo 0 n)).card +
(filter (fun x => x β A) (Ioo 0 n) β© filter (fun x => x β {n} - B) (Ioo 0 n)).card
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | have hnn : n β€ (n - 1) := le_trans hip0 hip1 | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc :
n β€
(filter (fun x => x β A) (Ioo 0 n) βͺ filter (fun x => x β {n} - B) (Ioo 0 n)).card +
(filter (fun x => x β A) (Ioo 0 n) β© filter (fun x => x β {n} - B) (Ioo 0 n)).card
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb... | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc :
n β€
(filter (fun x => x β A) (Ioo 0 n) βͺ filter (fun x => x β {n} - B) (Ioo 0 n)).card +
(filter (fun x => x β A) (Ioo 0 n) β© filter (fun x => x β {n} - B) (Ioo 0 n)).card
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | rw [β not_lt] at hnn | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc :
n β€
(filter (fun x => x β A) (Ioo 0 n) βͺ filter (fun x => x β {n} - B) (Ioo 0 n)).card +
(filter (fun x => x β A) (Ioo 0 n) β© filter (fun x => x β {n} - B) (Ioo 0 n)).card
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb... | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc :
n β€
(filter (fun x => x β A) (Ioo 0 n) βͺ filter (fun x => x β {n} - B) (Ioo 0 n)).card +
(filter (fun x => x β A) (Ioo 0 n) β© filter (fun x => x β {n} - B) (Ioo 0 n)).card
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | apply hnn | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc :
n β€
(filter (fun x => x β A) (Ioo 0 n) βͺ filter (fun x => x β {n} - B) (Ioo 0 n)).card +
(filter (fun x => x β A) (Ioo 0 n) β© filter (fun x => x β {n} - B) (Ioo 0 n)).card
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb... | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc :
n β€
(filter (fun x => x β A) (Ioo 0 n) βͺ filter (fun x => x β {n} - B) (Ioo 0 n)).card +
(filter (fun x => x β A) (Ioo 0 n) β© filter (fun x => x β {n} - B) (Ioo 0 n)).card
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | rw [propext (Nat.lt_iff_le_pred hn1)] | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc :
n β€
(filter (fun x => x β A) (Ioo 0 n) βͺ filter (fun x => x β {n} - B) (Ioo 0 n)).card +
(filter (fun x => x β A) (Ioo 0 n) β© filter (fun x => x β {n} - B) (Ioo 0 n)).card
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | rw [β filter_and, β coe_nonempty, coe_filter, Set.setOf_and, Set.setOf_and, Set.setOf_mem_eq,
Set.inter_comm] at lem3 | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A n + countelements B n
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B (n - 1)
lem... | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A n + countelements B n
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B (n - 1)
lem... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sumset_contains_n | [41, 1] | [98, 56] | convert lem3 using 3 <;> ext <;> simp | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hc : n β€ countelements A n + countelements B n
h : n β A + B
hnA : n β A
hnB : n β B
hca : countelements A (n - 1) = countelements A n
hcb : countelements B (n - 1) = countelements B n
hn1 : n > 0
lem1 : (filter (fun x => x β {n} - B) (Ioo 0 n)).card = countelements B (n - 1)
lem... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sum_schnirelmannDensity_ge_one_sumset_nat | [100, 1] | [109, 45] | refine Set.eq_univ_of_forall $ fun n β¦ sumset_contains_n hA hB ?_ | A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
β’ A + B = Set.univ | A B : Set β
nβ : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
n : β
β’ n β€ countelements A n + countelements B n |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sum_schnirelmannDensity_ge_one_sumset_nat | [100, 1] | [109, 45] | obtain rfl | hn := eq_or_ne n 0 | A B : Set β
nβ : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
n : β
β’ n β€ countelements A n + countelements B n | case inl
A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
β’ 0 β€ countelements A 0 + countelements B 0
case inr
A B : Set β
nβ : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
n : β
hn : n β 0
β’ n β€ countelements A n + countelements B n |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sum_schnirelmannDensity_ge_one_sumset_nat | [100, 1] | [109, 45] | rw [β Nat.cast_le (Ξ± := β), β one_le_div (by positivity)] | case inr
A B : Set β
nβ : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
n : β
hn : n β 0
β’ n β€ countelements A n + countelements B n | case inr
A B : Set β
nβ : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
n : β
hn : n β 0
β’ 1 β€ β(countelements A n + countelements B n) / βn |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sum_schnirelmannDensity_ge_one_sumset_nat | [100, 1] | [109, 45] | calc
_ β€ _ := hAB
_ β€ _ := add_le_add (schnirelmannDensity_le_div hn) (schnirelmannDensity_le_div hn)
_ = _ := by push_cast; rw [add_div]; rfl | case inr
A B : Set β
nβ : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
n : β
hn : n β 0
β’ 1 β€ β(countelements A n + countelements B n) / βn | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sum_schnirelmannDensity_ge_one_sumset_nat | [100, 1] | [109, 45] | exact countelements_nonneg A 0 | case inl
A B : Set β
n : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
β’ 0 β€ countelements A 0 + countelements B 0 | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sum_schnirelmannDensity_ge_one_sumset_nat | [100, 1] | [109, 45] | positivity | A B : Set β
nβ : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
n : β
hn : n β 0
β’ 0 < βn | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sum_schnirelmannDensity_ge_one_sumset_nat | [100, 1] | [109, 45] | push_cast | A B : Set β
nβ : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
n : β
hn : n β 0
β’ β(filter (fun x => x β A) (Ioc 0 n)).card / βn + β(filter (fun x => x β B) (Ioc 0 n)).card / βn =
β(countelements A n + countelements B n) / βn | A B : Set β
nβ : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
n : β
hn : n β 0
β’ β(filter (fun x => x β A) (Ioc 0 n)).card / βn + β(filter (fun x => x β B) (Ioc 0 n)).card / βn =
(β(countelements A n) + β(countelements B n)) / βn |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sum_schnirelmannDensity_ge_one_sumset_nat | [100, 1] | [109, 45] | rw [add_div] | A B : Set β
nβ : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
n : β
hn : n β 0
β’ β(filter (fun x => x β A) (Ioc 0 n)).card / βn + β(filter (fun x => x β B) (Ioc 0 n)).card / βn =
(β(countelements A n) + β(countelements B n)) / βn | A B : Set β
nβ : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
n : β
hn : n β 0
β’ β(filter (fun x => x β A) (Ioc 0 n)).card / βn + β(filter (fun x => x β B) (Ioc 0 n)).card / βn =
β(countelements A n) / βn + β(countelements B n) / βn |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | sum_schnirelmannDensity_ge_one_sumset_nat | [100, 1] | [109, 45] | rfl | A B : Set β
nβ : β
hA : 0 β A
hB : 0 β B
hAB : 1 β€ schnirelmannDensity A + schnirelmannDensity B
n : β
hn : n β 0
β’ β(filter (fun x => x β A) (Ioc 0 n)).card / βn + β(filter (fun x => x β B) (Ioc 0 n)).card / βn =
β(countelements A n) / βn + β(countelements B n) / βn | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | set Ξ± := schnirelmannDensity A with halpha | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
β’ schnirelmannDensity A + schnirelmannDensity B - schnirelmannDensity A * schnirelmannDensity B β€
schnirelmannDensity (A + B) | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
β’ Ξ± + schnirelmannDensity B - Ξ± * schnirelmannDensity B β€ schnirelmannDensity (A + B) |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | set Ξ² := schnirelmannDensity B with hbeta | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
β’ Ξ± + schnirelmannDensity B - Ξ± * schnirelmannDensity B β€ schnirelmannDensity (A + B) | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
β’ Ξ± + Ξ² - Ξ± * Ξ² β€ schnirelmannDensity (A + B) |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | have dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ² := by ring | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
β’ Ξ± + Ξ² - Ξ± * Ξ² β€ schnirelmannDensity (A + B) | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
β’ Ξ± + Ξ² - Ξ± * Ξ² β€ schnirelmannDensity (A + B) |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [β dum] | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
β’ Ξ± + Ξ² - Ξ± * Ξ² β€ schnirelmannDensity (A + B) | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
β’ Ξ± * (1 - Ξ²) + Ξ² β€ schnirelmannDensity (A + B) |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rintro n | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
β’ β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n) | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
β’ (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n) |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | obtain rfl | n1 := n.eq_zero_or_pos | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
β’ (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n) | case inl
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
β’ (Ξ± * (1 - Ξ²) + Ξ²) * β0 β€ β(countelements (A + B) 0)
case inr
Aβ Bβ : Set β
nβ : β
A B... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | ring | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
β’ Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ² | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [schnirelmannDensity] | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
β’ Ξ± * (1 - Ξ²) + Ξ² β€ schnire... | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
β’ Ξ± * (1 - Ξ²) + Ξ² β€ β¨
n, β(... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | have : Nonempty {n // n β 0} := by
use 1
trivial | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
β’ Ξ± * (1 - Ξ²) + Ξ² β€ β¨
n, β(... | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
this : Nonempty { n // n β ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | apply le_ciInf | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
this : Nonempty { n // n β ... | case H
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
this : Nonempty { n ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | intro x | case H
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
this : Nonempty { n ... | case H
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
this : Nonempty { n ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | have hx : (x : β) β 0 := by aesop | case H
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
this : Nonempty { n ... | case H
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
this : Nonempty { n ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [le_div_iff] | case H
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
this : Nonempty { n ... | case H
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
this : Nonempty { n ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | use 1 | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
β’ Nonempty { n // n β 0 } | case property
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
β’ 1 β 0 |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | trivial | case property
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
β’ 1 β 0 | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | aesop | Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
this : Nonempty { n // n β ... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | specialize main x | case H
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
this : Nonempty { n ... | case H
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
this : Nonempty { n // n β 0 }
x : { n // 0 < n }
hx : ββx β 0
main : (Ξ± * (1 - Ξ²) + Ξ²) * ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | exact main | case H
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
this : Nonempty { n // n β 0 }
x : { n // 0 < n }
hx : ββx β 0
main : (Ξ± * (1 - Ξ²) + Ξ²) * ... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | positivity | case H
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
main : β (n : β), (Ξ± * (1 - Ξ²) + Ξ²) * βn β€ β(countelements (A + B) n)
this : Nonempty { n ... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | ring_nf | case inl
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
β’ (Ξ± * (1 - Ξ²) + Ξ²) * β0 β€ β(countelements (A + B) 0) | case inl
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
β’ 0 β€ β(countelements (A + B) 0) |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | positivity | case inl
Aβ Bβ : Set β
n : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
β’ 0 β€ β(countelements (A + B) 0) | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | have claim : countelements A n + Ξ² * (n - countelements A n) β€
countelements (β a : A, {c β A + B | 0 < c - a β§ (c : β) β€ (next_elm A a n)}) n := by
have hcc (a : A) :
1 + countelements B (next_elm A a n - a - 1) β€
countelements {c β A + B | 0 < c - a β§ (c : β) β€ (next_elm A a n)} n := by
sorry
have h... | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | have ht : countelements A n + Ξ² * (n - countelements A n) β€ countelements (A + B) n := by
apply le_trans claim _
norm_cast | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | have hc1 : countelements A n * (1 - Ξ²) + Ξ² * n =
countelements A n + Ξ² * (n - countelements A n) := by ring_nf | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | have hc3 : Ξ± * n * (1 - Ξ²) + Ξ² * n = (Ξ± * (1 - Ξ²) + Ξ²) * n := by ring_nf | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [hc1] at hc2 | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [hc3] at hc2 | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | exact le_trans hc2 ht | case inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | simp only [tsub_pos_iff_lt, Set.sep_and, Set.iUnion_coe_set, Nat.lt_one_iff, coe_Icc, not_le,
Set.subset_inter_iff, Set.iUnion_subset_iff] | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
β’ β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc 1 n) | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
β’ (β (i : β) (i_1 : i β A), {x | x β A + B β§ i < x} β© {x | x β A + B β§ x β€ next... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | constructor | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
β’ (β (i : β) (i_1 : i β A), {x | x β A + B β§ i < x} β© {x | x β A + B β§ x β€ next... | case left
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
β’ β (i : β) (i_1 : i β A), {x | x β A + B β§ i < x} β© {x | x β A + B β§... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | intro i hi x hx | case right
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
β’ β (i : β) (i_1 : i β A), {x | x β A + B β§ i < x} β© {x | x β A + B ... | case right
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : x β {x | x β A + B β§ i < x} β© {x | x β A... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | simp only [Set.mem_inter_iff, Set.mem_setOf_eq] at hx | case right
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : x β {x | x β A + B β§ i < x} β© {x | x β A... | case right
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B β§ x β€ ne... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [Set.mem_Icc] | case right
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B β§ x β€ ne... | case right
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B β§ x β€ ne... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | constructor | case right
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B β§ x β€ ne... | case right.left
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B β§ x... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | obtain β¨hx1, hx2, hx3β© := hx | case right.right
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B β§ ... | case right.right.intro.intro
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx1 : x β A + B β§ i < x
hx2... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [next_elm] at hx3 | case right.right.intro.intro
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx1 : x β A + B β§ i < x
hx2... | case right.right.intro.intro
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx1 : x β A + B β§ i < x
hx2... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | simp only [mem_Ioc, and_imp, ne_eq, ite_not] at hx3 | case right.right.intro.intro
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx1 : x β A + B β§ i < x
hx2... | case right.right.intro.intro
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx1 : x β A + B β§ i < x
hx2... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | split_ifs at hx3 with h | case right.right.intro.intro
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx1 : x β A + B β§ i < x
hx2... | case pos
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx1 : x β A + B β§ i < x
hx2 : x β A + B
h : (fi... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | intro i hi x hx | case left
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
β’ β (i : β) (i_1 : i β A), {x | x β A + B β§ i < x} β© {x | x β A + B β§... | case left
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : x β {x | x β A + B β§ i < x} β© {x | x β A ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [Set.mem_inter_iff] at hx | case left
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : x β {x | x β A + B β§ i < x} β© {x | x β A ... | case left
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : x β {x | x β A + B β§ i < x} β§ x β {x | x ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | simp only [Set.mem_setOf_eq] at hx | case left
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : x β {x | x β A + B β§ i < x} β§ x β {x | x ... | case left
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B β§ x β€ nex... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | exact hx.1.1 | case left
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B β§ x β€ nex... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rcases i.eq_zero_or_pos with i0 | i1 | case right.left
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B β§ x... | case right.left.inl
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [Nat.succ_le] | case right.left.inl
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B... | case right.left.inl
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [β i0] | case right.left.inl
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B... | case right.left.inl
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | exact hx.1.2 | case right.left.inl
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [Nat.succ_le] | case right.left.inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B... | case right.left.inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | apply lt_trans i1 hx.1.2 | case right.left.inr
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx : (x β A + B β§ i < x) β§ x β A + B... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | exact hx3.trans (mem_Ioc.1 (mem_filter.1 $ min'_mem _ _).1).2 | case pos
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx1 : x β A + B β§ i < x
hx2 : x β A + B
h : (fi... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | simpa using hx3 | case neg
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
i : β
hi : i β A
x : β
hx1 : x β A + B β§ i < x
hx2 : x β A + B
h : Β¬(f... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [countelements, countelements] | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | apply card_le_card | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | case a
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β©... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | intro y | case a
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β©... | case a
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β©... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | repeat rw [mem_filter] | case a
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β©... | case a
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β©... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | intro hy | case a
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β©... | case a
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β©... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | constructor | case a
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β©... | case a.left
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A +... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [mem_filter] | case a
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β©... | case a
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β©... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | exact hy.1 | case a.left
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A +... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | obtain β¨hy1, hy2β© := hy | case a.right
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A ... | case a.right.intro
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n}... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | have hs : y β (A + B) β© (Icc 1 n) := by aesop | case a.right.intro
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n}... | case a.right.intro
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n}... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [Set.mem_inter_iff] at hs | case a.right.intro
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n}... | case a.right.intro
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n}... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | exact hs.1 | case a.right.intro
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n}... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | aesop | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | have hcc (a : A) :
1 + countelements B (next_elm A a n - a - 1) β€
countelements {c β A + B | 0 < c - a β§ (c : β) β€ (next_elm A a n)} n := by
sorry | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | have hax (a x : A) (hh : a β x) :
{c β A + B | 0 < c - a β§ (c : β) β€ (next_elm A a n)} β©
{c β A + B | 0 < c - x β§ (c : β) β€ next_elm A x n} = β
:= by sorry | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | sorry | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | sorry | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | sorry | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | apply le_trans claim _ | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | norm_cast | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | ring_nf | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | no goals |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [halpha] | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | by_cases hbo : Ξ² = 1 | Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B) β© β(Icc ... | case pos
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | rw [hbo] | case pos
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... | case pos
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... |
https://github.com/YaelDillies/LeanCamCombi.git | 034199694e3b91536d03bc4a8b0cdbd659cdf50f | LeanCamCombi/Mathlib/Combinatorics/Schnirelmann.lean | le_schnirelmannDensity_add | [115, 1] | [216, 26] | simp only [sub_self, mul_zero, one_mul, zero_add, le_refl] | case pos
Aβ Bβ : Set β
nβ : β
A B : Set β
hA : 0 β A
hB : 0 β B
Ξ± : β := schnirelmannDensity A
halpha : Ξ± = schnirelmannDensity A
Ξ² : β := schnirelmannDensity B
hbeta : Ξ² = schnirelmannDensity B
dum : Ξ± * (1 - Ξ²) + Ξ² = Ξ± + Ξ² - Ξ± * Ξ²
n : β
n1 : n > 0
lem : β a, {c | c β A + B β§ 0 < c - βa β§ c β€ next_elm A a n} β (A + B)... | no goals |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.