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/KruskalKatona.lean
Finset.lovasz_form
[334, 1]
[382, 91]
rwa [mem_attachFin] at this
case intro.intro Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this✝² : Set.Sized r β†‘π’ž this✝¹ : (βˆ‚ ^[i] π’ž).card = k.choose (r - i) A B : Finset (Fin n) hA : A βŠ† range'k ∧ A.card = r HB₁ : { ofColex := B } < { ofColex := A } HBβ‚‚ : B.card = r t : Fin n ht : t ∈ B this✝ : { ofColex := image Fin.val B } < { ofColex := image Fin.val A } b✝ : β„• a : Fin n ha : a ∈ A q : ↑a = b✝ this : a ∈ range'k ⊒ ↑a ∈ range k
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.lovasz_form
[334, 1]
[382, 91]
rwa [toColex_image_lt_toColex_image Fin.val_strictMono]
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this✝ : Set.Sized r β†‘π’ž this : (βˆ‚ ^[i] π’ž).card = k.choose (r - i) A B : Finset (Fin n) hA : A ∈ π’ž HB₁ : { ofColex := B } < { ofColex := A } HBβ‚‚ : B.card = r t : Fin n ht : t ∈ B ⊒ { ofColex := image Fin.val B } < { ofColex := image Fin.val A }
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.lovasz_form
[334, 1]
[382, 91]
rw [this, card_powersetCard, card_attachFin, card_range]
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this✝ : Set.Sized r β†‘π’ž this : βˆ‚ ^[i] π’ž = powersetCard (r - i) range'k ⊒ (βˆ‚ ^[i] π’ž).card = k.choose (r - i)
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.lovasz_form
[334, 1]
[382, 91]
rintro ⟨A, Ah, BsubA, card_sdiff_i⟩
case a.mp Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this : Set.Sized r β†‘π’ž B : Finset (Fin n) ⊒ (βˆƒ s ∈ π’ž, B βŠ† s ∧ (s \ B).card = i) β†’ B βŠ† range'k ∧ B.card = r - i
case a.mp.intro.intro.intro Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this : Set.Sized r β†‘π’ž B A : Finset (Fin n) Ah : A ∈ π’ž BsubA : B βŠ† A card_sdiff_i : (A \ B).card = i ⊒ B βŠ† range'k ∧ B.card = r - i
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.lovasz_form
[334, 1]
[382, 91]
rw [mem_powersetCard] at Ah
case a.mp.intro.intro.intro Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this : Set.Sized r β†‘π’ž B A : Finset (Fin n) Ah : A ∈ π’ž BsubA : B βŠ† A card_sdiff_i : (A \ B).card = i ⊒ B βŠ† range'k ∧ B.card = r - i
case a.mp.intro.intro.intro Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this : Set.Sized r β†‘π’ž B A : Finset (Fin n) Ah : A βŠ† range'k ∧ A.card = r BsubA : B βŠ† A card_sdiff_i : (A \ B).card = i ⊒ B βŠ† range'k ∧ B.card = r - i
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.lovasz_form
[334, 1]
[382, 91]
refine' ⟨BsubA.trans Ah.1, _⟩
case a.mp.intro.intro.intro Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this : Set.Sized r β†‘π’ž B A : Finset (Fin n) Ah : A βŠ† range'k ∧ A.card = r BsubA : B βŠ† A card_sdiff_i : (A \ B).card = i ⊒ B βŠ† range'k ∧ B.card = r - i
case a.mp.intro.intro.intro Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this : Set.Sized r β†‘π’ž B A : Finset (Fin n) Ah : A βŠ† range'k ∧ A.card = r BsubA : B βŠ† A card_sdiff_i : (A \ B).card = i ⊒ B.card = r - i
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.lovasz_form
[334, 1]
[382, 91]
symm
case a.mp.intro.intro.intro Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this : Set.Sized r β†‘π’ž B A : Finset (Fin n) Ah : A βŠ† range'k ∧ A.card = r BsubA : B βŠ† A card_sdiff_i : (A \ B).card = i ⊒ B.card = r - i
case a.mp.intro.intro.intro Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this : Set.Sized r β†‘π’ž B A : Finset (Fin n) Ah : A βŠ† range'k ∧ A.card = r BsubA : B βŠ† A card_sdiff_i : (A \ B).card = i ⊒ r - i = B.card
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.lovasz_form
[334, 1]
[382, 91]
rw [Nat.sub_eq_iff_eq_add hir, ← Ah.2, ← card_sdiff_i, ← card_union_of_disjoint disjoint_sdiff, union_sdiff_of_subset BsubA]
case a.mp.intro.intro.intro Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this : Set.Sized r β†‘π’ž B A : Finset (Fin n) Ah : A βŠ† range'k ∧ A.card = r BsubA : B βŠ† A card_sdiff_i : (A \ B).card = i ⊒ r - i = B.card
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.lovasz_form
[334, 1]
[382, 91]
rw [card_sdiff BsubC, hcard, hB, Nat.sub_sub_self hir]
case a.mpr.intro.refine_2.intro.intro.intro.refine'_2 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this : Set.Sized r β†‘π’ž B : Finset (Fin n) hBk : B βŠ† range'k hB : B.card = r - i C : Finset (Fin n) BsubC : B βŠ† C hCrange : C βŠ† range'k hcard : C.card = r ⊒ (C \ B).card = i
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.lovasz_form
[334, 1]
[382, 91]
rwa [hB, card_attachFin, card_range, ← Nat.add_sub_assoc hir, Nat.add_sub_cancel_left]
case a.mpr.intro.refine_1 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n r k i : β„• π’œ π’žβœ : Finset (Finset (Fin n)) hir : i ≀ r hrk : r ≀ k hkn : k ≀ n h₁ : Set.Sized r β†‘π’œ hβ‚‚ : k.choose r ≀ π’œ.card range'k : Finset (Fin n) := (range k).attachFin β‹― π’ž : Finset (Finset (Fin n)) := powersetCard r range'k Ccard : π’ž.card = k.choose r this : Set.Sized r β†‘π’ž B : Finset (Fin n) hBk : B βŠ† range'k hB : B.card = r - i ⊒ i + B.card ≀ range'k.card
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
cases' Nat.eq_zero_or_pos r with b h1r
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 ⊒ π’œ.card ≀ (n - 1).choose (r - 1)
case inl Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 b : r = 0 ⊒ π’œ.card ≀ (n - 1).choose (r - 1) case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 ⊒ π’œ.card ≀ (n - 1).choose (r - 1)
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
refine' le_of_not_lt fun size ↦ _
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 ⊒ π’œ.card ≀ (n - 1).choose (r - 1)
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
have : Disjoint π’œ (βˆ‚^[n - 2 * r] π’œαΆœΛ’) := disjoint_right.2 fun A hAbar hA ↦ by simp [mem_shadow_iterate_iff_exists_sdiff, mem_compls] at hAbar obtain ⟨C, hC, hAC, _⟩ := hAbar exact hπ’œ hA hC (disjoint_of_subset_left hAC disjoint_compl_right)
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card ⊒ False
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
have : r ≀ n := h₃.trans (Nat.div_le_self n 2)
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) ⊒ False
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this : r ≀ n ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
have : 1 ≀ n := β€Ή1 ≀ rβ€Ί.trans β€Ήr ≀ nβ€Ί
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this : r ≀ n ⊒ False
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝¹ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝ : r ≀ n this : 1 ≀ n ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
have z : (n - 1).choose (n - r) < π’œαΆœΛ’.card := by rwa [card_compls, choose_symm_of_eq_add (tsub_add_tsub_cancel β€Ήr ≀ nβ€Ί β€Ή1 ≀ rβ€Ί).symm]
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝¹ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝ : r ≀ n this : 1 ≀ n ⊒ False
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝¹ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝ : r ≀ n this : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
have hπ’œbar : (π’œαΆœΛ’ : Set (Finset (Fin n))).Sized (n - r) := by simpa using hβ‚‚.compls
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝¹ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝ : r ≀ n this : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card ⊒ False
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝¹ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝ : r ≀ n this : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
have : n - 2 * r ≀ n - r := by rw [tsub_le_tsub_iff_left β€Ήr ≀ nβ€Ί] exact Nat.le_mul_of_pos_left _ zero_lt_two
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝¹ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝ : r ≀ n this : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ ⊒ False
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
have kk := lovasz_form β€Ήn - 2 * r ≀ n - rβ€Ί ((tsub_le_tsub_iff_left β€Ή1 ≀ nβ€Ί).2 h1r) tsub_le_self hπ’œbar z.le
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r ⊒ False
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
have q : n - r - (n - 2 * r) = r := by rw [tsub_right_comm, Nat.sub_sub_self, two_mul] apply Nat.add_sub_cancel rw [mul_comm, ← Nat.le_div_iff_mul_le' zero_lt_two] exact h₃
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ False
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
rw [q] at kk
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ False
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
have : n.choose r < (π’œ βˆͺ βˆ‚^[n - 2 * r] π’œαΆœΛ’).card := by rw [card_union_of_disjoint β€Ή_β€Ί] convert lt_of_le_of_lt (add_le_add_left kk _) (add_lt_add_right size _) using 1 convert Nat.choose_succ_succ _ _ using 3 all_goals rwa [Nat.sub_one, Nat.succ_pred_eq_of_pos]
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ False
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
apply this.not_le
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ False
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ≀ n.choose r
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
convert Set.Sized.card_le _
case inr Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ≀ n.choose r
case h.e'_4.h.e'_1 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ n = Fintype.card (Fin n) case inr.convert_2 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ Fintype (Fin n) case inr.convert_5 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ Set.Sized r ↑(π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’)
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
rw [coe_union, Set.sized_union]
case inr.convert_5 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ Set.Sized r ↑(π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’)
case inr.convert_5 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ Set.Sized r β†‘π’œ ∧ Set.Sized r ↑(βˆ‚ ^[n - 2 * r] π’œαΆœΛ’)
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
refine' βŸ¨β€Ή_β€Ί, _⟩
case inr.convert_5 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ Set.Sized r β†‘π’œ ∧ Set.Sized r ↑(βˆ‚ ^[n - 2 * r] π’œαΆœΛ’)
case inr.convert_5 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ Set.Sized r ↑(βˆ‚ ^[n - 2 * r] π’œαΆœΛ’)
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
convert hπ’œbar.shadow_iterate
case inr.convert_5 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ Set.Sized r ↑(βˆ‚ ^[n - 2 * r] π’œαΆœΛ’)
case h.e'_2 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ r = n - r - (n - 2 * r)
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
rw [q]
case h.e'_2 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ r = n - r - (n - 2 * r)
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
convert Nat.zero_le _
case inl Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 b : r = 0 ⊒ π’œ.card ≀ (n - 1).choose (r - 1)
case h.e'_3 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 b : r = 0 ⊒ π’œ.card = 0
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
rw [Finset.card_eq_zero, eq_empty_iff_forall_not_mem]
case h.e'_3 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 b : r = 0 ⊒ π’œ.card = 0
case h.e'_3 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 b : r = 0 ⊒ βˆ€ (x : Finset (Fin n)), x βˆ‰ π’œ
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
refine' fun A HA ↦ hπ’œ HA HA _
case h.e'_3 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 b : r = 0 ⊒ βˆ€ (x : Finset (Fin n)), x βˆ‰ π’œ
case h.e'_3 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 b : r = 0 A : Finset (Fin n) HA : A ∈ π’œ ⊒ Disjoint A A
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
rw [disjoint_self_iff_empty, ← Finset.card_eq_zero, ← b]
case h.e'_3 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 b : r = 0 A : Finset (Fin n) HA : A ∈ π’œ ⊒ Disjoint A A
case h.e'_3 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 b : r = 0 A : Finset (Fin n) HA : A ∈ π’œ ⊒ A.card = r
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
exact hβ‚‚ HA
case h.e'_3 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 b : r = 0 A : Finset (Fin n) HA : A ∈ π’œ ⊒ A.card = r
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
simp [mem_shadow_iterate_iff_exists_sdiff, mem_compls] at hAbar
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card A : Finset (Fin n) hAbar : A ∈ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’ hA : A ∈ π’œ ⊒ False
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card A : Finset (Fin n) hA : A ∈ π’œ hAbar : βˆƒ s, sᢜ ∈ π’œ ∧ A βŠ† s ∧ (s \ A).card = n - 2 * r ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
obtain ⟨C, hC, hAC, _⟩ := hAbar
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card A : Finset (Fin n) hA : A ∈ π’œ hAbar : βˆƒ s, sᢜ ∈ π’œ ∧ A βŠ† s ∧ (s \ A).card = n - 2 * r ⊒ False
case intro.intro.intro Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card A : Finset (Fin n) hA : A ∈ π’œ C : Finset (Fin n) hC : Cᢜ ∈ π’œ hAC : A βŠ† C right✝ : (C \ A).card = n - 2 * r ⊒ False
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
exact hπ’œ hA hC (disjoint_of_subset_left hAC disjoint_compl_right)
case intro.intro.intro Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card A : Finset (Fin n) hA : A ∈ π’œ C : Finset (Fin n) hC : Cᢜ ∈ π’œ hAC : A βŠ† C right✝ : (C \ A).card = n - 2 * r ⊒ False
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
rwa [card_compls, choose_symm_of_eq_add (tsub_add_tsub_cancel β€Ήr ≀ nβ€Ί β€Ή1 ≀ rβ€Ί).symm]
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝¹ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝ : r ≀ n this : 1 ≀ n ⊒ (n - 1).choose (n - r) < π’œαΆœΛ’.card
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
simpa using hβ‚‚.compls
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝¹ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝ : r ≀ n this : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card ⊒ Set.Sized (n - r) β†‘π’œαΆœΛ’
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
rw [tsub_le_tsub_iff_left β€Ήr ≀ nβ€Ί]
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝¹ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝ : r ≀ n this : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ ⊒ n - 2 * r ≀ n - r
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝¹ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝ : r ≀ n this : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ ⊒ r ≀ 2 * r
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
exact Nat.le_mul_of_pos_left _ zero_lt_two
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝¹ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝ : r ≀ n this : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ ⊒ r ≀ 2 * r
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
rw [tsub_right_comm, Nat.sub_sub_self, two_mul]
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ n - r - (n - 2 * r) = r
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ r + r - r = r Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ 2 * r ≀ n
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
apply Nat.add_sub_cancel
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ r + r - r = r Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ 2 * r ≀ n
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ 2 * r ≀ n
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
rw [mul_comm, ← Nat.le_div_iff_mul_le' zero_lt_two]
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ 2 * r ≀ n
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ r ≀ n / 2
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
exact h₃
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose (n - r - (n - 2 * r)) ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ r ≀ n / 2
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
rw [card_union_of_disjoint β€Ή_β€Ί]
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ n.choose r < π’œ.card + (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
convert lt_of_le_of_lt (add_le_add_left kk _) (add_lt_add_right size _) using 1
Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ n.choose r < π’œ.card + (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card
case h.e'_3 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ n.choose r = (n - 1).choose (r - 1) + (n - 1).choose r
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
convert Nat.choose_succ_succ _ _ using 3
case h.e'_3 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ n.choose r = (n - 1).choose (r - 1) + (n - 1).choose r
case h.e'_2.h.e'_1 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ n = (n - 1).succ case h.e'_2.h.e'_2 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ r = (r - 1).succ case h.e'_3.h.e'_6.h.e'_2 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ r = (r - 1).succ
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
all_goals rwa [Nat.sub_one, Nat.succ_pred_eq_of_pos]
case h.e'_2.h.e'_1 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ n = (n - 1).succ case h.e'_2.h.e'_2 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ r = (r - 1).succ case h.e'_3.h.e'_6.h.e'_2 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ r = (r - 1).succ
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
rwa [Nat.sub_one, Nat.succ_pred_eq_of_pos]
case h.e'_3.h.e'_6.h.e'_2 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝² : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝¹ : r ≀ n this✝ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r ⊒ r = (r - 1).succ
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/KruskalKatona.lean
Finset.EKR
[386, 1]
[436, 9]
rw [Fintype.card_fin]
case h.e'_4.h.e'_1 Ξ± : Type u_1 inst✝ : LinearOrder Ξ± s U V : Finset Ξ± n : β„• π’œ : Finset (Finset (Fin n)) r : β„• hπ’œ : (β†‘π’œ).Intersecting hβ‚‚ : Set.Sized r β†‘π’œ h₃ : r ≀ n / 2 h1r : r > 0 size : (n - 1).choose (r - 1) < π’œ.card this✝³ : Disjoint π’œ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’) this✝² : r ≀ n this✝¹ : 1 ≀ n z : (n - 1).choose (n - r) < π’œαΆœΛ’.card hπ’œbar : Set.Sized (n - r) β†‘π’œαΆœΛ’ this✝ : n - 2 * r ≀ n - r kk : (n - 1).choose r ≀ (βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card q : n - r - (n - 2 * r) = r this : n.choose r < (π’œ βˆͺ βˆ‚ ^[n - 2 * r] π’œαΆœΛ’).card ⊒ n = Fintype.card (Fin n)
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Algebra/Order/Ring/Canonical.lean
mul_tsub_one
[7, 1]
[7, 84]
rw [mul_tsub, mul_one]
Ξ± : Type u_1 inst✝⁴ : CanonicallyOrderedCommSemiring Ξ± inst✝³ : Sub Ξ± inst✝² : OrderedSub Ξ± inst✝¹ : IsTotal Ξ± fun x x_1 => x ≀ x_1 inst✝ : ContravariantClass Ξ± Ξ± (fun x x_1 => x + x_1) fun x x_1 => x ≀ x_1 a b : Ξ± ⊒ a * (b - 1) = a * b - a
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Algebra/Order/Ring/Canonical.lean
tsub_one_mul
[8, 1]
[8, 84]
rw [tsub_mul, one_mul]
Ξ± : Type u_1 inst✝⁴ : CanonicallyOrderedCommSemiring Ξ± inst✝³ : Sub Ξ± inst✝² : OrderedSub Ξ± inst✝¹ : IsTotal Ξ± fun x x_1 => x ≀ x_1 inst✝ : ContravariantClass Ξ± Ξ± (fun x x_1 => x + x_1) fun x x_1 => x ≀ x_1 a b : Ξ± ⊒ (a - 1) * b = a * b - b
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Probability/Independence/Basic.lean
ProbabilityTheory.iIndep_comap_iff
[11, 1]
[12, 42]
simp_rw [← generateFrom_singleton]
Ξ© : Type u_1 ΞΉ : Type u_2 Ξ² : ΞΉ β†’ Type u_3 inst✝ : MeasurableSpace Ξ© Ο€ : ΞΉ β†’ Set (Set Ξ©) ΞΌ : Measure Ξ© S : Finset ΞΉ s : ΞΉ β†’ Set Ξ© f : (i : ΞΉ) β†’ Ξ© β†’ Ξ² i ⊒ iIndep (fun i => MeasurableSpace.comap (fun x => x ∈ s i) ⊀) ΞΌ ↔ iIndepSet s ΞΌ
Ξ© : Type u_1 ΞΉ : Type u_2 Ξ² : ΞΉ β†’ Type u_3 inst✝ : MeasurableSpace Ξ© Ο€ : ΞΉ β†’ Set (Set Ξ©) ΞΌ : Measure Ξ© S : Finset ΞΉ s : ΞΉ β†’ Set Ξ© f : (i : ΞΉ) β†’ Ξ© β†’ Ξ² i ⊒ iIndep (fun i => generateFrom {s i}) ΞΌ ↔ iIndepSet s ΞΌ
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Probability/Independence/Basic.lean
ProbabilityTheory.iIndep_comap_iff
[11, 1]
[12, 42]
rfl
Ξ© : Type u_1 ΞΉ : Type u_2 Ξ² : ΞΉ β†’ Type u_3 inst✝ : MeasurableSpace Ξ© Ο€ : ΞΉ β†’ Set (Set Ξ©) ΞΌ : Measure Ξ© S : Finset ΞΉ s : ΞΉ β†’ Set Ξ© f : (i : ΞΉ) β†’ Ξ© β†’ Ξ² i ⊒ iIndep (fun i => generateFrom {s i}) ΞΌ ↔ iIndepSet s ΞΌ
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/ConvexContinuous.lean
Real.closedBall_eq_segment
[26, 1]
[27, 96]
rw [closedBall_eq_Icc, segment_eq_Icc ((sub_le_self _ hΞ΅).trans $ le_add_of_nonneg_right hΞ΅)]
Ξ΅ r : ℝ hΞ΅ : 0 ≀ Ξ΅ ⊒ closedBall r Ξ΅ = segment ℝ (r - Ξ΅) (r + Ξ΅)
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/ConvexContinuous.lean
IsOpen.exists_mem_intrinsicInterior_convexHull_finset
[52, 1]
[68, 8]
classical lift x to affineSpan ℝ s using subset_affineSpan _ _ hx set x : affineSpan ℝ s := x with hx clear_value x subst hx obtain ⟨Ρ, hΞ΅, hΞ΅x⟩ := (Metric.nhds_basis_closedBall.1 _).1 (isOpen_iff_mem_nhds.1 hs _ hx) set f : Finset (Fin $ finrank ℝ $ vectorSpan ℝ s) β†’ vectorSpan ℝ s := fun u ↦ (Ξ΅ / βˆ‘ i, β€–finBasis ℝ (vectorSpan ℝ s) iβ€–) β€’ βˆ‘ i, if i ∈ u then finBasis ℝ (vectorSpan ℝ s) i else -finBasis ℝ (vectorSpan ℝ s) i with hf sorry
E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E x : E hs : IsOpen (Subtype.val ⁻¹' s) hx : x ∈ s ⊒ βˆƒ t, x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/ConvexContinuous.lean
IsOpen.exists_mem_intrinsicInterior_convexHull_finset
[52, 1]
[68, 8]
lift x to affineSpan ℝ s using subset_affineSpan _ _ hx
E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E x : E hs : IsOpen (Subtype.val ⁻¹' s) hx : x ∈ s ⊒ βˆƒ t, x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
case intro E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E hs : IsOpen (Subtype.val ⁻¹' s) x : β†₯(affineSpan ℝ s) hx : ↑x ∈ s ⊒ βˆƒ t, ↑x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/ConvexContinuous.lean
IsOpen.exists_mem_intrinsicInterior_convexHull_finset
[52, 1]
[68, 8]
set x : affineSpan ℝ s := x with hx
case intro E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E hs : IsOpen (Subtype.val ⁻¹' s) x : β†₯(affineSpan ℝ s) hx : ↑x ∈ s ⊒ βˆƒ t, ↑x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
case intro E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E hs : IsOpen (Subtype.val ⁻¹' s) x✝ : β†₯(affineSpan ℝ s) x : β†₯(affineSpan ℝ s) := x✝ hx✝ : ↑x ∈ s hx : x = x✝ ⊒ βˆƒ t, ↑x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/ConvexContinuous.lean
IsOpen.exists_mem_intrinsicInterior_convexHull_finset
[52, 1]
[68, 8]
clear_value x
case intro E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E hs : IsOpen (Subtype.val ⁻¹' s) x✝ : β†₯(affineSpan ℝ s) x : β†₯(affineSpan ℝ s) := x✝ hx✝ : ↑x ∈ s hx : x = x✝ ⊒ βˆƒ t, ↑x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
case intro E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E hs : IsOpen (Subtype.val ⁻¹' s) x✝ x : β†₯(affineSpan ℝ s) hx✝ : ↑x ∈ s hx : x = x✝ ⊒ βˆƒ t, ↑x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/ConvexContinuous.lean
IsOpen.exists_mem_intrinsicInterior_convexHull_finset
[52, 1]
[68, 8]
subst hx
case intro E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E hs : IsOpen (Subtype.val ⁻¹' s) x✝ x : β†₯(affineSpan ℝ s) hx✝ : ↑x ∈ s hx : x = x✝ ⊒ βˆƒ t, ↑x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
case intro E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E hs : IsOpen (Subtype.val ⁻¹' s) x : β†₯(affineSpan ℝ s) hx : ↑x ∈ s ⊒ βˆƒ t, ↑x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/ConvexContinuous.lean
IsOpen.exists_mem_intrinsicInterior_convexHull_finset
[52, 1]
[68, 8]
obtain ⟨Ρ, hΡ, hΡx⟩ := (Metric.nhds_basis_closedBall.1 _).1 (isOpen_iff_mem_nhds.1 hs _ hx)
case intro E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E hs : IsOpen (Subtype.val ⁻¹' s) x : β†₯(affineSpan ℝ s) hx : ↑x ∈ s ⊒ βˆƒ t, ↑x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
case intro.intro.intro E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E hs : IsOpen (Subtype.val ⁻¹' s) x : β†₯(affineSpan ℝ s) hx : ↑x ∈ s Ξ΅ : ℝ hΞ΅ : 0 < Ξ΅ hΞ΅x : closedBall x Ξ΅ βŠ† Subtype.val ⁻¹' s ⊒ βˆƒ t, ↑x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/ConvexContinuous.lean
IsOpen.exists_mem_intrinsicInterior_convexHull_finset
[52, 1]
[68, 8]
set f : Finset (Fin $ finrank ℝ $ vectorSpan ℝ s) β†’ vectorSpan ℝ s := fun u ↦ (Ξ΅ / βˆ‘ i, β€–finBasis ℝ (vectorSpan ℝ s) iβ€–) β€’ βˆ‘ i, if i ∈ u then finBasis ℝ (vectorSpan ℝ s) i else -finBasis ℝ (vectorSpan ℝ s) i with hf
case intro.intro.intro E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E hs : IsOpen (Subtype.val ⁻¹' s) x : β†₯(affineSpan ℝ s) hx : ↑x ∈ s Ξ΅ : ℝ hΞ΅ : 0 < Ξ΅ hΞ΅x : closedBall x Ξ΅ βŠ† Subtype.val ⁻¹' s ⊒ βˆƒ t, ↑x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
case intro.intro.intro E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E hs : IsOpen (Subtype.val ⁻¹' s) x : β†₯(affineSpan ℝ s) hx : ↑x ∈ s Ξ΅ : ℝ hΞ΅ : 0 < Ξ΅ hΞ΅x : closedBall x Ξ΅ βŠ† Subtype.val ⁻¹' s f : Finset (Fin (finrank ℝ β†₯(vectorSpan ℝ s))) β†’ β†₯(vectorSpan ℝ s) := fun u => (Ξ΅ / βˆ‘ i : Fin (finrank ℝ β†₯(vectorSpan ℝ s)), β€–(finBasis ℝ β†₯(vectorSpan ℝ s)) iβ€–) β€’ βˆ‘ i : Fin (finrank ℝ β†₯(vectorSpan ℝ s)), if i ∈ u then (finBasis ℝ β†₯(vectorSpan ℝ s)) i else -(finBasis ℝ β†₯(vectorSpan ℝ s)) i hf : f = fun u => (Ξ΅ / βˆ‘ i : Fin (finrank ℝ β†₯(vectorSpan ℝ s)), β€–(finBasis ℝ β†₯(vectorSpan ℝ s)) iβ€–) β€’ βˆ‘ i : Fin (finrank ℝ β†₯(vectorSpan ℝ s)), if i ∈ u then (finBasis ℝ β†₯(vectorSpan ℝ s)) i else -(finBasis ℝ β†₯(vectorSpan ℝ s)) i ⊒ βˆƒ t, ↑x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/ConvexContinuous.lean
IsOpen.exists_mem_intrinsicInterior_convexHull_finset
[52, 1]
[68, 8]
sorry
case intro.intro.intro E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E hs : IsOpen (Subtype.val ⁻¹' s) x : β†₯(affineSpan ℝ s) hx : ↑x ∈ s Ξ΅ : ℝ hΞ΅ : 0 < Ξ΅ hΞ΅x : closedBall x Ξ΅ βŠ† Subtype.val ⁻¹' s f : Finset (Fin (finrank ℝ β†₯(vectorSpan ℝ s))) β†’ β†₯(vectorSpan ℝ s) := fun u => (Ξ΅ / βˆ‘ i : Fin (finrank ℝ β†₯(vectorSpan ℝ s)), β€–(finBasis ℝ β†₯(vectorSpan ℝ s)) iβ€–) β€’ βˆ‘ i : Fin (finrank ℝ β†₯(vectorSpan ℝ s)), if i ∈ u then (finBasis ℝ β†₯(vectorSpan ℝ s)) i else -(finBasis ℝ β†₯(vectorSpan ℝ s)) i hf : f = fun u => (Ξ΅ / βˆ‘ i : Fin (finrank ℝ β†₯(vectorSpan ℝ s)), β€–(finBasis ℝ β†₯(vectorSpan ℝ s)) iβ€–) β€’ βˆ‘ i : Fin (finrank ℝ β†₯(vectorSpan ℝ s)), if i ∈ u then (finBasis ℝ β†₯(vectorSpan ℝ s)) i else -(finBasis ℝ β†₯(vectorSpan ℝ s)) i ⊒ βˆƒ t, ↑x ∈ intrinsicInterior ℝ ((convexHull ℝ) ↑t) ∧ (convexHull ℝ) ↑t βŠ† s
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/ConvexContinuous.lean
ConvexOn.continuousOn
[104, 1]
[115, 8]
classical sorry
E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E f : E β†’ ℝ hf : ConvexOn ℝ s f ⊒ ContinuousOn f (intrinsicInterior ℝ s)
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/ConvexContinuous.lean
ConvexOn.continuousOn
[104, 1]
[115, 8]
sorry
E : Type u_1 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace ℝ E inst✝ : FiniteDimensional ℝ E s : Set E f : E β†’ ℝ hf : ConvexOn ℝ s f ⊒ ContinuousOn f (intrinsicInterior ℝ s)
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Probability/Independence/Basic.lean
ProbabilityTheory.iIndep_comap_iff
[11, 1]
[12, 42]
simp_rw [← generateFrom_singleton]
Ξ© : Type u_1 ΞΉ : Type u_2 Ξ² : ΞΉ β†’ Type u_3 inst✝ : MeasurableSpace Ξ© Ο€ : ΞΉ β†’ Set (Set Ξ©) ΞΌ : Measure Ξ© S : Finset ΞΉ s : ΞΉ β†’ Set Ξ© f : (i : ΞΉ) β†’ Ξ© β†’ Ξ² i ⊒ iIndep (fun i => MeasurableSpace.comap (fun x => x ∈ s i) ⊀) ΞΌ ↔ iIndepSet s ΞΌ
Ξ© : Type u_1 ΞΉ : Type u_2 Ξ² : ΞΉ β†’ Type u_3 inst✝ : MeasurableSpace Ξ© Ο€ : ΞΉ β†’ Set (Set Ξ©) ΞΌ : Measure Ξ© S : Finset ΞΉ s : ΞΉ β†’ Set Ξ© f : (i : ΞΉ) β†’ Ξ© β†’ Ξ² i ⊒ iIndep (fun i => generateFrom {s i}) ΞΌ ↔ iIndepSet s ΞΌ
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Probability/Independence/Basic.lean
ProbabilityTheory.iIndep_comap_iff
[11, 1]
[12, 42]
rfl
Ξ© : Type u_1 ΞΉ : Type u_2 Ξ² : ΞΉ β†’ Type u_3 inst✝ : MeasurableSpace Ξ© Ο€ : ΞΉ β†’ Set (Set Ξ©) ΞΌ : Measure Ξ© S : Finset ΞΉ s : ΞΉ β†’ Set Ξ© f : (i : ΞΉ) β†’ Ξ© β†’ Ξ² i ⊒ iIndep (fun i => generateFrom {s i}) ΞΌ ↔ iIndepSet s ΞΌ
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.length_rtake
[10, 1]
[11, 65]
rw [Nat.sub_sub_eq_min, min_comm]
Ξ± : Type u_1 l✝ l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n✝ n : β„• l : List Ξ± ⊒ l.length - (l.length - n) = min n l.length
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.take_reverse
[13, 1]
[14, 54]
rw [rtake_eq_reverse_take_reverse, reverse_reverse]
Ξ± : Type u_1 l✝ l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n✝ n : β„• l : List Ξ± ⊒ take n l.reverse = (l.rtake n).reverse
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.rtake_reverse
[16, 1]
[17, 54]
rw [rtake_eq_reverse_take_reverse, reverse_reverse]
Ξ± : Type u_1 l✝ l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n✝ n : β„• l : List Ξ± ⊒ l.reverse.rtake n = (take n l).reverse
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.rtake_rtake
[19, 1]
[20, 95]
rw [rtake_eq_reverse_take_reverse, ← take_reverse, take_take, rtake_eq_reverse_take_reverse]
Ξ± : Type u_1 l✝ l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m✝ n✝ n m : β„• l : List Ξ± ⊒ (l.rtake m).rtake n = l.rtake (min n m)
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.take_prefix_take
[37, 1]
[38, 91]
rw [prefix_iff_eq_take, length_take, take_take, min_right_comm, min_eq_left h, take_min]
Ξ± : Type u_1 l l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• h : m ≀ n ⊒ take m l <+: take n l
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.IsPrefix.take
[48, 1]
[49, 44]
rw [hl.eq_take]
Ξ± : Type u_1 l l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hl : l <+: l' h : l.length ≀ n ⊒ l <+: take n l'
Ξ± : Type u_1 l l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hl : l <+: l' h : l.length ≀ n ⊒ take l.length l' <+: take n l'
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.IsPrefix.take
[48, 1]
[49, 44]
exact take_prefix_take h
Ξ± : Type u_1 l l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hl : l <+: l' h : l.length ≀ n ⊒ take l.length l' <+: take n l'
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.IsSuffix.rtake
[51, 1]
[52, 47]
rw [hl.eq_rtake]
Ξ± : Type u_1 l l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hl : l <:+ l' h : l.length ≀ n ⊒ l <:+ l'.rtake n
Ξ± : Type u_1 l l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hl : l <:+ l' h : l.length ≀ n ⊒ l'.rtake l.length <:+ l'.rtake n
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.IsSuffix.rtake
[51, 1]
[52, 47]
exact rtake_suffix_rtake h
Ξ± : Type u_1 l l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hl : l <:+ l' h : l.length ≀ n ⊒ l'.rtake l.length <:+ l'.rtake n
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.Sublist.exists_intermediate
[71, 1]
[84, 23]
induction' lβ‚€ with a lβ‚€ ih generalizing n lβ‚‚
Ξ± : Type u_1 l l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hl : lβ‚€ <+ lβ‚‚ hβ‚€ : lβ‚€.length ≀ n hβ‚‚ : n ≀ lβ‚‚.length ⊒ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n
case nil Ξ± : Type u_1 l l' l₁ : List Ξ± a b : Ξ± m : β„• lβ‚‚ : List Ξ± n : β„• hl : [] <+ lβ‚‚ hβ‚€ : [].length ≀ n hβ‚‚ : n ≀ lβ‚‚.length ⊒ βˆƒ l₁, [] <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n case cons Ξ± : Type u_1 l l' l₁ : List Ξ± a✝ b : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n lβ‚‚ : List Ξ± n : β„• hl : a :: lβ‚€ <+ lβ‚‚ hβ‚€ : (a :: lβ‚€).length ≀ n hβ‚‚ : n ≀ lβ‚‚.length ⊒ βˆƒ l₁, a :: lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.Sublist.exists_intermediate
[71, 1]
[84, 23]
cases n
case cons Ξ± : Type u_1 l l' l₁ : List Ξ± a✝ b : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n lβ‚‚ : List Ξ± n : β„• hl : a :: lβ‚€ <+ lβ‚‚ hβ‚€ : (a :: lβ‚€).length ≀ n hβ‚‚ : n ≀ lβ‚‚.length ⊒ βˆƒ l₁, a :: lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n
case cons.zero Ξ± : Type u_1 l l' l₁ : List Ξ± a✝ b : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n lβ‚‚ : List Ξ± hl : a :: lβ‚€ <+ lβ‚‚ hβ‚€ : (a :: lβ‚€).length ≀ 0 hβ‚‚ : 0 ≀ lβ‚‚.length ⊒ βˆƒ l₁, a :: lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = 0 case cons.succ Ξ± : Type u_1 l l' l₁ : List Ξ± a✝ b : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n lβ‚‚ : List Ξ± hl : a :: lβ‚€ <+ lβ‚‚ n✝ : β„• hβ‚€ : (a :: lβ‚€).length ≀ n✝ + 1 hβ‚‚ : n✝ + 1 ≀ lβ‚‚.length ⊒ βˆƒ l₁, a :: lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n✝ + 1
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.Sublist.exists_intermediate
[71, 1]
[84, 23]
cases' lβ‚‚ with b lβ‚‚
case cons.succ Ξ± : Type u_1 l l' l₁ : List Ξ± a✝ b : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n lβ‚‚ : List Ξ± hl : a :: lβ‚€ <+ lβ‚‚ n✝ : β„• hβ‚€ : (a :: lβ‚€).length ≀ n✝ + 1 hβ‚‚ : n✝ + 1 ≀ lβ‚‚.length ⊒ βˆƒ l₁, a :: lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n✝ + 1
case cons.succ.nil Ξ± : Type u_1 l l' l₁ : List Ξ± a✝ b : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n n✝ : β„• hβ‚€ : (a :: lβ‚€).length ≀ n✝ + 1 hl : a :: lβ‚€ <+ [] hβ‚‚ : n✝ + 1 ≀ [].length ⊒ βˆƒ l₁, a :: lβ‚€ <+ l₁ ∧ l₁ <+ [] ∧ l₁.length = n✝ + 1 case cons.succ.cons Ξ± : Type u_1 l l' l₁ : List Ξ± a✝ b✝ : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n n✝ : β„• hβ‚€ : (a :: lβ‚€).length ≀ n✝ + 1 b : Ξ± lβ‚‚ : List Ξ± hl : a :: lβ‚€ <+ b :: lβ‚‚ hβ‚‚ : n✝ + 1 ≀ (b :: lβ‚‚).length ⊒ βˆƒ l₁, a :: lβ‚€ <+ l₁ ∧ l₁ <+ b :: lβ‚‚ ∧ l₁.length = n✝ + 1
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.Sublist.exists_intermediate
[71, 1]
[84, 23]
obtain ⟨l₁, h₀₁, h₁₂, rfl⟩ := ih sorry (Nat.succ_le_succ_iff.1 hβ‚€) (Nat.le_of_succ_le hβ‚‚)
case cons.succ.cons Ξ± : Type u_1 l l' l₁ : List Ξ± a✝ b✝ : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n n✝ : β„• hβ‚€ : (a :: lβ‚€).length ≀ n✝ + 1 b : Ξ± lβ‚‚ : List Ξ± hl : a :: lβ‚€ <+ b :: lβ‚‚ hβ‚‚ : n✝ + 1 ≀ (b :: lβ‚‚).length ⊒ βˆƒ l₁, a :: lβ‚€ <+ l₁ ∧ l₁ <+ b :: lβ‚‚ ∧ l₁.length = n✝ + 1
case cons.succ.cons.intro.intro.intro Ξ± : Type u_1 l l' lβ‚βœ : List Ξ± a✝ b✝ : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n b : Ξ± lβ‚‚ : List Ξ± hl : a :: lβ‚€ <+ b :: lβ‚‚ l₁ : List Ξ± h₀₁ : lβ‚€ <+ l₁ h₁₂ : l₁ <+ b :: lβ‚‚ hβ‚€ : (a :: lβ‚€).length ≀ l₁.length + 1 hβ‚‚ : l₁.length + 1 ≀ (b :: lβ‚‚).length ⊒ βˆƒ l₁_1, a :: lβ‚€ <+ l₁_1 ∧ l₁_1 <+ b :: lβ‚‚ ∧ l₁_1.length = l₁.length + 1
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.Sublist.exists_intermediate
[71, 1]
[84, 23]
rw [cons_sublist_cons_iff'] at hl
case cons.succ.cons.intro.intro.intro Ξ± : Type u_1 l l' lβ‚βœ : List Ξ± a✝ b✝ : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n b : Ξ± lβ‚‚ : List Ξ± hl : a :: lβ‚€ <+ b :: lβ‚‚ l₁ : List Ξ± h₀₁ : lβ‚€ <+ l₁ h₁₂ : l₁ <+ b :: lβ‚‚ hβ‚€ : (a :: lβ‚€).length ≀ l₁.length + 1 hβ‚‚ : l₁.length + 1 ≀ (b :: lβ‚‚).length ⊒ βˆƒ l₁_1, a :: lβ‚€ <+ l₁_1 ∧ l₁_1 <+ b :: lβ‚‚ ∧ l₁_1.length = l₁.length + 1
case cons.succ.cons.intro.intro.intro Ξ± : Type u_1 l l' lβ‚βœ : List Ξ± a✝ b✝ : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n b : Ξ± lβ‚‚ : List Ξ± hl : a :: lβ‚€ <+ lβ‚‚ ∨ a = b ∧ lβ‚€ <+ lβ‚‚ l₁ : List Ξ± h₀₁ : lβ‚€ <+ l₁ h₁₂ : l₁ <+ b :: lβ‚‚ hβ‚€ : (a :: lβ‚€).length ≀ l₁.length + 1 hβ‚‚ : l₁.length + 1 ≀ (b :: lβ‚‚).length ⊒ βˆƒ l₁_1, a :: lβ‚€ <+ l₁_1 ∧ l₁_1 <+ b :: lβ‚‚ ∧ l₁_1.length = l₁.length + 1
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.Sublist.exists_intermediate
[71, 1]
[84, 23]
obtain hl | ⟨rfl, hl⟩ := hl
case cons.succ.cons.intro.intro.intro Ξ± : Type u_1 l l' lβ‚βœ : List Ξ± a✝ b✝ : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n b : Ξ± lβ‚‚ : List Ξ± hl : a :: lβ‚€ <+ lβ‚‚ ∨ a = b ∧ lβ‚€ <+ lβ‚‚ l₁ : List Ξ± h₀₁ : lβ‚€ <+ l₁ h₁₂ : l₁ <+ b :: lβ‚‚ hβ‚€ : (a :: lβ‚€).length ≀ l₁.length + 1 hβ‚‚ : l₁.length + 1 ≀ (b :: lβ‚‚).length ⊒ βˆƒ l₁_1, a :: lβ‚€ <+ l₁_1 ∧ l₁_1 <+ b :: lβ‚‚ ∧ l₁_1.length = l₁.length + 1
case cons.succ.cons.intro.intro.intro.inl Ξ± : Type u_1 l l' lβ‚βœ : List Ξ± a✝ b✝ : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n b : Ξ± lβ‚‚ l₁ : List Ξ± h₀₁ : lβ‚€ <+ l₁ h₁₂ : l₁ <+ b :: lβ‚‚ hβ‚€ : (a :: lβ‚€).length ≀ l₁.length + 1 hβ‚‚ : l₁.length + 1 ≀ (b :: lβ‚‚).length hl : a :: lβ‚€ <+ lβ‚‚ ⊒ βˆƒ l₁_1, a :: lβ‚€ <+ l₁_1 ∧ l₁_1 <+ b :: lβ‚‚ ∧ l₁_1.length = l₁.length + 1 case cons.succ.cons.intro.intro.intro.inr.intro Ξ± : Type u_1 l l' lβ‚βœ : List Ξ± a✝ b : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n lβ‚‚ l₁ : List Ξ± h₀₁ : lβ‚€ <+ l₁ hβ‚€ : (a :: lβ‚€).length ≀ l₁.length + 1 hl : lβ‚€ <+ lβ‚‚ h₁₂ : l₁ <+ a :: lβ‚‚ hβ‚‚ : l₁.length + 1 ≀ (a :: lβ‚‚).length ⊒ βˆƒ l₁_1, a :: lβ‚€ <+ l₁_1 ∧ l₁_1 <+ a :: lβ‚‚ ∧ l₁_1.length = l₁.length + 1
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.Sublist.exists_intermediate
[71, 1]
[84, 23]
exact (exists_sublist_length_eq hβ‚‚).imp (fun l₁ h ↦ ⟨nil_sublist _, h⟩)
case nil Ξ± : Type u_1 l l' l₁ : List Ξ± a b : Ξ± m : β„• lβ‚‚ : List Ξ± n : β„• hl : [] <+ lβ‚‚ hβ‚€ : [].length ≀ n hβ‚‚ : n ≀ lβ‚‚.length ⊒ βˆƒ l₁, [] <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.Sublist.exists_intermediate
[71, 1]
[84, 23]
cases hβ‚€
case cons.zero Ξ± : Type u_1 l l' l₁ : List Ξ± a✝ b : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n lβ‚‚ : List Ξ± hl : a :: lβ‚€ <+ lβ‚‚ hβ‚€ : (a :: lβ‚€).length ≀ 0 hβ‚‚ : 0 ≀ lβ‚‚.length ⊒ βˆƒ l₁, a :: lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = 0
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.Sublist.exists_intermediate
[71, 1]
[84, 23]
cases hβ‚‚
case cons.succ.nil Ξ± : Type u_1 l l' l₁ : List Ξ± a✝ b : Ξ± m : β„• a : Ξ± lβ‚€ : List Ξ± ih : βˆ€ {lβ‚‚ : List Ξ±} {n : β„•}, lβ‚€ <+ lβ‚‚ β†’ lβ‚€.length ≀ n β†’ n ≀ lβ‚‚.length β†’ βˆƒ l₁, lβ‚€ <+ l₁ ∧ l₁ <+ lβ‚‚ ∧ l₁.length = n n✝ : β„• hβ‚€ : (a :: lβ‚€).length ≀ n✝ + 1 hl : a :: lβ‚€ <+ [] hβ‚‚ : n✝ + 1 ≀ [].length ⊒ βˆƒ l₁, a :: lβ‚€ <+ l₁ ∧ l₁ <+ [] ∧ l₁.length = n✝ + 1
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.Subperm.exists_intermediate
[86, 1]
[90, 45]
obtain ⟨lβ‚€', hlβ‚€, hl'⟩ := hl
Ξ± : Type u_1 l l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hl : lβ‚€ <+~ lβ‚‚ hβ‚€ : lβ‚€.length ≀ n hβ‚‚ : n ≀ lβ‚‚.length ⊒ βˆƒ l₁, lβ‚€ <+~ l₁ ∧ l₁ <+~ lβ‚‚ ∧ l₁.length = n
case intro.intro Ξ± : Type u_1 l l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hβ‚€ : lβ‚€.length ≀ n hβ‚‚ : n ≀ lβ‚‚.length lβ‚€' : List Ξ± hlβ‚€ : lβ‚€' ~ lβ‚€ hl' : lβ‚€' <+ lβ‚‚ ⊒ βˆƒ l₁, lβ‚€ <+~ l₁ ∧ l₁ <+~ lβ‚‚ ∧ l₁.length = n
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.Subperm.exists_intermediate
[86, 1]
[90, 45]
obtain ⟨l₁, h₀₁, h₁₂, hn⟩ := hl'.exists_intermediate (hlβ‚€.length_eq.trans_le hβ‚€) hβ‚‚
case intro.intro Ξ± : Type u_1 l l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hβ‚€ : lβ‚€.length ≀ n hβ‚‚ : n ≀ lβ‚‚.length lβ‚€' : List Ξ± hlβ‚€ : lβ‚€' ~ lβ‚€ hl' : lβ‚€' <+ lβ‚‚ ⊒ βˆƒ l₁, lβ‚€ <+~ l₁ ∧ l₁ <+~ lβ‚‚ ∧ l₁.length = n
case intro.intro.intro.intro.intro Ξ± : Type u_1 l l' lβ‚€ lβ‚βœ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hβ‚€ : lβ‚€.length ≀ n hβ‚‚ : n ≀ lβ‚‚.length lβ‚€' : List Ξ± hlβ‚€ : lβ‚€' ~ lβ‚€ hl' : lβ‚€' <+ lβ‚‚ l₁ : List Ξ± h₀₁ : lβ‚€' <+ l₁ h₁₂ : l₁ <+ lβ‚‚ hn : l₁.length = n ⊒ βˆƒ l₁, lβ‚€ <+~ l₁ ∧ l₁ <+~ lβ‚‚ ∧ l₁.length = n
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.Subperm.exists_intermediate
[86, 1]
[90, 45]
exact ⟨l₁, ⟨_, hlβ‚€, hβ‚€β‚βŸ©, h₁₂.subperm, hn⟩
case intro.intro.intro.intro.intro Ξ± : Type u_1 l l' lβ‚€ lβ‚βœ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hβ‚€ : lβ‚€.length ≀ n hβ‚‚ : n ≀ lβ‚‚.length lβ‚€' : List Ξ± hlβ‚€ : lβ‚€' ~ lβ‚€ hl' : lβ‚€' <+ lβ‚‚ l₁ : List Ξ± h₀₁ : lβ‚€' <+ l₁ h₁₂ : l₁ <+ lβ‚‚ hn : l₁.length = n ⊒ βˆƒ l₁, lβ‚€ <+~ l₁ ∧ l₁ <+~ lβ‚‚ ∧ l₁.length = n
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/Data/List/DropRight.lean
List.exists_subperm_length_eq
[92, 1]
[93, 65]
simpa using nil_subperm.exists_intermediate (Nat.zero_le _) hn
Ξ± : Type u_1 l l' lβ‚€ l₁ lβ‚‚ : List Ξ± a b : Ξ± m n : β„• hn : n ≀ l.length ⊒ βˆƒ l', l' <+~ l ∧ l'.length = n
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/FieldTheory/Finite/Basic.lean
ZMod.pow_card_sub_one
[6, 1]
[9, 75]
split_ifs with hx
p : β„• inst✝ : Fact p.Prime x : ZMod p ⊒ x ^ (p - 1) = if x β‰  0 then 1 else 0
case pos p : β„• inst✝ : Fact p.Prime x : ZMod p hx : x β‰  0 ⊒ x ^ (p - 1) = 1 case neg p : β„• inst✝ : Fact p.Prime x : ZMod p hx : Β¬x β‰  0 ⊒ x ^ (p - 1) = 0
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/FieldTheory/Finite/Basic.lean
ZMod.pow_card_sub_one
[6, 1]
[9, 75]
exact pow_card_sub_one_eq_one hx
case pos p : β„• inst✝ : Fact p.Prime x : ZMod p hx : x β‰  0 ⊒ x ^ (p - 1) = 1
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/Mathlib/FieldTheory/Finite/Basic.lean
ZMod.pow_card_sub_one
[6, 1]
[9, 75]
simp [of_not_not hx, (Fact.out : p.Prime).one_lt, tsub_eq_zero_iff_le]
case neg p : β„• inst✝ : Fact p.Prime x : ZMod p hx : Β¬x β‰  0 ⊒ x ^ (p - 1) = 0
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/SimplicialComplex/Subdivision.lean
Geometry.SimplicialComplex.subdivides_iff_combiInteriors_subset_combiInteriors
[50, 1]
[66, 28]
refine' ⟨fun h => ⟨h.1.superset, fun s hs => _⟩, fun h => ⟨h.1.antisymm' fun x hx => _, fun s₁ hs₁ => _⟩⟩
π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s t : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E ⊒ K₁.Subdivides Kβ‚‚ ↔ Kβ‚‚.space βŠ† K₁.space ∧ βˆ€ s₁ ∈ K₁, βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚
case refine'_1 π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s✝ t : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : K₁.Subdivides Kβ‚‚ s : Finset E hs : s ∈ K₁ ⊒ βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s βŠ† combiInterior ℝ sβ‚‚ case refine'_2 π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s t : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : Kβ‚‚.space βŠ† K₁.space ∧ βˆ€ s₁ ∈ K₁, βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ x : E hx : x ∈ K₁.space ⊒ x ∈ Kβ‚‚.space case refine'_3 π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s t : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : Kβ‚‚.space βŠ† K₁.space ∧ βˆ€ s₁ ∈ K₁, βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ s₁ : Finset E hs₁ : s₁ ∈ K₁ ⊒ βˆƒ sβ‚‚ ∈ Kβ‚‚, (convexHull ℝ) ↑s₁ βŠ† (convexHull ℝ) ↑sβ‚‚
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/SimplicialComplex/Subdivision.lean
Geometry.SimplicialComplex.subdivides_iff_combiInteriors_subset_combiInteriors
[50, 1]
[66, 28]
obtain ⟨t, ht, hst⟩ := h.2 hs
case refine'_1 π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s✝ t : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : K₁.Subdivides Kβ‚‚ s : Finset E hs : s ∈ K₁ ⊒ βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s βŠ† combiInterior ℝ sβ‚‚
case refine'_1.intro.intro π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s✝ t✝ : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : K₁.Subdivides Kβ‚‚ s : Finset E hs : s ∈ K₁ t : Finset E ht : t ∈ Kβ‚‚ hst : (convexHull ℝ) ↑s βŠ† (convexHull ℝ) ↑t ⊒ βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s βŠ† combiInterior ℝ sβ‚‚
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/SimplicialComplex/Subdivision.lean
Geometry.SimplicialComplex.subdivides_iff_combiInteriors_subset_combiInteriors
[50, 1]
[66, 28]
obtain ⟨u, hut, hu, hsu⟩ := simplex_combiInteriors_split_interiors_nonempty (K₁.nonempty hs) (Kβ‚‚.indep ht) hst
case refine'_1.intro.intro π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s✝ t✝ : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : K₁.Subdivides Kβ‚‚ s : Finset E hs : s ∈ K₁ t : Finset E ht : t ∈ Kβ‚‚ hst : (convexHull ℝ) ↑s βŠ† (convexHull ℝ) ↑t ⊒ βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s βŠ† combiInterior ℝ sβ‚‚
case refine'_1.intro.intro.intro.intro.intro π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s✝ t✝ : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : K₁.Subdivides Kβ‚‚ s : Finset E hs : s ∈ K₁ t : Finset E ht : t ∈ Kβ‚‚ hst : (convexHull ℝ) ↑s βŠ† (convexHull ℝ) ↑t u : Finset E hut : u βŠ† t hu : u.Nonempty hsu : combiInterior ℝ s βŠ† combiInterior ℝ u ⊒ βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s βŠ† combiInterior ℝ sβ‚‚
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/SimplicialComplex/Subdivision.lean
Geometry.SimplicialComplex.subdivides_iff_combiInteriors_subset_combiInteriors
[50, 1]
[66, 28]
exact ⟨u, Kβ‚‚.down_closed' ht hut hu, hsu⟩
case refine'_1.intro.intro.intro.intro.intro π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s✝ t✝ : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : K₁.Subdivides Kβ‚‚ s : Finset E hs : s ∈ K₁ t : Finset E ht : t ∈ Kβ‚‚ hst : (convexHull ℝ) ↑s βŠ† (convexHull ℝ) ↑t u : Finset E hut : u βŠ† t hu : u.Nonempty hsu : combiInterior ℝ s βŠ† combiInterior ℝ u ⊒ βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s βŠ† combiInterior ℝ sβ‚‚
no goals
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/SimplicialComplex/Subdivision.lean
Geometry.SimplicialComplex.subdivides_iff_combiInteriors_subset_combiInteriors
[50, 1]
[66, 28]
obtain ⟨s₁, hs₁, hx⟩ := mem_space_iff.1 hx
case refine'_2 π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s t : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : Kβ‚‚.space βŠ† K₁.space ∧ βˆ€ s₁ ∈ K₁, βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ x : E hx : x ∈ K₁.space ⊒ x ∈ Kβ‚‚.space
case refine'_2.intro.intro π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s t : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : Kβ‚‚.space βŠ† K₁.space ∧ βˆ€ s₁ ∈ K₁, βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ x : E hx✝ : x ∈ K₁.space s₁ : Finset E hs₁ : s₁ ∈ K₁.faces hx : x ∈ (convexHull ℝ) ↑s₁ ⊒ x ∈ Kβ‚‚.space
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/SimplicialComplex/Subdivision.lean
Geometry.SimplicialComplex.subdivides_iff_combiInteriors_subset_combiInteriors
[50, 1]
[66, 28]
obtain ⟨sβ‚‚, hsβ‚‚, hs₁sβ‚‚βŸ© := h.2 _ hs₁
case refine'_2.intro.intro π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s t : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : Kβ‚‚.space βŠ† K₁.space ∧ βˆ€ s₁ ∈ K₁, βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ x : E hx✝ : x ∈ K₁.space s₁ : Finset E hs₁ : s₁ ∈ K₁.faces hx : x ∈ (convexHull ℝ) ↑s₁ ⊒ x ∈ Kβ‚‚.space
case refine'_2.intro.intro.intro.intro π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s t : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : Kβ‚‚.space βŠ† K₁.space ∧ βˆ€ s₁ ∈ K₁, βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ x : E hx✝ : x ∈ K₁.space s₁ : Finset E hs₁ : s₁ ∈ K₁.faces hx : x ∈ (convexHull ℝ) ↑s₁ sβ‚‚ : Finset E hsβ‚‚ : sβ‚‚ ∈ Kβ‚‚ hs₁sβ‚‚ : combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ ⊒ x ∈ Kβ‚‚.space
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/SimplicialComplex/Subdivision.lean
Geometry.SimplicialComplex.subdivides_iff_combiInteriors_subset_combiInteriors
[50, 1]
[66, 28]
rw [mem_space_iff]
case refine'_2.intro.intro.intro.intro π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s t : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : Kβ‚‚.space βŠ† K₁.space ∧ βˆ€ s₁ ∈ K₁, βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ x : E hx✝ : x ∈ K₁.space s₁ : Finset E hs₁ : s₁ ∈ K₁.faces hx : x ∈ (convexHull ℝ) ↑s₁ sβ‚‚ : Finset E hsβ‚‚ : sβ‚‚ ∈ Kβ‚‚ hs₁sβ‚‚ : combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ ⊒ x ∈ Kβ‚‚.space
case refine'_2.intro.intro.intro.intro π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s t : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : Kβ‚‚.space βŠ† K₁.space ∧ βˆ€ s₁ ∈ K₁, βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ x : E hx✝ : x ∈ K₁.space s₁ : Finset E hs₁ : s₁ ∈ K₁.faces hx : x ∈ (convexHull ℝ) ↑s₁ sβ‚‚ : Finset E hsβ‚‚ : sβ‚‚ ∈ Kβ‚‚ hs₁sβ‚‚ : combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ ⊒ βˆƒ s ∈ Kβ‚‚.faces, x ∈ (convexHull ℝ) ↑s
https://github.com/YaelDillies/LeanCamCombi.git
034199694e3b91536d03bc4a8b0cdbd659cdf50f
LeanCamCombi/SimplicialComplex/Subdivision.lean
Geometry.SimplicialComplex.subdivides_iff_combiInteriors_subset_combiInteriors
[50, 1]
[66, 28]
exact ⟨sβ‚‚, hsβ‚‚, convexHull_subset_convexHull_of_combiInterior_subset_combiInterior (K₁.indep hs₁) (Kβ‚‚.indep hsβ‚‚) hs₁sβ‚‚ hx⟩
case refine'_2.intro.intro.intro.intro π•œ : Type u_1 E : Type u_2 inst✝² : SeminormedAddCommGroup E inst✝¹ : T2Space E inst✝ : NormedSpace ℝ E s t : Finset E m : β„• K₁ Kβ‚‚ : SimplicialComplex ℝ E h : Kβ‚‚.space βŠ† K₁.space ∧ βˆ€ s₁ ∈ K₁, βˆƒ sβ‚‚ ∈ Kβ‚‚, combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ x : E hx✝ : x ∈ K₁.space s₁ : Finset E hs₁ : s₁ ∈ K₁.faces hx : x ∈ (convexHull ℝ) ↑s₁ sβ‚‚ : Finset E hsβ‚‚ : sβ‚‚ ∈ Kβ‚‚ hs₁sβ‚‚ : combiInterior ℝ s₁ βŠ† combiInterior ℝ sβ‚‚ ⊒ βˆƒ s ∈ Kβ‚‚.faces, x ∈ (convexHull ℝ) ↑s
no goals