Context
stringlengths
57
6.04k
file_name
stringlengths
21
79
start
int64
14
1.49k
end
int64
18
1.5k
theorem
stringlengths
25
1.55k
proof
stringlengths
5
7.36k
goals
listlengths
0
224
goals_before
listlengths
0
220
import Mathlib.Algebra.MvPolynomial.Basic import Mathlib.Data.Finset.PiAntidiagonal import Mathlib.LinearAlgebra.StdBasis import Mathlib.Tactic.Linarith #align_import ring_theory.power_series.basic from "leanprover-community/mathlib"@"2d5739b61641ee4e7e53eca5688a08f66f2e6a60" noncomputable section open Finset (...
Mathlib/RingTheory/MvPowerSeries/Basic.lean
134
140
theorem coeff_monomial [DecidableEq Οƒ] (m n : Οƒ β†’β‚€ β„•) (a : R) : coeff R m (monomial R n a) = if m = n then a else 0 := by
-- This used to be `rw`, but we need `erw` after leanprover/lean4#2644 erw [coeff, monomial_def, LinearMap.proj_apply (i := m)] dsimp only -- This used to be `rw`, but we need `erw` after leanprover/lean4#2644 erw [LinearMap.stdBasis_apply, Function.update_apply, Pi.zero_apply]
[ " monomial R n = LinearMap.stdBasis R (fun x => R) n", " LinearMap.stdBasis R (fun x => R) n = LinearMap.stdBasis R (fun x => R) n", " (coeff R m) ((monomial R n) a) = if m = n then a else 0", " (LinearMap.stdBasis R (fun x => R) n) a m = if m = n then a else 0" ]
[ " monomial R n = LinearMap.stdBasis R (fun x => R) n", " LinearMap.stdBasis R (fun x => R) n = LinearMap.stdBasis R (fun x => R) n" ]
import Mathlib.Tactic.Ring.Basic import Mathlib.Tactic.TryThis import Mathlib.Tactic.Conv import Mathlib.Util.Qq set_option autoImplicit true -- In this file we would like to be able to use multi-character auto-implicits. set_option relaxedAutoImplicit true namespace Mathlib.Tactic open Lean hiding Rat open Qq Me...
Mathlib/Tactic/Ring/RingNF.lean
118
118
theorem mul_neg {R} [Ring R] (a b : R) : a * -b = -(a * b) := by
simp
[ " a * -b = -(a * b)" ]
[]
import Mathlib.Probability.ProbabilityMassFunction.Constructions import Mathlib.Tactic.FinCases namespace PMF open ENNReal noncomputable def binomial (p : ℝβ‰₯0∞) (h : p ≀ 1) (n : β„•) : PMF (Fin (n + 1)) := .ofFintype (fun i => p^(i : β„•) * (1-p)^((Fin.last n - i) : β„•) * (n.choose i : β„•)) (by convert (add_pow ...
Mathlib/Probability/ProbabilityMassFunction/Binomial.lean
53
55
theorem binomial_one_eq_bernoulli (p : ℝβ‰₯0∞) (h : p ≀ 1) : binomial p h 1 = (bernoulli p h).map (cond Β· 1 0) := by
ext i; fin_cases i <;> simp [tsum_bool, binomial_apply]
[ " βˆ‘ a : Fin (n + 1), (fun i => p ^ ↑i * (1 - p) ^ (↑(Fin.last n) - ↑i) * ↑(n.choose ↑i)) a = 1", " βˆ‘ a : Fin (n + 1), (fun i => p ^ ↑i * (1 - p) ^ (↑(Fin.last n) - ↑i) * ↑(n.choose ↑i)) a =\n βˆ‘ m ∈ Finset.range (n + 1), p ^ m * (1 - p) ^ (n - m) * ↑(n.choose m)", " (βˆ‘ i ∈ Finset.range (n + 1),\n if h : ...
[ " βˆ‘ a : Fin (n + 1), (fun i => p ^ ↑i * (1 - p) ^ (↑(Fin.last n) - ↑i) * ↑(n.choose ↑i)) a = 1", " βˆ‘ a : Fin (n + 1), (fun i => p ^ ↑i * (1 - p) ^ (↑(Fin.last n) - ↑i) * ↑(n.choose ↑i)) a =\n βˆ‘ m ∈ Finset.range (n + 1), p ^ m * (1 - p) ^ (n - m) * ↑(n.choose m)", " (βˆ‘ i ∈ Finset.range (n + 1),\n if h : ...
import Mathlib.SetTheory.Ordinal.Arithmetic import Mathlib.Tactic.TFAE import Mathlib.Topology.Order.Monotone #align_import set_theory.ordinal.topology from "leanprover-community/mathlib"@"740acc0e6f9adf4423f92a485d0456fc271482da" noncomputable section universe u v open Cardinal Order Topology namespace Ordina...
Mathlib/SetTheory/Ordinal/Topology.lean
60
61
theorem nhds_left'_eq_nhds_ne (a : Ordinal) : 𝓝[<] a = 𝓝[β‰ ] a := by
rw [← nhds_left'_sup_nhds_right', nhds_right', sup_bot_eq]
[ " IsOpen {a} ↔ Β¬a.IsLimit", " False", " IsOpen {a}", " IsOpen {0}", " IsOpen (Set.Iio (succ βŠ₯))", " IsOpen {succ b}", " IsOpen (Set.Ioo b (succ (succ b)))", " 𝓝[<] a = 𝓝[β‰ ] a" ]
[ " IsOpen {a} ↔ Β¬a.IsLimit", " False", " IsOpen {a}", " IsOpen {0}", " IsOpen (Set.Iio (succ βŠ₯))", " IsOpen {succ b}", " IsOpen (Set.Ioo b (succ (succ b)))" ]
import Mathlib.Algebra.Module.Zlattice.Basic import Mathlib.NumberTheory.NumberField.Embeddings import Mathlib.NumberTheory.NumberField.FractionalIdeal #align_import number_theory.number_field.canonical_embedding from "leanprover-community/mathlib"@"60da01b41bbe4206f05d34fd70c8dd7498717a30" variable (K : Type*) [F...
Mathlib/NumberTheory/NumberField/CanonicalEmbedding/Basic.lean
93
105
theorem integerLattice.inter_ball_finite [NumberField K] (r : ℝ) : ((integerLattice K : Set ((K β†’+* β„‚) β†’ β„‚)) ∩ Metric.closedBall 0 r).Finite := by
obtain hr | _ := lt_or_le r 0 Β· simp [Metric.closedBall_eq_empty.2 hr] Β· have heq : βˆ€ x, canonicalEmbedding K x ∈ Metric.closedBall 0 r ↔ βˆ€ Ο† : K β†’+* β„‚, β€–Ο† xβ€– ≀ r := by intro x; rw [← norm_le_iff, mem_closedBall_zero_iff] convert (Embeddings.finite_of_norm_le K β„‚ r).image (canonicalEmbedding K)...
[ " (starRingEnd β„‚) (x Ο†) = x (ComplexEmbedding.conjugate Ο†)", " βˆ€ x ∈ Set.range ⇑(canonicalEmbedding K), (starRingEnd β„‚) (x Ο†) = x (ComplexEmbedding.conjugate Ο†)", " (starRingEnd β„‚) ((canonicalEmbedding K) x Ο†) = (canonicalEmbedding K) x (ComplexEmbedding.conjugate Ο†)", " (starRingEnd β„‚) (0 Ο†) = 0 (ComplexEmbe...
[ " (starRingEnd β„‚) (x Ο†) = x (ComplexEmbedding.conjugate Ο†)", " βˆ€ x ∈ Set.range ⇑(canonicalEmbedding K), (starRingEnd β„‚) (x Ο†) = x (ComplexEmbedding.conjugate Ο†)", " (starRingEnd β„‚) ((canonicalEmbedding K) x Ο†) = (canonicalEmbedding K) x (ComplexEmbedding.conjugate Ο†)", " (starRingEnd β„‚) (0 Ο†) = 0 (ComplexEmbe...
import Mathlib.Data.Vector.Basic #align_import data.vector.mem from "leanprover-community/mathlib"@"509de852e1de55e1efa8eacfa11df0823f26f226" namespace Vector variable {Ξ± Ξ² : Type*} {n : β„•} (a a' : Ξ±) @[simp] theorem get_mem (i : Fin n) (v : Vector Ξ± n) : v.get i ∈ v.toList := by rw [get_eq_get] exact List....
Mathlib/Data/Vector/Mem.lean
70
73
theorem mem_of_mem_tail (v : Vector α n) (ha : a ∈ v.tail.toList) : a ∈ v.toList := by
induction' n with n _ Β· exact False.elim (Vector.not_mem_zero a v.tail ha) Β· exact (mem_succ_iff a v).2 (Or.inr ha)
[ " v.get i ∈ v.toList", " v.toList.get (Fin.cast β‹― i) ∈ v.toList", " a ∈ v.toList ↔ βˆƒ i, v.get i = a", " (βˆƒ i, βˆƒ (h : i < v.toList.length), v.toList.get ⟨i, h⟩ = a) ↔ βˆƒ i, βˆƒ (h : i < n), v.toList.get (Fin.cast β‹― ⟨i, h⟩) = a", " i < n", " i < v.toList.length", " a βˆ‰ nil.toList", " a βˆ‰ toList ⟨[], β‹―βŸ©", ...
[ " v.get i ∈ v.toList", " v.toList.get (Fin.cast β‹― i) ∈ v.toList", " a ∈ v.toList ↔ βˆƒ i, v.get i = a", " (βˆƒ i, βˆƒ (h : i < v.toList.length), v.toList.get ⟨i, h⟩ = a) ↔ βˆƒ i, βˆƒ (h : i < n), v.toList.get (Fin.cast β‹― ⟨i, h⟩) = a", " i < n", " i < v.toList.length", " a βˆ‰ nil.toList", " a βˆ‰ toList ⟨[], β‹―βŸ©", ...
import Mathlib.Control.Bitraversable.Basic #align_import control.bitraversable.lemmas from "leanprover-community/mathlib"@"58581d0fe523063f5651df0619be2bf65012a94a" universe u variable {t : Type u β†’ Type u β†’ Type u} [Bitraversable t] variable {Ξ² : Type u} namespace Bitraversable open Functor LawfulApplicative ...
Mathlib/Control/Bitraversable/Lemmas.lean
87
91
theorem tsnd_tfst {Ξ±β‚€ α₁ Ξ²β‚€ β₁} (f : Ξ±β‚€ β†’ F α₁) (f' : Ξ²β‚€ β†’ G β₁) (x : t Ξ±β‚€ Ξ²β‚€) : Comp.mk (tsnd f' <$> tfst f x) = bitraverse (Comp.mk ∘ map pure ∘ f) (Comp.mk ∘ pure ∘ f') x := by
rw [← comp_bitraverse] simp only [Function.comp, map_pure]
[ " Comp.mk (tfst f' <$> tfst f x) = tfst (Comp.mk ∘ map f' ∘ f) x", " bitraverse (Comp.mk ∘ map f' ∘ f) (Comp.mk ∘ map pure ∘ pure) x = tfst (Comp.mk ∘ map f' ∘ f) x", " Comp.mk (tfst f <$> tsnd f' x) = bitraverse (Comp.mk ∘ pure ∘ f) (Comp.mk ∘ map pure ∘ f') x", " bitraverse (Comp.mk ∘ map f ∘ pure) (Comp.mk...
[ " Comp.mk (tfst f' <$> tfst f x) = tfst (Comp.mk ∘ map f' ∘ f) x", " bitraverse (Comp.mk ∘ map f' ∘ f) (Comp.mk ∘ map pure ∘ pure) x = tfst (Comp.mk ∘ map f' ∘ f) x", " Comp.mk (tfst f <$> tsnd f' x) = bitraverse (Comp.mk ∘ pure ∘ f) (Comp.mk ∘ map pure ∘ f') x", " bitraverse (Comp.mk ∘ map f ∘ pure) (Comp.mk...
import Mathlib.Algebra.Homology.Homotopy import Mathlib.Algebra.Homology.Linear import Mathlib.CategoryTheory.MorphismProperty.IsInvertedBy import Mathlib.CategoryTheory.Quotient.Linear import Mathlib.CategoryTheory.Quotient.Preadditive #align_import algebra.homology.homotopy_category from "leanprover-community/mathl...
Mathlib/Algebra/Homology/HomotopyCategory.lean
138
139
theorem quotient_map_out_comp_out {C D E : HomotopyCategory V c} (f : C ⟢ D) (g : D ⟢ E) : (quotient V c).map (Quot.out f ≫ Quot.out g) = f ≫ g := by
simp
[ " Category.{?u.1707, max (max u v) u_2} (HomotopyCategory V c)", " Category.{?u.1707, max (max u v) u_2} (CategoryTheory.Quotient (homotopic V c))", " βˆ€ ⦃X Y : HomologicalComplex V c⦄ (f₁ fβ‚‚ g₁ gβ‚‚ : X ⟢ Y),\n homotopic V c f₁ fβ‚‚ β†’ homotopic V c g₁ gβ‚‚ β†’ homotopic V c (f₁ + g₁) (fβ‚‚ + gβ‚‚)", " homotopic V c (f...
[ " Category.{?u.1707, max (max u v) u_2} (HomotopyCategory V c)", " Category.{?u.1707, max (max u v) u_2} (CategoryTheory.Quotient (homotopic V c))", " βˆ€ ⦃X Y : HomologicalComplex V c⦄ (f₁ fβ‚‚ g₁ gβ‚‚ : X ⟢ Y),\n homotopic V c f₁ fβ‚‚ β†’ homotopic V c g₁ gβ‚‚ β†’ homotopic V c (f₁ + g₁) (fβ‚‚ + gβ‚‚)", " homotopic V c (f...
import Mathlib.Data.Fin.Tuple.Basic import Mathlib.Data.List.Join #align_import data.list.of_fn from "leanprover-community/mathlib"@"bf27744463e9620ca4e4ebe951fe83530ae6949b" universe u variable {Ξ± : Type u} open Nat namespace List #noalign list.length_of_fn_aux @[simp] theorem length_ofFn_go {n} (f : Fin n ...
Mathlib/Data/List/OfFn.lean
44
45
theorem length_ofFn {n} (f : Fin n β†’ Ξ±) : length (ofFn f) = n := by
simp [ofFn, length_ofFn_go]
[ " (ofFn.go f i j h).length = i", " (ofFn.go f 0 j h).length = 0", " (ofFn.go f (n✝ + 1) j h).length = n✝ + 1", " (ofFn f).length = n" ]
[ " (ofFn.go f i j h).length = i", " (ofFn.go f 0 j h).length = 0", " (ofFn.go f (n✝ + 1) j h).length = n✝ + 1" ]
import Mathlib.Order.Cover import Mathlib.Order.Interval.Finset.Defs #align_import data.finset.locally_finite from "leanprover-community/mathlib"@"442a83d738cb208d3600056c489be16900ba701d" assert_not_exists MonoidWithZero assert_not_exists Finset.sum open Function OrderDual open FinsetInterval variable {ΞΉ Ξ± : T...
Mathlib/Order/Interval/Finset/Basic.lean
94
95
theorem Ioo_eq_empty_iff [DenselyOrdered Ξ±] : Ioo a b = βˆ… ↔ Β¬a < b := by
rw [← coe_eq_empty, coe_Ioo, Set.Ioo_eq_empty_iff]
[ " (Icc a b).Nonempty ↔ a ≀ b", " (Ico a b).Nonempty ↔ a < b", " (Ioc a b).Nonempty ↔ a < b", " (Ioo a b).Nonempty ↔ a < b", " Icc a b = βˆ… ↔ Β¬a ≀ b", " Ico a b = βˆ… ↔ Β¬a < b", " Ioc a b = βˆ… ↔ Β¬a < b", " Ioo a b = βˆ… ↔ Β¬a < b" ]
[ " (Icc a b).Nonempty ↔ a ≀ b", " (Ico a b).Nonempty ↔ a < b", " (Ioc a b).Nonempty ↔ a < b", " (Ioo a b).Nonempty ↔ a < b", " Icc a b = βˆ… ↔ Β¬a ≀ b", " Ico a b = βˆ… ↔ Β¬a < b", " Ioc a b = βˆ… ↔ Β¬a < b" ]
import Mathlib.Data.Vector.Basic import Mathlib.Data.Vector.Snoc set_option autoImplicit true namespace Vector section Fold section Comm variable (xs ys : Vector Ξ± n)
Mathlib/Data/Vector/MapLemmas.lean
369
371
theorem mapβ‚‚_comm (f : Ξ± β†’ Ξ± β†’ Ξ²) (comm : βˆ€ a₁ aβ‚‚, f a₁ aβ‚‚ = f aβ‚‚ a₁) : mapβ‚‚ f xs ys = mapβ‚‚ f ys xs := by
induction xs, ys using Vector.inductionOnβ‚‚ <;> simp_all
[ " mapβ‚‚ f xs ys = mapβ‚‚ f ys xs", " mapβ‚‚ f nil nil = mapβ‚‚ f nil nil", " mapβ‚‚ f (a✝¹ ::α΅₯ x✝) (b✝ ::α΅₯ y✝) = mapβ‚‚ f (b✝ ::α΅₯ y✝) (a✝¹ ::α΅₯ x✝)" ]
[]
import Mathlib.Data.Set.Lattice #align_import data.set.intervals.disjoint from "leanprover-community/mathlib"@"207cfac9fcd06138865b5d04f7091e46d9320432" universe u v w variable {ΞΉ : Sort u} {Ξ± : Type v} {Ξ² : Type w} open Set open OrderDual (toDual) namespace Set section Preorder variable [Preorder Ξ±] {a b c...
Mathlib/Order/Interval/Set/Disjoint.lean
92
93
theorem iUnion_Ioc_right (a : Ξ±) : ⋃ b, Ioc a b = Ioi a := by
simp only [← Ioi_inter_Iic, ← inter_iUnion, iUnion_Iic, inter_univ]
[ " Disjoint (Ici a) (Iic b) ↔ Β¬a ≀ b", " ⋃ b, Icc a b = Ici a", " ⋃ b, Ioc a b = Ioi a" ]
[ " Disjoint (Ici a) (Iic b) ↔ Β¬a ≀ b", " ⋃ b, Icc a b = Ici a" ]
import Mathlib.Topology.Order #align_import topology.maps from "leanprover-community/mathlib"@"d91e7f7a7f1c7e9f0e18fdb6bde4f652004c735d" open Set Filter Function open TopologicalSpace Topology Filter variable {X : Type*} {Y : Type*} {Z : Type*} {ΞΉ : Type*} {f : X β†’ Y} {g : Y β†’ Z} section Inducing variable [To...
Mathlib/Topology/Maps.lean
69
72
theorem Inducing.of_comp_iff (hg : Inducing g) : Inducing (g ∘ f) ↔ Inducing f := by
refine ⟨fun h ↦ ?_, hg.comp⟩ rw [inducing_iff, hg.induced, induced_compose, h.induced]
[ " inst✝² = TopologicalSpace.induced (g ∘ f) inst✝", " Inducing (g ∘ f) ↔ Inducing f", " Inducing f" ]
[ " inst✝² = TopologicalSpace.induced (g ∘ f) inst✝" ]
import Mathlib.Analysis.InnerProductSpace.Dual import Mathlib.Analysis.InnerProductSpace.Orientation import Mathlib.Data.Complex.Orientation import Mathlib.Tactic.LinearCombination #align_import analysis.inner_product_space.two_dim from "leanprover-community/mathlib"@"cd8fafa2fac98e1a67097e8a91ad9901cfde48af" non...
Mathlib/Analysis/InnerProductSpace/TwoDim.lean
116
121
theorem areaForm_swap (x y : E) : Ο‰ x y = -Ο‰ y x := by
simp only [areaForm_to_volumeForm] convert o.volumeForm.map_swap ![y, x] (_ : (0 : Fin 2) β‰  1) Β· ext i fin_cases i <;> rfl Β· norm_num
[ " E β†’β‚—[ℝ] E β†’β‚—[ℝ] ℝ", " (o.areaForm x) y = o.volumeForm ![x, y]", " (o.areaForm x) x = 0", " o.volumeForm ![x, x] = 0", " ![x, x] 0 = ![x, x] 1", " 0 β‰  1", " (o.areaForm x) y = -(o.areaForm y) x", " o.volumeForm ![x, y] = -o.volumeForm ![y, x]", " ![x, y] = ![y, x] ∘ ⇑(Equiv.swap 0 1)", " ![x, y] ...
[ " E β†’β‚—[ℝ] E β†’β‚—[ℝ] ℝ", " (o.areaForm x) y = o.volumeForm ![x, y]", " (o.areaForm x) x = 0", " o.volumeForm ![x, x] = 0", " ![x, x] 0 = ![x, x] 1", " 0 β‰  1" ]
import Mathlib.Analysis.SpecialFunctions.JapaneseBracket import Mathlib.Analysis.SpecialFunctions.Integrals import Mathlib.MeasureTheory.Group.Integral import Mathlib.MeasureTheory.Integral.IntegralEqImproper import Mathlib.MeasureTheory.Measure.Lebesgue.Integral #align_import analysis.special_functions.improper_inte...
Mathlib/Analysis/SpecialFunctions/ImproperIntegrals.lean
62
73
theorem integrableOn_Ioi_rpow_of_lt {a : ℝ} (ha : a < -1) {c : ℝ} (hc : 0 < c) : IntegrableOn (fun t : ℝ => t ^ a) (Ioi c) := by
have hd : βˆ€ x ∈ Ici c, HasDerivAt (fun t => t ^ (a + 1) / (a + 1)) (x ^ a) x := by intro x hx -- Porting note: helped `convert` with explicit arguments convert (hasDerivAt_rpow_const (p := a + 1) (Or.inl (hc.trans_le hx).ne')).div_const _ using 1 field_simp [show a + 1 β‰  0 from ne_of_lt (by linarith)...
[ " IntegrableOn rexp (Iic c) volume", " ∫ (x : ℝ) in id y..c, β€–rexp xβ€– ≀ rexp c", " 0 ≀ rexp (id y)", " ∫ (x : ℝ) in Iic c, rexp x = rexp c", " Tendsto (fun i => ∫ (x : ℝ) in id i..c, rexp x) atBot (𝓝 (rexp c))", " 𝓝 (rexp c) = 𝓝 (rexp c - 0)", " Tendsto (fun i => rexp c - rexp (id i)) atBot (𝓝 (rexp...
[ " IntegrableOn rexp (Iic c) volume", " ∫ (x : ℝ) in id y..c, β€–rexp xβ€– ≀ rexp c", " 0 ≀ rexp (id y)", " ∫ (x : ℝ) in Iic c, rexp x = rexp c", " Tendsto (fun i => ∫ (x : ℝ) in id i..c, rexp x) atBot (𝓝 (rexp c))", " 𝓝 (rexp c) = 𝓝 (rexp c - 0)", " Tendsto (fun i => rexp c - rexp (id i)) atBot (𝓝 (rexp...
import Mathlib.Analysis.NormedSpace.Star.Spectrum import Mathlib.Analysis.Normed.Group.Quotient import Mathlib.Analysis.NormedSpace.Algebra import Mathlib.Topology.ContinuousFunction.Units import Mathlib.Topology.ContinuousFunction.Compact import Mathlib.Topology.Algebra.Algebra import Mathlib.Topology.ContinuousFunct...
Mathlib/Analysis/NormedSpace/Star/GelfandDuality.lean
99
105
theorem WeakDual.CharacterSpace.exists_apply_eq_zero {a : A} (ha : Β¬IsUnit a) : βˆƒ f : characterSpace β„‚ A, f a = 0 := by
obtain ⟨M, hM, haM⟩ := (span {a}).exists_le_maximal (span_singleton_ne_top ha) exact ⟨M.toCharacterSpace, M.toCharacterSpace_apply_eq_zero_of_mem (haM (mem_span_singleton.mpr ⟨1, (mul_one a).symm⟩))⟩
[ " I.toCharacterSpace a = 0", " (CharacterSpace.equivAlgHom.symm ((↑(NormedRing.algEquivComplexOfComplete β‹―).symm).comp (Quotient.mkₐ β„‚ I))) a = 0", " β‹―.some = 0", " βˆƒ f, f a = 0" ]
[ " I.toCharacterSpace a = 0", " (CharacterSpace.equivAlgHom.symm ((↑(NormedRing.algEquivComplexOfComplete β‹―).symm).comp (Quotient.mkₐ β„‚ I))) a = 0", " β‹―.some = 0" ]
import Mathlib.Data.Matroid.Restrict variable {Ξ± : Type*} {M : Matroid Ξ±} {E B I X R J : Set Ξ±} namespace Matroid open Set section EmptyOn def emptyOn (Ξ± : Type*) : Matroid Ξ± where E := βˆ… Base := (Β· = βˆ…) Indep := (Β· = βˆ…) indep_iff' := by simp [subset_empty_iff] exists_base := βŸ¨βˆ…, rfl⟩ base_exchange...
Mathlib/Data/Matroid/Constructions.lean
71
73
theorem eq_emptyOn [IsEmpty Ξ±] (M : Matroid Ξ±) : M = emptyOn Ξ± := by
rw [← ground_eq_empty_iff] exact M.E.eq_empty_of_isEmpty
[ " βˆ€ ⦃I : Set α⦄, (fun x => x = βˆ…) I ↔ βˆƒ B, (fun x => x = βˆ…) B ∧ I βŠ† B", " ExchangeProperty fun x => x = βˆ…", " (fun x => x = βˆ…) Y✝ β†’ βˆ€ a ∈ βˆ… \\ Y✝, βˆƒ b ∈ Y✝ \\ βˆ…, (fun x => x = βˆ…) (insert b (βˆ… \\ {a}))", " βˆ€ X βŠ† βˆ…, ExistsMaximalSubsetProperty (fun x => x = βˆ…) X", " (maximals (fun x x_1 => x βŠ† x_1) {Y | (fun ...
[ " βˆ€ ⦃I : Set α⦄, (fun x => x = βˆ…) I ↔ βˆƒ B, (fun x => x = βˆ…) B ∧ I βŠ† B", " ExchangeProperty fun x => x = βˆ…", " (fun x => x = βˆ…) Y✝ β†’ βˆ€ a ∈ βˆ… \\ Y✝, βˆƒ b ∈ Y✝ \\ βˆ…, (fun x => x = βˆ…) (insert b (βˆ… \\ {a}))", " βˆ€ X βŠ† βˆ…, ExistsMaximalSubsetProperty (fun x => x = βˆ…) X", " (maximals (fun x x_1 => x βŠ† x_1) {Y | (fun ...
import Mathlib.CategoryTheory.Limits.Shapes.WideEqualizers import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.Terminal #align_import category_theory.limits.constructions.weakly_initial from "leanprover-community/mathlib"@"239d882c4fb58361ee8b3b39fb2091320edef10a" univ...
Mathlib/CategoryTheory/Limits/Constructions/WeaklyInitial.lean
46
64
theorem hasInitial_of_weakly_initial_and_hasWideEqualizers [HasWideEqualizers.{v} C] {T : C} (hT : βˆ€ X, Nonempty (T ⟢ X)) : HasInitial C := by
let endos := T ⟢ T let i := wideEqualizer.ΞΉ (id : endos β†’ endos) haveI : Nonempty endos := βŸ¨πŸ™ _⟩ have : βˆ€ X : C, Unique (wideEqualizer (id : endos β†’ endos) ⟢ X) := by intro X refine ⟨⟨i ≫ Classical.choice (hT X)⟩, fun a => ?_⟩ let E := equalizer a (i ≫ Classical.choice (hT _)) let e : E ⟢ wide...
[ " HasInitial C", " (X : C) β†’ Unique (wideEqualizer id ⟢ X)", " Unique (wideEqualizer id ⟢ X)", " a = default", " ((i ≫ h) ≫ e) ≫ i = i ≫ πŸ™ T", " i ≫ h ≫ e ≫ i = i ≫ πŸ™ T", " e ≫ a = e ≫ default" ]
[]
import Mathlib.Data.Set.Defs import Mathlib.Order.Heyting.Basic import Mathlib.Order.RelClasses import Mathlib.Order.Hom.Basic import Mathlib.Lean.Thunk set_option autoImplicit true class EstimatorData (a : Thunk Ξ±) (Ξ΅ : Type*) where bound : Ξ΅ β†’ Ξ± improve : Ξ΅ β†’ Option Ξ΅ class Estimator [Preorder Ξ±] (a...
Mathlib/Order/Estimator.lean
126
142
theorem Estimator.improveUntilAux_spec (a : Thunk Ξ±) (p : Ξ± β†’ Bool) [Estimator a Ξ΅] [WellFoundedGT (range (bound a : Ξ΅ β†’ Ξ±))] (e : Ξ΅) (r : Bool) : match Estimator.improveUntilAux a p e r with | .error _ => Β¬ p a.get | .ok e' => p (bound a e') := by
rw [Estimator.improveUntilAux] by_cases h : p (bound a e) Β· simp only [h]; exact h Β· simp only [h] match improve a e, improve_spec e with | none, eq => simp only [Bool.not_eq_true] rw [eq] at h exact Bool.bool_eq_false h | some e', _ => exact Estimator.improveUntilAux_spec a...
[ " match improveUntilAux a p e r with\n | Except.error a_1 => Β¬p a.get = true\n | Except.ok e' => p (bound a e') = true", " match\n if p (bound a e) = true then pure e\n else\n match improve a e, β‹― with\n | none, x => Except.error (if r = true then none else some e)\n | some e', x => improve...
[]
import Mathlib.Data.Nat.Prime #align_import data.int.nat_prime from "leanprover-community/mathlib"@"422e70f7ce183d2900c586a8cda8381e788a0c62" open Nat namespace Int theorem not_prime_of_int_mul {a b : β„€} {c : β„•} (ha : a.natAbs β‰  1) (hb : b.natAbs β‰  1) (hc : a * b = (c : β„€)) : Β¬Nat.Prime c := not_prime_mul...
Mathlib/Data/Int/NatPrime.lean
24
33
theorem succ_dvd_or_succ_dvd_of_succ_sum_dvd_mul {p : β„•} (p_prime : Nat.Prime p) {m n : β„€} {k l : β„•} (hpm : ↑(p ^ k) ∣ m) (hpn : ↑(p ^ l) ∣ n) (hpmn : ↑(p ^ (k + l + 1)) ∣ m * n) : ↑(p ^ (k + 1)) ∣ m ∨ ↑(p ^ (l + 1)) ∣ n := have hpm' : p ^ k ∣ m.natAbs := Int.natCast_dvd_natCast.1 <| Int.dvd_natAbs.2 hpm ha...
rw [← Int.natAbs_mul]; apply Int.natCast_dvd_natCast.1 <| Int.dvd_natAbs.2 hpmn let hsd := Nat.succ_dvd_or_succ_dvd_of_succ_sum_dvd_mul p_prime hpm' hpn' hpmn' hsd.elim (fun hsd1 => Or.inl (by apply Int.dvd_natAbs.1; apply Int.natCast_dvd_natCast.2 hsd1)) fun hsd2 => Or.inr (by apply Int.dvd_natAbs.1; appl...
[ " p ^ (k + l + 1) ∣ m.natAbs * n.natAbs", " p ^ (k + l + 1) ∣ (m * n).natAbs", " ↑(p ^ (k + 1)) ∣ m", " ↑(p ^ (k + 1)) ∣ ↑m.natAbs", " ↑(p ^ (l + 1)) ∣ n", " ↑(p ^ (l + 1)) ∣ ↑n.natAbs" ]
[]
import Mathlib.MeasureTheory.Integral.IntervalIntegral import Mathlib.Order.Filter.IndicatorFunction open MeasureTheory section DominatedConvergenceTheorem open Set Filter TopologicalSpace ENNReal open scoped Topology namespace MeasureTheory variable {Ξ± E G: Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [C...
Mathlib/MeasureTheory/Integral/DominatedConvergence.lean
66
75
theorem tendsto_integral_filter_of_dominated_convergence {ΞΉ} {l : Filter ΞΉ} [l.IsCountablyGenerated] {F : ΞΉ β†’ Ξ± β†’ G} {f : Ξ± β†’ G} (bound : Ξ± β†’ ℝ) (hF_meas : βˆ€αΆ  n in l, AEStronglyMeasurable (F n) ΞΌ) (h_bound : βˆ€αΆ  n in l, βˆ€α΅ a βˆ‚ΞΌ, β€–F n aβ€– ≀ bound a) (bound_integrable : Integrable bound ΞΌ) (h_lim : βˆ€α΅ a βˆ‚ΞΌ, Ten...
by_cases hG : CompleteSpace G Β· simp only [integral, hG, L1.integral] exact tendsto_setToFun_filter_of_dominated_convergence (dominatedFinMeasAdditive_weightedSMul ΞΌ) bound hF_meas h_bound bound_integrable h_lim Β· simp [integral, hG, tendsto_const_nhds]
[ " Tendsto (fun n => ∫ (a : Ξ±), F n a βˆ‚ΞΌ) atTop (𝓝 (∫ (a : Ξ±), f a βˆ‚ΞΌ))", " Tendsto\n (fun n =>\n if h : True then\n if hf : Integrable (fun a => F n a) ΞΌ then L1.integralCLM (Integrable.toL1 (fun a => F n a) hf) else 0\n else 0)\n atTop\n (𝓝\n (if h : True then\n if hf : In...
[ " Tendsto (fun n => ∫ (a : Ξ±), F n a βˆ‚ΞΌ) atTop (𝓝 (∫ (a : Ξ±), f a βˆ‚ΞΌ))", " Tendsto\n (fun n =>\n if h : True then\n if hf : Integrable (fun a => F n a) ΞΌ then L1.integralCLM (Integrable.toL1 (fun a => F n a) hf) else 0\n else 0)\n atTop\n (𝓝\n (if h : True then\n if hf : In...
import Mathlib.Algebra.EuclideanDomain.Basic import Mathlib.RingTheory.PrincipalIdealDomain import Mathlib.Algebra.GCDMonoid.Nat #align_import ring_theory.int.basic from "leanprover-community/mathlib"@"e655e4ea5c6d02854696f97494997ba4c31be802" namespace Int theorem gcd_eq_one_iff_coprime {a b : β„€} : Int.gcd a b ...
Mathlib/RingTheory/Int/Basic.lean
54
56
theorem gcd_ne_one_iff_gcd_mul_right_ne_one {a : β„€} {m n : β„•} : a.gcd (m * n) β‰  1 ↔ a.gcd m β‰  1 ∨ a.gcd n β‰  1 := by
simp only [gcd_eq_one_iff_coprime, ← not_and_or, not_iff_not, IsCoprime.mul_right_iff]
[ " a.gcd b = 1 ↔ IsCoprime a b", " a.gcd b = 1 β†’ IsCoprime a b", " IsCoprime a b", " a.natAbs.gcdA b.natAbs * ua * a + a.natAbs.gcdB b.natAbs * ub * b = 1", " IsCoprime a b β†’ a.gcd b = 1", " a.gcd b = 1", " False", " p ∣ 1", " ↑p ∣ r * a + s * b", " IsCoprime a b ↔ a.natAbs.Coprime b.natAbs", " a...
[ " a.gcd b = 1 ↔ IsCoprime a b", " a.gcd b = 1 β†’ IsCoprime a b", " IsCoprime a b", " a.natAbs.gcdA b.natAbs * ua * a + a.natAbs.gcdB b.natAbs * ub * b = 1", " IsCoprime a b β†’ a.gcd b = 1", " a.gcd b = 1", " False", " p ∣ 1", " ↑p ∣ r * a + s * b", " IsCoprime a b ↔ a.natAbs.Coprime b.natAbs" ]
import Mathlib.Order.Filter.Basic #align_import order.filter.prod from "leanprover-community/mathlib"@"d6fad0e5bf2d6f48da9175d25c3dc5706b3834ce" open Set open Filter namespace Filter variable {Ξ± Ξ² Ξ³ Ξ΄ : Type*} {ΞΉ : Sort*} section Prod variable {s : Set Ξ±} {t : Set Ξ²} {f : Filter Ξ±} {g : Filter Ξ²} protected ...
Mathlib/Order/Filter/Prod.lean
131
135
theorem eventually_prod_iff {p : Ξ± Γ— Ξ² β†’ Prop} : (βˆ€αΆ  x in f Γ—Λ’ g, p x) ↔ βˆƒ pa : Ξ± β†’ Prop, (βˆ€αΆ  x in f, pa x) ∧ βˆƒ pb : Ξ² β†’ Prop, (βˆ€αΆ  y in g, pb y) ∧ βˆ€ {x}, pa x β†’ βˆ€ {y}, pb y β†’ p (x, y) := by
simpa only [Set.prod_subset_iff] using @mem_prod_iff Ξ± Ξ² p f g
[ " s ∈ f Γ—Λ’ g ↔ βˆƒ t₁ ∈ f, βˆƒ tβ‚‚ ∈ g, t₁ Γ—Λ’ tβ‚‚ βŠ† s", " s ∈ comap Prod.fst f βŠ“ comap Prod.snd g ↔ βˆƒ t₁ ∈ f, βˆƒ tβ‚‚ ∈ g, t₁.prod tβ‚‚ βŠ† s", " s ∈ comap Prod.fst f βŠ“ comap Prod.snd g β†’ βˆƒ t₁ ∈ f, βˆƒ tβ‚‚ ∈ g, t₁.prod tβ‚‚ βŠ† s", " βˆƒ t₁_1 ∈ f, βˆƒ tβ‚‚_1 ∈ g, t₁_1.prod tβ‚‚_1 βŠ† t₁ ∩ tβ‚‚", " (βˆƒ t₁ ∈ f, βˆƒ tβ‚‚ ∈ g, t₁.prod tβ‚‚ βŠ† s) β†’ s ...
[ " s ∈ f Γ—Λ’ g ↔ βˆƒ t₁ ∈ f, βˆƒ tβ‚‚ ∈ g, t₁ Γ—Λ’ tβ‚‚ βŠ† s", " s ∈ comap Prod.fst f βŠ“ comap Prod.snd g ↔ βˆƒ t₁ ∈ f, βˆƒ tβ‚‚ ∈ g, t₁.prod tβ‚‚ βŠ† s", " s ∈ comap Prod.fst f βŠ“ comap Prod.snd g β†’ βˆƒ t₁ ∈ f, βˆƒ tβ‚‚ ∈ g, t₁.prod tβ‚‚ βŠ† s", " βˆƒ t₁_1 ∈ f, βˆƒ tβ‚‚_1 ∈ g, t₁_1.prod tβ‚‚_1 βŠ† t₁ ∩ tβ‚‚", " (βˆƒ t₁ ∈ f, βˆƒ tβ‚‚ ∈ g, t₁.prod tβ‚‚ βŠ† s) β†’ s ...
import Mathlib.Topology.Order.IsLUB open Set Filter TopologicalSpace Topology Function open OrderDual (toDual ofDual) variable {Ξ± Ξ² Ξ³ : Type*} section DenselyOrdered variable [TopologicalSpace Ξ±] [LinearOrder Ξ±] [OrderTopology Ξ±] [DenselyOrdered Ξ±] {a b : Ξ±} {s : Set Ξ±} theorem closure_Ioi' {a : Ξ±} (h : (Io...
Mathlib/Topology/Order/DenselyOrdered.lean
106
108
theorem Icc_mem_nhds_iff [NoMinOrder Ξ±] [NoMaxOrder Ξ±] {a b x : Ξ±} : Icc a b ∈ 𝓝 x ↔ x ∈ Ioo a b := by
rw [← interior_Icc, mem_interior_iff_mem_nhds]
[ " closure (Ioi a) = Ici a", " closure (Ioi a) βŠ† Ici a", " Ici a βŠ† closure (Ioi a)", " a ∈ closure (Ioi a)", " closure (Ioo a b) = Icc a b", " closure (Ioo a b) βŠ† Icc a b", " Icc a b βŠ† closure (Ioo a b)", " {a, b} βŠ† closure (Ioo a b)", " a ∈ closure (Ioo a b) ∧ b ∈ closure (Ioo a b)", " βˆ… βŠ† closure...
[ " closure (Ioi a) = Ici a", " closure (Ioi a) βŠ† Ici a", " Ici a βŠ† closure (Ioi a)", " a ∈ closure (Ioi a)", " closure (Ioo a b) = Icc a b", " closure (Ioo a b) βŠ† Icc a b", " Icc a b βŠ† closure (Ioo a b)", " {a, b} βŠ† closure (Ioo a b)", " a ∈ closure (Ioo a b) ∧ b ∈ closure (Ioo a b)", " βˆ… βŠ† closure...
import Mathlib.Algebra.Module.Zlattice.Basic import Mathlib.NumberTheory.NumberField.Embeddings import Mathlib.NumberTheory.NumberField.FractionalIdeal #align_import number_theory.number_field.canonical_embedding from "leanprover-community/mathlib"@"60da01b41bbe4206f05d34fd70c8dd7498717a30" variable (K : Type*) [F...
Mathlib/NumberTheory/NumberField/CanonicalEmbedding/Basic.lean
259
262
theorem normAtPlace_nonneg (w : InfinitePlace K) (x : E K) : 0 ≀ normAtPlace w x := by
rw [normAtPlace, MonoidWithZeroHom.coe_mk, ZeroHom.coe_mk] split_ifs <;> exact norm_nonneg _
[ " Nontrivial (({ w // w.IsReal } β†’ ℝ) Γ— ({ w // w.IsComplex } β†’ β„‚))", " finrank ℝ (({ w // w.IsReal } β†’ ℝ) Γ— ({ w // w.IsComplex } β†’ β„‚)) = finrank β„š K", " Function.Injective ⇑(mixedEmbedding K)", " (fun x => if hw : w.IsReal then β€–x.1 ⟨w, hwβŸ©β€– else β€–x.2 ⟨w, β‹―βŸ©β€–) 0 = 0", " { toFun := fun x => if hw : w.IsRea...
[ " Nontrivial (({ w // w.IsReal } β†’ ℝ) Γ— ({ w // w.IsComplex } β†’ β„‚))", " finrank ℝ (({ w // w.IsReal } β†’ ℝ) Γ— ({ w // w.IsComplex } β†’ β„‚)) = finrank β„š K", " Function.Injective ⇑(mixedEmbedding K)", " (fun x => if hw : w.IsReal then β€–x.1 ⟨w, hwβŸ©β€– else β€–x.2 ⟨w, β‹―βŸ©β€–) 0 = 0", " { toFun := fun x => if hw : w.IsRea...
import Mathlib.LinearAlgebra.Matrix.Charpoly.Coeff import Mathlib.LinearAlgebra.Matrix.ToLin #align_import linear_algebra.matrix.charpoly.linear_map from "leanprover-community/mathlib"@"62c0a4ef1441edb463095ea02a06e87f3dfe135c" variable {ΞΉ : Type*} [Fintype ΞΉ] variable {M : Type*} [AddCommGroup M] (R : Type*) [Co...
Mathlib/LinearAlgebra/Matrix/Charpoly/LinearMap.lean
141
144
theorem Matrix.Represents.smul {A : Matrix ΞΉ ΞΉ R} {f : Module.End R M} (h : A.Represents b f) (r : R) : (r β€’ A).Represents b (r β€’ f) := by
delta Matrix.Represents at h ⊒ rw [_root_.map_smul, _root_.map_smul, h]
[ " ((fromMatrix R b) A) (Pi.single j 1) = βˆ‘ i : ΞΉ, A i j β€’ b i", " βˆ‘ i : ΞΉ, (fun i => A i j * 1) i β€’ b i = βˆ‘ i : ΞΉ, A i j β€’ b i", " ((fromEnd R b) f) (Pi.single i 1) = f (b i)", " f (((Fintype.total R R) b) (Pi.single i 1)) = f (b i)", " ((Fintype.total R R) b) (Pi.single i 1) = b i", " b i = 1 β€’ b i", "...
[ " ((fromMatrix R b) A) (Pi.single j 1) = βˆ‘ i : ΞΉ, A i j β€’ b i", " βˆ‘ i : ΞΉ, (fun i => A i j * 1) i β€’ b i = βˆ‘ i : ΞΉ, A i j β€’ b i", " ((fromEnd R b) f) (Pi.single i 1) = f (b i)", " f (((Fintype.total R R) b) (Pi.single i 1)) = f (b i)", " ((Fintype.total R R) b) (Pi.single i 1) = b i", " b i = 1 β€’ b i", "...
import Mathlib.Topology.MetricSpace.Basic #align_import topology.metric_space.infsep from "leanprover-community/mathlib"@"5316314b553dcf8c6716541851517c1a9715e22b" variable {Ξ± Ξ² : Type*} namespace Set section Einfsep open ENNReal open Function noncomputable def einfsep [EDist Ξ±] (s : Set Ξ±) : ℝβ‰₯0∞ := β¨… (x...
Mathlib/Topology/MetricSpace/Infsep.lean
340
341
theorem infsep_pos : 0 < s.infsep ↔ 0 < s.einfsep ∧ s.einfsep < ∞ := by
simp_rw [infsep, ENNReal.toReal_pos_iff]
[ " s.infsep = 0 ↔ s.einfsep = 0 ∨ s.einfsep = ⊀", " 0 < s.infsep ↔ 0 < s.einfsep ∧ s.einfsep < ⊀" ]
[ " s.infsep = 0 ↔ s.einfsep = 0 ∨ s.einfsep = ⊀" ]
import Mathlib.Algebra.Group.Semiconj.Defs import Mathlib.Init.Algebra.Classes #align_import algebra.group.commute from "leanprover-community/mathlib"@"05101c3df9d9cfe9430edc205860c79b6d660102" assert_not_exists MonoidWithZero assert_not_exists DenselyOrdered variable {G M S : Type*} @[to_additive "Two elements...
Mathlib/Algebra/Group/Commute/Defs.lean
262
263
theorem mul_inv_cancel_assoc (h : Commute a b) : a * (b * a⁻¹) = b := by
rw [← mul_assoc, h.mul_inv_cancel]
[ " a * b * a⁻¹ = b", " a * (b * a⁻¹) = b" ]
[ " a * b * a⁻¹ = b" ]
import Mathlib.Analysis.MeanInequalities import Mathlib.Analysis.MeanInequalitiesPow import Mathlib.Analysis.SpecialFunctions.Pow.Continuity import Mathlib.Data.Set.Image import Mathlib.Topology.Algebra.Order.LiminfLimsup #align_import analysis.normed_space.lp_space from "leanprover-community/mathlib"@"de83b43717abe3...
Mathlib/Analysis/NormedSpace/lpSpace.lean
117
127
theorem memβ„“p_gen' {C : ℝ} {f : βˆ€ i, E i} (hf : βˆ€ s : Finset Ξ±, βˆ‘ i ∈ s, β€–f iβ€– ^ p.toReal ≀ C) : Memβ„“p f p := by
apply memβ„“p_gen use ⨆ s : Finset Ξ±, βˆ‘ i ∈ s, β€–f iβ€– ^ p.toReal apply hasSum_of_isLUB_of_nonneg Β· intro b exact Real.rpow_nonneg (norm_nonneg _) _ apply isLUB_ciSup use C rintro - ⟨s, rfl⟩ exact hf s
[ " Memβ„“p f 0 ↔ {i | f i β‰  0}.Finite", " (if 0 = 0 then {i | Β¬f i = 0}.Finite\n else if 0 = ⊀ then BddAbove (Set.range fun i => β€–f iβ€–) else Summable fun i => β€–f iβ€– ^ 0) ↔\n {i | Β¬f i = 0}.Finite", " Memβ„“p f ⊀ ↔ BddAbove (Set.range fun i => β€–f iβ€–)", " (if ⊀ = 0 then {i | Β¬f i = 0}.Finite\n else if ⊀ = ⊀...
[ " Memβ„“p f 0 ↔ {i | f i β‰  0}.Finite", " (if 0 = 0 then {i | Β¬f i = 0}.Finite\n else if 0 = ⊀ then BddAbove (Set.range fun i => β€–f iβ€–) else Summable fun i => β€–f iβ€– ^ 0) ↔\n {i | Β¬f i = 0}.Finite", " Memβ„“p f ⊀ ↔ BddAbove (Set.range fun i => β€–f iβ€–)", " (if ⊀ = 0 then {i | Β¬f i = 0}.Finite\n else if ⊀ = ⊀...
import Mathlib.Algebra.MonoidAlgebra.Basic import Mathlib.Algebra.Group.UniqueProds #align_import algebra.monoid_algebra.no_zero_divisors from "leanprover-community/mathlib"@"3e067975886cf5801e597925328c335609511b1a" open Finsupp variable {R A : Type*} [Semiring R] namespace MonoidAlgebra
Mathlib/Algebra/MonoidAlgebra/NoZeroDivisors.lean
68
79
theorem mul_apply_mul_eq_mul_of_uniqueMul [Mul A] {f g : MonoidAlgebra R A} {a0 b0 : A} (h : UniqueMul f.support g.support a0 b0) : (f * g) (a0 * b0) = f a0 * g b0 := by
classical simp_rw [mul_apply, sum, ← Finset.sum_product'] refine (Finset.sum_eq_single (a0, b0) ?_ ?_).trans (if_pos rfl) <;> simp_rw [Finset.mem_product] Β· refine fun ab hab hne => if_neg (fun he => hne <| Prod.ext ?_ ?_) exacts [(h hab.1 hab.2 he).1, (h hab.1 hab.2 he).2] Β· refine fun hnmem => ite_eq_r...
[ " (f * g) (a0 * b0) = f a0 * g b0", " (βˆ‘ x ∈ f.support Γ—Λ’ g.support, if x.1 * x.2 = a0 * b0 then f x.1 * g x.2 else 0) = f a0 * g b0", " βˆ€ b ∈ f.support Γ—Λ’ g.support, b β‰  (a0, b0) β†’ (if b.1 * b.2 = a0 * b0 then f b.1 * g b.2 else 0) = 0", " (a0, b0) βˆ‰ f.support Γ—Λ’ g.support β†’ (if (a0, b0).1 * (a0, b0).2 = a0 ...
[]
import Mathlib.Data.Vector.Basic import Mathlib.Data.Vector.Snoc set_option autoImplicit true namespace Vector section Fold section Binary variable (xs : Vector Ξ± n) (ys : Vector Ξ² n) @[simp] theorem mapAccumrβ‚‚_mapAccumr_left (f₁ : Ξ³ β†’ Ξ² β†’ σ₁ β†’ σ₁ Γ— ΞΆ) (fβ‚‚ : Ξ± β†’ Οƒβ‚‚ β†’ Οƒβ‚‚ Γ— Ξ³) : (mapAccumrβ‚‚ f₁ (mapAccumr fβ‚‚...
Mathlib/Data/Vector/MapLemmas.lean
145
154
theorem mapAccumrβ‚‚_mapAccumrβ‚‚_right_right (f₁ : Ξ² β†’ Ξ³ β†’ σ₁ β†’ σ₁ Γ— Ο†) (fβ‚‚ : Ξ± β†’ Ξ² β†’ Οƒβ‚‚ β†’ Οƒβ‚‚ Γ— Ξ³) : (mapAccumrβ‚‚ f₁ ys (mapAccumrβ‚‚ fβ‚‚ xs ys sβ‚‚).snd s₁) = let m := mapAccumrβ‚‚ (fun x y (s₁, sβ‚‚) => let rβ‚‚ := fβ‚‚ x y sβ‚‚ let r₁ := f₁ y rβ‚‚.snd s₁ ((r₁.fst, rβ‚‚.fst), r₁.snd) ...
induction xs, ys using Vector.revInductionOnβ‚‚ generalizing s₁ sβ‚‚ <;> simp_all
[ " mapAccumrβ‚‚ f₁ (mapAccumr fβ‚‚ xs sβ‚‚).2 ys s₁ =\n let m :=\n mapAccumrβ‚‚\n (fun x y s =>\n let rβ‚‚ := fβ‚‚ x s.2;\n let r₁ := f₁ rβ‚‚.2 y s.1;\n ((r₁.1, rβ‚‚.1), r₁.2))\n xs ys (s₁, sβ‚‚);\n (m.1.1, m.2)", " mapAccumrβ‚‚ f₁ (mapAccumr fβ‚‚ nil sβ‚‚).2 nil s₁ =\n let m :=\n ...
[ " mapAccumrβ‚‚ f₁ (mapAccumr fβ‚‚ xs sβ‚‚).2 ys s₁ =\n let m :=\n mapAccumrβ‚‚\n (fun x y s =>\n let rβ‚‚ := fβ‚‚ x s.2;\n let r₁ := f₁ rβ‚‚.2 y s.1;\n ((r₁.1, rβ‚‚.1), r₁.2))\n xs ys (s₁, sβ‚‚);\n (m.1.1, m.2)", " mapAccumrβ‚‚ f₁ (mapAccumr fβ‚‚ nil sβ‚‚).2 nil s₁ =\n let m :=\n ...
import Mathlib.Algebra.BigOperators.Group.Finset import Mathlib.Order.SupIndep import Mathlib.Order.Atoms #align_import order.partition.finpartition from "leanprover-community/mathlib"@"d6fad0e5bf2d6f48da9175d25c3dc5706b3834ce" open Finset Function variable {Ξ± : Type*} @[ext] structure Finpartition [Lattice Ξ±]...
Mathlib/Order/Partition/Finpartition.lean
178
182
theorem ne_bot {b : Ξ±} (hb : b ∈ P.parts) : b β‰  βŠ₯ := by
intro h refine P.not_bot_mem (?_) rw [h] at hb exact hb
[ " x✝ ≀ βŠ₯", " (↑e).symm x✝¹ βˆ‰ Finset.map (↑e).symm.toEmbedding u", " e.symm x✝ ≀ (Finset.map (↑e).symm.toEmbedding u).sup id", " (Finset.map (↑e).symm.toEmbedding u).sup id = e.symm (u.sup id)", " u.sup (id ∘ ⇑(↑e).symm.toEmbedding) = u.sup (⇑e.symm ∘ id)", " (Finset.map (↑e).toEmbedding P.parts).sup id = ...
[ " x✝ ≀ βŠ₯", " (↑e).symm x✝¹ βˆ‰ Finset.map (↑e).symm.toEmbedding u", " e.symm x✝ ≀ (Finset.map (↑e).symm.toEmbedding u).sup id", " (Finset.map (↑e).symm.toEmbedding u).sup id = e.symm (u.sup id)", " u.sup (id ∘ ⇑(↑e).symm.toEmbedding) = u.sup (⇑e.symm ∘ id)", " (Finset.map (↑e).toEmbedding P.parts).sup id = ...
import Mathlib.Data.Complex.Basic import Mathlib.Data.Real.Cardinality #align_import data.complex.cardinality from "leanprover-community/mathlib"@"1c4e18434eeb5546b212e830b2b39de6a83c473c" -- Porting note: the lemmas `mk_complex` and `mk_univ_complex` should be in the namespace `Cardinal` -- like their real counter...
Mathlib/Data/Complex/Cardinality.lean
25
26
theorem mk_complex : #β„‚ = 𝔠 := by
rw [mk_congr Complex.equivRealProd, mk_prod, lift_id, mk_real, continuum_mul_self]
[ " #β„‚ = 𝔠" ]
[]
import Mathlib.FieldTheory.RatFunc.Defs import Mathlib.RingTheory.EuclideanDomain import Mathlib.RingTheory.Localization.FractionRing import Mathlib.RingTheory.Polynomial.Content #align_import field_theory.ratfunc from "leanprover-community/mathlib"@"bf9bbbcf0c1c1ead18280b0d010e417b10abb1b6" universe u v noncompu...
Mathlib/FieldTheory/RatFunc/Basic.lean
209
211
theorem ofFractionRing_smul [SMul R (FractionRing K[X])] (c : R) (p : FractionRing K[X]) : ofFractionRing (c β€’ p) = c β€’ ofFractionRing p := by
simp only [SMul.smul, HSMul.hSMul, RatFunc.smul]
[ " { toFractionRing := 0 } = 0", " { toFractionRing := p + q } = { toFractionRing := p } + { toFractionRing := q }", " { toFractionRing := p - q } = { toFractionRing := p } - { toFractionRing := q }", " { toFractionRing := -p } = -{ toFractionRing := p }", " { toFractionRing := 1 } = 1", " { toFractionRing...
[ " { toFractionRing := 0 } = 0", " { toFractionRing := p + q } = { toFractionRing := p } + { toFractionRing := q }", " { toFractionRing := p - q } = { toFractionRing := p } - { toFractionRing := q }", " { toFractionRing := -p } = -{ toFractionRing := p }", " { toFractionRing := 1 } = 1", " { toFractionRing...
import Mathlib.Topology.Connected.Basic open Set Topology universe u v variable {Ξ± : Type u} {Ξ² : Type v} {ΞΉ : Type*} {Ο€ : ΞΉ β†’ Type*} [TopologicalSpace Ξ±] {s t u v : Set Ξ±} section LocallyConnectedSpace class LocallyConnectedSpace (Ξ± : Type*) [TopologicalSpace Ξ±] : Prop where open_connected_basis : βˆ€ x,...
Mathlib/Topology/Connected/LocallyConnected.lean
89
101
theorem locallyConnectedSpace_iff_connectedComponentIn_open : LocallyConnectedSpace Ξ± ↔ βˆ€ F : Set Ξ±, IsOpen F β†’ βˆ€ x ∈ F, IsOpen (connectedComponentIn F x) := by
constructor · intro h exact fun F hF x _ => hF.connectedComponentIn · intro h rw [locallyConnectedSpace_iff_open_connected_subsets] refine fun x U hU => ⟨connectedComponentIn (interior U) x, (connectedComponentIn_subset _ _).trans interior_subset, h _ isOpen_interior x ?_, ...
[ " LocallyConnectedSpace Ξ± ↔ βˆ€ (x : Ξ±), βˆ€ U ∈ 𝓝 x, βˆƒ V βŠ† U, IsOpen V ∧ x ∈ V ∧ IsConnected V", " (βˆ€ (x : Ξ±), (𝓝 x).HasBasis (fun s => IsOpen s ∧ x ∈ s ∧ IsConnected s) id) ↔\n βˆ€ (x : Ξ±), βˆ€ U ∈ 𝓝 x, βˆƒ V βŠ† U, IsOpen V ∧ x ∈ V ∧ IsConnected V", " (𝓝 x✝).HasBasis (fun s => IsOpen s ∧ x✝ ∈ s ∧ IsConnected s) i...
[ " LocallyConnectedSpace Ξ± ↔ βˆ€ (x : Ξ±), βˆ€ U ∈ 𝓝 x, βˆƒ V βŠ† U, IsOpen V ∧ x ∈ V ∧ IsConnected V", " (βˆ€ (x : Ξ±), (𝓝 x).HasBasis (fun s => IsOpen s ∧ x ∈ s ∧ IsConnected s) id) ↔\n βˆ€ (x : Ξ±), βˆ€ U ∈ 𝓝 x, βˆƒ V βŠ† U, IsOpen V ∧ x ∈ V ∧ IsConnected V", " (𝓝 x✝).HasBasis (fun s => IsOpen s ∧ x✝ ∈ s ∧ IsConnected s) i...
import Mathlib.Data.Set.Prod import Mathlib.Logic.Equiv.Fin import Mathlib.ModelTheory.LanguageMap #align_import model_theory.syntax from "leanprover-community/mathlib"@"d565b3df44619c1498326936be16f1a935df0728" universe u v w u' v' namespace FirstOrder namespace Language variable (L : Language.{u, v}) {L' : L...
Mathlib/ModelTheory/Syntax.lean
107
110
theorem relabel_id (t : L.Term Ξ±) : t.relabel id = t := by
induction' t with _ _ _ _ ih Β· rfl Β· simp [ih]
[ " relabel id t = t", " relabel id (var a✝) = var a✝", " relabel id (func _f✝ _ts✝) = func _f✝ _ts✝" ]
[]
import Mathlib.Analysis.Analytic.Constructions import Mathlib.Analysis.Calculus.Dslope import Mathlib.Analysis.Calculus.FDeriv.Analytic import Mathlib.Analysis.Analytic.Uniqueness #align_import analysis.analytic.isolated_zeros from "leanprover-community/mathlib"@"a3209ddf94136d36e5e5c624b10b2a347cc9d090" open sco...
Mathlib/Analysis/Analytic/IsolatedZeros.lean
83
87
theorem has_fpower_series_iterate_dslope_fslope (n : β„•) (hp : HasFPowerSeriesAt f p zβ‚€) : HasFPowerSeriesAt ((swap dslope zβ‚€)^[n] f) (fslope^[n] p) zβ‚€ := by
induction' n with n ih generalizing f p Β· exact hp Β· simpa using ih (has_fpower_series_dslope_fslope hp)
[ " HasFPowerSeriesAt (dslope f zβ‚€) p.fslope zβ‚€", " βˆ€αΆ  (z : π•œ) in 𝓝 0, HasSum (fun n => z ^ n β€’ p.coeff (n + 1)) (dslope f zβ‚€ (zβ‚€ + z))", " HasSum (fun n => x ^ n β€’ p.coeff (n + 1)) (dslope f zβ‚€ (zβ‚€ + x))", " dslope f zβ‚€ (zβ‚€ + x) = x ^ 0 β€’ p.coeff (0 + 1)", " βˆ€ (b' : β„•), b' β‰  0 β†’ x ^ b' β€’ p.coeff (b' + 1) =...
[ " HasFPowerSeriesAt (dslope f zβ‚€) p.fslope zβ‚€", " βˆ€αΆ  (z : π•œ) in 𝓝 0, HasSum (fun n => z ^ n β€’ p.coeff (n + 1)) (dslope f zβ‚€ (zβ‚€ + z))", " HasSum (fun n => x ^ n β€’ p.coeff (n + 1)) (dslope f zβ‚€ (zβ‚€ + x))", " dslope f zβ‚€ (zβ‚€ + x) = x ^ 0 β€’ p.coeff (0 + 1)", " βˆ€ (b' : β„•), b' β‰  0 β†’ x ^ b' β€’ p.coeff (b' + 1) =...
import Mathlib.Probability.Kernel.Composition #align_import probability.kernel.invariance from "leanprover-community/mathlib"@"3b92d54a05ee592aa2c6181a4e76b1bb7cc45d0b" open MeasureTheory open scoped MeasureTheory ENNReal ProbabilityTheory namespace ProbabilityTheory variable {Ξ± Ξ² Ξ³ : Type*} {mΞ± : MeasurableSp...
Mathlib/Probability/Kernel/Invariance.lean
83
84
theorem Invariant.comp_const (hΞΊ : Invariant ΞΊ ΞΌ) : ΞΊ βˆ˜β‚– const Ξ± ΞΌ = const Ξ± ΞΌ := by
rw [← const_bind_eq_comp_const ΞΊ ΞΌ, hΞΊ.def]
[ " (ΞΌ + Ξ½).bind ⇑κ = ΞΌ.bind ⇑κ + Ξ½.bind ⇑κ", " ((ΞΌ + Ξ½).bind ⇑κ) s = (ΞΌ.bind ⇑κ + Ξ½.bind ⇑κ) s", " (r β€’ ΞΌ).bind ⇑κ = r β€’ ΞΌ.bind ⇑κ", " ((r β€’ ΞΌ).bind ⇑κ) s = (r β€’ ΞΌ.bind ⇑κ) s", " const Ξ± (ΞΌ.bind ⇑κ) = ΞΊ βˆ˜β‚– const Ξ± ΞΌ", " ((const Ξ± (ΞΌ.bind ⇑κ)) a) s = ((ΞΊ βˆ˜β‚– const Ξ± ΞΌ) a) s", " (ΞΊ βˆ˜β‚– const Ξ± ΞΌ) a = ΞΌ.bind ...
[ " (ΞΌ + Ξ½).bind ⇑κ = ΞΌ.bind ⇑κ + Ξ½.bind ⇑κ", " ((ΞΌ + Ξ½).bind ⇑κ) s = (ΞΌ.bind ⇑κ + Ξ½.bind ⇑κ) s", " (r β€’ ΞΌ).bind ⇑κ = r β€’ ΞΌ.bind ⇑κ", " ((r β€’ ΞΌ).bind ⇑κ) s = (r β€’ ΞΌ.bind ⇑κ) s", " const Ξ± (ΞΌ.bind ⇑κ) = ΞΊ βˆ˜β‚– const Ξ± ΞΌ", " ((const Ξ± (ΞΌ.bind ⇑κ)) a) s = ((ΞΊ βˆ˜β‚– const Ξ± ΞΌ) a) s", " (ΞΊ βˆ˜β‚– const Ξ± ΞΌ) a = ΞΌ.bind ...
import Mathlib.Data.Nat.Choose.Basic import Mathlib.Data.Sym.Sym2 namespace List variable {Ξ± : Type*} section Sym protected def sym : (n : β„•) β†’ List Ξ± β†’ List (Sym Ξ± n) | 0, _ => [.nil] | _, [] => [] | n + 1, x :: xs => ((x :: xs).sym n |>.map fun p => x ::β‚› p) ++ xs.sym (n + 1) variable {xs ys : List Ξ±} ...
Mathlib/Data/List/Sym.lean
165
169
theorem sym_one_eq : xs.sym 1 = xs.map (Β· ::β‚› .nil) := by
induction xs with | nil => simp only [List.sym, Nat.succ_eq_add_one, Nat.reduceAdd, map_nil] | cons x xs ih => rw [map_cons, ← ih, List.sym, List.sym, map_singleton, singleton_append]
[ " List.sym 1 xs = map (fun x => x ::β‚› Sym.nil) xs", " List.sym 1 [] = map (fun x => x ::β‚› Sym.nil) []", " List.sym 1 (x :: xs) = map (fun x => x ::β‚› Sym.nil) (x :: xs)" ]
[]
import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.LinearAlgebra.StdBasis import Mathlib.RingTheory.AlgebraTower import Mathlib.Algebra.Algebra.Subalgebra.Tower #align_import linear_algebra.matrix.to_lin from "leanprover-community/mathlib"@"0e2aab2b0d521f060f62a14d2cf2e2c54e8491d6" ...
Mathlib/LinearAlgebra/Matrix/ToLin.lean
112
123
theorem Matrix.vecMul_injective_iff {R : Type*} [CommRing R] {M : Matrix m n R} : Function.Injective M.vecMul ↔ LinearIndependent R (fun i ↦ M i) := by
rw [← coe_vecMulLinear] simp only [← LinearMap.ker_eq_bot, Fintype.linearIndependent_iff, Submodule.eq_bot_iff, LinearMap.mem_ker, vecMulLinear_apply] refine ⟨fun h c h0 ↦ congr_fun <| h c ?_, fun h c h0 ↦ funext <| h c ?_⟩ Β· rw [← h0] ext i simp [vecMul, dotProduct] Β· rw [← h0] ext j sim...
[ " ((LinearMap.stdBasis R (fun x => R) i) 1 α΅₯* M) j = M i j", " βˆ‘ i' : m, (if i = i' then 1 else 0) * M i' j = M i j", " βˆ‘ x : m, (LinearMap.stdBasis R (fun x => R) i) 1 x * M x j = M i j", " (LinearMap.stdBasis R (fun x => R) i) 1 x✝ = if i = x✝ then 1 else 0", " (LinearMap.stdBasis R (fun x => R) i) 1 x✝ =...
[ " ((LinearMap.stdBasis R (fun x => R) i) 1 α΅₯* M) j = M i j", " βˆ‘ i' : m, (if i = i' then 1 else 0) * M i' j = M i j", " βˆ‘ x : m, (LinearMap.stdBasis R (fun x => R) i) 1 x * M x j = M i j", " (LinearMap.stdBasis R (fun x => R) i) 1 x✝ = if i = x✝ then 1 else 0", " (LinearMap.stdBasis R (fun x => R) i) 1 x✝ =...
import Mathlib.Data.Set.Subsingleton import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.Group.Nat import Mathlib.Data.Set.Basic #align_import data.set.equitable from "leanprover-community/mathlib"@"8631e2d5ea77f6c13054d9151d82b83069680cb1" variable {Ξ± Ξ² : Type*} namespace Set def Equ...
Mathlib/Data/Set/Equitable.lean
42
54
theorem equitableOn_iff_exists_le_le_add_one {s : Set Ξ±} {f : Ξ± β†’ β„•} : s.EquitableOn f ↔ βˆƒ b, βˆ€ a ∈ s, b ≀ f a ∧ f a ≀ b + 1 := by
refine ⟨?_, fun ⟨b, hb⟩ x y hx hy => (hb x hx).2.trans (add_le_add_right (hb y hy).1 _)⟩ obtain rfl | ⟨x, hx⟩ := s.eq_empty_or_nonempty Β· simp intro hs by_cases h : βˆ€ y ∈ s, f x ≀ f y Β· exact ⟨f x, fun y hy => ⟨h _ hy, hs hy hx⟩⟩ push_neg at h obtain ⟨w, hw, hwx⟩ := h refine ⟨f w, fun y hy => ⟨Nat.le...
[ " s.EquitableOn f ↔ βˆƒ b, βˆ€ a ∈ s, b ≀ f a ∧ f a ≀ b + 1", " s.EquitableOn f β†’ βˆƒ b, βˆ€ a ∈ s, b ≀ f a ∧ f a ≀ b + 1", " βˆ….EquitableOn f β†’ βˆƒ b, βˆ€ a ∈ βˆ…, b ≀ f a ∧ f a ≀ b + 1", " βˆƒ b, βˆ€ a ∈ s, b ≀ f a ∧ f a ≀ b + 1", " (f w).succ ≀ (f y).succ", " f x ≀ (f y).succ" ]
[]
import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Matrix.RowCol import Mathlib.GroupTheory.GroupAction.Ring import Mathlib.GroupTheory.Perm.Fin import Mathlib.LinearAlgebra.Alternating.Basic #align_import linear_algebra.matrix.determinant from "leanprover-community/mathlib"@"c30...
Mathlib/LinearAlgebra/Matrix/Determinant/Basic.lean
68
69
theorem det_apply' (M : Matrix n n R) : M.det = βˆ‘ Οƒ : Perm n, Ξ΅ Οƒ * ∏ i, M (Οƒ i) i := by
simp [det_apply, Units.smul_def]
[ " M.det = βˆ‘ Οƒ : Perm n, ↑↑(sign Οƒ) * ∏ i : n, M (Οƒ i) i" ]
[]
import Mathlib.Analysis.Analytic.Basic import Mathlib.Analysis.Analytic.CPolynomial import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.ContDiff.Defs import Mathlib.Analysis.Calculus.FDeriv.Add #align_import analysis.calculus.fderiv_analytic from "leanprover-community/mathlib"@"3bce8d800a6f2...
Mathlib/Analysis/Calculus/FDeriv/Analytic.lean
449
458
theorem derivSeries_apply_diag (n : β„•) (x : E) : derivSeries p n (fun _ ↦ x) x = (n + 1) β€’ p (n + 1) fun _ ↦ x := by
simp only [derivSeries, compFormalMultilinearSeries_apply, changeOriginSeries, compContinuousMultilinearMap_coe, ContinuousLinearEquiv.coe_coe, LinearIsometryEquiv.coe_coe, Function.comp_apply, ContinuousMultilinearMap.sum_apply, map_sum, coe_sum', Finset.sum_apply, continuousMultilinearCurryFin1_apply, ...
[ " ((p.derivSeries n) fun x_1 => x) x = (n + 1) β€’ (p (n + 1)) fun x_1 => x", " βˆ‘ x_1 : { s // s.card = n }, ((p.changeOriginSeriesTerm 1 n ↑x_1 β‹―) fun x_2 => x) (Fin.snoc ![] x) =\n (n + 1) β€’ (p (n + 1)) fun x_1 => x", " ((p.changeOriginSeriesTerm 1 n ↑x✝ β‹―) fun x_1 => x) (Fin.snoc ![] x) = (p (n + 1)) fun x_...
[]
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Mul import Mathlib.Analysis.Calculus.FDeriv.Add #align_import analysis.calculus.deriv.mul from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w noncomputable section open scoped Classical...
Mathlib/Analysis/Calculus/Deriv/Mul.lean
454
459
theorem HasDerivWithinAt.clm_comp (hc : HasDerivWithinAt c c' s x) (hd : HasDerivWithinAt d d' s x) : HasDerivWithinAt (fun y => (c y).comp (d y)) (c'.comp (d x) + (c x).comp d') s x := by
have := (hc.hasFDerivWithinAt.clm_comp hd.hasFDerivWithinAt).hasDerivWithinAt rwa [add_apply, comp_apply, comp_apply, smulRight_apply, smulRight_apply, one_apply, one_smul, one_smul, add_comm] at this
[ " HasStrictDerivAt (fun y => (c y).comp (d y)) (c'.comp (d x) + (c x).comp d') x", " HasDerivWithinAt (fun y => (c y).comp (d y)) (c'.comp (d x) + (c x).comp d') s x" ]
[ " HasStrictDerivAt (fun y => (c y).comp (d y)) (c'.comp (d x) + (c x).comp d') x" ]
import Batteries.Data.Array.Lemmas namespace ByteArray @[ext] theorem ext : {a b : ByteArray} β†’ a.data = b.data β†’ a = b | ⟨_⟩, ⟨_⟩, rfl => rfl theorem getElem_eq_data_getElem (a : ByteArray) (h : i < a.size) : a[i] = a.data[i] := rfl @[simp] theorem uset_eq_set (a : ByteArray) {i : USize} (h : i.toNat < a.size...
.lake/packages/batteries/Batteries/Data/ByteArray.lean
102
105
theorem get_extract_aux {a : ByteArray} {start stop} (h : i < (a.extract start stop).size) : start + i < a.size := by
apply Nat.add_lt_of_lt_sub'; apply Nat.lt_of_lt_of_le h rw [size_extract, ← Nat.sub_min_sub_right]; exact Nat.min_le_right ..
[ " ↑i < (a.set i v).size", " (a ++ b).data = a.data ++ b.data", " (a.append b).data = a.data ++ b.data", " a.data ++ b.data ++ a.data.extract (a.data.size + b.data.size) a.data.size = a.data ++ b.data", " (a ++ b).size = a.size + b.size", " (a.data ++ b.data).size = a.data.size + b.data.size", " (a ++ b)...
[ " ↑i < (a.set i v).size", " (a ++ b).data = a.data ++ b.data", " (a.append b).data = a.data ++ b.data", " a.data ++ b.data ++ a.data.extract (a.data.size + b.data.size) a.data.size = a.data ++ b.data", " (a ++ b).size = a.size + b.size", " (a.data ++ b.data).size = a.data.size + b.data.size", " (a ++ b)...
import Mathlib.Analysis.Normed.Order.Lattice import Mathlib.MeasureTheory.Function.LpSpace #align_import measure_theory.function.lp_order from "leanprover-community/mathlib"@"5dc275ec639221ca4d5f56938eb966f6ad9bc89f" set_option linter.uppercaseLean3 false open TopologicalSpace MeasureTheory open scoped ENNReal ...
Mathlib/MeasureTheory/Function/LpOrder.lean
41
42
theorem coeFn_le (f g : Lp E p ΞΌ) : f ≀ᡐ[ΞΌ] g ↔ f ≀ g := by
rw [← Subtype.coe_le_coe, ← AEEqFun.coeFn_le]
[ " ↑↑f ≀ᢠ[ae ΞΌ] ↑↑g ↔ f ≀ g" ]
[]
import Mathlib.Data.List.Defs import Mathlib.Data.Option.Basic import Mathlib.Data.Nat.Defs import Mathlib.Init.Data.List.Basic import Mathlib.Util.AssertExists -- Make sure we haven't imported `Data.Nat.Order.Basic` assert_not_exists OrderedSub namespace List universe u v variable {Ξ± : Type u} {Ξ² : Type v} (l :...
Mathlib/Data/List/GetD.lean
89
99
theorem getD_append_right (l l' : List Ξ±) (d : Ξ±) (n : β„•) (h : l.length ≀ n) : (l ++ l').getD n d = l'.getD (n - l.length) d := by
cases Nat.lt_or_ge n (l ++ l').length with | inl h' => rw [getD_eq_get (l ++ l') d h', get_append_right, getD_eq_get] Β· rw [length_append] at h' exact Nat.sub_lt_left_of_lt_add h h' Β· exact Nat.not_lt_of_le h | inr h' => rw [getD_eq_default _ _ h', getD_eq_default] rwa [Nat.le_sub_iff_a...
[ " l.getD n d = l.get ⟨n, hn⟩", " [].getD n d = [].get ⟨n, hn⟩", " (head :: tail).getD n d = (head :: tail).get ⟨n, hn⟩", " (head :: tail).getD 0 d = (head :: tail).get ⟨0, hn⟩", " (head :: tail).getD (n✝ + 1) d = (head :: tail).get ⟨n✝ + 1, hn⟩", " (map f l).getD n (f d) = f (l.getD n d)", " (map f [])....
[ " l.getD n d = l.get ⟨n, hn⟩", " [].getD n d = [].get ⟨n, hn⟩", " (head :: tail).getD n d = (head :: tail).get ⟨n, hn⟩", " (head :: tail).getD 0 d = (head :: tail).get ⟨0, hn⟩", " (head :: tail).getD (n✝ + 1) d = (head :: tail).get ⟨n✝ + 1, hn⟩", " (map f l).getD n (f d) = f (l.getD n d)", " (map f [])....
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.Deriv.Slope import Mathlib.Analysis.NormedSpace.FiniteDimension import Mathlib.MeasureTheory.Constructions.BorelSpace.ContinuousLinearMap import Mathlib.MeasureTheory.Function.StronglyMeasurable.Basic #align_import analysis.calculus.fderiv_...
Mathlib/Analysis/Calculus/FDeriv/Measurable.lean
513
538
theorem mem_A_of_differentiable {Ξ΅ : ℝ} (hΞ΅ : 0 < Ξ΅) {x : ℝ} (hx : DifferentiableWithinAt ℝ f (Ici x) x) : βˆƒ R > 0, βˆ€ r ∈ Ioo (0 : ℝ) R, x ∈ A f (derivWithin f (Ici x) x) r Ξ΅ := by
have := hx.hasDerivWithinAt simp_rw [hasDerivWithinAt_iff_isLittleO, isLittleO_iff] at this rcases mem_nhdsWithin_Ici_iff_exists_Ico_subset.1 (this (half_pos hΡ)) with ⟨m, xm, hm⟩ refine ⟨m - x, by linarith [show x < m from xm], fun r hr => ?_⟩ have : r ∈ Ioc (r / 2) r := ⟨half_lt_self hr.1, le_rfl⟩ refine...
[ " A f L r Ξ΅ ∈ 𝓝[>] x", " βˆƒ u ∈ Ioi x, Ioo x u βŠ† A f L r Ξ΅", " x + r' - s ∈ Ioi x", " x < x + r' - s", " βˆ€ y ∈ Icc x' (x' + s), βˆ€ z ∈ Icc x' (x' + s), β€–f z - f y - (z - y) β€’ Lβ€– ≀ Ξ΅ * r", " Icc x' (x' + s) βŠ† Icc x (x + r')", " x' + s ≀ x + r'", " β€–f z - f y - (z - y) β€’ Lβ€– ≀ Ξ΅ * r", " B f K r s Ξ΅ ∈ 𝓝...
[ " A f L r Ξ΅ ∈ 𝓝[>] x", " βˆƒ u ∈ Ioi x, Ioo x u βŠ† A f L r Ξ΅", " x + r' - s ∈ Ioi x", " x < x + r' - s", " βˆ€ y ∈ Icc x' (x' + s), βˆ€ z ∈ Icc x' (x' + s), β€–f z - f y - (z - y) β€’ Lβ€– ≀ Ξ΅ * r", " Icc x' (x' + s) βŠ† Icc x (x + r')", " x' + s ≀ x + r'", " β€–f z - f y - (z - y) β€’ Lβ€– ≀ Ξ΅ * r", " B f K r s Ξ΅ ∈ 𝓝...
import Mathlib.Topology.MetricSpace.Isometry #align_import topology.metric_space.gluing from "leanprover-community/mathlib"@"e1a7bdeb4fd826b7e71d130d34988f0a2d26a177" noncomputable section universe u v w open Function Set Uniformity Topology namespace Metric namespace Sigma variable {ΞΉ : Type*} {E : ΞΉ β†’ Type...
Mathlib/Topology/MetricSpace/Gluing.lean
358
361
theorem fst_eq_of_dist_lt_one (x y : Ξ£i, E i) (h : dist x y < 1) : x.1 = y.1 := by
cases x; cases y contrapose! h apply one_le_dist_of_ne h
[ " E j = E i", " dist ⟨i, x⟩ ⟨i, y⟩ = dist x y", " 1 ≀ dist ⟨i, x⟩ ⟨j, y⟩", " 1 ≀ dist x β‹―.some + 1 + dist β‹―.some y", " x.fst = y.fst", " ⟨fst✝, snd✝⟩.fst = y.fst", " ⟨fst✝¹, snd✝¹⟩.fst = ⟨fst✝, snd✝⟩.fst", " 1 ≀ dist ⟨fst✝¹, snd✝¹⟩ ⟨fst✝, snd✝⟩" ]
[ " E j = E i", " dist ⟨i, x⟩ ⟨i, y⟩ = dist x y", " 1 ≀ dist ⟨i, x⟩ ⟨j, y⟩", " 1 ≀ dist x β‹―.some + 1 + dist β‹―.some y" ]
import Mathlib.Topology.Order.IsLUB open Set Filter TopologicalSpace Topology Function open OrderDual (toDual ofDual) variable {Ξ± Ξ² Ξ³ : Type*} section DenselyOrdered variable [TopologicalSpace Ξ±] [LinearOrder Ξ±] [OrderTopology Ξ±] [DenselyOrdered Ξ±] {a b : Ξ±} {s : Set Ξ±} theorem closure_Ioi' {a : Ξ±} (h : (Io...
Mathlib/Topology/Order/DenselyOrdered.lean
101
102
theorem interior_Icc [NoMinOrder Ξ±] [NoMaxOrder Ξ±] {a b : Ξ±} : interior (Icc a b) = Ioo a b := by
rw [← Ici_inter_Iic, interior_inter, interior_Ici, interior_Iic, Ioi_inter_Iio]
[ " closure (Ioi a) = Ici a", " closure (Ioi a) βŠ† Ici a", " Ici a βŠ† closure (Ioi a)", " a ∈ closure (Ioi a)", " closure (Ioo a b) = Icc a b", " closure (Ioo a b) βŠ† Icc a b", " Icc a b βŠ† closure (Ioo a b)", " {a, b} βŠ† closure (Ioo a b)", " a ∈ closure (Ioo a b) ∧ b ∈ closure (Ioo a b)", " βˆ… βŠ† closure...
[ " closure (Ioi a) = Ici a", " closure (Ioi a) βŠ† Ici a", " Ici a βŠ† closure (Ioi a)", " a ∈ closure (Ioi a)", " closure (Ioo a b) = Icc a b", " closure (Ioo a b) βŠ† Icc a b", " Icc a b βŠ† closure (Ioo a b)", " {a, b} βŠ† closure (Ioo a b)", " a ∈ closure (Ioo a b) ∧ b ∈ closure (Ioo a b)", " βˆ… βŠ† closure...
import Mathlib.Topology.Order #align_import topology.maps from "leanprover-community/mathlib"@"d91e7f7a7f1c7e9f0e18fdb6bde4f652004c735d" open Set Filter Function open TopologicalSpace Topology Filter variable {X : Type*} {Y : Type*} {Z : Type*} {ΞΉ : Type*} {f : X β†’ Y} {g : Y β†’ Z} section Inducing variable [To...
Mathlib/Topology/Maps.lean
146
149
theorem closure_eq_preimage_closure_image (hf : Inducing f) (s : Set X) : closure s = f ⁻¹' closure (f '' s) := by
ext x rw [Set.mem_preimage, ← closure_induced, hf.induced]
[ " inst✝² = TopologicalSpace.induced (g ∘ f) inst✝", " Inducing (g ∘ f) ↔ Inducing f", " Inducing f", " inst✝² ≀ induced f inst✝¹", " induced f inst✝¹ ≀ inst✝²", " induced f inst✝¹ ≀ induced f (induced g inst✝)", " 𝓝˒ s = comap f (𝓝˒ (f '' s))", " MapClusterPt (f x) l f ↔ ClusterPt x l", " (𝓝 (f x...
[ " inst✝² = TopologicalSpace.induced (g ∘ f) inst✝", " Inducing (g ∘ f) ↔ Inducing f", " Inducing f", " inst✝² ≀ induced f inst✝¹", " induced f inst✝¹ ≀ inst✝²", " induced f inst✝¹ ≀ induced f (induced g inst✝)", " 𝓝˒ s = comap f (𝓝˒ (f '' s))", " MapClusterPt (f x) l f ↔ ClusterPt x l", " (𝓝 (f x...
import Mathlib.RingTheory.TensorProduct.Basic import Mathlib.Algebra.Module.ULift #align_import ring_theory.is_tensor_product from "leanprover-community/mathlib"@"c4926d76bb9c5a4a62ed2f03d998081786132105" universe u v₁ vβ‚‚ v₃ vβ‚„ open TensorProduct section IsTensorProduct variable {R : Type*} [CommSemiring R] va...
Mathlib/RingTheory/IsTensorProduct.lean
109
112
theorem IsTensorProduct.map_eq (hf : IsTensorProduct f) (hg : IsTensorProduct g) (i₁ : M₁ β†’β‚—[R] N₁) (iβ‚‚ : Mβ‚‚ β†’β‚—[R] Nβ‚‚) (x₁ : M₁) (xβ‚‚ : Mβ‚‚) : hf.map hg i₁ iβ‚‚ (f x₁ xβ‚‚) = g (i₁ x₁) (iβ‚‚ xβ‚‚) := by
delta IsTensorProduct.map simp
[ " IsTensorProduct (mk R M N)", " Function.Bijective ⇑(lift (mk R M N))", " lift (mk R M N) = LinearMap.id", " βˆ€ (x : M) (y : N), (lift (mk R M N)) (x βŠ—β‚œ[R] y) = LinearMap.id (x βŠ—β‚œ[R] y)", " Function.Bijective ⇑LinearMap.id", " h.equiv.symm ((f x₁) xβ‚‚) = x₁ βŠ—β‚œ[R] xβ‚‚", " h.equiv (h.equiv.symm ((f x₁) xβ‚‚))...
[ " IsTensorProduct (mk R M N)", " Function.Bijective ⇑(lift (mk R M N))", " lift (mk R M N) = LinearMap.id", " βˆ€ (x : M) (y : N), (lift (mk R M N)) (x βŠ—β‚œ[R] y) = LinearMap.id (x βŠ—β‚œ[R] y)", " Function.Bijective ⇑LinearMap.id", " h.equiv.symm ((f x₁) xβ‚‚) = x₁ βŠ—β‚œ[R] xβ‚‚", " h.equiv (h.equiv.symm ((f x₁) xβ‚‚))...
import Mathlib.Data.ZMod.Basic import Mathlib.GroupTheory.Index import Mathlib.GroupTheory.GroupAction.ConjAct import Mathlib.GroupTheory.GroupAction.Quotient import Mathlib.GroupTheory.Perm.Cycle.Type import Mathlib.GroupTheory.SpecificGroups.Cyclic import Mathlib.Tactic.IntervalCases #align_import group_theory.p_gr...
Mathlib/GroupTheory/PGroup.lean
74
77
theorem of_injective {H : Type*} [Group H] (Ο• : H β†’* G) (hΟ• : Function.Injective Ο•) : IsPGroup p H := by
simp_rw [IsPGroup, ← hΟ•.eq_iff, Ο•.map_pow, Ο•.map_one] exact fun h => hG (Ο• h)
[ " g ^ p ^ k = 1", " g ^ p ^ n = 1", " card β†₯βŠ₯ = p ^ ?m.2806", " IsPGroup p G ↔ βˆƒ n, card G = p ^ n", " βˆƒ n, card G = p ^ n", " card G = p ^ (card G).factors.length", " βˆ€ q ∈ (card G).factors, q = p", " q = p", " IsPGroup p H", " βˆ€ (g : H), βˆƒ k, Ο• g ^ p ^ k = 1" ]
[ " g ^ p ^ k = 1", " g ^ p ^ n = 1", " card β†₯βŠ₯ = p ^ ?m.2806", " IsPGroup p G ↔ βˆƒ n, card G = p ^ n", " βˆƒ n, card G = p ^ n", " card G = p ^ (card G).factors.length", " βˆ€ q ∈ (card G).factors, q = p", " q = p" ]
import Mathlib.Analysis.SpecificLimits.Basic import Mathlib.Data.Rat.Denumerable import Mathlib.Data.Set.Pointwise.Interval import Mathlib.SetTheory.Cardinal.Continuum #align_import data.real.cardinality from "leanprover-community/mathlib"@"7e7aaccf9b0182576cabdde36cf1b5ad3585b70d" open Nat Set open Cardinal no...
Mathlib/Data/Real/Cardinality.lean
73
75
theorem cantorFunctionAux_nonneg (h : 0 ≀ c) : 0 ≀ cantorFunctionAux c f n := by
cases h' : f n <;> simp [h'] apply pow_nonneg h
[ " cantorFunctionAux c f n = c ^ n", " cantorFunctionAux c f n = 0", " 0 ≀ cantorFunctionAux c f n", " 0 ≀ c ^ n" ]
[ " cantorFunctionAux c f n = c ^ n", " cantorFunctionAux c f n = 0" ]
import Mathlib.Algebra.BigOperators.Intervals import Mathlib.Topology.Algebra.InfiniteSum.Order import Mathlib.Topology.Instances.Real import Mathlib.Topology.Instances.ENNReal #align_import topology.algebra.infinite_sum.real from "leanprover-community/mathlib"@"9a59dcb7a2d06bf55da57b9030169219980660cd" open Filte...
Mathlib/Topology/Algebra/InfiniteSum/Real.lean
73
75
theorem summable_iff_not_tendsto_nat_atTop_of_nonneg {f : β„• β†’ ℝ} (hf : βˆ€ n, 0 ≀ f n) : Summable f ↔ Β¬Tendsto (fun n : β„• => βˆ‘ i ∈ Finset.range n, f i) atTop atTop := by
rw [← not_iff_not, Classical.not_not, not_summable_iff_tendsto_nat_atTop_of_nonneg hf]
[ " CauchySeq f", " βˆ€ (n : β„•), edist (f n) (f n.succ) ≀ ↑(d n)", " Summable d", " dist (f n) a ≀ βˆ‘' (m : β„•), d (n + m)", " dist (f n) (f m) ≀ βˆ‘' (m : β„•), d (n + m)", " βˆ‘ i ∈ Ico n m, d i ≀ βˆ‘' (m : β„•), d (n + m)", " βˆ‘ k ∈ range (m - n), d (n + k) ≀ βˆ‘' (m : β„•), d (n + m)", " Summable fun k => d (n + k)", ...
[ " CauchySeq f", " βˆ€ (n : β„•), edist (f n) (f n.succ) ≀ ↑(d n)", " Summable d", " dist (f n) a ≀ βˆ‘' (m : β„•), d (n + m)", " dist (f n) (f m) ≀ βˆ‘' (m : β„•), d (n + m)", " βˆ‘ i ∈ Ico n m, d i ≀ βˆ‘' (m : β„•), d (n + m)", " βˆ‘ k ∈ range (m - n), d (n + k) ≀ βˆ‘' (m : β„•), d (n + m)", " Summable fun k => d (n + k)", ...
import Mathlib.Algebra.Order.Monoid.OrderDual import Mathlib.Tactic.Lift import Mathlib.Tactic.Monotonicity.Attr open Function variable {Ξ² G M : Type*} section Monoid variable [Monoid M] section Preorder variable [Preorder M] section Left variable [CovariantClass M M (Β· * Β·) (Β· ≀ Β·)] {x : M} @[to_additive (...
Mathlib/Algebra/Order/Monoid/Unbundled/Pow.lean
56
60
theorem pow_le_pow_right' {a : M} {n m : β„•} (ha : 1 ≀ a) (h : n ≀ m) : a ^ n ≀ a ^ m := let ⟨k, hk⟩ := Nat.le.dest h calc a ^ n ≀ a ^ n * a ^ k := le_mul_of_one_le_right' (one_le_pow_of_one_le' ha _) _ = a ^ m := by
rw [← hk, pow_add]
[ " a ^ 0 ≀ b ^ 0", " a ^ (k + 1) ≀ b ^ (k + 1)", " a ^ k * a ≀ b ^ k * b", " 1 ≀ a ^ 0", " 1 ≀ a ^ (k + 1)", " 1 ≀ a ^ k * a", " a ^ n * a ^ k = a ^ m" ]
[ " a ^ 0 ≀ b ^ 0", " a ^ (k + 1) ≀ b ^ (k + 1)", " a ^ k * a ≀ b ^ k * b", " 1 ≀ a ^ 0", " 1 ≀ a ^ (k + 1)", " 1 ≀ a ^ k * a" ]
import Mathlib.Algebra.MvPolynomial.Variables #align_import data.mv_polynomial.supported from "leanprover-community/mathlib"@"2f5b500a507264de86d666a5f87ddb976e2d8de4" universe u v w namespace MvPolynomial variable {Οƒ Ο„ : Type*} {R : Type u} {S : Type v} {r : R} {e : β„•} {n m : Οƒ} section CommSemiring variable...
Mathlib/Algebra/MvPolynomial/Supported.lean
59
62
theorem supportedEquivMvPolynomial_symm_C (s : Set Οƒ) (x : R) : (supportedEquivMvPolynomial s).symm (C x) = algebraMap R (supported R s) x := by
ext1 simp [supportedEquivMvPolynomial, MvPolynomial.algebraMap_eq]
[ " supported R s = (rename Subtype.val).range", " (aeval fun x => X ↑x).range = (aeval (X ∘ Subtype.val)).range", " (supportedEquivMvPolynomial s).symm (C x) = (algebraMap R β†₯(supported R s)) x", " ↑((supportedEquivMvPolynomial s).symm (C x)) = ↑((algebraMap R β†₯(supported R s)) x)" ]
[ " supported R s = (rename Subtype.val).range", " (aeval fun x => X ↑x).range = (aeval (X ∘ Subtype.val)).range" ]
import Mathlib.Data.Set.Subsingleton import Mathlib.Order.WithBot #align_import data.set.image from "leanprover-community/mathlib"@"001ffdc42920050657fd45bd2b8bfbec8eaaeb29" universe u v open Function Set namespace Set variable {Ξ± Ξ² Ξ³ : Type*} {ΞΉ ΞΉ' : Sort*} theorem powerset_insert (s : Set Ξ±) (a : Ξ±)...
Mathlib/Data/Set/Image.lean
693
695
theorem image_univ {f : Ξ± β†’ Ξ²} : f '' univ = range f := by
ext simp [image, range]
[ " 𝒫 insert a s = 𝒫 s βˆͺ insert a '' 𝒫 s", " t ∈ 𝒫 insert a s ↔ t ∈ 𝒫 s βˆͺ insert a '' 𝒫 s", " t βŠ† insert a s ↔ t βŠ† s ∨ βˆƒ x βŠ† s, insert a x = t", " t βŠ† insert a s β†’ t βŠ† s ∨ βˆƒ x βŠ† s, insert a x = t", " t βŠ† s ∨ βˆƒ x βŠ† s, insert a x = t", " βˆƒ x βŠ† s, insert a x = t", " t \\ {a} βŠ† s", " t βŠ† insert a s", ...
[ " 𝒫 insert a s = 𝒫 s βˆͺ insert a '' 𝒫 s", " t ∈ 𝒫 insert a s ↔ t ∈ 𝒫 s βˆͺ insert a '' 𝒫 s", " t βŠ† insert a s ↔ t βŠ† s ∨ βˆƒ x βŠ† s, insert a x = t", " t βŠ† insert a s β†’ t βŠ† s ∨ βˆƒ x βŠ† s, insert a x = t", " t βŠ† s ∨ βˆƒ x βŠ† s, insert a x = t", " βˆƒ x βŠ† s, insert a x = t", " t \\ {a} βŠ† s", " t βŠ† insert a s", ...
import Mathlib.Control.Functor.Multivariate import Mathlib.Data.PFunctor.Multivariate.Basic import Mathlib.Data.PFunctor.Multivariate.M import Mathlib.Data.QPF.Multivariate.Basic #align_import data.qpf.multivariate.constructions.cofix from "leanprover-community/mathlib"@"f694c7dead66f5d4c80f446c796a5aad14707f0e" ...
Mathlib/Data/QPF/Multivariate/Constructions/Cofix.lean
64
66
theorem corecF_eq {Ξ± : TypeVec n} {Ξ² : Type u} (g : Ξ² β†’ F (Ξ±.append1 Ξ²)) (x : Ξ²) : M.dest q.P (corecF g x) = appendFun id (corecF g) <$$> repr (g x) := by
rw [corecF, M.dest_corec]
[ " M.dest (P F) (corecF g x) = (TypeVec.id ::: corecF g) <$$> repr (g x)" ]
[]
import Mathlib.Data.Set.Pointwise.SMul #align_import algebra.add_torsor from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" class AddTorsor (G : outParam Type*) (P : Type*) [AddGroup G] extends AddAction G P, VSub G P where [nonempty : Nonempty P] vsub_vadd' : βˆ€ p₁ pβ‚‚ : P, (p₁ ...
Mathlib/Algebra/AddTorsor.lean
117
119
theorem vadd_vsub_assoc (g : G) (p₁ pβ‚‚ : P) : g +α΅₯ p₁ -α΅₯ pβ‚‚ = g + (p₁ -α΅₯ pβ‚‚) := by
apply vadd_right_cancel pβ‚‚ rw [vsub_vadd, add_vadd, vsub_vadd]
[ " g₁ = gβ‚‚", " g +α΅₯ p₁ -α΅₯ pβ‚‚ = g + (p₁ -α΅₯ pβ‚‚)", " g +α΅₯ p₁ -α΅₯ pβ‚‚ +α΅₯ pβ‚‚ = g + (p₁ -α΅₯ pβ‚‚) +α΅₯ pβ‚‚" ]
[ " g₁ = gβ‚‚" ]
import Mathlib.RingTheory.PowerSeries.Trunc import Mathlib.RingTheory.PowerSeries.Inverse import Mathlib.RingTheory.Derivation.Basic namespace PowerSeries open Polynomial Derivation Nat section CommutativeSemiring variable {R} [CommSemiring R] noncomputable def derivativeFun (f : R⟦X⟧) : R⟦X⟧ := mk fun n ↦ coef...
Mathlib/RingTheory/PowerSeries/Derivative.lean
77
85
theorem derivativeFun_mul (f g : R⟦X⟧) : derivativeFun (f * g) = f β€’ g.derivativeFun + g β€’ f.derivativeFun := by
ext n have h₁ : n < n + 1 := lt_succ_self n have hβ‚‚ : n < n + 1 + 1 := Nat.lt_add_right _ h₁ rw [coeff_derivativeFun, map_add, coeff_mul_eq_coeff_trunc_mul_trunc _ _ (lt_succ_self _), smul_eq_mul, smul_eq_mul, coeff_mul_eq_coeff_trunc_mul_truncβ‚‚ g f.derivativeFun hβ‚‚ h₁, coeff_mul_eq_coeff_trunc_mul_tru...
[ " (coeff R n) f.derivativeFun = (coeff R (n + 1)) f * (↑n + 1)", " (↑f).derivativeFun = ↑(derivative f)", " (coeff R n✝) (↑f).derivativeFun = (coeff R n✝) ↑(derivative f)", " (f + g).derivativeFun = f.derivativeFun + g.derivativeFun", " (coeff R n✝) (f + g).derivativeFun = (coeff R n✝) (f.derivativeFun + g....
[ " (coeff R n) f.derivativeFun = (coeff R (n + 1)) f * (↑n + 1)", " (↑f).derivativeFun = ↑(derivative f)", " (coeff R n✝) (↑f).derivativeFun = (coeff R n✝) ↑(derivative f)", " (f + g).derivativeFun = f.derivativeFun + g.derivativeFun", " (coeff R n✝) (f + g).derivativeFun = (coeff R n✝) (f.derivativeFun + g....
import Mathlib.Algebra.Group.Hom.Defs import Mathlib.Algebra.Group.Units #align_import algebra.hom.units from "leanprover-community/mathlib"@"a07d750983b94c530ab69a726862c2ab6802b38c" assert_not_exists MonoidWithZero assert_not_exists DenselyOrdered open Function universe u v w namespace Units variable {Ξ± : Ty...
Mathlib/Algebra/Group/Units/Hom.lean
198
199
theorem map [MonoidHomClass F M N] (f : F) {x : M} (h : IsUnit x) : IsUnit (f x) := by
rcases h with ⟨y, rfl⟩; exact (Units.map (f : M β†’* N) y).isUnit
[ " f ↑u * f u.inv = 1", " f u.inv * f ↑u = 1", " map (MonoidHom.id M) = MonoidHom.id MΛ£", " ↑((map (MonoidHom.id M)) x✝) = ↑((MonoidHom.id MΛ£) x✝)", " IsUnit (f x)", " IsUnit (f ↑y)" ]
[ " f ↑u * f u.inv = 1", " f u.inv * f ↑u = 1", " map (MonoidHom.id M) = MonoidHom.id MΛ£", " ↑((map (MonoidHom.id M)) x✝) = ↑((MonoidHom.id MΛ£) x✝)" ]
import Mathlib.Topology.GDelta import Mathlib.MeasureTheory.Group.Arithmetic import Mathlib.Topology.Instances.EReal import Mathlib.Analysis.Normed.Group.Basic #align_import measure_theory.constructions.borel_space.basic from "leanprover-community/mathlib"@"9f55d0d4363ae59948c33864cbc52e0b12e0e8ce" noncomputable ...
Mathlib/MeasureTheory/Constructions/BorelSpace/Basic.lean
63
69
theorem borel_eq_top_of_countable [TopologicalSpace α] [T1Space α] [Countable α] : borel α = ⊀ := by
refine top_le_iff.1 fun s _ => biUnion_of_singleton s β–Έ ?_ apply MeasurableSet.biUnion s.to_countable intro x _ apply MeasurableSet.of_compl apply GenerateMeasurable.basic exact isClosed_singleton.isOpen_compl
[ " borel Ξ± = ⊀", " MeasurableSet (⋃ x ∈ s, {x})", " βˆ€ b ∈ s, MeasurableSet {b}", " MeasurableSet {x}", " MeasurableSet {x}ᢜ", " {x}ᢜ ∈ {s | IsOpen s}" ]
[]
import Mathlib.Algebra.Group.Basic import Mathlib.Algebra.Group.Pi.Basic import Mathlib.Order.Fin import Mathlib.Order.PiLex import Mathlib.Order.Interval.Set.Basic #align_import data.fin.tuple.basic from "leanprover-community/mathlib"@"ef997baa41b5c428be3fb50089a7139bf4ee886b" assert_not_exists MonoidWithZero un...
Mathlib/Data/Fin/Tuple/Basic.lean
92
104
theorem cons_update : cons x (update p i y) = update (cons x p) i.succ y := by
ext j by_cases h : j = 0 Β· rw [h] simp [Ne.symm (succ_ne_zero i)] Β· let j' := pred j h have : j'.succ = j := succ_pred j h rw [← this, cons_succ] by_cases h' : j' = i Β· rw [h'] simp Β· have : j'.succ β‰  i.succ := by rwa [Ne, succ_inj] rw [update_noteq h', update_noteq this, co...
[ " Unique ((i : Fin 0) β†’ Ξ± i)", " tail (cons x p) = p", " cons x p i.succ = p i", " cons x p 0 = x", " cons x p 1 = p 0", " cons x p 1 = cons x p (succ 0)", " cons x (update p i y) = update (cons x p) i.succ y", " cons x (update p i y) j = update (cons x p) i.succ y j", " cons x (update p i y) 0 = up...
[ " Unique ((i : Fin 0) β†’ Ξ± i)", " tail (cons x p) = p", " cons x p i.succ = p i", " cons x p 0 = x", " cons x p 1 = p 0", " cons x p 1 = cons x p (succ 0)" ]
import Mathlib.MeasureTheory.Integral.IntervalIntegral import Mathlib.Analysis.Calculus.Deriv.ZPow import Mathlib.Analysis.NormedSpace.Pointwise import Mathlib.Analysis.SpecialFunctions.NonIntegrable import Mathlib.Analysis.Analytic.Basic #align_import measure_theory.integral.circle_integral from "leanprover-communit...
Mathlib/MeasureTheory/Integral/CircleIntegral.lean
114
114
theorem abs_circleMap_zero (R : ℝ) (ΞΈ : ℝ) : abs (circleMap 0 R ΞΈ) = |R| := by
simp [circleMap]
[ " circleMap c R (ΞΈ + 2 * Ο€) = circleMap c R ΞΈ", " circleMap c R ΞΈ - c = circleMap 0 R ΞΈ", " Complex.abs (circleMap 0 R ΞΈ) = |R|" ]
[ " circleMap c R (ΞΈ + 2 * Ο€) = circleMap c R ΞΈ", " circleMap c R ΞΈ - c = circleMap 0 R ΞΈ" ]
import Mathlib.Topology.MetricSpace.Basic #align_import topology.metric_space.infsep from "leanprover-community/mathlib"@"5316314b553dcf8c6716541851517c1a9715e22b" variable {Ξ± Ξ² : Type*} namespace Set section Einfsep open ENNReal open Function noncomputable def einfsep [EDist Ξ±] (s : Set Ξ±) : ℝβ‰₯0∞ := β¨… (x...
Mathlib/Topology/MetricSpace/Infsep.lean
84
86
theorem nontrivial_of_einfsep_lt_top (hs : s.einfsep < ∞) : s.Nontrivial := by
rcases einfsep_lt_top.1 hs with ⟨_, hx, _, hy, hxy, _⟩ exact ⟨_, hx, _, hy, hxy⟩
[ " d ≀ s.einfsep ↔ βˆ€ x ∈ s, βˆ€ y ∈ s, x β‰  y β†’ d ≀ edist x y", " s.einfsep = 0 ↔ βˆ€ C > 0, βˆƒ x ∈ s, βˆƒ y ∈ s, x β‰  y ∧ edist x y < C", " 0 < s.einfsep ↔ βˆƒ C > 0, βˆ€ x ∈ s, βˆ€ y ∈ s, x β‰  y β†’ C ≀ edist x y", " (Β¬βˆ€ C > 0, βˆƒ x ∈ s, βˆƒ y ∈ s, x β‰  y ∧ edist x y < C) ↔ βˆƒ C > 0, βˆ€ x ∈ s, βˆ€ y ∈ s, x β‰  y β†’ C ≀ edist x y", " s...
[ " d ≀ s.einfsep ↔ βˆ€ x ∈ s, βˆ€ y ∈ s, x β‰  y β†’ d ≀ edist x y", " s.einfsep = 0 ↔ βˆ€ C > 0, βˆƒ x ∈ s, βˆƒ y ∈ s, x β‰  y ∧ edist x y < C", " 0 < s.einfsep ↔ βˆƒ C > 0, βˆ€ x ∈ s, βˆ€ y ∈ s, x β‰  y β†’ C ≀ edist x y", " (Β¬βˆ€ C > 0, βˆƒ x ∈ s, βˆƒ y ∈ s, x β‰  y ∧ edist x y < C) ↔ βˆƒ C > 0, βˆ€ x ∈ s, βˆ€ y ∈ s, x β‰  y β†’ C ≀ edist x y", " s...
import Mathlib.RingTheory.Localization.FractionRing import Mathlib.RingTheory.Localization.Ideal import Mathlib.RingTheory.Noetherian #align_import ring_theory.localization.submodule from "leanprover-community/mathlib"@"1ebb20602a8caef435ce47f6373e1aa40851a177" variable {R : Type*} [CommRing R] (M : Submonoid R) ...
Mathlib/RingTheory/Localization/Submodule.lean
94
96
theorem isNoetherianRing (h : IsNoetherianRing R) : IsNoetherianRing S := by
rw [isNoetherianRing_iff, isNoetherian_iff_wellFounded] at h ⊒ exact OrderEmbedding.wellFounded (IsLocalization.orderEmbedding M S).dual h
[ " coeSubmodule S βŠ₯ = βŠ₯", " coeSubmodule S ⊀ = 1", " coeSubmodule S (Ideal.span s) = Submodule.span R (⇑(algebraMap R S) '' s)", " Submodule.span R (⇑(Algebra.linearMap R S) '' s) = Submodule.span R (⇑(algebraMap R S) '' s)", " coeSubmodule S (Ideal.span {x}) = Submodule.span R {(algebraMap R S) x}", " IsN...
[ " coeSubmodule S βŠ₯ = βŠ₯", " coeSubmodule S ⊀ = 1", " coeSubmodule S (Ideal.span s) = Submodule.span R (⇑(algebraMap R S) '' s)", " Submodule.span R (⇑(Algebra.linearMap R S) '' s) = Submodule.span R (⇑(algebraMap R S) '' s)", " coeSubmodule S (Ideal.span {x}) = Submodule.span R {(algebraMap R S) x}" ]
import Mathlib.Analysis.Calculus.Deriv.ZPow import Mathlib.Analysis.SpecialFunctions.Sqrt import Mathlib.Analysis.SpecialFunctions.Log.Deriv import Mathlib.Analysis.SpecialFunctions.Trigonometric.Deriv import Mathlib.Analysis.Convex.Deriv #align_import analysis.convex.specific_functions.deriv from "leanprover-communi...
Mathlib/Analysis/Convex/SpecificFunctions/Deriv.lean
40
44
theorem strictConvexOn_pow {n : β„•} (hn : 2 ≀ n) : StrictConvexOn ℝ (Ici 0) fun x : ℝ => x ^ n := by
apply StrictMonoOn.strictConvexOn_of_deriv (convex_Ici _) (continuousOn_pow _) rw [deriv_pow', interior_Ici] exact fun x (hx : 0 < x) y _ hxy => mul_lt_mul_of_pos_left (pow_lt_pow_left hxy hx.le <| Nat.sub_ne_zero_of_lt hn) (by positivity)
[ " StrictConvexOn ℝ (Ici 0) fun x => x ^ n", " StrictMonoOn (deriv fun x => x ^ n) (interior (Ici 0))", " StrictMonoOn (fun x => ↑n * x ^ (n - 1)) (Ioi 0)", " 0 < ↑n" ]
[]
import Mathlib.Analysis.SpecialFunctions.Complex.Arg import Mathlib.Analysis.SpecialFunctions.Log.Basic #align_import analysis.special_functions.complex.log from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" noncomputable section namespace Complex open Set Filter Bornology open scop...
Mathlib/Analysis/SpecialFunctions/Complex/Log.lean
65
67
theorem exp_inj_of_neg_pi_lt_of_le_pi {x y : β„‚} (hx₁ : -Ο€ < x.im) (hxβ‚‚ : x.im ≀ Ο€) (hy₁ : -Ο€ < y.im) (hyβ‚‚ : y.im ≀ Ο€) (hxy : exp x = exp y) : x = y := by
rw [← log_exp hx₁ hxβ‚‚, ← log_exp hy₁ hyβ‚‚, hxy]
[ " x.log.re = (abs x).log", " x.log.im = x.arg", " -Ο€ < x.log.im", " x.log.im ≀ Ο€", " cexp x.log = x", " x ∈ Set.range cexp β†’ x ∈ {0}ᢜ", " cexp x ∈ {0}ᢜ", " (cexp x).log = x", " x = y" ]
[ " x.log.re = (abs x).log", " x.log.im = x.arg", " -Ο€ < x.log.im", " x.log.im ≀ Ο€", " cexp x.log = x", " x ∈ Set.range cexp β†’ x ∈ {0}ᢜ", " cexp x ∈ {0}ᢜ", " (cexp x).log = x" ]
import Mathlib.Data.Matrix.Basis import Mathlib.Data.Matrix.DMatrix import Mathlib.LinearAlgebra.Matrix.Determinant.Basic import Mathlib.LinearAlgebra.Matrix.Reindex import Mathlib.Tactic.FieldSimp #align_import linear_algebra.matrix.transvection from "leanprover-community/mathlib"@"0e2aab2b0d521f060f62a14d2cf2e2c54e...
Mathlib/LinearAlgebra/Matrix/Transvection.lean
94
108
theorem updateRow_eq_transvection [Finite n] (c : R) : updateRow (1 : Matrix n n R) i ((1 : Matrix n n R) i + c β€’ (1 : Matrix n n R) j) = transvection i j c := by
cases nonempty_fintype n ext a b by_cases ha : i = a Β· by_cases hb : j = b Β· simp only [updateRow_self, transvection, ha, hb, Pi.add_apply, StdBasisMatrix.apply_same, one_apply_eq, Pi.smul_apply, mul_one, Algebra.id.smul_eq_mul, add_apply] Β· simp only [updateRow_self, transvection, ha, hb, StdB...
[ " transvection i j 0 = 1", " updateRow 1 i (1 i + c β€’ 1 j) = transvection i j c", " updateRow 1 i (1 i + c β€’ 1 j) a b = transvection i j c a b" ]
[ " transvection i j 0 = 1" ]
import Mathlib.Data.Set.Finite import Mathlib.GroupTheory.GroupAction.FixedPoints import Mathlib.GroupTheory.Perm.Support open Equiv List MulAction Pointwise Set Subgroup variable {G Ξ± : Type*} [Group G] [MulAction G Ξ±] [DecidableEq Ξ±] theorem finite_compl_fixedBy_closure_iff {S : Set G} : (βˆ€ g ∈ closure S, ...
Mathlib/GroupTheory/Perm/ClosureSwap.lean
92
114
theorem mem_closure_isSwap {S : Set (Perm Ξ±)} (hS : βˆ€ f ∈ S, f.IsSwap) {f : Perm Ξ±} : f ∈ closure S ↔ (fixedBy Ξ± f)ᢜ.Finite ∧ βˆ€ x, f x ∈ orbit (closure S) x := by
refine ⟨fun hf ↦ ⟨?_, fun x ↦ mem_orbit_iff.mpr ⟨⟨f, hf⟩, rfl⟩⟩, ?_⟩ Β· exact finite_compl_fixedBy_closure_iff.mpr (fun f hf ↦ (hS f hf).finite_compl_fixedBy) _ hf rintro ⟨fin, hf⟩ set supp := (fixedBy Ξ± f)ᢜ with supp_eq suffices h : (fixedBy Ξ± f)ᢜ βŠ† supp β†’ f ∈ closure S from h supp_eq.symm.subset clear_val...
[ " (fixedBy Ξ± g)ᢜ.Finite", " (fixedBy Ξ± 1)ᢜ.Finite", " βˆ€ (x : G), (fixedBy Ξ± x)ᢜ.Finite β†’ (fixedBy Ξ± x⁻¹)ᢜ.Finite", " (fixedBy Ξ± (g * g'))ᢜ βŠ† (fixedBy Ξ± g)ᢜ βˆͺ (fixedBy Ξ± g')ᢜ", " {x, y}.Finite", " z ∈ fixedBy Ξ± (swap x y)", " z β‰  x", " z β‰  y", " False", " (fixedBy Ξ± Οƒ)ᢜ.Finite", " (fixedBy Ξ± (swa...
[ " (fixedBy Ξ± g)ᢜ.Finite", " (fixedBy Ξ± 1)ᢜ.Finite", " βˆ€ (x : G), (fixedBy Ξ± x)ᢜ.Finite β†’ (fixedBy Ξ± x⁻¹)ᢜ.Finite", " (fixedBy Ξ± (g * g'))ᢜ βŠ† (fixedBy Ξ± g)ᢜ βˆͺ (fixedBy Ξ± g')ᢜ", " {x, y}.Finite", " z ∈ fixedBy Ξ± (swap x y)", " z β‰  x", " z β‰  y", " False", " (fixedBy Ξ± Οƒ)ᢜ.Finite", " (fixedBy Ξ± (swa...
import Mathlib.Analysis.NormedSpace.Multilinear.Curry #align_import analysis.calculus.formal_multilinear_series from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" noncomputable section open Set Fin Topology -- Porting note: added explicit universes to fix compile universe u u' v w x ...
Mathlib/Analysis/Calculus/FormalMultilinearSeries.lean
119
124
theorem congr (p : FormalMultilinearSeries π•œ E F) {m n : β„•} {v : Fin m β†’ E} {w : Fin n β†’ E} (h1 : m = n) (h2 : βˆ€ (i : β„•) (him : i < m) (hin : i < n), v ⟨i, him⟩ = w ⟨i, hin⟩) : p m v = p n w := by
subst n congr with ⟨i, hi⟩ exact h2 i hi hi
[ " p.removeZero n = p n", " p.removeZero n.pred.succ = p n.pred.succ", " (p m) v = (p n) w", " (p m) v = (p m) w", " v ⟨i, hi⟩ = w ⟨i, hi⟩" ]
[ " p.removeZero n = p n", " p.removeZero n.pred.succ = p n.pred.succ" ]
import Mathlib.CategoryTheory.Limits.Shapes.Biproducts import Mathlib.GroupTheory.EckmannHilton import Mathlib.Tactic.CategoryTheory.Reassoc #align_import category_theory.preadditive.of_biproducts from "leanprover-community/mathlib"@"061ea99a5610cfc72c286aa930d3c1f47f74f3d0" noncomputable section universe v u op...
Mathlib/CategoryTheory/Preadditive/OfBiproducts.lean
54
68
theorem isUnital_leftAdd : EckmannHilton.IsUnital (Β· +β‚— Β·) 0 := by
have hr : βˆ€ f : X ⟢ Y, biprod.lift (0 : X ⟢ Y) f = f ≫ biprod.inr := by intro f ext Β· aesop_cat Β· simp [biprod.lift_fst, Category.assoc, biprod.inr_fst, comp_zero] have hl : βˆ€ f : X ⟢ Y, biprod.lift f (0 : X ⟢ Y) = f ≫ biprod.inl := by intro f ext Β· aesop_cat Β· simp [biprod.lift_snd...
[ " EckmannHilton.IsUnital (fun x x_1 => leftAdd X Y x x_1) 0", " βˆ€ (f : X ⟢ Y), biprod.lift 0 f = f ≫ biprod.inr", " biprod.lift 0 f = f ≫ biprod.inr", " biprod.lift 0 f ≫ biprod.fst = (f ≫ biprod.inr) ≫ biprod.fst", " biprod.lift 0 f ≫ biprod.snd = (f ≫ biprod.inr) ≫ biprod.snd", " βˆ€ (f : X ⟢ Y), biprod.l...
[]
import Mathlib.Algebra.Group.Semiconj.Defs import Mathlib.Algebra.Ring.Defs #align_import algebra.ring.semiconj from "leanprover-community/mathlib"@"70d50ecfd4900dd6d328da39ab7ebd516abe4025" universe u v w x variable {Ξ± : Type u} {Ξ² : Type v} {Ξ³ : Type w} {R : Type x} open Function namespace SemiconjBy @[simp...
Mathlib/Algebra/Ring/Semiconj.lean
39
41
theorem add_left [Distrib R] {a b x y : R} (ha : SemiconjBy a x y) (hb : SemiconjBy b x y) : SemiconjBy (a + b) x y := by
simp only [SemiconjBy, left_distrib, right_distrib, ha.eq, hb.eq]
[ " SemiconjBy a (x + x') (y + y')", " SemiconjBy (a + b) x y" ]
[ " SemiconjBy a (x + x') (y + y')" ]
import Mathlib.Analysis.NormedSpace.Basic import Mathlib.Topology.Algebra.Module.Basic #align_import analysis.normed_space.basic from "leanprover-community/mathlib"@"bc91ed7093bf098d253401e69df601fc33dde156" open Metric Set Function Filter open scoped NNReal Topology instance Real.punctured_nhds_module_neBot {E ...
Mathlib/Analysis/NormedSpace/Real.lean
106
107
theorem interior_sphere (x : E) {r : ℝ} (hr : r β‰  0) : interior (sphere x r) = βˆ… := by
rw [← frontier_closedBall x hr, interior_frontier isClosed_ball]
[ " β€–x‖⁻¹ β€’ x ∈ closedBall 0 1", " β€–t β€’ xβ€– = t * β€–xβ€–", " dist (r β€’ x + (1 - r) β€’ y) x = β€–1 - rβ€– * β€–x - yβ€–", " β€–1 - rβ€– * β€–x - yβ€– = (1 - r) * dist y x", " (1 - r) * dist y x ≀ (1 - 0) * dist y x", " 0 ≀ r", " (1 - 0) * dist y x = dist y x", " closure (ball x r) = closedBall x r", " y ∈ closure (ball x r...
[ " β€–x‖⁻¹ β€’ x ∈ closedBall 0 1", " β€–t β€’ xβ€– = t * β€–xβ€–", " dist (r β€’ x + (1 - r) β€’ y) x = β€–1 - rβ€– * β€–x - yβ€–", " β€–1 - rβ€– * β€–x - yβ€– = (1 - r) * dist y x", " (1 - r) * dist y x ≀ (1 - 0) * dist y x", " 0 ≀ r", " (1 - 0) * dist y x = dist y x", " closure (ball x r) = closedBall x r", " y ∈ closure (ball x r...
import Mathlib.Topology.ContinuousFunction.ZeroAtInfty open Topology Filter variable {E F 𝓕 : Type*} variable [SeminormedAddGroup E] [SeminormedAddCommGroup F] variable [FunLike 𝓕 E F] [ZeroAtInftyContinuousMapClass 𝓕 E F] theorem ZeroAtInftyContinuousMapClass.norm_le (f : 𝓕) (Ξ΅ : ℝ) (hΞ΅ : 0 < Ξ΅) : βˆƒ (r ...
Mathlib/Analysis/Normed/Group/ZeroAtInfty.lean
38
49
theorem zero_at_infty_of_norm_le (f : E β†’ F) (h : βˆ€ (Ξ΅ : ℝ) (_hΞ΅ : 0 < Ξ΅), βˆƒ (r : ℝ), βˆ€ (x : E) (_hx : r < β€–xβ€–), β€–f xβ€– < Ξ΅) : Tendsto f (cocompact E) (𝓝 0) := by
rw [tendsto_zero_iff_norm_tendsto_zero] intro s hs rw [mem_map, Metric.mem_cocompact_iff_closedBall_compl_subset 0] rw [Metric.mem_nhds_iff] at hs rcases hs with ⟨Ρ, hΡ, hs⟩ rcases h Ρ hΡ with ⟨r, hr⟩ use r intro aesop
[ " βˆƒ r, βˆ€ (x : E), r < β€–xβ€– β†’ β€–f xβ€– < Ξ΅", " βˆ€ (x : E), r < β€–xβ€– β†’ β€–f xβ€– < Ξ΅", " β€–f xβ€– < Ξ΅", " x ∈ (fun x => β€–f xβ€–) ⁻¹' Metric.ball 0 Ξ΅", " x ∈ (Metric.closedBall 0 r)ᢜ", " Tendsto f (cocompact E) (𝓝 0)", " Tendsto (fun x => β€–f xβ€–) (cocompact E) (𝓝 0)", " s ∈ map (fun x => β€–f xβ€–) (cocompact E)", " βˆƒ r...
[ " βˆƒ r, βˆ€ (x : E), r < β€–xβ€– β†’ β€–f xβ€– < Ξ΅", " βˆ€ (x : E), r < β€–xβ€– β†’ β€–f xβ€– < Ξ΅", " β€–f xβ€– < Ξ΅", " x ∈ (fun x => β€–f xβ€–) ⁻¹' Metric.ball 0 Ξ΅", " x ∈ (Metric.closedBall 0 r)ᢜ" ]
import Mathlib.Algebra.Group.Units import Mathlib.Algebra.GroupWithZero.Basic import Mathlib.Logic.Equiv.Defs import Mathlib.Tactic.Contrapose import Mathlib.Tactic.Nontriviality import Mathlib.Tactic.Spread import Mathlib.Util.AssertExists #align_import algebra.group_with_zero.units.basic from "leanprover-community/...
Mathlib/Algebra/GroupWithZero/Units/Basic.lean
126
127
theorem mul_inverse_cancel_left (x y : Mβ‚€) (h : IsUnit x) : x * (inverse x * y) = y := by
rw [← mul_assoc, mul_inverse_cancel x h, one_mul]
[ " 0 = 1", " inverse ↑u = ↑u⁻¹", " x * inverse x = 1", " ↑u * inverse ↑u = 1", " inverse x * x = 1", " inverse ↑u * ↑u = 1", " y * x * inverse x = y", " y * inverse x * x = y", " x * (inverse x * y) = y" ]
[ " 0 = 1", " inverse ↑u = ↑u⁻¹", " x * inverse x = 1", " ↑u * inverse ↑u = 1", " inverse x * x = 1", " inverse ↑u * ↑u = 1", " y * x * inverse x = y", " y * inverse x * x = y" ]
import Mathlib.RingTheory.AdjoinRoot import Mathlib.FieldTheory.Minpoly.Field import Mathlib.RingTheory.Polynomial.GaussLemma #align_import field_theory.minpoly.is_integrally_closed from "leanprover-community/mathlib"@"f0c8bf9245297a541f468be517f1bde6195105e9" open scoped Classical Polynomial open Polynomial Set...
Mathlib/FieldTheory/Minpoly/IsIntegrallyClosed.lean
75
92
theorem isIntegrallyClosed_dvd {s : S} (hs : IsIntegral R s) {p : R[X]} (hp : Polynomial.aeval s p = 0) : minpoly R s ∣ p := by
let K := FractionRing R let L := FractionRing S let _ : Algebra K L := FractionRing.liftAlgebra R L have := FractionRing.isScalarTower_liftAlgebra R L have : minpoly K (algebraMap S L s) ∣ map (algebraMap R K) (p %β‚˜ minpoly R s) := by rw [map_modByMonic _ (minpoly.monic hs), modByMonic_eq_sub_mul_div] ...
[ " minpoly K ((algebraMap S L) s) = map (algebraMap R K) (minpoly R s)", " Irreducible (map (algebraMap R K) (minpoly R s))", " (Polynomial.aeval ((algebraMap S L) s)) (map (algebraMap R K) (minpoly R s)) = 0", " (map (algebraMap R K) (minpoly R s)).Monic", " minpoly K s = map (algebraMap R K) (minpoly R s)"...
[ " minpoly K ((algebraMap S L) s) = map (algebraMap R K) (minpoly R s)", " Irreducible (map (algebraMap R K) (minpoly R s))", " (Polynomial.aeval ((algebraMap S L) s)) (map (algebraMap R K) (minpoly R s)) = 0", " (map (algebraMap R K) (minpoly R s)).Monic", " minpoly K s = map (algebraMap R K) (minpoly R s)"...
import Mathlib.Analysis.Convex.Hull import Mathlib.LinearAlgebra.AffineSpace.Independent #align_import analysis.convex.simplicial_complex.basic from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" open Finset Set variable (π•œ E : Type*) {ΞΉ : Type*} [OrderedRing π•œ] [AddCommGroup E] [Mod...
Mathlib/Analysis/Convex/SimplicialComplex/Basic.lean
91
93
theorem convexHull_subset_space (hs : s ∈ K.faces) : convexHull π•œ ↑s βŠ† K.space := by
convert subset_biUnion_of_mem hs rfl
[ " x ∈ K.space ↔ βˆƒ s ∈ K.faces, x ∈ (convexHull π•œ) ↑s", " (convexHull π•œ) ↑s βŠ† K.space", " (convexHull π•œ) ↑s = (convexHull π•œ) ↑s" ]
[ " x ∈ K.space ↔ βˆƒ s ∈ K.faces, x ∈ (convexHull π•œ) ↑s" ]
import Mathlib.Algebra.MvPolynomial.Derivation import Mathlib.Algebra.MvPolynomial.Variables #align_import data.mv_polynomial.pderiv from "leanprover-community/mathlib"@"2f5b500a507264de86d666a5f87ddb976e2d8de4" noncomputable section universe u v namespace MvPolynomial open Set Function Finsupp variable {R : ...
Mathlib/Algebra/MvPolynomial/PDeriv.lean
115
117
theorem pderiv_mul {i : Οƒ} {f g : MvPolynomial Οƒ R} : pderiv i (f * g) = pderiv i f * g + f * pderiv i g := by
simp only [(pderiv i).leibniz f g, smul_eq_mul, mul_comm, add_comm]
[ " pderiv i = mkDerivation R (Pi.single i 1)", " mkDerivation R (Pi.single i 1) = mkDerivation R (Pi.single i 1)", " (pderiv i) ((monomial s) a) = (monomial (s - single i 1)) (a * ↑(s i))", " (s.sum fun a_1 b => (monomial (s - single a_1 1)) (a * ↑b) * Pi.single i 1 a_1) =\n (monomial (s - single i 1)) (a *...
[ " pderiv i = mkDerivation R (Pi.single i 1)", " mkDerivation R (Pi.single i 1) = mkDerivation R (Pi.single i 1)", " (pderiv i) ((monomial s) a) = (monomial (s - single i 1)) (a * ↑(s i))", " (s.sum fun a_1 b => (monomial (s - single a_1 1)) (a * ↑b) * Pi.single i 1 a_1) =\n (monomial (s - single i 1)) (a *...
import Mathlib.Analysis.Convex.StrictConvexSpace #align_import analysis.convex.uniform from "leanprover-community/mathlib"@"17ef379e997badd73e5eabb4d38f11919ab3c4b3" open Set Metric open Convex Pointwise class UniformConvexSpace (E : Type*) [SeminormedAddCommGroup E] : Prop where uniform_convex : βˆ€ ⦃Ρ : ℝ⦄, ...
Mathlib/Analysis/Convex/Uniform.lean
115
126
theorem exists_forall_closed_ball_dist_add_le_two_mul_sub (hΞ΅ : 0 < Ξ΅) (r : ℝ) : βˆƒ Ξ΄, 0 < Ξ΄ ∧ βˆ€ ⦃x : E⦄, β€–xβ€– ≀ r β†’ βˆ€ ⦃y⦄, β€–yβ€– ≀ r β†’ Ξ΅ ≀ β€–x - yβ€– β†’ β€–x + yβ€– ≀ 2 * r - Ξ΄ := by
obtain hr | hr := le_or_lt r 0 · exact ⟨1, one_pos, fun x hx y hy h => (hΡ.not_le <| h.trans <| (norm_sub_le _ _).trans <| add_nonpos (hx.trans hr) (hy.trans hr)).elim⟩ obtain ⟨δ, hδ, h⟩ := exists_forall_closed_ball_dist_add_le_two_sub E (div_pos hΡ hr) refine ⟨δ * r, mul_pos hδ hr, fun x hx y hy hxy => ...
[ " βˆƒ Ξ΄, 0 < Ξ΄ ∧ βˆ€ ⦃x : E⦄, β€–xβ€– ≀ 1 β†’ βˆ€ ⦃y : E⦄, β€–yβ€– ≀ 1 β†’ Ξ΅ ≀ β€–x - yβ€– β†’ β€–x + yβ€– ≀ 2 - Ξ΄", " β€–x + yβ€– ≀ 2 - Ξ΄'", " β€–x + yβ€– ≀ 1 + 1 - Ξ΄'", " βˆ€ (z : E), 1 - Ξ΄' < β€–zβ€– β†’ β€–β€–z‖⁻¹ β€’ zβ€– = 1", " β€–β€–z‖⁻¹ β€’ zβ€– = 1", " βˆ€ (z : E), β€–zβ€– ≀ 1 β†’ 1 - Ξ΄' ≀ β€–zβ€– β†’ β€–β€–z‖⁻¹ β€’ z - zβ€– ≀ Ξ΄'", " β€–β€–z‖⁻¹ β€’ z - zβ€– ≀ Ξ΄'", " β€–β€–z‖⁻¹ β€’ z - ...
[ " βˆƒ Ξ΄, 0 < Ξ΄ ∧ βˆ€ ⦃x : E⦄, β€–xβ€– ≀ 1 β†’ βˆ€ ⦃y : E⦄, β€–yβ€– ≀ 1 β†’ Ξ΅ ≀ β€–x - yβ€– β†’ β€–x + yβ€– ≀ 2 - Ξ΄", " β€–x + yβ€– ≀ 2 - Ξ΄'", " β€–x + yβ€– ≀ 1 + 1 - Ξ΄'", " βˆ€ (z : E), 1 - Ξ΄' < β€–zβ€– β†’ β€–β€–z‖⁻¹ β€’ zβ€– = 1", " β€–β€–z‖⁻¹ β€’ zβ€– = 1", " βˆ€ (z : E), β€–zβ€– ≀ 1 β†’ 1 - Ξ΄' ≀ β€–zβ€– β†’ β€–β€–z‖⁻¹ β€’ z - zβ€– ≀ Ξ΄'", " β€–β€–z‖⁻¹ β€’ z - zβ€– ≀ Ξ΄'", " β€–β€–z‖⁻¹ β€’ z - ...
import Mathlib.Algebra.GeomSum import Mathlib.Order.Filter.Archimedean import Mathlib.Order.Iterate import Mathlib.Topology.Algebra.Algebra import Mathlib.Topology.Algebra.InfiniteSum.Real #align_import analysis.specific_limits.basic from "leanprover-community/mathlib"@"57ac39bd365c2f80589a700f9fbb664d3a1a30c2" n...
Mathlib/Analysis/SpecificLimits/Basic.lean
39
41
theorem tendsto_const_div_atTop_nhds_zero_nat (C : ℝ) : Tendsto (fun n : β„• ↦ C / n) atTop (𝓝 0) := by
simpa only [mul_zero] using tendsto_const_nhds.mul tendsto_inverse_atTop_nhds_zero_nat
[ " Tendsto (fun n => C / ↑n) atTop (𝓝 0)" ]
[]
import Mathlib.LinearAlgebra.Ray import Mathlib.Analysis.NormedSpace.Real #align_import analysis.normed_space.ray from "leanprover-community/mathlib"@"92ca63f0fb391a9ca5f22d2409a6080e786d99f7" open Real variable {E : Type*} [SeminormedAddCommGroup E] [NormedSpace ℝ E] {F : Type*} [NormedAddCommGroup F] [NormedSp...
Mathlib/Analysis/NormedSpace/Ray.lean
32
35
theorem norm_add (h : SameRay ℝ x y) : β€–x + yβ€– = β€–xβ€– + β€–yβ€– := by
rcases h.exists_eq_smul with ⟨u, a, b, ha, hb, -, rfl, rfl⟩ rw [← add_smul, norm_smul_of_nonneg (add_nonneg ha hb), norm_smul_of_nonneg ha, norm_smul_of_nonneg hb, add_mul]
[ " β€–x + yβ€– = β€–xβ€– + β€–yβ€–", " β€–a β€’ u + b β€’ uβ€– = β€–a β€’ uβ€– + β€–b β€’ uβ€–" ]
[]
import Mathlib.Algebra.Module.BigOperators import Mathlib.Data.Fintype.BigOperators import Mathlib.LinearAlgebra.AffineSpace.AffineMap import Mathlib.LinearAlgebra.AffineSpace.AffineSubspace import Mathlib.LinearAlgebra.Finsupp import Mathlib.Tactic.FinCases #align_import linear_algebra.affine_space.combination from ...
Mathlib/LinearAlgebra/AffineSpace/Combination.lean
86
91
theorem weightedVSubOfPoint_congr {w₁ wβ‚‚ : ΞΉ β†’ k} (hw : βˆ€ i ∈ s, w₁ i = wβ‚‚ i) {p₁ pβ‚‚ : ΞΉ β†’ P} (hp : βˆ€ i ∈ s, p₁ i = pβ‚‚ i) (b : P) : s.weightedVSubOfPoint p₁ b w₁ = s.weightedVSubOfPoint pβ‚‚ b wβ‚‚ := by
simp_rw [weightedVSubOfPoint_apply] refine sum_congr rfl fun i hi => ?_ rw [hw i hi, hp i hi]
[ " univ = {0, 1}", " x ∈ univ ↔ x ∈ {0, 1}", " ⟨0, β‹―βŸ© ∈ univ ↔ ⟨0, β‹―βŸ© ∈ {0, 1}", " ⟨1, β‹―βŸ© ∈ univ ↔ ⟨1, β‹―βŸ© ∈ {0, 1}", " (s.weightedVSubOfPoint p b) w = βˆ‘ i ∈ s, w i β€’ (p i -α΅₯ b)", " (s.weightedVSubOfPoint (fun x => p) b) w = (βˆ‘ i ∈ s, w i) β€’ (p -α΅₯ b)", " (s.weightedVSubOfPoint p₁ b) w₁ = (s.weightedVSubOf...
[ " univ = {0, 1}", " x ∈ univ ↔ x ∈ {0, 1}", " ⟨0, β‹―βŸ© ∈ univ ↔ ⟨0, β‹―βŸ© ∈ {0, 1}", " ⟨1, β‹―βŸ© ∈ univ ↔ ⟨1, β‹―βŸ© ∈ {0, 1}", " (s.weightedVSubOfPoint p b) w = βˆ‘ i ∈ s, w i β€’ (p i -α΅₯ b)", " (s.weightedVSubOfPoint (fun x => p) b) w = (βˆ‘ i ∈ s, w i) β€’ (p -α΅₯ b)" ]
import Mathlib.Analysis.InnerProductSpace.PiL2 import Mathlib.Combinatorics.Additive.AP.Three.Defs import Mathlib.Combinatorics.Pigeonhole import Mathlib.Data.Complex.ExponentialBounds #align_import combinatorics.additive.behrend from "leanprover-community/mathlib"@"4fa54b337f7d52805480306db1b1439c741848c8" open N...
Mathlib/Combinatorics/Additive/AP/Three/Behrend.lean
101
101
theorem card_box : (box n d).card = d ^ n := by
simp [box]
[ " ThreeAPFree (frontier s)", " a = b", " (1 / 2) β€’ a + (1 / 2) β€’ c = b", " 2 β‰  0", " a = (1 / 2) β€’ a + (1 / 2) β€’ c", " c = (2⁻¹ + 2⁻¹) β€’ c", " c = 1 β€’ c", " ThreeAPFree (sphere x r)", " ThreeAPFree (sphere x 0)", " ThreeAPFree {x}", " sphere x r = frontier (closedBall x r)", " x ∈ box n d ↔ βˆ€ ...
[ " ThreeAPFree (frontier s)", " a = b", " (1 / 2) β€’ a + (1 / 2) β€’ c = b", " 2 β‰  0", " a = (1 / 2) β€’ a + (1 / 2) β€’ c", " c = (2⁻¹ + 2⁻¹) β€’ c", " c = 1 β€’ c", " ThreeAPFree (sphere x r)", " ThreeAPFree (sphere x 0)", " ThreeAPFree {x}", " sphere x r = frontier (closedBall x r)", " x ∈ box n d ↔ βˆ€ ...
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Top...
Mathlib/Analysis/Calculus/Deriv/Comp.lean
118
120
theorem HasStrictDerivAt.scomp (hg : HasStrictDerivAt g₁ g₁' (h x)) (hh : HasStrictDerivAt h h' x) : HasStrictDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by
simpa using ((hg.restrictScalars π•œ).comp x hh).hasStrictDerivAt
[ " HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L", " HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x", " HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x", " HasStrictDerivAt (g₁ ∘ h) (h' β€’ g₁') x" ]
[ " HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L", " HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x", " HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x" ]
import Mathlib.Geometry.Euclidean.Angle.Oriented.Affine import Mathlib.Geometry.Euclidean.Angle.Unoriented.Affine import Mathlib.Tactic.IntervalCases #align_import geometry.euclidean.triangle from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f6dddd2b4f5" noncomputable section open scoped Classica...
Mathlib/Geometry/Euclidean/Triangle.lean
79
104
theorem norm_eq_of_angle_sub_eq_angle_sub_rev_of_angle_ne_pi {x y : V} (h : angle x (x - y) = angle y (y - x)) (hpi : angle x y β‰  Ο€) : β€–xβ€– = β€–yβ€– := by
replace h := Real.arccos_injOn (abs_le.mp (abs_real_inner_div_norm_mul_norm_le_one x (x - y))) (abs_le.mp (abs_real_inner_div_norm_mul_norm_le_one y (y - x))) h by_cases hxy : x = y Β· rw [hxy] Β· rw [← norm_neg (y - x), neg_sub, mul_comm, mul_comm β€–yβ€–, div_eq_mul_inv, div_eq_mul_inv, mul_inv_rev, mul_...
[ " β€–x - yβ€– * β€–x - yβ€– = β€–xβ€– * β€–xβ€– + β€–yβ€– * β€–yβ€– - 2 * β€–xβ€– * β€–yβ€– * (angle x y).cos", " 2 * β€–xβ€– * β€–yβ€– * (angle x y).cos = 2 * ((angle x y).cos * (β€–xβ€– * β€–yβ€–))", " angle x (x - y) = angle y (y - x)", " (angle x (x - y)).cos = (angle y (y - x)).cos", " β€–xβ€– = β€–yβ€–", " β€–yβ€– = β€–xβ€–", " False" ]
[ " β€–x - yβ€– * β€–x - yβ€– = β€–xβ€– * β€–xβ€– + β€–yβ€– * β€–yβ€– - 2 * β€–xβ€– * β€–yβ€– * (angle x y).cos", " 2 * β€–xβ€– * β€–yβ€– * (angle x y).cos = 2 * ((angle x y).cos * (β€–xβ€– * β€–yβ€–))", " angle x (x - y) = angle y (y - x)", " (angle x (x - y)).cos = (angle y (y - x)).cos" ]
import Mathlib.Data.Set.Basic #align_import order.well_founded from "leanprover-community/mathlib"@"2c84c2c5496117349007d97104e7bbb471381592" variable {Ξ± Ξ² Ξ³ : Type*} namespace WellFounded variable {r r' : Ξ± β†’ Ξ± β†’ Prop} #align well_founded_relation.r WellFoundedRelation.rel protected theorem isAsymm (h : Well...
Mathlib/Order/WellFounded.lean
82
89
theorem wellFounded_iff_has_min {r : Ξ± β†’ Ξ± β†’ Prop} : WellFounded r ↔ βˆ€ s : Set Ξ±, s.Nonempty β†’ βˆƒ m ∈ s, βˆ€ x ∈ s, Β¬r x m := by
refine ⟨fun h => h.has_min, fun h => ⟨fun x => ?_⟩⟩ by_contra hx obtain ⟨m, hm, hm'⟩ := h {x | ¬Acc r x} ⟨x, hx⟩ refine hm ⟨_, fun y hy => ?_⟩ by_contra hy' exact hm' y hy' hy
[ " WellFounded r ↔ βˆ€ (s : Set Ξ±), s.Nonempty β†’ βˆƒ m ∈ s, βˆ€ x ∈ s, Β¬r x m", " Acc r x", " False", " Acc r y" ]
[]
import Mathlib.CategoryTheory.Abelian.Opposite import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Zero import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Kernels import Mathlib.CategoryTheory.Preadditive.LeftExact import Mathlib.CategoryTheory.Adjunction.Limits import Mathlib.Algebra.Homology.Exact import Mathli...
Mathlib/CategoryTheory/Abelian/Exact.lean
115
120
theorem exact_epi_comp_iff {W : C} (h : W ⟢ X) [Epi h] : Exact (h ≫ f) g ↔ Exact f g := by
refine ⟨fun hfg => ?_, fun h => exact_epi_comp h⟩ let hc := isCokernelOfComp _ _ (colimit.isColimit (parallelPair (h ≫ f) 0)) (by rw [← cancel_epi h, ← Category.assoc, CokernelCofork.condition, comp_zero]) rfl refine (exact_iff' _ _ (limit.isLimit _) hc).2 ⟨?_, ((exact_iff _ _).1 hfg).2⟩ exact zero_of_epi_...
[ " Exact f g ↔ imageSubobject f = kernelSubobject g", " Exact f g β†’ imageSubobject f = kernelSubobject g", " imageSubobject f = kernelSubobject g", " (asIso (imageToKernel f g β‹―)).hom ≫ (kernelSubobject g).arrow = (imageSubobject f).arrow", " imageSubobject f = kernelSubobject g β†’ Exact f g", " Exact f g ↔...
[ " Exact f g ↔ imageSubobject f = kernelSubobject g", " Exact f g β†’ imageSubobject f = kernelSubobject g", " imageSubobject f = kernelSubobject g", " (asIso (imageToKernel f g β‹―)).hom ≫ (kernelSubobject g).arrow = (imageSubobject f).arrow", " imageSubobject f = kernelSubobject g β†’ Exact f g", " Exact f g ↔...
import Mathlib.Algebra.Lie.CartanSubalgebra import Mathlib.Algebra.Lie.Weights.Basic suppress_compilation open Set variable {R L : Type*} [CommRing R] [LieRing L] [LieAlgebra R L] (H : LieSubalgebra R L) [LieAlgebra.IsNilpotent R H] {M : Type*} [AddCommGroup M] [Module R M] [LieRingModule L M] [LieModule R L ...
Mathlib/Algebra/Lie/Weights/Cartan.lean
135
141
theorem mapsTo_toEnd_weightSpace_add_of_mem_rootSpace (Ξ± Ο‡ : H β†’ R) {x : L} (hx : x ∈ rootSpace H Ξ±) : MapsTo (toEnd R L M x) (weightSpace M Ο‡) (weightSpace M (Ξ± + Ο‡)) := by
intro m hm let x' : rootSpace H Ξ± := ⟨x, hx⟩ let m' : weightSpace M Ο‡ := ⟨m, hm⟩ exact (rootSpaceWeightSpaceProduct R L H M Ξ± Ο‡ (Ξ± + Ο‡) rfl (x' βŠ—β‚œ m')).property
[ " ⁅x, m⁆ ∈ weightSpace M (χ₁ + Ο‡β‚‚)", " βˆ€ (i : β†₯H), ⁅x, m⁆ ∈ weightSpaceOf M ((χ₁ + Ο‡β‚‚) i) i", " ⁅x, m⁆ ∈ weightSpaceOf M ((χ₁ + Ο‡β‚‚) y) y", " x ∈ weightSpaceOf L (χ₁ y) y", " m ∈ weightSpaceOf M (Ο‡β‚‚ y) y", " ((toEnd R L M) x ^ n) m ∈ weightSpace M (n β€’ χ₁ + Ο‡β‚‚)", " ((toEnd R L M) x ^ 0) m ∈ weightSpace M...
[ " ⁅x, m⁆ ∈ weightSpace M (χ₁ + Ο‡β‚‚)", " βˆ€ (i : β†₯H), ⁅x, m⁆ ∈ weightSpaceOf M ((χ₁ + Ο‡β‚‚) i) i", " ⁅x, m⁆ ∈ weightSpaceOf M ((χ₁ + Ο‡β‚‚) y) y", " x ∈ weightSpaceOf L (χ₁ y) y", " m ∈ weightSpaceOf M (Ο‡β‚‚ y) y", " ((toEnd R L M) x ^ n) m ∈ weightSpace M (n β€’ χ₁ + Ο‡β‚‚)", " ((toEnd R L M) x ^ 0) m ∈ weightSpace M...
import Mathlib.GroupTheory.Coxeter.Length import Mathlib.Data.ZMod.Parity namespace CoxeterSystem open List Matrix Function variable {B : Type*} variable {W : Type*} [Group W] variable {M : CoxeterMatrix B} (cs : CoxeterSystem M W) local prefix:100 "s" => cs.simple local prefix:100 "Ο€" => cs.wordProd local prefi...
Mathlib/GroupTheory/Coxeter/Inversion.lean
61
61
theorem isReflection_simple (i : B) : cs.IsReflection (s i) := by
use 1, i; simp
[ " cs.IsReflection (cs.simple i)", " cs.simple i = 1 * cs.simple i * 1⁻¹" ]
[]
import Mathlib.Topology.Baire.Lemmas import Mathlib.Topology.Algebra.Group.Basic open scoped Topology Pointwise open MulAction Set Function variable {G X : Type*} [TopologicalSpace G] [TopologicalSpace X] [Group G] [TopologicalGroup G] [MulAction G X] [SigmaCompactSpace G] [BaireSpace X] [T2Space X] [Contin...
Mathlib/Topology/Algebra/Group/OpenMapping.lean
37
88
theorem smul_singleton_mem_nhds_of_sigmaCompact {U : Set G} (hU : U ∈ 𝓝 1) (x : X) : U β€’ {x} ∈ 𝓝 x := by
/- Consider a small closed neighborhood `V` of the identity. Then the group is covered by countably many translates of `V`, say `gα΅’ V`. Let also `Kβ‚™` be a sequence of compact sets covering the space. Then the image of `Kβ‚™ ∩ gα΅’ V` in the orbit is compact, and their unions covers the space. By Baire, one of them...
[ " U β€’ {x} ∈ 𝓝 x", " βˆƒ s, s.Countable ∧ ⋃ g ∈ s, g β€’ V = univ", " g β€’ V ∈ 𝓝 g", " g = g β€’ 1", " βˆƒ i, (interior (F i)).Nonempty", " βˆ€ (i : β„• Γ— ↑s), IsClosed (F i)", " IsClosed (F (n, ⟨g, hg⟩))", " IsCompact (F (n, ⟨g, hg⟩))", " IsCompact ((fun g => g β€’ x) '' (K n ∩ g β€’ V))", " IsCompact (K n ∩ g β€’...
[]
import Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar import Mathlib.MeasureTheory.Measure.Haar.Quotient import Mathlib.MeasureTheory.Constructions.Polish import Mathlib.MeasureTheory.Integral.IntervalIntegral import Mathlib.Topology.Algebra.Order.Floor #align_import measure_theory.integral.periodic from "leanprover-c...
Mathlib/MeasureTheory/Integral/Periodic.lean
267
274
theorem intervalIntegral_add_eq (hf : Periodic f T) (t s : ℝ) : ∫ x in t..t + T, f x = ∫ x in s..s + T, f x := by
rcases lt_trichotomy (0 : ℝ) T with (hT | rfl | hT) Β· exact hf.intervalIntegral_add_eq_of_pos hT t s Β· simp Β· rw [← neg_inj, ← integral_symm, ← integral_symm] simpa only [← sub_eq_add_neg, add_sub_cancel_right] using hf.neg.intervalIntegral_add_eq_of_pos (neg_pos.2 hT) (t + T) (s + T)
[ " IsAddFundamentalDomain (β†₯(zmultiples T)) (Ioc t (t + T)) ΞΌ", " βˆƒ! g, g +α΅₯ x ∈ Ioc t (t + T)", " βˆƒ! x_1, codRestrict (fun n => n β€’ T) ↑(zmultiples T) β‹― x_1 +α΅₯ x ∈ Ioc t (t + T)", " IsAddFundamentalDomain (β†₯(zmultiples T).op) (Ioc t (t + T)) ΞΌ", " βˆƒ! x_1, (⇑(zmultiples T).equivOp ∘ codRestrict (fun n => n β€’...
[ " IsAddFundamentalDomain (β†₯(zmultiples T)) (Ioc t (t + T)) ΞΌ", " βˆƒ! g, g +α΅₯ x ∈ Ioc t (t + T)", " βˆƒ! x_1, codRestrict (fun n => n β€’ T) ↑(zmultiples T) β‹― x_1 +α΅₯ x ∈ Ioc t (t + T)", " IsAddFundamentalDomain (β†₯(zmultiples T).op) (Ioc t (t + T)) ΞΌ", " βˆƒ! x_1, (⇑(zmultiples T).equivOp ∘ codRestrict (fun n => n β€’...
import Mathlib.Analysis.Normed.Group.Hom import Mathlib.Analysis.Normed.Group.Completion #align_import analysis.normed.group.hom_completion from "leanprover-community/mathlib"@"17ef379e997badd73e5eabb4d38f11919ab3c4b3" noncomputable section open Set NormedAddGroupHom UniformSpace section Completion variable {G...
Mathlib/Analysis/Normed/Group/HomCompletion.lean
107
113
theorem NormedAddGroupHom.completion_comp (f : NormedAddGroupHom G H) (g : NormedAddGroupHom H K) : g.completion.comp f.completion = (g.comp f).completion := by
ext x rw [NormedAddGroupHom.coe_comp, NormedAddGroupHom.completion_def, NormedAddGroupHom.completion_coe_to_fun, NormedAddGroupHom.completion_coe_to_fun, Completion.map_comp g.uniformContinuous f.uniformContinuous] rfl
[ " (id G).completion = id (Completion G)", " (id G).completion x = (id (Completion G)) x", " _root_.id x = (id (Completion G)) x", " g.completion.comp f.completion = (g.comp f).completion", " (g.completion.comp f.completion) x = (g.comp f).completion x", " Completion.map (⇑g ∘ ⇑f) x = Completion.map (⇑(g.c...
[ " (id G).completion = id (Completion G)", " (id G).completion x = (id (Completion G)) x", " _root_.id x = (id (Completion G)) x" ]
import Mathlib.Combinatorics.SimpleGraph.Coloring #align_import combinatorics.simple_graph.partition from "leanprover-community/mathlib"@"2303b3e299f1c75b07bceaaac130ce23044d1386" universe u v namespace SimpleGraph variable {V : Type u} (G : SimpleGraph V) structure Partition where parts : Set (Set V) ...
Mathlib/Combinatorics/SimpleGraph/Partition.lean
93
95
theorem mem_partOfVertex (v : V) : v ∈ P.partOfVertex v := by
obtain ⟨⟨_, h⟩, _⟩ := (P.isPartition.2 v).choose_spec exact h
[ " P.partOfVertex v ∈ P.parts", " v ∈ P.partOfVertex v" ]
[ " P.partOfVertex v ∈ P.parts" ]
import Mathlib.Algebra.GroupPower.IterateHom import Mathlib.Algebra.Module.Defs import Mathlib.Algebra.Order.Archimedean import Mathlib.Algebra.Order.Group.Instances import Mathlib.GroupTheory.GroupAction.Pi open Function Set structure AddConstMap (G H : Type*) [Add G] [Add H] (a : G) (b : H) where protected...
Mathlib/Algebra/AddConstMap/Basic.lean
112
114
theorem map_nat' [AddMonoidWithOne G] [AddMonoid H] [AddConstMapClass F G H 1 b] (f : F) (n : β„•) : f n = f 0 + n β€’ b := by
simpa using map_add_nat' f 0 n
[ " f (x + n β€’ a) = f x + n β€’ b", " f (x + ↑n) = f x + n β€’ b", " f (x + ↑n) = f x + ↑n", " f a = f 0 + b", " f (n β€’ a) = f 0 + n β€’ b", " f ↑n = f 0 + n β€’ b" ]
[ " f (x + n β€’ a) = f x + n β€’ b", " f (x + ↑n) = f x + n β€’ b", " f (x + ↑n) = f x + ↑n", " f a = f 0 + b", " f (n β€’ a) = f 0 + n β€’ b" ]
import Mathlib.NumberTheory.Liouville.Basic #align_import number_theory.liouville.liouville_number from "leanprover-community/mathlib"@"04e80bb7e8510958cd9aacd32fe2dc147af0b9f1" noncomputable section open scoped Nat open Real Finset def liouvilleNumber (m : ℝ) : ℝ := βˆ‘' i : β„•, 1 / m ^ i ! #align liouville_n...
Mathlib/NumberTheory/Liouville/LiouvilleNumber.lean
84
86
theorem remainder_summable {m : ℝ} (hm : 1 < m) (k : β„•) : Summable fun i : β„• => 1 / m ^ (i + (k + 1))! := by
convert (summable_nat_add_iff (k + 1)).2 (LiouvilleNumber.summable hm)
[ " Summable fun i => 1 / m ^ (i + (k + 1))!" ]
[]
import Mathlib.AlgebraicGeometry.AffineScheme import Mathlib.RingTheory.Nilpotent.Lemmas import Mathlib.Topology.Sheaves.SheafCondition.Sites import Mathlib.Algebra.Category.Ring.Constructions import Mathlib.RingTheory.LocalProperties #align_import algebraic_geometry.properties from "leanprover-community/mathlib"@"88...
Mathlib/AlgebraicGeometry/Properties.lean
84
93
theorem isReducedOfOpenImmersion {X Y : Scheme} (f : X ⟢ Y) [H : IsOpenImmersion f] [IsReduced Y] : IsReduced X := by
constructor intro U have : U = (Opens.map f.1.base).obj (H.base_open.isOpenMap.functor.obj U) := by ext1; exact (Set.preimage_image_eq _ H.base_open.inj).symm rw [this] exact isReduced_of_injective (inv <| f.1.c.app (op <| H.base_open.isOpenMap.functor.obj U)) (asIso <| f.1.c.app (op <| H.base_open.i...
[ " T0Space ↑↑X.toPresheafedSpace", " βˆƒ s, x ∈ s ∧ IsOpen s ∧ T0Space ↑s", " QuasiSober ↑↑X.toPresheafedSpace", " βˆ€ (s : ↑(Set.range fun x => Set.range ⇑(X.affineCover.map x).val.base)), IsOpen ↑s", " IsOpen β†‘βŸ¨(fun x => Set.range ⇑(X.affineCover.map x).val.base) i, β‹―βŸ©", " βˆ€ (s : ↑(Set.range fun x => Set.ran...
[ " T0Space ↑↑X.toPresheafedSpace", " βˆƒ s, x ∈ s ∧ IsOpen s ∧ T0Space ↑s", " QuasiSober ↑↑X.toPresheafedSpace", " βˆ€ (s : ↑(Set.range fun x => Set.range ⇑(X.affineCover.map x).val.base)), IsOpen ↑s", " IsOpen β†‘βŸ¨(fun x => Set.range ⇑(X.affineCover.map x).val.base) i, β‹―βŸ©", " βˆ€ (s : ↑(Set.range fun x => Set.ran...
import Mathlib.Algebra.Star.Basic import Mathlib.Algebra.Order.CauSeq.Completion #align_import data.real.basic from "leanprover-community/mathlib"@"cb42593171ba005beaaf4549fcfe0dece9ada4c9" assert_not_exists Finset assert_not_exists Module assert_not_exists Submonoid assert_not_exists FloorRing structure Real w...
Mathlib/Data/Real/Basic.lean
130
132
theorem ofCauchy_sub (a b) : (⟨a - b⟩ : ℝ) = ⟨a⟩ - ⟨b⟩ := by
rw [sub_eq_add_neg, ofCauchy_add, ofCauchy_neg] rfl
[ " { cauchy := a } = { cauchy := b } ↔ { cauchy := a }.cauchy = { cauchy := b }.cauchy", " { cauchy := a - b } = { cauchy := a } - { cauchy := b }", " { cauchy := a } + -{ cauchy := b } = { cauchy := a } - { cauchy := b }" ]
[ " { cauchy := a } = { cauchy := b } ↔ { cauchy := a }.cauchy = { cauchy := b }.cauchy" ]
import Mathlib.Algebra.DirectSum.Internal import Mathlib.Algebra.GradedMonoid import Mathlib.Algebra.MvPolynomial.CommRing import Mathlib.Algebra.MvPolynomial.Equiv import Mathlib.Algebra.MvPolynomial.Variables import Mathlib.RingTheory.MvPolynomial.WeightedHomogeneous import Mathlib.Algebra.Polynomial.Roots #align_i...
Mathlib/RingTheory/MvPolynomial/Homogeneous.lean
57
61
theorem weightedTotalDegree_one (Ο† : MvPolynomial Οƒ R) : weightedTotalDegree (1 : Οƒ β†’ β„•) Ο† = Ο†.totalDegree := by
simp only [totalDegree, weightedTotalDegree, weightedDegree, LinearMap.toAddMonoidHom_coe, Finsupp.total, Pi.one_apply, Finsupp.coe_lsum, LinearMap.coe_smulRight, LinearMap.id_coe, id, Algebra.id.smul_eq_mul, mul_one]
[ " (weightedDegree 1) d = degree d", " weightedTotalDegree 1 Ο† = Ο†.totalDegree" ]
[ " (weightedDegree 1) d = degree d" ]