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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.