state
stringlengths
0
159k
srcUpToTactic
stringlengths
387
167k
nextTactic
stringlengths
3
9k
declUpToTactic
stringlengths
22
11.5k
declId
stringlengths
38
95
decl
stringlengths
16
1.89k
file_tag
stringlengths
17
73
C : Type u_1 D : Type u_2 inst✝² : Category.{?u.38, u_1} C inst✝¹ : Category.{?u.42, u_2} D inst✝ : Preadditive D P✝ Q✝ R✝ : C ⥤ D f✝ f'✝ : P✝ ⟶ Q✝ g✝ : Q✝ ⟶ R✝ ⊢ (f✝ + f'✝) ≫ g✝ = f✝ ≫ g✝ + f'✝ ≫ g✝
/- Copyright (c) 2021 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import Mathlib.CategoryTheory.Preadditive.Basic #align_import category_theory.preadditive.functor_category from "leanprover-community/mathlib"@"829895f162a1f29d0133f...
ext
instance functorCategoryPreadditive : Preadditive (C ⥤ D) where homGroup F G := { add := fun α β => { app := fun X => α.app X + β.app X } zero := { app := fun X => 0 } neg := fun α => { app := fun X => -α.app X } sub := fun α β => { app := fun X => α.app X - β.app X } add_assoc := by ...
Mathlib.CategoryTheory.Preadditive.FunctorCategory.27_0.Nvs9V8Hq6lv6L8Y
instance functorCategoryPreadditive : Preadditive (C ⥤ D) where homGroup F G
Mathlib_CategoryTheory_Preadditive_FunctorCategory
case w.h C : Type u_1 D : Type u_2 inst✝² : Category.{?u.38, u_1} C inst✝¹ : Category.{?u.42, u_2} D inst✝ : Preadditive D P✝ Q✝ R✝ : C ⥤ D f✝ f'✝ : P✝ ⟶ Q✝ g✝ : Q✝ ⟶ R✝ x✝ : C ⊢ ((f✝ + f'✝) ≫ g✝).app x✝ = (f✝ ≫ g✝ + f'✝ ≫ g✝).app x✝
/- Copyright (c) 2021 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import Mathlib.CategoryTheory.Preadditive.Basic #align_import category_theory.preadditive.functor_category from "leanprover-community/mathlib"@"829895f162a1f29d0133f...
apply add_comp
instance functorCategoryPreadditive : Preadditive (C ⥤ D) where homGroup F G := { add := fun α β => { app := fun X => α.app X + β.app X } zero := { app := fun X => 0 } neg := fun α => { app := fun X => -α.app X } sub := fun α β => { app := fun X => α.app X - β.app X } add_assoc := by ...
Mathlib.CategoryTheory.Preadditive.FunctorCategory.27_0.Nvs9V8Hq6lv6L8Y
instance functorCategoryPreadditive : Preadditive (C ⥤ D) where homGroup F G
Mathlib_CategoryTheory_Preadditive_FunctorCategory
C : Type u_1 D : Type u_2 inst✝² : Category.{?u.38, u_1} C inst✝¹ : Category.{?u.42, u_2} D inst✝ : Preadditive D ⊢ ∀ (P Q R : C ⥤ D) (f : P ⟶ Q) (g g' : Q ⟶ R), f ≫ (g + g') = f ≫ g + f ≫ g'
/- Copyright (c) 2021 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import Mathlib.CategoryTheory.Preadditive.Basic #align_import category_theory.preadditive.functor_category from "leanprover-community/mathlib"@"829895f162a1f29d0133f...
intros
instance functorCategoryPreadditive : Preadditive (C ⥤ D) where homGroup F G := { add := fun α β => { app := fun X => α.app X + β.app X } zero := { app := fun X => 0 } neg := fun α => { app := fun X => -α.app X } sub := fun α β => { app := fun X => α.app X - β.app X } add_assoc := by ...
Mathlib.CategoryTheory.Preadditive.FunctorCategory.27_0.Nvs9V8Hq6lv6L8Y
instance functorCategoryPreadditive : Preadditive (C ⥤ D) where homGroup F G
Mathlib_CategoryTheory_Preadditive_FunctorCategory
C : Type u_1 D : Type u_2 inst✝² : Category.{?u.38, u_1} C inst✝¹ : Category.{?u.42, u_2} D inst✝ : Preadditive D P✝ Q✝ R✝ : C ⥤ D f✝ : P✝ ⟶ Q✝ g✝ g'✝ : Q✝ ⟶ R✝ ⊢ f✝ ≫ (g✝ + g'✝) = f✝ ≫ g✝ + f✝ ≫ g'✝
/- Copyright (c) 2021 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import Mathlib.CategoryTheory.Preadditive.Basic #align_import category_theory.preadditive.functor_category from "leanprover-community/mathlib"@"829895f162a1f29d0133f...
ext
instance functorCategoryPreadditive : Preadditive (C ⥤ D) where homGroup F G := { add := fun α β => { app := fun X => α.app X + β.app X } zero := { app := fun X => 0 } neg := fun α => { app := fun X => -α.app X } sub := fun α β => { app := fun X => α.app X - β.app X } add_assoc := by ...
Mathlib.CategoryTheory.Preadditive.FunctorCategory.27_0.Nvs9V8Hq6lv6L8Y
instance functorCategoryPreadditive : Preadditive (C ⥤ D) where homGroup F G
Mathlib_CategoryTheory_Preadditive_FunctorCategory
case w.h C : Type u_1 D : Type u_2 inst✝² : Category.{?u.38, u_1} C inst✝¹ : Category.{?u.42, u_2} D inst✝ : Preadditive D P✝ Q✝ R✝ : C ⥤ D f✝ : P✝ ⟶ Q✝ g✝ g'✝ : Q✝ ⟶ R✝ x✝ : C ⊢ (f✝ ≫ (g✝ + g'✝)).app x✝ = (f✝ ≫ g✝ + f✝ ≫ g'✝).app x✝
/- Copyright (c) 2021 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import Mathlib.CategoryTheory.Preadditive.Basic #align_import category_theory.preadditive.functor_category from "leanprover-community/mathlib"@"829895f162a1f29d0133f...
apply comp_add
instance functorCategoryPreadditive : Preadditive (C ⥤ D) where homGroup F G := { add := fun α β => { app := fun X => α.app X + β.app X } zero := { app := fun X => 0 } neg := fun α => { app := fun X => -α.app X } sub := fun α β => { app := fun X => α.app X - β.app X } add_assoc := by ...
Mathlib.CategoryTheory.Preadditive.FunctorCategory.27_0.Nvs9V8Hq6lv6L8Y
instance functorCategoryPreadditive : Preadditive (C ⥤ D) where homGroup F G
Mathlib_CategoryTheory_Preadditive_FunctorCategory
C : Type u_1 D : Type u_2 inst✝² : Category.{u_5, u_1} C inst✝¹ : Category.{u_4, u_2} D inst✝ : Preadditive D F G : C ⥤ D ι : Type u_3 s : Finset ι X : C α : ι → (F ⟶ G) ⊢ (∑ i in s, α i).app X = ∑ i in s, (α i).app X
/- Copyright (c) 2021 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import Mathlib.CategoryTheory.Preadditive.Basic #align_import category_theory.preadditive.functor_category from "leanprover-community/mathlib"@"829895f162a1f29d0133f...
simp only [← appHom_apply, map_sum]
@[simp] theorem app_sum {ι : Type*} (s : Finset ι) (X : C) (α : ι → (F ⟶ G)) : (∑ i in s, α i).app X = ∑ i in s, (α i).app X := by
Mathlib.CategoryTheory.Preadditive.FunctorCategory.112_0.Nvs9V8Hq6lv6L8Y
@[simp] theorem app_sum {ι : Type*} (s : Finset ι) (X : C) (α : ι → (F ⟶ G)) : (∑ i in s, α i).app X = ∑ i in s, (α i).app X
Mathlib_CategoryTheory_Preadditive_FunctorCategory
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : StrictConvexSpace 𝕜 E x : E r : ℝ ⊢ StrictConvex 𝕜 (closedBall x r)
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rcases le_or_lt r 0 with hr | hr
/-- A closed ball in a strictly convex space is strictly convex. -/ theorem strictConvex_closedBall [StrictConvexSpace 𝕜 E] (x : E) (r : ℝ) : StrictConvex 𝕜 (closedBall x r) := by
Mathlib.Analysis.Convex.StrictConvexSpace.80_0.LKetms5NIkPrXf9
/-- A closed ball in a strictly convex space is strictly convex. -/ theorem strictConvex_closedBall [StrictConvexSpace 𝕜 E] (x : E) (r : ℝ) : StrictConvex 𝕜 (closedBall x r)
Mathlib_Analysis_Convex_StrictConvexSpace
case inl 𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : StrictConvexSpace 𝕜 E x : E r : ℝ hr : r ≤ 0 ⊢ StrictConvex 𝕜 (closedBall x r)
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
exact (subsingleton_closedBall x hr).strictConvex
/-- A closed ball in a strictly convex space is strictly convex. -/ theorem strictConvex_closedBall [StrictConvexSpace 𝕜 E] (x : E) (r : ℝ) : StrictConvex 𝕜 (closedBall x r) := by rcases le_or_lt r 0 with hr | hr ·
Mathlib.Analysis.Convex.StrictConvexSpace.80_0.LKetms5NIkPrXf9
/-- A closed ball in a strictly convex space is strictly convex. -/ theorem strictConvex_closedBall [StrictConvexSpace 𝕜 E] (x : E) (r : ℝ) : StrictConvex 𝕜 (closedBall x r)
Mathlib_Analysis_Convex_StrictConvexSpace
case inr 𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : StrictConvexSpace 𝕜 E x : E r : ℝ hr : 0 < r ⊢ StrictConvex 𝕜 (closedBall x r)
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rw [← vadd_closedBall_zero]
/-- A closed ball in a strictly convex space is strictly convex. -/ theorem strictConvex_closedBall [StrictConvexSpace 𝕜 E] (x : E) (r : ℝ) : StrictConvex 𝕜 (closedBall x r) := by rcases le_or_lt r 0 with hr | hr · exact (subsingleton_closedBall x hr).strictConvex
Mathlib.Analysis.Convex.StrictConvexSpace.80_0.LKetms5NIkPrXf9
/-- A closed ball in a strictly convex space is strictly convex. -/ theorem strictConvex_closedBall [StrictConvexSpace 𝕜 E] (x : E) (r : ℝ) : StrictConvex 𝕜 (closedBall x r)
Mathlib_Analysis_Convex_StrictConvexSpace
case inr 𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : StrictConvexSpace 𝕜 E x : E r : ℝ hr : 0 < r ⊢ StrictConvex 𝕜 (x +ᵥ closedBall 0 r)
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
exact (StrictConvexSpace.strictConvex_closedBall r hr).vadd _
/-- A closed ball in a strictly convex space is strictly convex. -/ theorem strictConvex_closedBall [StrictConvexSpace 𝕜 E] (x : E) (r : ℝ) : StrictConvex 𝕜 (closedBall x r) := by rcases le_or_lt r 0 with hr | hr · exact (subsingleton_closedBall x hr).strictConvex rw [← vadd_closedBall_zero]
Mathlib.Analysis.Convex.StrictConvexSpace.80_0.LKetms5NIkPrXf9
/-- A closed ball in a strictly convex space is strictly convex. -/ theorem strictConvex_closedBall [StrictConvexSpace 𝕜 E] (x : E) (r : ℝ) : StrictConvex 𝕜 (closedBall x r)
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : LinearMap.CompatibleSMul E E 𝕜 ℝ h : StrictConvex 𝕜 (closedBall 0 1) r : ℝ hr : 0 < r ⊢ StrictConvex 𝕜 (closedBall 0 r)
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
simpa only [smul_closedUnitBall_of_nonneg hr.le] using h.smul r
/-- A real normed vector space is strictly convex provided that the unit ball is strictly convex. -/ theorem StrictConvexSpace.of_strictConvex_closed_unit_ball [LinearMap.CompatibleSMul E E 𝕜 ℝ] (h : StrictConvex 𝕜 (closedBall (0 : E) 1)) : StrictConvexSpace 𝕜 E := ⟨fun r hr => by
Mathlib.Analysis.Convex.StrictConvexSpace.91_0.LKetms5NIkPrXf9
/-- A real normed vector space is strictly convex provided that the unit ball is strictly convex. -/ theorem StrictConvexSpace.of_strictConvex_closed_unit_ball [LinearMap.CompatibleSMul E E 𝕜 ℝ] (h : StrictConvex 𝕜 (closedBall (0 : E) 1)) : StrictConvexSpace 𝕜 E
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b, a + b = 1 ∧ ‖a • x + b • y‖ < 1 ⊢ StrictConvexSpace ℝ E
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
refine' StrictConvexSpace.of_strictConvex_closed_unit_ball ℝ ((convex_closedBall _ _).strictConvex' fun x hx y hy hne => _)
/-- Strict convexity is equivalent to `‖a • x + b • y‖ < 1` for all `x` and `y` of norm at most `1` and all strictly positive `a` and `b` such that `a + b = 1`. This lemma shows that it suffices to check this for points of norm one and some `a`, `b` such that `a + b = 1`. -/ theorem StrictConvexSpace.of_norm_combo_lt_o...
Mathlib.Analysis.Convex.StrictConvexSpace.97_0.LKetms5NIkPrXf9
/-- Strict convexity is equivalent to `‖a • x + b • y‖ < 1` for all `x` and `y` of norm at most `1` and all strictly positive `a` and `b` such that `a + b = 1`. This lemma shows that it suffices to check this for points of norm one and some `a`, `b` such that `a + b = 1`. -/ theorem StrictConvexSpace.of_norm_combo_lt_o...
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b, a + b = 1 ∧ ‖a • x + b • y‖ < 1 x : E hx : x ∈ closedBall 0 1 \ interior (closedBall 0 1) y : E hy : y ∈ closedBall 0 1 \ in...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rw [interior_closedBall (0 : E) one_ne_zero, closedBall_diff_ball, mem_sphere_zero_iff_norm] at hx hy
/-- Strict convexity is equivalent to `‖a • x + b • y‖ < 1` for all `x` and `y` of norm at most `1` and all strictly positive `a` and `b` such that `a + b = 1`. This lemma shows that it suffices to check this for points of norm one and some `a`, `b` such that `a + b = 1`. -/ theorem StrictConvexSpace.of_norm_combo_lt_o...
Mathlib.Analysis.Convex.StrictConvexSpace.97_0.LKetms5NIkPrXf9
/-- Strict convexity is equivalent to `‖a • x + b • y‖ < 1` for all `x` and `y` of norm at most `1` and all strictly positive `a` and `b` such that `a + b = 1`. This lemma shows that it suffices to check this for points of norm one and some `a`, `b` such that `a + b = 1`. -/ theorem StrictConvexSpace.of_norm_combo_lt_o...
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b, a + b = 1 ∧ ‖a • x + b • y‖ < 1 x : E hx : ‖x‖ = 1 y : E hy : ‖y‖ = 1 hne : x ≠ y ⊢ ∃ c, (AffineMap.lineMap x y) c ∈ interio...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rcases h x y hx hy hne with ⟨a, b, hab, hlt⟩
/-- Strict convexity is equivalent to `‖a • x + b • y‖ < 1` for all `x` and `y` of norm at most `1` and all strictly positive `a` and `b` such that `a + b = 1`. This lemma shows that it suffices to check this for points of norm one and some `a`, `b` such that `a + b = 1`. -/ theorem StrictConvexSpace.of_norm_combo_lt_o...
Mathlib.Analysis.Convex.StrictConvexSpace.97_0.LKetms5NIkPrXf9
/-- Strict convexity is equivalent to `‖a • x + b • y‖ < 1` for all `x` and `y` of norm at most `1` and all strictly positive `a` and `b` such that `a + b = 1`. This lemma shows that it suffices to check this for points of norm one and some `a`, `b` such that `a + b = 1`. -/ theorem StrictConvexSpace.of_norm_combo_lt_o...
Mathlib_Analysis_Convex_StrictConvexSpace
case intro.intro.intro 𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b, a + b = 1 ∧ ‖a • x + b • y‖ < 1 x : E hx : ‖x‖ = 1 y : E hy : ‖y‖ = 1 hne : x ≠ y a b : ℝ hab : a + b...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
use b
/-- Strict convexity is equivalent to `‖a • x + b • y‖ < 1` for all `x` and `y` of norm at most `1` and all strictly positive `a` and `b` such that `a + b = 1`. This lemma shows that it suffices to check this for points of norm one and some `a`, `b` such that `a + b = 1`. -/ theorem StrictConvexSpace.of_norm_combo_lt_o...
Mathlib.Analysis.Convex.StrictConvexSpace.97_0.LKetms5NIkPrXf9
/-- Strict convexity is equivalent to `‖a • x + b • y‖ < 1` for all `x` and `y` of norm at most `1` and all strictly positive `a` and `b` such that `a + b = 1`. This lemma shows that it suffices to check this for points of norm one and some `a`, `b` such that `a + b = 1`. -/ theorem StrictConvexSpace.of_norm_combo_lt_o...
Mathlib_Analysis_Convex_StrictConvexSpace
case h 𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b, a + b = 1 ∧ ‖a • x + b • y‖ < 1 x : E hx : ‖x‖ = 1 y : E hy : ‖y‖ = 1 hne : x ≠ y a b : ℝ hab : a + b = 1 hlt : ‖a • ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rwa [AffineMap.lineMap_apply_module, interior_closedBall (0 : E) one_ne_zero, mem_ball_zero_iff, sub_eq_iff_eq_add.2 hab.symm]
/-- Strict convexity is equivalent to `‖a • x + b • y‖ < 1` for all `x` and `y` of norm at most `1` and all strictly positive `a` and `b` such that `a + b = 1`. This lemma shows that it suffices to check this for points of norm one and some `a`, `b` such that `a + b = 1`. -/ theorem StrictConvexSpace.of_norm_combo_lt_o...
Mathlib.Analysis.Convex.StrictConvexSpace.97_0.LKetms5NIkPrXf9
/-- Strict convexity is equivalent to `‖a • x + b • y‖ < 1` for all `x` and `y` of norm at most `1` and all strictly positive `a` and `b` such that `a + b = 1`. This lemma shows that it suffices to check this for points of norm one and some `a`, `b` such that `a + b = 1`. -/ theorem StrictConvexSpace.of_norm_combo_lt_o...
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1 ⊢ StrictConvexSpace ℝ E
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
refine' StrictConvexSpace.of_strictConvex_closed_unit_ball ℝ ((convex_closedBall _ _).strictConvex _)
theorem StrictConvexSpace.of_norm_combo_ne_one (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b : ℝ, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1) : StrictConvexSpace ℝ E := by
Mathlib.Analysis.Convex.StrictConvexSpace.114_0.LKetms5NIkPrXf9
theorem StrictConvexSpace.of_norm_combo_ne_one (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b : ℝ, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1) : StrictConvexSpace ℝ E
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1 ⊢ Set.Pairwise (closedBall 0 1 \ interior (closedBall 0 1)) fun x y => S...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
simp only [interior_closedBall _ one_ne_zero, closedBall_diff_ball, Set.Pairwise, frontier_closedBall _ one_ne_zero, mem_sphere_zero_iff_norm]
theorem StrictConvexSpace.of_norm_combo_ne_one (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b : ℝ, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1) : StrictConvexSpace ℝ E := by refine' StrictConvexSpace.of_strictConvex_closed_unit_ball ℝ ((convex_closedBall _ _).strictConvex _)
Mathlib.Analysis.Convex.StrictConvexSpace.114_0.LKetms5NIkPrXf9
theorem StrictConvexSpace.of_norm_combo_ne_one (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b : ℝ, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1) : StrictConvexSpace ℝ E
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1 ⊢ ∀ ⦃x : E⦄, ‖x‖ = 1 → ∀ ⦃y : E⦄, ‖y‖ = 1 → x ≠ y → Set.Nonempty ([x-[ℝ]y] \...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
intro x hx y hy hne
theorem StrictConvexSpace.of_norm_combo_ne_one (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b : ℝ, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1) : StrictConvexSpace ℝ E := by refine' StrictConvexSpace.of_strictConvex_closed_unit_ball ℝ ((convex_closedBall _ _).strictConvex _) simp on...
Mathlib.Analysis.Convex.StrictConvexSpace.114_0.LKetms5NIkPrXf9
theorem StrictConvexSpace.of_norm_combo_ne_one (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b : ℝ, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1) : StrictConvexSpace ℝ E
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1 x : E hx : ‖x‖ = 1 y : E hy : ‖y‖ = 1 hne : x ≠ y ⊢ Set.Nonempty ([x-[ℝ]y] \...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rcases h x y hx hy hne with ⟨a, b, ha, hb, hab, hne'⟩
theorem StrictConvexSpace.of_norm_combo_ne_one (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b : ℝ, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1) : StrictConvexSpace ℝ E := by refine' StrictConvexSpace.of_strictConvex_closed_unit_ball ℝ ((convex_closedBall _ _).strictConvex _) simp on...
Mathlib.Analysis.Convex.StrictConvexSpace.114_0.LKetms5NIkPrXf9
theorem StrictConvexSpace.of_norm_combo_ne_one (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b : ℝ, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1) : StrictConvexSpace ℝ E
Mathlib_Analysis_Convex_StrictConvexSpace
case intro.intro.intro.intro.intro 𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1 x : E hx : ‖x‖ = 1 y : E hy : ‖y‖ = 1 hne...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
exact ⟨_, ⟨a, b, ha, hb, hab, rfl⟩, mt mem_sphere_zero_iff_norm.1 hne'⟩
theorem StrictConvexSpace.of_norm_combo_ne_one (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b : ℝ, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1) : StrictConvexSpace ℝ E := by refine' StrictConvexSpace.of_strictConvex_closed_unit_ball ℝ ((convex_closedBall _ _).strictConvex _) simp on...
Mathlib.Analysis.Convex.StrictConvexSpace.114_0.LKetms5NIkPrXf9
theorem StrictConvexSpace.of_norm_combo_ne_one (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b : ℝ, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1) : StrictConvexSpace ℝ E
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ ⦃x y : E⦄, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ‖x + y‖ ≠ 2 ⊢ StrictConvexSpace ℝ E
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
refine' StrictConvexSpace.of_norm_combo_ne_one fun x y hx hy hne => ⟨1 / 2, 1 / 2, one_half_pos.le, one_half_pos.le, add_halves _, _⟩
theorem StrictConvexSpace.of_norm_add_ne_two (h : ∀ ⦃x y : E⦄, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ‖x + y‖ ≠ 2) : StrictConvexSpace ℝ E := by
Mathlib.Analysis.Convex.StrictConvexSpace.128_0.LKetms5NIkPrXf9
theorem StrictConvexSpace.of_norm_add_ne_two (h : ∀ ⦃x y : E⦄, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ‖x + y‖ ≠ 2) : StrictConvexSpace ℝ E
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ ⦃x y : E⦄, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ‖x + y‖ ≠ 2 x y : E hx : ‖x‖ = 1 hy : ‖y‖ = 1 hne : x ≠ y ⊢ ‖(1 / 2) • x + (1 / 2) • y‖ ≠ 1
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rw [← smul_add, norm_smul, Real.norm_of_nonneg one_half_pos.le, one_div, ← div_eq_inv_mul, Ne.def, div_eq_one_iff_eq (two_ne_zero' ℝ)]
theorem StrictConvexSpace.of_norm_add_ne_two (h : ∀ ⦃x y : E⦄, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ‖x + y‖ ≠ 2) : StrictConvexSpace ℝ E := by refine' StrictConvexSpace.of_norm_combo_ne_one fun x y hx hy hne => ⟨1 / 2, 1 / 2, one_half_pos.le, one_half_pos.le, add_halves _, _⟩
Mathlib.Analysis.Convex.StrictConvexSpace.128_0.LKetms5NIkPrXf9
theorem StrictConvexSpace.of_norm_add_ne_two (h : ∀ ⦃x y : E⦄, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ‖x + y‖ ≠ 2) : StrictConvexSpace ℝ E
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ ⦃x y : E⦄, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ‖x + y‖ ≠ 2 x y : E hx : ‖x‖ = 1 hy : ‖y‖ = 1 hne : x ≠ y ⊢ ¬‖x + y‖ = 2
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
exact h hx hy hne
theorem StrictConvexSpace.of_norm_add_ne_two (h : ∀ ⦃x y : E⦄, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ‖x + y‖ ≠ 2) : StrictConvexSpace ℝ E := by refine' StrictConvexSpace.of_norm_combo_ne_one fun x y hx hy hne => ⟨1 / 2, 1 / 2, one_half_pos.le, one_half_pos.le, add_halves _, _⟩ rw [← smul_add, norm_smul, Real.no...
Mathlib.Analysis.Convex.StrictConvexSpace.128_0.LKetms5NIkPrXf9
theorem StrictConvexSpace.of_norm_add_ne_two (h : ∀ ⦃x y : E⦄, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ‖x + y‖ ≠ 2) : StrictConvexSpace ℝ E
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → ‖x + y‖ = 2 → SameRay ℝ x y ⊢ StrictConvexSpace ℝ E
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
refine' StrictConvexSpace.of_pairwise_sphere_norm_ne_two fun x hx y hy => mt fun h₂ => _
/-- If `‖x + y‖ = ‖x‖ + ‖y‖` implies that `x y : E` are in the same ray, then `E` is a strictly convex space. See also a more -/ theorem StrictConvexSpace.of_norm_add (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → ‖x + y‖ = 2 → SameRay ℝ x y) : StrictConvexSpace ℝ E := by
Mathlib.Analysis.Convex.StrictConvexSpace.144_0.LKetms5NIkPrXf9
/-- If `‖x + y‖ = ‖x‖ + ‖y‖` implies that `x y : E` are in the same ray, then `E` is a strictly convex space. See also a more -/ theorem StrictConvexSpace.of_norm_add (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → ‖x + y‖ = 2 → SameRay ℝ x y) : StrictConvexSpace ℝ E
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → ‖x + y‖ = 2 → SameRay ℝ x y x : E hx : x ∈ sphere 0 1 y : E hy : y ∈ sphere 0 1 h₂ : ‖x + y‖ = 2 ⊢ x = y
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rw [mem_sphere_zero_iff_norm] at hx hy
/-- If `‖x + y‖ = ‖x‖ + ‖y‖` implies that `x y : E` are in the same ray, then `E` is a strictly convex space. See also a more -/ theorem StrictConvexSpace.of_norm_add (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → ‖x + y‖ = 2 → SameRay ℝ x y) : StrictConvexSpace ℝ E := by refine' StrictConvexSpace.of_pairwise_sphere_norm_ne...
Mathlib.Analysis.Convex.StrictConvexSpace.144_0.LKetms5NIkPrXf9
/-- If `‖x + y‖ = ‖x‖ + ‖y‖` implies that `x y : E` are in the same ray, then `E` is a strictly convex space. See also a more -/ theorem StrictConvexSpace.of_norm_add (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → ‖x + y‖ = 2 → SameRay ℝ x y) : StrictConvexSpace ℝ E
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝³ : NormedLinearOrderedField 𝕜 inst✝² : NormedAddCommGroup E inst✝¹ : NormedSpace 𝕜 E inst✝ : NormedSpace ℝ E h : ∀ (x y : E), ‖x‖ = 1 → ‖y‖ = 1 → ‖x + y‖ = 2 → SameRay ℝ x y x : E hx : ‖x‖ = 1 y : E hy : ‖y‖ = 1 h₂ : ‖x + y‖ = 2 ⊢ x = y
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
exact (sameRay_iff_of_norm_eq (hx.trans hy.symm)).1 (h x y hx hy h₂)
/-- If `‖x + y‖ = ‖x‖ + ‖y‖` implies that `x y : E` are in the same ray, then `E` is a strictly convex space. See also a more -/ theorem StrictConvexSpace.of_norm_add (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → ‖x + y‖ = 2 → SameRay ℝ x y) : StrictConvexSpace ℝ E := by refine' StrictConvexSpace.of_pairwise_sphere_norm_ne...
Mathlib.Analysis.Convex.StrictConvexSpace.144_0.LKetms5NIkPrXf9
/-- If `‖x + y‖ = ‖x‖ + ‖y‖` implies that `x y : E` are in the same ray, then `E` is a strictly convex space. See also a more -/ theorem StrictConvexSpace.of_norm_add (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → ‖x + y‖ = 2 → SameRay ℝ x y) : StrictConvexSpace ℝ E
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ hx : x ∈ closedBall z r hy : y ∈ closedBall z r hne : x ≠ y ha : 0 < a hb : 0 < b hab : a + b = 1 ⊢ a • x + b • y ∈ ball z r
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rcases eq_or_ne r 0 with (rfl | hr)
/-- If `x ≠ y` belong to the same closed ball, then a convex combination of `x` and `y` with positive coefficients belongs to the corresponding open ball. -/ theorem combo_mem_ball_of_ne (hx : x ∈ closedBall z r) (hy : y ∈ closedBall z r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : a • x + b • y ∈ b...
Mathlib.Analysis.Convex.StrictConvexSpace.155_0.LKetms5NIkPrXf9
/-- If `x ≠ y` belong to the same closed ball, then a convex combination of `x` and `y` with positive coefficients belongs to the corresponding open ball. -/ theorem combo_mem_ball_of_ne (hx : x ∈ closedBall z r) (hy : y ∈ closedBall z r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : a • x + b • y ∈ b...
Mathlib_Analysis_Convex_StrictConvexSpace
case inl 𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b : ℝ hne : x ≠ y ha : 0 < a hb : 0 < b hab : a + b = 1 hx : x ∈ closedBall z 0 hy : y ∈ closedBall z 0 ⊢ a • x + b • y ∈ ba...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rw [closedBall_zero, mem_singleton_iff] at hx hy
/-- If `x ≠ y` belong to the same closed ball, then a convex combination of `x` and `y` with positive coefficients belongs to the corresponding open ball. -/ theorem combo_mem_ball_of_ne (hx : x ∈ closedBall z r) (hy : y ∈ closedBall z r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : a • x + b • y ∈ b...
Mathlib.Analysis.Convex.StrictConvexSpace.155_0.LKetms5NIkPrXf9
/-- If `x ≠ y` belong to the same closed ball, then a convex combination of `x` and `y` with positive coefficients belongs to the corresponding open ball. -/ theorem combo_mem_ball_of_ne (hx : x ∈ closedBall z r) (hy : y ∈ closedBall z r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : a • x + b • y ∈ b...
Mathlib_Analysis_Convex_StrictConvexSpace
case inl 𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b : ℝ hne : x ≠ y ha : 0 < a hb : 0 < b hab : a + b = 1 hx : x = z hy : y = z ⊢ a • x + b • y ∈ ball z 0
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
exact (hne (hx.trans hy.symm)).elim
/-- If `x ≠ y` belong to the same closed ball, then a convex combination of `x` and `y` with positive coefficients belongs to the corresponding open ball. -/ theorem combo_mem_ball_of_ne (hx : x ∈ closedBall z r) (hy : y ∈ closedBall z r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : a • x + b • y ∈ b...
Mathlib.Analysis.Convex.StrictConvexSpace.155_0.LKetms5NIkPrXf9
/-- If `x ≠ y` belong to the same closed ball, then a convex combination of `x` and `y` with positive coefficients belongs to the corresponding open ball. -/ theorem combo_mem_ball_of_ne (hx : x ∈ closedBall z r) (hy : y ∈ closedBall z r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : a • x + b • y ∈ b...
Mathlib_Analysis_Convex_StrictConvexSpace
case inr 𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ hx : x ∈ closedBall z r hy : y ∈ closedBall z r hne : x ≠ y ha : 0 < a hb : 0 < b hab : a + b = 1 hr : r ≠ 0 ⊢ a • x...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
simp only [← interior_closedBall _ hr] at hx hy ⊢
/-- If `x ≠ y` belong to the same closed ball, then a convex combination of `x` and `y` with positive coefficients belongs to the corresponding open ball. -/ theorem combo_mem_ball_of_ne (hx : x ∈ closedBall z r) (hy : y ∈ closedBall z r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : a • x + b • y ∈ b...
Mathlib.Analysis.Convex.StrictConvexSpace.155_0.LKetms5NIkPrXf9
/-- If `x ≠ y` belong to the same closed ball, then a convex combination of `x` and `y` with positive coefficients belongs to the corresponding open ball. -/ theorem combo_mem_ball_of_ne (hx : x ∈ closedBall z r) (hy : y ∈ closedBall z r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : a • x + b • y ∈ b...
Mathlib_Analysis_Convex_StrictConvexSpace
case inr 𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ hx : x ∈ closedBall z r hy : y ∈ closedBall z r hne : x ≠ y ha : 0 < a hb : 0 < b hab : a + b = 1 hr : r ≠ 0 ⊢ a • x...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
exact strictConvex_closedBall ℝ z r hx hy hne ha hb hab
/-- If `x ≠ y` belong to the same closed ball, then a convex combination of `x` and `y` with positive coefficients belongs to the corresponding open ball. -/ theorem combo_mem_ball_of_ne (hx : x ∈ closedBall z r) (hy : y ∈ closedBall z r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : a • x + b • y ∈ b...
Mathlib.Analysis.Convex.StrictConvexSpace.155_0.LKetms5NIkPrXf9
/-- If `x ≠ y` belong to the same closed ball, then a convex combination of `x` and `y` with positive coefficients belongs to the corresponding open ball. -/ theorem combo_mem_ball_of_ne (hx : x ∈ closedBall z r) (hy : y ∈ closedBall z r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : a • x + b • y ∈ b...
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ hx : ‖x‖ ≤ r hy : ‖y‖ ≤ r hne : x ≠ y ha : 0 < a hb : 0 < b hab : a + b = 1 ⊢ ‖a • x + b • y‖ < r
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
simp only [← mem_ball_zero_iff, ← mem_closedBall_zero_iff] at hx hy ⊢
/-- If `x` and `y` are two distinct vectors of norm at most `r`, then a convex combination of `x` and `y` with positive coefficients has norm strictly less than `r`. -/ theorem norm_combo_lt_of_ne (hx : ‖x‖ ≤ r) (hy : ‖y‖ ≤ r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : ‖a • x + b • y‖ < r := by
Mathlib.Analysis.Convex.StrictConvexSpace.173_0.LKetms5NIkPrXf9
/-- If `x` and `y` are two distinct vectors of norm at most `r`, then a convex combination of `x` and `y` with positive coefficients has norm strictly less than `r`. -/ theorem norm_combo_lt_of_ne (hx : ‖x‖ ≤ r) (hy : ‖y‖ ≤ r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : ‖a • x + b • y‖ < r
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ hne : x ≠ y ha : 0 < a hb : 0 < b hab : a + b = 1 hx : x ∈ closedBall 0 r hy : y ∈ closedBall 0 r ⊢ a • x + b • y ∈ ball 0 r
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
exact combo_mem_ball_of_ne hx hy hne ha hb hab
/-- If `x` and `y` are two distinct vectors of norm at most `r`, then a convex combination of `x` and `y` with positive coefficients has norm strictly less than `r`. -/ theorem norm_combo_lt_of_ne (hx : ‖x‖ ≤ r) (hy : ‖y‖ ≤ r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : ‖a • x + b • y‖ < r := by s...
Mathlib.Analysis.Convex.StrictConvexSpace.173_0.LKetms5NIkPrXf9
/-- If `x` and `y` are two distinct vectors of norm at most `r`, then a convex combination of `x` and `y` with positive coefficients has norm strictly less than `r`. -/ theorem norm_combo_lt_of_ne (hx : ‖x‖ ≤ r) (hy : ‖y‖ ≤ r) (hne : x ≠ y) (ha : 0 < a) (hb : 0 < b) (hab : a + b = 1) : ‖a • x + b • y‖ < r
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ h : ¬SameRay ℝ x y ⊢ ‖x + y‖ < ‖x‖ + ‖y‖
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
simp only [sameRay_iff_inv_norm_smul_eq, not_or, ← Ne.def] at h
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖ := by
Mathlib.Analysis.Convex.StrictConvexSpace.181_0.LKetms5NIkPrXf9
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ h : x ≠ 0 ∧ y ≠ 0 ∧ ‖x‖⁻¹ • x ≠ ‖y‖⁻¹ • y ⊢ ‖x + y‖ < ‖x‖ + ‖y‖
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rcases h with ⟨hx, hy, hne⟩
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖ := by simp only [sameRay_iff_inv_norm_smul_eq, not_or, ← Ne.def] at h
Mathlib.Analysis.Convex.StrictConvexSpace.181_0.LKetms5NIkPrXf9
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖
Mathlib_Analysis_Convex_StrictConvexSpace
case intro.intro 𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ hx : x ≠ 0 hy : y ≠ 0 hne : ‖x‖⁻¹ • x ≠ ‖y‖⁻¹ • y ⊢ ‖x + y‖ < ‖x‖ + ‖y‖
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rw [← norm_pos_iff] at hx hy
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖ := by simp only [sameRay_iff_inv_norm_smul_eq, not_or, ← Ne.def] at h rcases h with ⟨hx, hy, hne⟩
Mathlib.Analysis.Convex.StrictConvexSpace.181_0.LKetms5NIkPrXf9
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖
Mathlib_Analysis_Convex_StrictConvexSpace
case intro.intro 𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ hx : 0 < ‖x‖ hy : 0 < ‖y‖ hne : ‖x‖⁻¹ • x ≠ ‖y‖⁻¹ • y ⊢ ‖x + y‖ < ‖x‖ + ‖y‖
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
have hxy : 0 < ‖x‖ + ‖y‖ := add_pos hx hy
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖ := by simp only [sameRay_iff_inv_norm_smul_eq, not_or, ← Ne.def] at h rcases h with ⟨hx, hy, hne⟩ rw [← norm_pos_iff] at hx hy
Mathlib.Analysis.Convex.StrictConvexSpace.181_0.LKetms5NIkPrXf9
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖
Mathlib_Analysis_Convex_StrictConvexSpace
case intro.intro 𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ hx : 0 < ‖x‖ hy : 0 < ‖y‖ hne : ‖x‖⁻¹ • x ≠ ‖y‖⁻¹ • y hxy : 0 < ‖x‖ + ‖y‖ ⊢ ‖x + y‖ < ‖x‖ + ‖y‖
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
have := combo_mem_ball_of_ne (inv_norm_smul_mem_closed_unit_ball x) (inv_norm_smul_mem_closed_unit_ball y) hne (div_pos hx hxy) (div_pos hy hxy) (by rw [← add_div, div_self hxy.ne'])
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖ := by simp only [sameRay_iff_inv_norm_smul_eq, not_or, ← Ne.def] at h rcases h with ⟨hx, hy, hne⟩ rw [← norm_pos_iff] at hx hy have...
Mathlib.Analysis.Convex.StrictConvexSpace.181_0.LKetms5NIkPrXf9
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ hx : 0 < ‖x‖ hy : 0 < ‖y‖ hne : ‖x‖⁻¹ • x ≠ ‖y‖⁻¹ • y hxy : 0 < ‖x‖ + ‖y‖ ⊢ ‖x‖ / (‖x‖ + ‖y‖) + ‖y‖ / (‖x‖ + ‖y‖) = 1
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rw [← add_div, div_self hxy.ne']
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖ := by simp only [sameRay_iff_inv_norm_smul_eq, not_or, ← Ne.def] at h rcases h with ⟨hx, hy, hne⟩ rw [← norm_pos_iff] at hx hy have...
Mathlib.Analysis.Convex.StrictConvexSpace.181_0.LKetms5NIkPrXf9
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖
Mathlib_Analysis_Convex_StrictConvexSpace
case intro.intro 𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ hx : 0 < ‖x‖ hy : 0 < ‖y‖ hne : ‖x‖⁻¹ • x ≠ ‖y‖⁻¹ • y hxy : 0 < ‖x‖ + ‖y‖ this : (‖x‖ / (‖x‖ + ‖y‖)) • ‖x‖⁻¹...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rwa [mem_ball_zero_iff, div_eq_inv_mul, div_eq_inv_mul, mul_smul, mul_smul, smul_inv_smul₀ hx.ne', smul_inv_smul₀ hy.ne', ← smul_add, norm_smul, Real.norm_of_nonneg (inv_pos.2 hxy).le, ← div_eq_inv_mul, div_lt_one hxy] at this
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖ := by simp only [sameRay_iff_inv_norm_smul_eq, not_or, ← Ne.def] at h rcases h with ⟨hx, hy, hne⟩ rw [← norm_pos_iff] at hx hy have...
Mathlib.Analysis.Convex.StrictConvexSpace.181_0.LKetms5NIkPrXf9
/-- In a strictly convex space, if `x` and `y` are not in the same ray, then `‖x + y‖ < ‖x‖ + ‖y‖`. -/ theorem norm_add_lt_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x + y‖ < ‖x‖ + ‖y‖
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ h : ¬SameRay ℝ x y ⊢ ‖x‖ - ‖y‖ < ‖x - y‖
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
nth_rw 1 [← sub_add_cancel x y] at h ⊢
theorem lt_norm_sub_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x‖ - ‖y‖ < ‖x - y‖ := by
Mathlib.Analysis.Convex.StrictConvexSpace.197_0.LKetms5NIkPrXf9
theorem lt_norm_sub_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x‖ - ‖y‖ < ‖x - y‖
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ h : ¬SameRay ℝ (x - y + y) y ⊢ ‖x - y + y‖ - ‖y‖ < ‖x - y‖
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
exact sub_lt_iff_lt_add.2 (norm_add_lt_of_not_sameRay fun H' => h <| H'.add_left SameRay.rfl)
theorem lt_norm_sub_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x‖ - ‖y‖ < ‖x - y‖ := by nth_rw 1 [← sub_add_cancel x y] at h ⊢
Mathlib.Analysis.Convex.StrictConvexSpace.197_0.LKetms5NIkPrXf9
theorem lt_norm_sub_of_not_sameRay (h : ¬SameRay ℝ x y) : ‖x‖ - ‖y‖ < ‖x - y‖
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ h : ¬SameRay ℝ x y ⊢ |‖x‖ - ‖y‖| < ‖x - y‖
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
refine' abs_sub_lt_iff.2 ⟨lt_norm_sub_of_not_sameRay h, _⟩
theorem abs_lt_norm_sub_of_not_sameRay (h : ¬SameRay ℝ x y) : |‖x‖ - ‖y‖| < ‖x - y‖ := by
Mathlib.Analysis.Convex.StrictConvexSpace.202_0.LKetms5NIkPrXf9
theorem abs_lt_norm_sub_of_not_sameRay (h : ¬SameRay ℝ x y) : |‖x‖ - ‖y‖| < ‖x - y‖
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ h : ¬SameRay ℝ x y ⊢ ‖y‖ - ‖x‖ < ‖x - y‖
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rw [norm_sub_rev]
theorem abs_lt_norm_sub_of_not_sameRay (h : ¬SameRay ℝ x y) : |‖x‖ - ‖y‖| < ‖x - y‖ := by refine' abs_sub_lt_iff.2 ⟨lt_norm_sub_of_not_sameRay h, _⟩
Mathlib.Analysis.Convex.StrictConvexSpace.202_0.LKetms5NIkPrXf9
theorem abs_lt_norm_sub_of_not_sameRay (h : ¬SameRay ℝ x y) : |‖x‖ - ‖y‖| < ‖x - y‖
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ h : ¬SameRay ℝ x y ⊢ ‖y‖ - ‖x‖ < ‖y - x‖
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
exact lt_norm_sub_of_not_sameRay (mt SameRay.symm h)
theorem abs_lt_norm_sub_of_not_sameRay (h : ¬SameRay ℝ x y) : |‖x‖ - ‖y‖| < ‖x - y‖ := by refine' abs_sub_lt_iff.2 ⟨lt_norm_sub_of_not_sameRay h, _⟩ rw [norm_sub_rev]
Mathlib.Analysis.Convex.StrictConvexSpace.202_0.LKetms5NIkPrXf9
theorem abs_lt_norm_sub_of_not_sameRay (h : ¬SameRay ℝ x y) : |‖x‖ - ‖y‖| < ‖x - y‖
Mathlib_Analysis_Convex_StrictConvexSpace
𝕜 : Type u_1 E : Type u_2 inst✝⁴ : NormedLinearOrderedField 𝕜 inst✝³ : NormedAddCommGroup E inst✝² : NormedSpace 𝕜 E inst✝¹ : NormedSpace ℝ E inst✝ : StrictConvexSpace ℝ E x y z : E a b r : ℝ h : ‖x‖ = ‖y‖ ⊢ ‖(1 / 2) • (x + y)‖ < ‖x‖ ↔ x ≠ y
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Yury Kudryashov -/ import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpac...
rw [norm_smul, Real.norm_of_nonneg (one_div_nonneg.2 zero_le_two), ← inv_eq_one_div, ← div_eq_inv_mul, div_lt_iff (zero_lt_two' ℝ), mul_two, ← not_sameRay_iff_of_norm_eq h, not_sameRay_iff_norm_add_lt, h]
theorem norm_midpoint_lt_iff (h : ‖x‖ = ‖y‖) : ‖(1 / 2 : ℝ) • (x + y)‖ < ‖x‖ ↔ x ≠ y := by
Mathlib.Analysis.Convex.StrictConvexSpace.235_0.LKetms5NIkPrXf9
theorem norm_midpoint_lt_iff (h : ‖x‖ = ‖y‖) : ‖(1 / 2 : ℝ) • (x + y)‖ < ‖x‖ ↔ x ≠ y
Mathlib_Analysis_Convex_StrictConvexSpace
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ h : t ⊆ s hs : Shatters 𝒜 s u : Finset α hu : u ⊆ t ⊢ ∃ u_1 ∈ 𝒜, t ∩ u_1 = u
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
obtain ⟨v, hv, rfl⟩ := hs (hu.trans h)
lemma Shatters.mono_right (h : t ⊆ s) (hs : 𝒜.Shatters s) : 𝒜.Shatters t := fun u hu ↦ by
Mathlib.Combinatorics.SetFamily.Shatter.46_0.9SFN902fumqg7uv
lemma Shatters.mono_right (h : t ⊆ s) (hs : 𝒜.Shatters s) : 𝒜.Shatters t
Mathlib_Combinatorics_SetFamily_Shatter
case intro.intro α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ h : t ⊆ s hs : Shatters 𝒜 s v : Finset α hv : v ∈ 𝒜 hu : s ∩ v ⊆ t ⊢ ∃ u ∈ 𝒜, t ∩ u = s ∩ v
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
exact ⟨v, hv, inf_congr_right hu <| inf_le_of_left_le h⟩
lemma Shatters.mono_right (h : t ⊆ s) (hs : 𝒜.Shatters s) : 𝒜.Shatters t := fun u hu ↦ by obtain ⟨v, hv, rfl⟩ := hs (hu.trans h);
Mathlib.Combinatorics.SetFamily.Shatter.46_0.9SFN902fumqg7uv
lemma Shatters.mono_right (h : t ⊆ s) (hs : 𝒜.Shatters s) : 𝒜.Shatters t
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s✝ t✝ : Finset α a : α n : ℕ x✝ : Finset.Nonempty 𝒜 t : Finset α ht : t ⊆ ∅ s : Finset α hs : s ∈ 𝒜 ⊢ ∅ ∩ s = t
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rwa [empty_inter, eq_comm, ← subset_empty]
@[simp] lemma shatters_empty : 𝒜.Shatters ∅ ↔ 𝒜.Nonempty := ⟨Shatters.nonempty, fun ⟨s, hs⟩ t ht ↦ ⟨s, hs, by
Mathlib.Combinatorics.SetFamily.Shatter.58_0.9SFN902fumqg7uv
@[simp] lemma shatters_empty : 𝒜.Shatters ∅ ↔ 𝒜.Nonempty
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ h : Shatters 𝒜 s ⊢ (∃ u ∈ 𝒜, s ∩ u = t) → t ⊆ s
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rintro ⟨u, _, rfl⟩
protected lemma Shatters.subset_iff (h : 𝒜.Shatters s) : t ⊆ s ↔ ∃ u ∈ 𝒜, s ∩ u = t := ⟨fun ht ↦ h ht, by
Mathlib.Combinatorics.SetFamily.Shatter.61_0.9SFN902fumqg7uv
protected lemma Shatters.subset_iff (h : 𝒜.Shatters s) : t ⊆ s ↔ ∃ u ∈ 𝒜, s ∩ u = t
Mathlib_Combinatorics_SetFamily_Shatter
case intro.intro α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s : Finset α a : α n : ℕ h : Shatters 𝒜 s u : Finset α left✝ : u ∈ 𝒜 ⊢ s ∩ u ⊆ s
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
exact inter_subset_left _ _
protected lemma Shatters.subset_iff (h : 𝒜.Shatters s) : t ⊆ s ↔ ∃ u ∈ 𝒜, s ∩ u = t := ⟨fun ht ↦ h ht, by rintro ⟨u, _, rfl⟩;
Mathlib.Combinatorics.SetFamily.Shatter.61_0.9SFN902fumqg7uv
protected lemma Shatters.subset_iff (h : 𝒜.Shatters s) : t ⊆ s ↔ ∃ u ∈ 𝒜, s ∩ u = t
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ h : Shatters 𝒜 s ⊢ image (fun t => s ∩ t) 𝒜 = powerset s
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
ext t
lemma shatters_iff : 𝒜.Shatters s ↔ 𝒜.image (fun t ↦ s ∩ t) = s.powerset := ⟨fun h ↦ by
Mathlib.Combinatorics.SetFamily.Shatter.64_0.9SFN902fumqg7uv
lemma shatters_iff : 𝒜.Shatters s ↔ 𝒜.image (fun t ↦ s ∩ t) = s.powerset
Mathlib_Combinatorics_SetFamily_Shatter
case a α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t✝ : Finset α a : α n : ℕ h : Shatters 𝒜 s t : Finset α ⊢ t ∈ image (fun t => s ∩ t) 𝒜 ↔ t ∈ powerset s
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rw [mem_image, mem_powerset, h.subset_iff]
lemma shatters_iff : 𝒜.Shatters s ↔ 𝒜.image (fun t ↦ s ∩ t) = s.powerset := ⟨fun h ↦ by ext t;
Mathlib.Combinatorics.SetFamily.Shatter.64_0.9SFN902fumqg7uv
lemma shatters_iff : 𝒜.Shatters s ↔ 𝒜.image (fun t ↦ s ∩ t) = s.powerset
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t✝ : Finset α a : α n : ℕ h : image (fun t => s ∩ t) 𝒜 = powerset s t : Finset α ht : t ⊆ s ⊢ ∃ u ∈ 𝒜, s ∩ u = t
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rwa [← mem_powerset, ← h, mem_image] at ht
lemma shatters_iff : 𝒜.Shatters s ↔ 𝒜.image (fun t ↦ s ∩ t) = s.powerset := ⟨fun h ↦ by ext t; rw [mem_image, mem_powerset, h.subset_iff], fun h t ht ↦ by
Mathlib.Combinatorics.SetFamily.Shatter.64_0.9SFN902fumqg7uv
lemma shatters_iff : 𝒜.Shatters s ↔ 𝒜.image (fun t ↦ s ∩ t) = s.powerset
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝¹ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ inst✝ : Fintype α ⊢ Shatters 𝒜 univ ↔ 𝒜 = univ
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rw [shatters_iff, powerset_univ]
@[simp] lemma shatters_univ [Fintype α] : 𝒜.Shatters univ ↔ 𝒜 = univ := by
Mathlib.Combinatorics.SetFamily.Shatter.71_0.9SFN902fumqg7uv
@[simp] lemma shatters_univ [Fintype α] : 𝒜.Shatters univ ↔ 𝒜 = univ
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝¹ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ inst✝ : Fintype α ⊢ image (fun t => univ ∩ t) 𝒜 = univ ↔ 𝒜 = univ
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
simp_rw [univ_inter, image_id']
@[simp] lemma shatters_univ [Fintype α] : 𝒜.Shatters univ ↔ 𝒜 = univ := by rw [shatters_iff, powerset_univ];
Mathlib.Combinatorics.SetFamily.Shatter.71_0.9SFN902fumqg7uv
@[simp] lemma shatters_univ [Fintype α] : 𝒜.Shatters univ ↔ 𝒜 = univ
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ ⊢ s ∈ shatterer 𝒜 ↔ Shatters 𝒜 s
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
refine mem_filter.trans <| and_iff_right_of_imp <| fun h ↦ ?_
@[simp] lemma mem_shatterer : s ∈ 𝒜.shatterer ↔ 𝒜.Shatters s := by
Mathlib.Combinatorics.SetFamily.Shatter.77_0.9SFN902fumqg7uv
@[simp] lemma mem_shatterer : s ∈ 𝒜.shatterer ↔ 𝒜.Shatters s
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ h : Shatters 𝒜 s ⊢ s ∈ Finset.biUnion 𝒜 powerset
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
simp_rw [mem_biUnion, mem_powerset]
@[simp] lemma mem_shatterer : s ∈ 𝒜.shatterer ↔ 𝒜.Shatters s := by refine mem_filter.trans <| and_iff_right_of_imp <| fun h ↦ ?_
Mathlib.Combinatorics.SetFamily.Shatter.77_0.9SFN902fumqg7uv
@[simp] lemma mem_shatterer : s ∈ 𝒜.shatterer ↔ 𝒜.Shatters s
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ h : Shatters 𝒜 s ⊢ ∃ a ∈ 𝒜, s ⊆ a
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
exact h.exists_superset
@[simp] lemma mem_shatterer : s ∈ 𝒜.shatterer ↔ 𝒜.Shatters s := by refine mem_filter.trans <| and_iff_right_of_imp <| fun h ↦ ?_ simp_rw [mem_biUnion, mem_powerset]
Mathlib.Combinatorics.SetFamily.Shatter.77_0.9SFN902fumqg7uv
@[simp] lemma mem_shatterer : s ∈ 𝒜.shatterer ↔ 𝒜.Shatters s
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ h : 𝒜 ⊆ ℬ x✝ : Finset α ⊢ x✝ ∈ shatterer 𝒜 → x✝ ∈ shatterer ℬ
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
simpa using Shatters.mono_left h
lemma shatterer_mono (h : 𝒜 ⊆ ℬ) : 𝒜.shatterer ⊆ ℬ.shatterer := fun _ ↦ by
Mathlib.Combinatorics.SetFamily.Shatter.82_0.9SFN902fumqg7uv
lemma shatterer_mono (h : 𝒜 ⊆ ℬ) : 𝒜.shatterer ⊆ ℬ.shatterer
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜✝ ℬ : Finset (Finset α) s✝ t✝ : Finset α a : α n : ℕ 𝒜 : Finset (Finset α) s t : Finset α ⊢ t ≤ s → s ∈ ↑(shatterer 𝒜) → t ∈ ↑(shatterer 𝒜)
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
simpa using Shatters.mono_right
@[simp] lemma isLowerSet_shatterer (𝒜 : Finset (Finset α)) : IsLowerSet (𝒜.shatterer : Set (Finset α)) := fun s t ↦ by
Mathlib.Combinatorics.SetFamily.Shatter.88_0.9SFN902fumqg7uv
@[simp] lemma isLowerSet_shatterer (𝒜 : Finset (Finset α)) : IsLowerSet (𝒜.shatterer : Set (Finset α))
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ ⊢ shatterer 𝒜 = 𝒜 ↔ IsLowerSet ↑𝒜
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
refine ⟨fun h ↦ ?_, fun h ↦ Subset.antisymm (fun s hs ↦ ?_) <| subset_shatterer h⟩
@[simp] lemma shatterer_eq : 𝒜.shatterer = 𝒜 ↔ IsLowerSet (𝒜 : Set (Finset α)) := by
Mathlib.Combinatorics.SetFamily.Shatter.91_0.9SFN902fumqg7uv
@[simp] lemma shatterer_eq : 𝒜.shatterer = 𝒜 ↔ IsLowerSet (𝒜 : Set (Finset α))
Mathlib_Combinatorics_SetFamily_Shatter
case refine_1 α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ h : shatterer 𝒜 = 𝒜 ⊢ IsLowerSet ↑𝒜
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rw [← h]
@[simp] lemma shatterer_eq : 𝒜.shatterer = 𝒜 ↔ IsLowerSet (𝒜 : Set (Finset α)) := by refine ⟨fun h ↦ ?_, fun h ↦ Subset.antisymm (fun s hs ↦ ?_) <| subset_shatterer h⟩ ·
Mathlib.Combinatorics.SetFamily.Shatter.91_0.9SFN902fumqg7uv
@[simp] lemma shatterer_eq : 𝒜.shatterer = 𝒜 ↔ IsLowerSet (𝒜 : Set (Finset α))
Mathlib_Combinatorics_SetFamily_Shatter
case refine_1 α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ h : shatterer 𝒜 = 𝒜 ⊢ IsLowerSet ↑(shatterer 𝒜)
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
exact isLowerSet_shatterer _
@[simp] lemma shatterer_eq : 𝒜.shatterer = 𝒜 ↔ IsLowerSet (𝒜 : Set (Finset α)) := by refine ⟨fun h ↦ ?_, fun h ↦ Subset.antisymm (fun s hs ↦ ?_) <| subset_shatterer h⟩ · rw [← h]
Mathlib.Combinatorics.SetFamily.Shatter.91_0.9SFN902fumqg7uv
@[simp] lemma shatterer_eq : 𝒜.shatterer = 𝒜 ↔ IsLowerSet (𝒜 : Set (Finset α))
Mathlib_Combinatorics_SetFamily_Shatter
case refine_2 α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s✝ t : Finset α a : α n : ℕ h : IsLowerSet ↑𝒜 s : Finset α hs : s ∈ shatterer 𝒜 ⊢ s ∈ 𝒜
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
obtain ⟨t, ht, hst⟩ := (mem_shatterer.1 hs).exists_superset
@[simp] lemma shatterer_eq : 𝒜.shatterer = 𝒜 ↔ IsLowerSet (𝒜 : Set (Finset α)) := by refine ⟨fun h ↦ ?_, fun h ↦ Subset.antisymm (fun s hs ↦ ?_) <| subset_shatterer h⟩ · rw [← h] exact isLowerSet_shatterer _ ·
Mathlib.Combinatorics.SetFamily.Shatter.91_0.9SFN902fumqg7uv
@[simp] lemma shatterer_eq : 𝒜.shatterer = 𝒜 ↔ IsLowerSet (𝒜 : Set (Finset α))
Mathlib_Combinatorics_SetFamily_Shatter
case refine_2.intro.intro α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s✝ t✝ : Finset α a : α n : ℕ h : IsLowerSet ↑𝒜 s : Finset α hs : s ∈ shatterer 𝒜 t : Finset α ht : t ∈ 𝒜 hst : s ⊆ t ⊢ s ∈ 𝒜
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
exact h hst ht
@[simp] lemma shatterer_eq : 𝒜.shatterer = 𝒜 ↔ IsLowerSet (𝒜 : Set (Finset α)) := by refine ⟨fun h ↦ ?_, fun h ↦ Subset.antisymm (fun s hs ↦ ?_) <| subset_shatterer h⟩ · rw [← h] exact isLowerSet_shatterer _ · obtain ⟨t, ht, hst⟩ := (mem_shatterer.1 hs).exists_superset
Mathlib.Combinatorics.SetFamily.Shatter.91_0.9SFN902fumqg7uv
@[simp] lemma shatterer_eq : 𝒜.shatterer = 𝒜 ↔ IsLowerSet (𝒜 : Set (Finset α))
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ ⊢ shatterer (shatterer 𝒜) = shatterer 𝒜
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
simp
@[simp] lemma shatterer_idem : 𝒜.shatterer.shatterer = 𝒜.shatterer := by
Mathlib.Combinatorics.SetFamily.Shatter.98_0.9SFN902fumqg7uv
@[simp] lemma shatterer_idem : 𝒜.shatterer.shatterer = 𝒜.shatterer
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ ⊢ Shatters (shatterer 𝒜) s ↔ Shatters 𝒜 s
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
simp_rw [← mem_shatterer, shatterer_idem]
@[simp] lemma shatters_shatterer : 𝒜.shatterer.Shatters s ↔ 𝒜.Shatters s := by
Mathlib.Combinatorics.SetFamily.Shatter.100_0.9SFN902fumqg7uv
@[simp] lemma shatters_shatterer : 𝒜.shatterer.Shatters s ↔ 𝒜.Shatters s
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ h : ∀ t ∈ 𝒜, a ∉ t ht : Shatters 𝒜 t ⊢ a ∉ t
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
obtain ⟨u, hu, htu⟩ := ht.exists_superset
private lemma aux (h : ∀ t ∈ 𝒜, a ∉ t) (ht : 𝒜.Shatters t) : a ∉ t := by
Mathlib.Combinatorics.SetFamily.Shatter.105_0.9SFN902fumqg7uv
private lemma aux (h : ∀ t ∈ 𝒜, a ∉ t) (ht : 𝒜.Shatters t) : a ∉ t
Mathlib_Combinatorics_SetFamily_Shatter
case intro.intro α : Type u_1 inst✝ : DecidableEq α 𝒜 ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ h : ∀ t ∈ 𝒜, a ∉ t ht : Shatters 𝒜 t u : Finset α hu : u ∈ 𝒜 htu : t ⊆ u ⊢ a ∉ t
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
exact not_mem_mono htu <| h u hu
private lemma aux (h : ∀ t ∈ 𝒜, a ∉ t) (ht : 𝒜.Shatters t) : a ∉ t := by obtain ⟨u, hu, htu⟩ := ht.exists_superset;
Mathlib.Combinatorics.SetFamily.Shatter.105_0.9SFN902fumqg7uv
private lemma aux (h : ∀ t ∈ 𝒜, a ∉ t) (ht : 𝒜.Shatters t) : a ∉ t
Mathlib_Combinatorics_SetFamily_Shatter
α : Type u_1 inst✝ : DecidableEq α 𝒜✝ ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ 𝒜 : Finset (Finset α) ⊢ card 𝒜 ≤ card (shatterer 𝒜)
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
refine memberFamily_induction_on 𝒜 ?_ ?_ ?_
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_1 α : Type u_1 inst✝ : DecidableEq α 𝒜✝ ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ 𝒜 : Finset (Finset α) ⊢ card ∅ ≤ card (shatterer ∅)
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
simp
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ ·
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_2 α : Type u_1 inst✝ : DecidableEq α 𝒜✝ ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ 𝒜 : Finset (Finset α) ⊢ card {∅} ≤ card (shatterer {∅})
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rfl
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp ·
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3 α : Type u_1 inst✝ : DecidableEq α 𝒜✝ ℬ : Finset (Finset α) s t : Finset α a : α n : ℕ 𝒜 : Finset (Finset α) ⊢ ∀ (a : α) ⦃𝒜 : Finset (Finset α)⦄, card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) → card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜))...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
intros a 𝒜 ih₀ ih₁
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜)) ⊢ car...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily a 𝒜).shatterer).image (insert a)
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜)) ℬ : ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
have hℬ : ℬ.card = ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily a 𝒜).shatterer).card
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case hℬ α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜)) ℬ : Finset...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
refine card_image_of_injOn <| insert_erase_invOn.2.injOn.mono ?_
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case hℬ α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜)) ℬ : Finset...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
simp only [coe_inter, Set.subset_def, Set.mem_inter_iff, mem_coe, Set.mem_setOf_eq, and_imp, mem_shatterer]
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case hℬ α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜)) ℬ : Finset...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
exact fun s _ ↦ aux (fun t ht ↦ (mem_filter.1 ht).2)
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜)) ℬ : ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rw [← card_memberSubfamily_add_card_nonMemberSubfamily a]
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜)) ℬ : ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
refine (add_le_add ih₁ ih₀).trans ?_
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜)) ℬ : ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rw [← card_union_add_card_inter, ← hℬ, ← card_disjoint_union]
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜)) ℬ : ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
swap
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜)) ℬ : ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
simp only [disjoint_left, mem_union, mem_shatterer, mem_image, not_exists, not_and]
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜)) ℬ : ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rintro _ (hs | hs) s - rfl
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.inl α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s✝ t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜))...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
exact aux (fun t ht ↦ (mem_memberSubfamily.1 ht).2) hs <| mem_insert_self _ _
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.inr α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s✝ t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜))...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
exact aux (fun t ht ↦ (mem_nonMemberSubfamily.1 ht).2) hs <| mem_insert_self _ _
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a 𝒜)) ℬ : ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
refine card_mono <| union_subset (union_subset ?_ <| shatterer_mono <| filter_subset _ _) ?_
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.refine_1 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
simp only [subset_iff, mem_shatterer]
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.refine_1 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rintro s hs t ht
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.refine_1 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s✝ t✝ : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
obtain ⟨u, hu, rfl⟩ := hs ht
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.refine_1.intro.intro α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s✝ t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (membe...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rw [mem_memberSubfamily] at hu
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.refine_1.intro.intro α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s✝ t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (membe...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
refine ⟨insert a u, hu.1, inter_insert_of_not_mem fun ha ↦ ?_⟩
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.refine_1.intro.intro α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s✝ t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (membe...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
obtain ⟨v, hv, hsv⟩ := hs.exists_inter_eq_singleton ha
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.refine_1.intro.intro.intro.intro α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s✝ t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shat...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rw [mem_memberSubfamily] at hv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.refine_1.intro.intro.intro.intro α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s✝ t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shat...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
rw [← singleton_subset_iff (a := a), ← hsv] at hv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.refine_1.intro.intro.intro.intro α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s✝ t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shat...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
exact hv.2 <| inter_subset_right _ _
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.refine_2 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s t : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily a ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
refine forall_image.2 fun s hs ↦ mem_shatterer.2 fun t ht ↦ ?_
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter
case refine_3.refine_2 α : Type u_1 inst✝ : DecidableEq α 𝒜✝¹ ℬ✝ : Finset (Finset α) s✝ t✝ : Finset α a✝ : α n : ℕ 𝒜✝ : Finset (Finset α) a : α 𝒜 : Finset (Finset α) ih₀ : card (nonMemberSubfamily a 𝒜) ≤ card (shatterer (nonMemberSubfamily a 𝒜)) ih₁ : card (memberSubfamily a 𝒜) ≤ card (shatterer (memberSubfamily ...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Data.Finset.Sort import Mathlib.Data.Nat.Interval import Mathlib.Order.UpperLower.Basic import Mathlib.Combinatorics.SetFamily.Compression.Down /-! # Shat...
simp only [mem_inter, mem_shatterer] at hs
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card := by refine memberFamily_induction_on 𝒜 ?_ ?_ ?_ · simp · rfl intros a 𝒜 ih₀ ih₁ set ℬ : Finset (Finset α) := ((memberSubfamily a 𝒜).shatterer ∩ (nonMemberSubfamily...
Mathlib.Combinatorics.SetFamily.Shatter.108_0.9SFN902fumqg7uv
/-- Pajor's variant of the **Sauer-Shelah lemma**. -/ lemma card_le_card_shatterer (𝒜 : Finset (Finset α)) : 𝒜.card ≤ 𝒜.shatterer.card
Mathlib_Combinatorics_SetFamily_Shatter