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.Data.Real.Sqrt import Mathlib.Analysis.NormedSpace.Star.Basic import Mathlib.Analysis.NormedSpace.ContinuousLinearMap import Mathlib.Analysis.NormedSpace.Basic #align_import data.is_R_or_C.basic from "leanprover-community/mathlib"@"baa88307f3e699fa7054ef04ec79fa4f056169cb" section local notation "�...
Mathlib/Analysis/RCLike/Basic.lean
162
162
theorem one_re : re (1 : K) = 1 := by
rw [← ofReal_one, ofReal_re]
[ " r • x = ↑r • x", " re 1 = 1" ]
[ " r • x = ↑r • x" ]
import Mathlib.Analysis.NormedSpace.PiLp import Mathlib.Analysis.InnerProductSpace.PiL2 #align_import analysis.matrix from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f6dddd2b4f5" noncomputable section open scoped NNReal Matrix namespace Matrix variable {R l m n α β : Type*} [Fintype l] [Fintyp...
Mathlib/Analysis/Matrix.lean
560
565
theorem frobenius_nnnorm_def (A : Matrix m n α) : ‖A‖₊ = (∑ i, ∑ j, ‖A i j‖₊ ^ (2 : ℝ)) ^ (1 / 2 : ℝ) := by
-- Porting note: added, along with `WithLp.equiv_symm_pi_apply` below change ‖(WithLp.equiv 2 _).symm fun i => (WithLp.equiv 2 _).symm fun j => A i j‖₊ = _ simp_rw [PiLp.nnnorm_eq_of_L2, NNReal.sq_sqrt, NNReal.sqrt_eq_rpow, NNReal.rpow_two, WithLp.equiv_symm_pi_apply]
[ " NormedAddCommGroup (PiLp 2 fun i => PiLp 2 fun j => α)", " BoundedSMul R (PiLp 2 fun i => PiLp 2 fun j => α)", " NormedSpace R (PiLp 2 fun i => PiLp 2 fun j => α)", " ‖A‖₊ = (∑ i : m, ∑ j : n, ‖A i j‖₊ ^ 2) ^ (1 / 2)", " ‖(WithLp.equiv 2 (m → WithLp 2 (n → α))).symm fun i => (WithLp.equiv 2 (n → α)).symm ...
[ " NormedAddCommGroup (PiLp 2 fun i => PiLp 2 fun j => α)", " BoundedSMul R (PiLp 2 fun i => PiLp 2 fun j => α)", " NormedSpace R (PiLp 2 fun i => PiLp 2 fun j => α)" ]
import Mathlib.Data.Nat.Choose.Basic import Mathlib.Data.List.Perm import Mathlib.Data.List.Range #align_import data.list.sublists from "leanprover-community/mathlib"@"ccad6d5093bd2f5c6ca621fc74674cce51355af6" universe u v w variable {α : Type u} {β : Type v} {γ : Type w} open Nat namespace List @[simp] theo...
Mathlib/Data/List/Sublists.lean
120
129
theorem sublistsAux_eq_array_foldl : sublistsAux = fun (a : α) (r : List (List α)) => (r.toArray.foldl (init := #[]) fun r l => (r.push l).push (a :: l)).toList := by
funext a r simp only [sublistsAux, Array.foldl_eq_foldl_data, Array.mkEmpty] have := foldl_hom Array.toList (fun r l => (r.push l).push (a :: l)) (fun (r : List (List α)) l => r ++ [l, a :: l]) r #[] (by simp) simpa using this
[ " ∀ (r₁ r₂ : List (List α)),\n sublists'Aux a r₁ r₂ = (Array.foldl (fun r l => r.push (a :: l)) (toArray r₂) (toArray r₁) 0).toList", " sublists'Aux a r₁ r₂ = (Array.foldl (fun r l => r.push (a :: l)) (toArray r₂) (toArray r₁) 0).toList", " foldl (fun r l => r ++ [a :: l]) r₂ r₁ = (foldl (fun r l => r.push (...
[ " ∀ (r₁ r₂ : List (List α)),\n sublists'Aux a r₁ r₂ = (Array.foldl (fun r l => r.push (a :: l)) (toArray r₂) (toArray r₁) 0).toList", " sublists'Aux a r₁ r₂ = (Array.foldl (fun r l => r.push (a :: l)) (toArray r₂) (toArray r₁) 0).toList", " foldl (fun r l => r ++ [a :: l]) r₂ r₁ = (foldl (fun r l => r.push (...
import Mathlib.CategoryTheory.Comma.Over import Mathlib.CategoryTheory.Limits.Shapes.Pullbacks import Mathlib.CategoryTheory.Yoneda import Mathlib.Data.Set.Lattice import Mathlib.Order.CompleteLattice #align_import category_theory.sites.sieves from "leanprover-community/mathlib"@"239d882c4fb58361ee8b3b39fb2091320edef...
Mathlib/CategoryTheory/Sites/Sieves.lean
141
148
theorem ofArrows_pUnit : (ofArrows _ fun _ : PUnit => f) = singleton f := by
funext Y ext g constructor · rintro ⟨_⟩ apply singleton.mk · rintro ⟨_⟩ exact ofArrows.mk PUnit.unit
[ " CompleteLattice (Presieve X)", " CompleteLattice (⦃Y : C⦄ → Set (Y ⟶ X))", " singleton f g ↔ f = g", " singleton f g → f = g", " f = f", " f = g → singleton f g", " singleton f f", " pullbackArrows f (singleton g) = singleton pullback.snd", " h ∈ pullbackArrows f (singleton g) ↔ h ∈ singleton pull...
[ " CompleteLattice (Presieve X)", " CompleteLattice (⦃Y : C⦄ → Set (Y ⟶ X))", " singleton f g ↔ f = g", " singleton f g → f = g", " f = f", " f = g → singleton f g", " singleton f f", " pullbackArrows f (singleton g) = singleton pullback.snd", " h ∈ pullbackArrows f (singleton g) ↔ h ∈ singleton pull...
import Mathlib.CategoryTheory.Sites.IsSheafFor import Mathlib.CategoryTheory.Limits.Shapes.Types import Mathlib.Tactic.ApplyFun #align_import category_theory.sites.sheaf_of_types from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" universe w v u namespace CategoryTheory open Opposite ...
Mathlib/CategoryTheory/Sites/EqualizerSheafCondition.lean
133
135
theorem w : forkMap P (S : Presieve X) ≫ firstMap P S = forkMap P S ≫ secondMap P S := by
ext simp [firstMap, secondMap, forkMap]
[ " z₁ = z₂", " ∀ (j : Discrete ((Y : C) × { f // R f })),\n limit.π (Discrete.functor fun f => P.obj { unop := f.fst }) j z₁ =\n limit.π (Discrete.functor fun f => P.obj { unop := f.fst }) j z₂", " limit.π (Discrete.functor fun f => P.obj { unop := f.fst }) { as := ⟨Y, ⟨f, hf⟩⟩ } z₁ =\n limit.π (Discr...
[ " z₁ = z₂", " ∀ (j : Discrete ((Y : C) × { f // R f })),\n limit.π (Discrete.functor fun f => P.obj { unop := f.fst }) j z₁ =\n limit.π (Discrete.functor fun f => P.obj { unop := f.fst }) j z₂", " limit.π (Discrete.functor fun f => P.obj { unop := f.fst }) { as := ⟨Y, ⟨f, hf⟩⟩ } z₁ =\n limit.π (Discr...
import Mathlib.Init.Function import Mathlib.Init.Order.Defs #align_import data.bool.basic from "leanprover-community/mathlib"@"c4658a649d216f57e99621708b09dcb3dcccbd23" namespace Bool @[deprecated (since := "2024-06-07")] alias decide_True := decide_true_eq_true #align bool.to_bool_true decide_true_eq_true @[dep...
Mathlib/Data/Bool/Basic.lean
57
57
theorem dichotomy (b : Bool) : b = false ∨ b = true := by
cases b <;> simp
[ " b = false ∨ b = true", " false = false ∨ false = true", " true = false ∨ true = true" ]
[]
import Mathlib.Topology.GDelta #align_import topology.metric_space.baire from "leanprover-community/mathlib"@"b9e46fe101fc897fb2e7edaf0bf1f09ea49eb81a" noncomputable section open scoped Topology open Filter Set TopologicalSpace variable {X α : Type*} {ι : Sort*} section BaireTheorem variable [TopologicalSpace...
Mathlib/Topology/Baire/Lemmas.lean
123
126
theorem Dense.inter_of_Gδ {s t : Set X} (hs : IsGδ s) (ht : IsGδ t) (hsc : Dense s) (htc : Dense t) : Dense (s ∩ t) := by
rw [inter_eq_iInter] apply dense_iInter_of_Gδ <;> simp [Bool.forall_bool, *]
[ " Dense (⋂₀ S)", " Dense (⋂₀ range f)", " Dense (⋂ s ∈ S, f s)", " Dense (⋂₀ ((fun s => f s) '' S))", " ∀ s ∈ (fun s => f s) '' S, IsOpen s", " ∀ s ∈ (fun s => f s) '' S, Dense s", " s ∈ residual X ↔ ∃ t ⊆ s, IsGδ t ∧ Dense t", " s ∈ residual X → ∃ t ⊆ s, IsGδ t ∧ Dense t", " (∃ S, (∀ t ∈ S, IsOpen ...
[ " Dense (⋂₀ S)", " Dense (⋂₀ range f)", " Dense (⋂ s ∈ S, f s)", " Dense (⋂₀ ((fun s => f s) '' S))", " ∀ s ∈ (fun s => f s) '' S, IsOpen s", " ∀ s ∈ (fun s => f s) '' S, Dense s", " s ∈ residual X ↔ ∃ t ⊆ s, IsGδ t ∧ Dense t", " s ∈ residual X → ∃ t ⊆ s, IsGδ t ∧ Dense t", " (∃ S, (∀ t ∈ S, IsOpen ...
import Mathlib.Order.Interval.Set.UnorderedInterval import Mathlib.Algebra.Order.Interval.Set.Monoid import Mathlib.Data.Set.Pointwise.Basic import Mathlib.Algebra.Order.Field.Basic import Mathlib.Algebra.Order.Group.MinMax #align_import data.set.pointwise.interval from "leanprover-community/mathlib"@"2196ab363eb097c...
Mathlib/Data/Set/Pointwise/Interval.lean
152
153
theorem preimage_const_add_Ico : (fun x => a + x) ⁻¹' Ico b c = Ico (b - a) (c - a) := by
simp [← Ici_inter_Iio]
[ " (fun x => a + x) ⁻¹' Icc b c = Icc (b - a) (c - a)", " (fun x => a + x) ⁻¹' Ico b c = Ico (b - a) (c - a)" ]
[ " (fun x => a + x) ⁻¹' Icc b c = Icc (b - a) (c - a)" ]
import Mathlib.Order.Interval.Set.OrdConnectedComponent import Mathlib.Topology.Order.Basic #align_import topology.algebra.order.t5 from "leanprover-community/mathlib"@"4c19a16e4b705bf135cf9a80ac18fcc99c438514" open Filter Set Function OrderDual Topology Interval variable {X : Type*} [LinearOrder X] [Topological...
Mathlib/Topology/Order/T5.lean
74
79
theorem compl_section_ordSeparatingSet_mem_nhds (hd : Disjoint s (closure t)) (ha : a ∈ s) : (ordConnectedSection <| ordSeparatingSet s t)ᶜ ∈ 𝓝 a := by
rw [← nhds_left_sup_nhds_right, mem_sup] exact ⟨compl_section_ordSeparatingSet_mem_nhdsWithin_Iic hd ha, compl_section_ordSeparatingSet_mem_nhdsWithin_Ici hd ha⟩
[ " s.ordConnectedComponent a ∈ 𝓝 a ↔ s ∈ 𝓝 a", " s.ordConnectedComponent a ∈ 𝓝 a", " (s.ordSeparatingSet t).ordConnectedSectionᶜ ∈ 𝓝[≥] a", " tᶜ ∈ 𝓝[≥] a", " tᶜ ∈ 𝓝 a", " a ∈ (closure t)ᶜ", " False", " [[x, c]] ⊆ s.ordSeparatingSet t", " [[x, c]] ⊆ tᶜ.ordConnectedComponent a", " [[x, c]] ⊆ ⋃ ...
[ " s.ordConnectedComponent a ∈ 𝓝 a ↔ s ∈ 𝓝 a", " s.ordConnectedComponent a ∈ 𝓝 a", " (s.ordSeparatingSet t).ordConnectedSectionᶜ ∈ 𝓝[≥] a", " tᶜ ∈ 𝓝[≥] a", " tᶜ ∈ 𝓝 a", " a ∈ (closure t)ᶜ", " False", " [[x, c]] ⊆ s.ordSeparatingSet t", " [[x, c]] ⊆ tᶜ.ordConnectedComponent a", " [[x, c]] ⊆ ⋃ ...
import Mathlib.Algebra.GCDMonoid.Finset import Mathlib.Algebra.Polynomial.CancelLeads import Mathlib.Algebra.Polynomial.EraseLead import Mathlib.Algebra.Polynomial.FieldDivision #align_import ring_theory.polynomial.content from "leanprover-community/mathlib"@"7a030ab8eb5d99f05a891dccc49c5b5b90c947d3" namespace Po...
Mathlib/RingTheory/Polynomial/Content.lean
92
97
theorem content_C {r : R} : (C r).content = normalize r := by
rw [content] by_cases h0 : r = 0 · simp [h0] have h : (C r).support = {0} := support_monomial _ h0 simp [h]
[ " p.content ∣ p.coeff n", " p.content ∣ 0", " (C r).content = normalize r", " (C r).support.gcd (C r).coeff = normalize r" ]
[ " p.content ∣ p.coeff n", " p.content ∣ 0" ]
import Mathlib.Data.Finset.Card #align_import data.finset.option from "leanprover-community/mathlib"@"c227d107bbada5d0d9d20287e3282c0a7f1651a0" variable {α β : Type*} open Function namespace Option def toFinset (o : Option α) : Finset α := o.elim ∅ singleton #align option.to_finset Option.toFinset @[simp] ...
Mathlib/Data/Finset/Option.lean
55
55
theorem card_toFinset (o : Option α) : o.toFinset.card = o.elim 0 1 := by
cases o <;> rfl
[ " a ∈ o.toFinset ↔ a ∈ o", " a ∈ none.toFinset ↔ a ∈ none", " a ∈ (some val✝).toFinset ↔ a ∈ some val✝", " o.toFinset.card = o.elim 0 1", " none.toFinset.card = none.elim 0 1", " (some val✝).toFinset.card = (some val✝).elim 0 1" ]
[ " a ∈ o.toFinset ↔ a ∈ o", " a ∈ none.toFinset ↔ a ∈ none", " a ∈ (some val✝).toFinset ↔ a ∈ some val✝" ]
import Mathlib.Algebra.CharP.Invertible import Mathlib.Algebra.MvPolynomial.Variables import Mathlib.Algebra.MvPolynomial.CommRing import Mathlib.Algebra.MvPolynomial.Expand import Mathlib.Data.Fintype.BigOperators import Mathlib.Data.ZMod.Basic #align_import ring_theory.witt_vector.witt_polynomial from "leanprover-c...
Mathlib/RingTheory/WittVector/WittPolynomial.lean
81
86
theorem wittPolynomial_eq_sum_C_mul_X_pow (n : ℕ) : wittPolynomial p R n = ∑ i ∈ range (n + 1), C ((p : R) ^ i) * X i ^ p ^ (n - i) := by
apply sum_congr rfl rintro i - rw [monomial_eq, Finsupp.prod_single_index] rw [pow_zero]
[ " wittPolynomial p R n = ∑ i ∈ range (n + 1), C (↑p ^ i) * X i ^ p ^ (n - i)", " ∀ x ∈ range (n + 1), (monomial (single x (p ^ (n - x)))) (↑p ^ x) = C (↑p ^ x) * X x ^ p ^ (n - x)", " (monomial (single i (p ^ (n - i)))) (↑p ^ i) = C (↑p ^ i) * X i ^ p ^ (n - i)", " X i ^ 0 = 1" ]
[]
import Mathlib.Data.Nat.Defs import Mathlib.Tactic.GCongr.Core import Mathlib.Tactic.Common import Mathlib.Tactic.Monotonicity.Attr #align_import data.nat.factorial.basic from "leanprover-community/mathlib"@"d012cd09a9b256d870751284dd6a29882b0be105" namespace Nat def factorial : ℕ → ℕ | 0 => 1 | succ n => s...
Mathlib/Data/Nat/Factorial/Basic.lean
113
118
theorem factorial_eq_one : n ! = 1 ↔ n ≤ 1 := by
constructor · intro h rw [← not_lt, ← one_lt_factorial, h] apply lt_irrefl · rintro (_|_|_) <;> rfl
[ " m ! ∣ n !", " m ! ∣ m !", " m ! ∣ n.succ !", " m ! * (m + 1) ^ 0 ≤ (m + 0)!", " m ! * (m + 1) ^ (n + 1) ≤ (m + (n + 1))!", " m ! * (m + 1) ^ n * (m + 1) ≤ (m + n)! * (m + n + 1)", " n ! < m ! ↔ n < m", " n ! < m !", " ∀ {n : ℕ}, 0 < n → n ! < (n + 1)!", " k ! < (k + 1)!", " 0 < k * k !", " n...
[ " m ! ∣ n !", " m ! ∣ m !", " m ! ∣ n.succ !", " m ! * (m + 1) ^ 0 ≤ (m + 0)!", " m ! * (m + 1) ^ (n + 1) ≤ (m + (n + 1))!", " m ! * (m + 1) ^ n * (m + 1) ≤ (m + n)! * (m + n + 1)", " n ! < m ! ↔ n < m", " n ! < m !", " ∀ {n : ℕ}, 0 < n → n ! < (n + 1)!", " k ! < (k + 1)!", " 0 < k * k !", " n...
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
40
43
theorem inv_norm_smul_mem_closed_unit_ball (x : E) : ‖x‖⁻¹ • x ∈ closedBall (0 : E) 1 := by
simp only [mem_closedBall_zero_iff, norm_smul, norm_inv, norm_norm, ← div_eq_inv_mul, div_self_le_one]
[ " ‖x‖⁻¹ • x ∈ closedBall 0 1" ]
[]
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.Degree.Lemmas import Mathlib.Algebra.Polynomial.HasseDeriv #align_import data.polynomial.taylor from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" noncomputable section namespace Polynomial open Polynomial...
Mathlib/Algebra/Polynomial/Taylor.lean
130
134
theorem taylor_injective {R} [CommRing R] (r : R) : Function.Injective (taylor r) := by
intro f g h apply_fun taylor (-r) at h simpa only [taylor_apply, comp_assoc, add_comp, X_comp, C_comp, C_neg, neg_add_cancel_right, comp_X] using h
[ " { toFun := fun f => f.comp (X + C r), map_add' := ⋯ }.toFun (c • f) =\n (RingHom.id R) c • { toFun := fun f => f.comp (X + C r), map_add' := ⋯ }.toFun f", " (taylor r) X = X + C r", " (taylor r) (C x) = C x", " taylor 0 = LinearMap.id", " ((taylor 0 ∘ₗ monomial n✝¹) 1).coeff n✝ = ((LinearMap.id ∘ₗ mono...
[ " { toFun := fun f => f.comp (X + C r), map_add' := ⋯ }.toFun (c • f) =\n (RingHom.id R) c • { toFun := fun f => f.comp (X + C r), map_add' := ⋯ }.toFun f", " (taylor r) X = X + C r", " (taylor r) (C x) = C x", " taylor 0 = LinearMap.id", " ((taylor 0 ∘ₗ monomial n✝¹) 1).coeff n✝ = ((LinearMap.id ∘ₗ mono...
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.Polynomial.Degree.Lemmas #align_import data.polynomial.erase_lead from "leanprover-community/mathlib"@"fa256f00ce018e7b40e1dc756e403c86680bf448" noncomputable section open Polynomial open Polynomial Finset namespace Polynomial variable {R : Type*}...
Mathlib/Algebra/Polynomial/EraseLead.lean
89
92
theorem eraseLead_ne_zero (f0 : 2 ≤ f.support.card) : eraseLead f ≠ 0 := by
rw [Ne, ← card_support_eq_zero, eraseLead_support] exact (zero_lt_one.trans_le <| (tsub_le_tsub_right f0 1).trans Finset.pred_card_le_card_erase).ne.symm
[ " f.eraseLead.support = f.support.erase f.natDegree", " f.eraseLead.coeff i = if i = f.natDegree then 0 else f.coeff i", " f.eraseLead.coeff f.natDegree = 0", " f.eraseLead.coeff i = f.coeff i", " eraseLead 0 = 0", " f.eraseLead + C f.leadingCoeff * X ^ f.natDegree = f", " f - C f.leadingCoeff * X ^ f.n...
[ " f.eraseLead.support = f.support.erase f.natDegree", " f.eraseLead.coeff i = if i = f.natDegree then 0 else f.coeff i", " f.eraseLead.coeff f.natDegree = 0", " f.eraseLead.coeff i = f.coeff i", " eraseLead 0 = 0", " f.eraseLead + C f.leadingCoeff * X ^ f.natDegree = f", " f - C f.leadingCoeff * X ^ f.n...
import Mathlib.RingTheory.WittVector.IsPoly #align_import ring_theory.witt_vector.mul_p from "leanprover-community/mathlib"@"7abfbc92eec87190fba3ed3d5ec58e7c167e7144" namespace WittVector variable {p : ℕ} {R : Type*} [hp : Fact p.Prime] [CommRing R] local notation "𝕎" => WittVector p -- type as `\bbW` open Mv...
Mathlib/RingTheory/WittVector/MulP.lean
72
80
theorem bind₁_wittMulN_wittPolynomial (n k : ℕ) : bind₁ (wittMulN p n) (wittPolynomial p ℤ k) = n * wittPolynomial p ℤ k := by
induction' n with n ih · simp [wittMulN, Nat.cast_zero, zero_mul, bind₁_zero_wittPolynomial] · rw [wittMulN, ← bind₁_bind₁, wittAdd, wittStructureInt_prop] simp only [AlgHom.map_add, Nat.cast_succ, bind₁_X_right] rw [add_mul, one_mul, bind₁_rename, bind₁_rename] simp only [ih, Function.uncurry, Funct...
[ " (x * ↑n).coeff k = (aeval x.coeff) (wittMulN p n k)", " (x * ↑0).coeff k = (aeval x.coeff) (wittMulN p 0 k)", " (x * ↑(n + 1)).coeff k = (aeval x.coeff) (wittMulN p (n + 1) k)", " peval (wittAdd p k) ![(x * ↑n).coeff, x.coeff] =\n (aeval fun i => (aeval x.coeff) (Function.uncurry ![wittMulN p n, X] i)) (...
[ " (x * ↑n).coeff k = (aeval x.coeff) (wittMulN p n k)", " (x * ↑0).coeff k = (aeval x.coeff) (wittMulN p 0 k)", " (x * ↑(n + 1)).coeff k = (aeval x.coeff) (wittMulN p (n + 1) k)", " peval (wittAdd p k) ![(x * ↑n).coeff, x.coeff] =\n (aeval fun i => (aeval x.coeff) (Function.uncurry ![wittMulN p n, X] i)) (...
import Mathlib.Topology.Order.ProjIcc import Mathlib.Topology.CompactOpen import Mathlib.Topology.UnitInterval #align_import topology.path_connected from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" noncomputable section open scoped Classical open Topology Filter unitInterval Set Fun...
Mathlib/Topology/Connected/PathConnected.lean
188
190
theorem refl_symm {a : X} : (Path.refl a).symm = Path.refl a := by
ext rfl
[ " γ₁ = γ₂", " { toContinuousMap := toContinuousMap✝, source' := source'✝, target' := target'✝ } = γ₂", " { toContinuousMap := toContinuousMap✝¹, source' := source'✝¹, target' := target'✝¹ } =\n { toContinuousMap := toContinuousMap✝, source' := source'✝, target' := target'✝ }", " Continuous ⇑γ.toContinuousM...
[ " γ₁ = γ₂", " { toContinuousMap := toContinuousMap✝, source' := source'✝, target' := target'✝ } = γ₂", " { toContinuousMap := toContinuousMap✝¹, source' := source'✝¹, target' := target'✝¹ } =\n { toContinuousMap := toContinuousMap✝, source' := source'✝, target' := target'✝ }", " Continuous ⇑γ.toContinuousM...
import Mathlib.Analysis.InnerProductSpace.Spectrum import Mathlib.Data.Matrix.Rank import Mathlib.LinearAlgebra.Matrix.Diagonal import Mathlib.LinearAlgebra.Matrix.Hermitian #align_import linear_algebra.matrix.spectrum from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f6dddd2b4f5" namespace Matrix ...
Mathlib/LinearAlgebra/Matrix/Spectrum.lean
78
80
theorem eigenvectorUnitary_mulVec (j : n) : eigenvectorUnitary hA *ᵥ Pi.single j 1 = ⇑(hA.eigenvectorBasis j) := by
simp only [mulVec_single, eigenvectorUnitary_apply, mul_one]
[ " A *ᵥ (WithLp.equiv 2 ((i : n) → (fun x => 𝕜) i)) (hA.eigenvectorBasis j) =\n hA.eigenvalues j • (WithLp.equiv 2 ((i : n) → (fun x => 𝕜) i)) (hA.eigenvectorBasis j)", " ↑hA.eigenvectorUnitary *ᵥ Pi.single j 1 = (WithLp.equiv 2 ((i : n) → (fun x => 𝕜) i)) (hA.eigenvectorBasis j)" ]
[ " A *ᵥ (WithLp.equiv 2 ((i : n) → (fun x => 𝕜) i)) (hA.eigenvectorBasis j) =\n hA.eigenvalues j • (WithLp.equiv 2 ((i : n) → (fun x => 𝕜) i)) (hA.eigenvectorBasis j)" ]
import Mathlib.Topology.Separation import Mathlib.Topology.Bases #align_import topology.dense_embedding from "leanprover-community/mathlib"@"148aefbd371a25f1cff33c85f20c661ce3155def" noncomputable section open Set Filter open scoped Topology variable {α : Type*} {β : Type*} {γ : Type*} {δ : Type*} structure D...
Mathlib/Topology/DenseEmbedding.lean
65
72
theorem closure_image_mem_nhds {s : Set α} {a : α} (di : DenseInducing i) (hs : s ∈ 𝓝 a) : closure (i '' s) ∈ 𝓝 (i a) := by
rw [di.nhds_eq_comap a, ((nhds_basis_opens _).comap _).mem_iff] at hs rcases hs with ⟨U, ⟨haU, hUo⟩, sub : i ⁻¹' U ⊆ s⟩ refine mem_of_superset (hUo.mem_nhds haU) ?_ calc U ⊆ closure (i '' (i ⁻¹' U)) := di.dense.subset_closure_image_preimage_of_isOpen hUo _ ⊆ closure (i '' s) := closure_mono (image_subs...
[ " closure (i '' s) ∈ 𝓝 (i a)", " U ⊆ closure (i '' s)" ]
[]
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.Monic import Mathlib.Algebra.Ring.Action.Basic import Mathlib.GroupTheory.GroupAction.Hom import Mathlib.GroupTheory.GroupAction.Quotient #align_import algebra.polynomial.group_ring_action from "leanprover-community/mathlib"@"afad8e438d03f...
Mathlib/Algebra/Polynomial/GroupRingAction.lean
71
73
theorem eval_smul' [MulSemiringAction G S] (g : G) (f : S[X]) (x : S) : f.eval (g • x) = g • (g⁻¹ • f).eval x := by
rw [← smul_eval_smul, smul_inv_smul]
[ " HSMul.hSMul m = map (MulSemiringAction.toRingHom M R m)", " m • r = map (MulSemiringAction.toRingHom M R m) r", " DistribMulAction.toAddMonoidHom R[X] m = (mapRingHom (MulSemiringAction.toRingHom M R m)).toAddMonoidHom", " ((DistribMulAction.toAddMonoidHom R[X] m).comp (monomial n).toAddMonoidHom) r =\n ...
[ " HSMul.hSMul m = map (MulSemiringAction.toRingHom M R m)", " m • r = map (MulSemiringAction.toRingHom M R m) r", " DistribMulAction.toAddMonoidHom R[X] m = (mapRingHom (MulSemiringAction.toRingHom M R m)).toAddMonoidHom", " ((DistribMulAction.toAddMonoidHom R[X] m).comp (monomial n).toAddMonoidHom) r =\n ...
import Mathlib.Algebra.BigOperators.Group.Finset import Mathlib.Data.List.MinMax import Mathlib.Algebra.Tropical.Basic import Mathlib.Order.ConditionallyCompleteLattice.Finset #align_import algebra.tropical.big_operators from "leanprover-community/mathlib"@"d6fad0e5bf2d6f48da9175d25c3dc5706b3834ce" variable {R S :...
Mathlib/Algebra/Tropical/BigOperators.lean
99
103
theorem trop_sInf_image [ConditionallyCompleteLinearOrder R] (s : Finset S) (f : S → WithTop R) : trop (sInf (f '' s)) = ∑ i ∈ s, trop (f i) := by
rcases s.eq_empty_or_nonempty with (rfl | h) · simp only [Set.image_empty, coe_empty, sum_empty, WithTop.sInf_empty, trop_top] rw [← inf'_eq_csInf_image _ h, inf'_eq_inf, s.trop_inf]
[ " trop l.sum = (map trop l).prod", " trop [].sum = (map trop []).prod", " trop (hd :: tl).sum = (map trop (hd :: tl)).prod", " ∀ (a : List R), trop (sum ⟦a⟧) = (map trop ⟦a⟧).prod", " trop (∑ i ∈ s, f i) = ∏ i ∈ s, trop (f i)", " ∏ i ∈ s, trop (f i) = (Multiset.map trop (Multiset.map f s.val)).prod", " ...
[ " trop l.sum = (map trop l).prod", " trop [].sum = (map trop []).prod", " trop (hd :: tl).sum = (map trop (hd :: tl)).prod", " ∀ (a : List R), trop (sum ⟦a⟧) = (map trop ⟦a⟧).prod", " trop (∑ i ∈ s, f i) = ∏ i ∈ s, trop (f i)", " ∏ i ∈ s, trop (f i) = (Multiset.map trop (Multiset.map f s.val)).prod", " ...
import Mathlib.Order.Chain #align_import order.zorn from "leanprover-community/mathlib"@"46a64b5b4268c594af770c44d9e502afc6a515cb" open scoped Classical open Set variable {α β : Type*} {r : α → α → Prop} {c : Set α} local infixl:50 " ≺ " => r theorem exists_maximal_of_chains_bounded (h : ∀ c, IsChain r c → ∃...
Mathlib/Order/Zorn.lean
144
149
theorem zorn_nonempty_Ici₀ (a : α) (ih : ∀ c ⊆ Ici a, IsChain (· ≤ ·) c → ∀ y ∈ c, ∃ ub, ∀ z ∈ c, z ≤ ub) (x : α) (hax : a ≤ x) : ∃ m, x ≤ m ∧ ∀ z, m ≤ z → z ≤ m := by
let ⟨m, _, hxm, hm⟩ := zorn_nonempty_preorder₀ (Ici a) (fun c hca hc y hy ↦ ?_) x hax · exact ⟨m, hxm, fun z hmz => hm _ (hax.trans <| hxm.trans hmz) hmz⟩ · have ⟨ub, hub⟩ := ih c hca hc y hy; exact ⟨ub, (hca hy).trans (hub y hy), hub⟩
[ " a ∈ maxChain r", " a ∈ insert a (maxChain r)", " IsChain (fun x x_1 => x ≤ x_1) (Subtype.val '' c)", " (fun x x_1 => x ≤ x_1) ↑p ↑q ∨ (fun x x_1 => x ≤ x_1) ↑q ↑p", " ∃ m ∈ s, x ≤ m ∧ ∀ z ∈ s, m ≤ z → z ≤ m", " ∃ ub ∈ {y | y ∈ s ∧ x ≤ y}, ∀ z ∈ c, z ≤ ub", " ∃ ub ∈ {y | y ∈ s ∧ x ≤ y}, ∀ z ∈ ∅, z ≤ ub...
[ " a ∈ maxChain r", " a ∈ insert a (maxChain r)", " IsChain (fun x x_1 => x ≤ x_1) (Subtype.val '' c)", " (fun x x_1 => x ≤ x_1) ↑p ↑q ∨ (fun x x_1 => x ≤ x_1) ↑q ↑p", " ∃ m ∈ s, x ≤ m ∧ ∀ z ∈ s, m ≤ z → z ≤ m", " ∃ ub ∈ {y | y ∈ s ∧ x ≤ y}, ∀ z ∈ c, z ≤ ub", " ∃ ub ∈ {y | y ∈ s ∧ x ≤ y}, ∀ z ∈ ∅, z ≤ ub...
import Mathlib.Data.List.Cycle import Mathlib.GroupTheory.Perm.Cycle.Type import Mathlib.GroupTheory.Perm.List #align_import group_theory.perm.cycle.concrete from "leanprover-community/mathlib"@"00638177efd1b2534fc5269363ebf42a7871df9a" open Equiv Equiv.Perm List variable {α : Type*} namespace List variable [D...
Mathlib/GroupTheory/Perm/Cycle/Concrete.lean
120
123
theorem formPerm_apply_mem_eq_next (hl : Nodup l) (x : α) (hx : x ∈ l) : formPerm l x = next l x hx := by
obtain ⟨k, rfl⟩ := get_of_mem hx rw [next_get _ hl, formPerm_apply_get _ hl]
[ " l.formPerm.Disjoint l'.formPerm ↔ l.Disjoint l'", " (∀ (x : α), l.formPerm x = x ∨ l'.formPerm x = x) ↔ ∀ ⦃a : α⦄, a ∈ l → a ∈ l' → False", " (∀ (x : α), l.formPerm x = x ∨ l'.formPerm x = x) → ∀ ⦃a : α⦄, a ∈ l → a ∈ l' → False", " False", " (∀ ⦃a : α⦄, a ∈ l → a ∈ l' → False) → ∀ (x : α), l.formPerm x = ...
[ " l.formPerm.Disjoint l'.formPerm ↔ l.Disjoint l'", " (∀ (x : α), l.formPerm x = x ∨ l'.formPerm x = x) ↔ ∀ ⦃a : α⦄, a ∈ l → a ∈ l' → False", " (∀ (x : α), l.formPerm x = x ∨ l'.formPerm x = x) → ∀ ⦃a : α⦄, a ∈ l → a ∈ l' → False", " False", " (∀ ⦃a : α⦄, a ∈ l → a ∈ l' → False) → ∀ (x : α), l.formPerm x = ...
import Mathlib.Algebra.Order.BigOperators.Ring.Finset import Mathlib.Analysis.Convex.Hull import Mathlib.LinearAlgebra.AffineSpace.Basis #align_import analysis.convex.combination from "leanprover-community/mathlib"@"92bd7b1ffeb306a89f450bee126ddd8a284c259d" open Set Function open scoped Classical open Pointwise ...
Mathlib/Analysis/Convex/Combination.lean
70
71
theorem Finset.centerMass_singleton (hw : w i ≠ 0) : ({i} : Finset ι).centerMass w z = z i := by
rw [centerMass, sum_singleton, sum_singleton, ← mul_smul, inv_mul_cancel hw, one_smul]
[ " ∅.centerMass w z = 0", " {i, j}.centerMass w z = (w i / (w i + w j)) • z i + (w j / (w i + w j)) • z j", " (insert i t).centerMass w z =\n (w i / (w i + ∑ j ∈ t, w j)) • z i + ((∑ j ∈ t, w j) / (w i + ∑ j ∈ t, w j)) • t.centerMass w z", " (w i / (w i + ∑ i ∈ t, w i)) • z i + (w i + ∑ i ∈ t, w i)⁻¹ • ∑ i ...
[ " ∅.centerMass w z = 0", " {i, j}.centerMass w z = (w i / (w i + w j)) • z i + (w j / (w i + w j)) • z j", " (insert i t).centerMass w z =\n (w i / (w i + ∑ j ∈ t, w j)) • z i + ((∑ j ∈ t, w j) / (w i + ∑ j ∈ t, w j)) • t.centerMass w z", " (w i / (w i + ∑ i ∈ t, w i)) • z i + (w i + ∑ i ∈ t, w i)⁻¹ • ∑ i ...
import Mathlib.Data.DFinsupp.WellFounded import Mathlib.Data.Finsupp.Lex #align_import data.finsupp.well_founded from "leanprover-community/mathlib"@"5fd3186f1ec30a75d5f65732e3ce5e623382556f" variable {α N : Type*} namespace Finsupp variable [Zero N] {r : α → α → Prop} {s : N → N → Prop} (hbot : ∀ ⦃n⦄, ¬s n 0) ...
Mathlib/Data/Finsupp/WellFounded.lean
37
42
theorem Lex.acc (x : α →₀ N) (h : ∀ a ∈ x.support, Acc (rᶜ ⊓ (· ≠ ·)) a) : Acc (Finsupp.Lex r s) x := by
rw [lex_eq_invImage_dfinsupp_lex] classical refine InvImage.accessible toDFinsupp (DFinsupp.Lex.acc (fun _ => hbot) (fun _ => hs) _ ?_) simpa only [toDFinsupp_support] using h
[ " Acc (Finsupp.Lex r s) x", " Acc (InvImage (DFinsupp.Lex r fun x => s) toDFinsupp) x", " ∀ i ∈ x.toDFinsupp.support, Acc (rᶜ ⊓ fun x x_1 => x ≠ x_1) i" ]
[]
import Mathlib.Algebra.Polynomial.Eval #align_import data.polynomial.degree.lemmas from "leanprover-community/mathlib"@"728baa2f54e6062c5879a3e397ac6bac323e506f" noncomputable section open Polynomial open Finsupp Finset namespace Polynomial universe u v w variable {R : Type u} {S : Type v} {ι : Type w} {a b ...
Mathlib/Algebra/Polynomial/Degree/Lemmas.lean
356
357
theorem degree_mul_C (a0 : a ≠ 0) : (p * C a).degree = p.degree := by
rw [degree_mul, degree_C a0, add_zero]
[ " (p * C a).degree = p.degree" ]
[]
import Mathlib.Order.Interval.Set.OrdConnected import Mathlib.Data.Set.Lattice #align_import data.set.intervals.ord_connected_component from "leanprover-community/mathlib"@"92ca63f0fb391a9ca5f22d2409a6080e786d99f7" open Interval Function OrderDual namespace Set variable {α : Type*} [LinearOrder α] {s t : Set α}...
Mathlib/Order/Interval/Set/OrdConnectedComponent.lean
77
79
theorem ordConnectedComponent_inter (s t : Set α) (x : α) : ordConnectedComponent (s ∩ t) x = ordConnectedComponent s x ∩ ordConnectedComponent t x := by
simp [ordConnectedComponent, setOf_and]
[ " toDual x ∈ (⇑ofDual ⁻¹' s).ordConnectedComponent (toDual x✝) ↔ toDual x ∈ ⇑ofDual ⁻¹' s.ordConnectedComponent x✝", " ⇑ofDual ⁻¹' [[x✝, x]] ⊆ ⇑ofDual ⁻¹' s ↔ toDual x ∈ ⇑ofDual ⁻¹' s.ordConnectedComponent x✝", " x ∈ s.ordConnectedComponent x ↔ x ∈ s", " s.ordConnectedComponent x = ∅ ↔ x ∉ s", " univ.ordCon...
[ " toDual x ∈ (⇑ofDual ⁻¹' s).ordConnectedComponent (toDual x✝) ↔ toDual x ∈ ⇑ofDual ⁻¹' s.ordConnectedComponent x✝", " ⇑ofDual ⁻¹' [[x✝, x]] ⊆ ⇑ofDual ⁻¹' s ↔ toDual x ∈ ⇑ofDual ⁻¹' s.ordConnectedComponent x✝", " x ∈ s.ordConnectedComponent x ↔ x ∈ s", " s.ordConnectedComponent x = ∅ ↔ x ∉ s", " univ.ordCon...
import Mathlib.Analysis.InnerProductSpace.Dual #align_import analysis.inner_product_space.lax_milgram from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f6dddd2b4f5" noncomputable section open RCLike LinearMap ContinuousLinearMap InnerProductSpace open LinearMap (ker range) open RealInnerProduct...
Mathlib/Analysis/InnerProductSpace/LaxMilgram.lean
65
71
theorem antilipschitz (coercive : IsCoercive B) : ∃ C : ℝ≥0, 0 < C ∧ AntilipschitzWith C B♯ := by
rcases coercive.bounded_below with ⟨C, C_pos, below_bound⟩ refine ⟨C⁻¹.toNNReal, Real.toNNReal_pos.mpr (inv_pos.mpr C_pos), ?_⟩ refine ContinuousLinearMap.antilipschitz_of_bound B♯ ?_ simp_rw [Real.coe_toNNReal', max_eq_left_of_lt (inv_pos.mpr C_pos), ← inv_mul_le_iff (inv_pos.mpr C_pos)] simpa using bel...
[ " ∃ C, 0 < C ∧ ∀ (v : V), C * ‖v‖ ≤ ‖(continuousLinearMapOfBilin B) v‖", " ∀ (v : V), C * ‖v‖ ≤ ‖(continuousLinearMapOfBilin B) v‖", " C * ‖v‖ ≤ ‖(continuousLinearMapOfBilin B) v‖", " C * ‖v‖ * ‖v‖ ≤ ‖(continuousLinearMapOfBilin B) v‖ * ‖v‖", " v = 0", " ∃ C, 0 < C ∧ AntilipschitzWith C ⇑(continuousLinear...
[ " ∃ C, 0 < C ∧ ∀ (v : V), C * ‖v‖ ≤ ‖(continuousLinearMapOfBilin B) v‖", " ∀ (v : V), C * ‖v‖ ≤ ‖(continuousLinearMapOfBilin B) v‖", " C * ‖v‖ ≤ ‖(continuousLinearMapOfBilin B) v‖", " C * ‖v‖ * ‖v‖ ≤ ‖(continuousLinearMapOfBilin B) v‖ * ‖v‖", " v = 0" ]
import Mathlib.Algebra.Algebra.Tower import Mathlib.Algebra.MvPolynomial.Basic #align_import ring_theory.mv_polynomial.tower from "leanprover-community/mathlib"@"bb168510ef455e9280a152e7f31673cabd3d7496" variable (R A B : Type*) {σ : Type*} namespace MvPolynomial section Semiring variable [CommSemiring R] [Com...
Mathlib/RingTheory/MvPolynomial/Tower.lean
35
37
theorem aeval_map_algebraMap (x : σ → B) (p : MvPolynomial σ R) : aeval x (map (algebraMap R A) p) = aeval x p := by
rw [aeval_def, aeval_def, eval₂_map, IsScalarTower.algebraMap_eq R A B]
[ " (aeval x) ((map (algebraMap R A)) p) = (aeval x) p" ]
[]
import Mathlib.Algebra.Group.Pi.Lemmas import Mathlib.Algebra.Module.Defs import Mathlib.GroupTheory.Abelianization import Mathlib.GroupTheory.FreeGroup.Basic #align_import group_theory.free_abelian_group from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988" universe u v variable (α : Ty...
Mathlib/GroupTheory/FreeAbelianGroup.lean
129
135
theorem map_hom {α β γ} [AddCommGroup β] [AddCommGroup γ] (a : FreeAbelianGroup α) (f : α → β) (g : β →+ γ) : g (lift f a) = lift (g ∘ f) a := by
show (g.comp (lift f)) a = lift (g ∘ f) a apply lift.unique intro a show g ((lift f) (of a)) = g (f a) simp only [(· ∘ ·), lift.of]
[ " Unique (FreeAbelianGroup α)", " Unique (Additive (Abelianization (FreeGroup α)))", " (lift f) (of x) = f x", " f x = (FreeGroup.lift f) (FreeGroup.of x)", " g ((lift f) a) = (lift (⇑g ∘ f)) a", " (g.comp (lift f)) a = (lift (⇑g ∘ f)) a", " ∀ (x : α), (g.comp (lift f)) (of x) = (⇑g ∘ f) x", " (g.comp...
[ " Unique (FreeAbelianGroup α)", " Unique (Additive (Abelianization (FreeGroup α)))", " (lift f) (of x) = f x", " f x = (FreeGroup.lift f) (FreeGroup.of x)" ]
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Data.Complex.Exponential import Mathlib.Data.Complex.Module import Mathlib.RingTheory.Polynomial.Chebyshev #align_import analysis.special_functions.trigonometric.chebyshev from "leanprover-community/mathlib"@"2c1d8ca2812b64f88992a5294ea3dba144755cd1" set_...
Mathlib/Analysis/SpecialFunctions/Trigonometric/Chebyshev.lean
34
35
theorem aeval_U (x : A) (n : ℤ) : aeval x (U R n) = (U A n).eval x := by
rw [aeval_def, eval₂_eq_eval_map, map_U]
[ " (aeval x) (T R n) = eval x (T A n)", " (aeval x) (U R n) = eval x (U A n)" ]
[ " (aeval x) (T R n) = eval x (T A n)" ]
import Mathlib.Order.CompleteLattice import Mathlib.Order.Cover import Mathlib.Order.Iterate import Mathlib.Order.WellFounded #align_import order.succ_pred.basic from "leanprover-community/mathlib"@"0111834459f5d7400215223ea95ae38a1265a907" open Function OrderDual Set variable {α β : Type*} @[ext] class SuccOr...
Mathlib/Order/SuccPred/Basic.lean
290
295
theorem succ_le_succ (h : a ≤ b) : succ a ≤ succ b := by
by_cases hb : IsMax b · by_cases hba : b ≤ a · exact (hb <| hba.trans <| le_succ _).trans (le_succ _) · exact succ_le_of_lt ((h.lt_of_not_le hba).trans_le <| le_succ b) · rwa [succ_le_iff_of_not_isMax fun ha => hb <| ha.mono h, lt_succ_iff_of_not_isMax hb]
[ " ∀ (a : αᵒᵈ), (⇑toDual ∘ SuccOrder.succ ∘ ⇑ofDual) a ≤ a", " IsMin a✝", " ∀ {a b : αᵒᵈ}, a < b → a ≤ (⇑toDual ∘ SuccOrder.succ ∘ ⇑ofDual) b", " a ≤ (⇑toDual ∘ SuccOrder.succ ∘ ⇑ofDual) b", " ∀ (a : αᵒᵈ), a ≤ (⇑toDual ∘ PredOrder.pred ∘ ⇑ofDual) a", " IsMax a✝", " ∀ {a b : αᵒᵈ}, a < b → (⇑toDual ∘ PredO...
[ " ∀ (a : αᵒᵈ), (⇑toDual ∘ SuccOrder.succ ∘ ⇑ofDual) a ≤ a", " IsMin a✝", " ∀ {a b : αᵒᵈ}, a < b → a ≤ (⇑toDual ∘ SuccOrder.succ ∘ ⇑ofDual) b", " a ≤ (⇑toDual ∘ SuccOrder.succ ∘ ⇑ofDual) b", " ∀ (a : αᵒᵈ), a ≤ (⇑toDual ∘ PredOrder.pred ∘ ⇑ofDual) a", " IsMax a✝", " ∀ {a b : αᵒᵈ}, a < b → (⇑toDual ∘ PredO...
import Mathlib.GroupTheory.GroupAction.Prod import Mathlib.Algebra.Ring.Int import Mathlib.Data.Nat.Cast.Basic assert_not_exists DenselyOrdered variable {M : Type*} class NatPowAssoc (M : Type*) [MulOneClass M] [Pow M ℕ] : Prop where protected npow_add : ∀ (k n: ℕ) (x : M), x ^ (k + n) = x ^ k * x ^ n ...
Mathlib/Algebra/Group/NatPowAssoc.lean
65
67
theorem npow_mul_assoc (k m n : ℕ) (x : M) : (x ^ k * x ^ m) * x ^ n = x ^ k * (x ^ m * x ^ n) := by
simp only [← npow_add, add_assoc]
[ " x ^ k * x ^ m * x ^ n = x ^ k * (x ^ m * x ^ n)" ]
[]
import Mathlib.LinearAlgebra.Matrix.Determinant.Basic #align_import linear_algebra.matrix.reindex from "leanprover-community/mathlib"@"1cfdf5f34e1044ecb65d10be753008baaf118edf" namespace Matrix open Equiv Matrix variable {l m n o : Type*} {l' m' n' o' : Type*} {m'' n'' : Type*} variable (R A : Type*) section A...
Mathlib/LinearAlgebra/Matrix/Reindex.lean
73
77
theorem reindexLinearEquiv_comp (e₁ : m ≃ m') (e₂ : n ≃ n') (e₁' : m' ≃ m'') (e₂' : n' ≃ n'') : reindexLinearEquiv R A e₁' e₂' ∘ reindexLinearEquiv R A e₁ e₂ = reindexLinearEquiv R A (e₁.trans e₁') (e₂.trans e₂') := by
rw [← reindexLinearEquiv_trans] rfl
[ " reindexLinearEquiv R A e₁ e₂ ≪≫ₗ reindexLinearEquiv R A e₁' e₂' = reindexLinearEquiv R A (e₁.trans e₁') (e₂.trans e₂')", " (reindexLinearEquiv R A e₁ e₂ ≪≫ₗ reindexLinearEquiv R A e₁' e₂') x✝ i✝ j✝ =\n (reindexLinearEquiv R A (e₁.trans e₁') (e₂.trans e₂')) x✝ i✝ j✝", " ⇑(reindexLinearEquiv R A e₁' e₂') ∘ ⇑...
[ " reindexLinearEquiv R A e₁ e₂ ≪≫ₗ reindexLinearEquiv R A e₁' e₂' = reindexLinearEquiv R A (e₁.trans e₁') (e₂.trans e₂')", " (reindexLinearEquiv R A e₁ e₂ ≪≫ₗ reindexLinearEquiv R A e₁' e₂') x✝ i✝ j✝ =\n (reindexLinearEquiv R A (e₁.trans e₁') (e₂.trans e₂')) x✝ i✝ j✝" ]
import Mathlib.CategoryTheory.Sites.IsSheafFor import Mathlib.CategoryTheory.Limits.Shapes.Types import Mathlib.Tactic.ApplyFun #align_import category_theory.sites.sheaf_of_types from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" universe w v u namespace CategoryTheory open Opposite ...
Mathlib/CategoryTheory/Sites/EqualizerSheafCondition.lean
216
223
theorem w : forkMap P R ≫ firstMap P R = forkMap P R ≫ secondMap P R := by
dsimp ext fg simp only [firstMap, secondMap, forkMap] simp only [limit.lift_π, limit.lift_π_assoc, assoc, Fan.mk_π_app] haveI := Presieve.hasPullbacks.has_pullbacks fg.1.2.2 fg.2.2.2 rw [← P.map_comp, ← op_comp, pullback.condition] simp
[ " z₁ = z₂", " ∀ (j : Discrete ((Y : C) × { f // R f })),\n limit.π (Discrete.functor fun f => P.obj { unop := f.fst }) j z₁ =\n limit.π (Discrete.functor fun f => P.obj { unop := f.fst }) j z₂", " limit.π (Discrete.functor fun f => P.obj { unop := f.fst }) { as := ⟨Y, ⟨f, hf⟩⟩ } z₁ =\n limit.π (Discr...
[ " z₁ = z₂", " ∀ (j : Discrete ((Y : C) × { f // R f })),\n limit.π (Discrete.functor fun f => P.obj { unop := f.fst }) j z₁ =\n limit.π (Discrete.functor fun f => P.obj { unop := f.fst }) j z₂", " limit.π (Discrete.functor fun f => P.obj { unop := f.fst }) { as := ⟨Y, ⟨f, hf⟩⟩ } z₁ =\n limit.π (Discr...
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
120
120
theorem nat_rawCast_0 : (Nat.rawCast 0 : R) = 0 := by
simp
[ " a * -b = -(a * b)", " Nat.rawCast 0 = 0" ]
[ " a * -b = -(a * b)" ]
import Mathlib.Order.CompleteLattice import Mathlib.Data.Finset.Lattice import Mathlib.CategoryTheory.Limits.Shapes.Pullbacks import Mathlib.CategoryTheory.Category.Preorder import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.FiniteLimits #align_import category_theory.limi...
Mathlib/CategoryTheory/Limits/Lattice.lean
99
107
theorem finite_coproduct_eq_finset_sup [SemilatticeSup α] [OrderBot α] {ι : Type u} [Fintype ι] (f : ι → α) : ∐ f = Fintype.elems.sup f := by
trans · exact (IsColimit.coconePointUniqueUpToIso (colimit.isColimit _) (finiteColimitCocone (Discrete.functor f)).isColimit).to_eq change Finset.univ.sup (f ∘ discreteEquiv.toEmbedding) = Fintype.elems.sup f simp only [← Finset.sup_map, Finset.univ_map_equiv_to_embedding] rfl
[ " ∀ (J : Type) [𝒥 : SmallCategory J] [inst : FinCategory J], HasLimitsOfShape J α", " HasLimitsOfShape J α", " ∀ (J : Type) [𝒥 : SmallCategory J] [inst : FinCategory J], HasColimitsOfShape J α", " HasColimitsOfShape J α", " ∏ᶜ f = Fintype.elems.inf f", " ∏ᶜ f = ?m.21382", " (finiteLimitCone (Discrete....
[ " ∀ (J : Type) [𝒥 : SmallCategory J] [inst : FinCategory J], HasLimitsOfShape J α", " HasLimitsOfShape J α", " ∀ (J : Type) [𝒥 : SmallCategory J] [inst : FinCategory J], HasColimitsOfShape J α", " HasColimitsOfShape J α", " ∏ᶜ f = Fintype.elems.inf f", " ∏ᶜ f = ?m.21382", " (finiteLimitCone (Discrete....
import Mathlib.Topology.Separation open Topology Filter Set TopologicalSpace section Basic variable {α : Type*} [TopologicalSpace α] {C : Set α} theorem AccPt.nhds_inter {x : α} {U : Set α} (h_acc : AccPt x (𝓟 C)) (hU : U ∈ 𝓝 x) : AccPt x (𝓟 (U ∩ C)) := by have : 𝓝[≠] x ≤ 𝓟 U := by rw [le_princ...
Mathlib/Topology/Perfect.lean
147
153
theorem Perfect.closure_nhds_inter {U : Set α} (hC : Perfect C) (x : α) (xC : x ∈ C) (xU : x ∈ U) (Uop : IsOpen U) : Perfect (closure (U ∩ C)) ∧ (closure (U ∩ C)).Nonempty := by
constructor · apply Preperfect.perfect_closure exact hC.acc.open_inter Uop apply Nonempty.closure exact ⟨x, ⟨xU, xC⟩⟩
[ " AccPt x (𝓟 (U ∩ C))", " 𝓝[≠] x ≤ 𝓟 U", " U ∈ 𝓝[≠] x", " (𝓝[≠] x ⊓ 𝓟 C).NeBot", " Preperfect C ↔ ∀ x ∈ C, ∀ U ∈ 𝓝 x, ∃ y ∈ U ∩ C, y ≠ x", " Preperfect (U ∩ C)", " U ∈ 𝓝 x", " Perfect (closure C)", " IsClosed (closure C)", " Preperfect (closure C)", " AccPt x (𝓟 (closure C))", " AccPt...
[ " AccPt x (𝓟 (U ∩ C))", " 𝓝[≠] x ≤ 𝓟 U", " U ∈ 𝓝[≠] x", " (𝓝[≠] x ⊓ 𝓟 C).NeBot", " Preperfect C ↔ ∀ x ∈ C, ∀ U ∈ 𝓝 x, ∃ y ∈ U ∩ C, y ≠ x", " Preperfect (U ∩ C)", " U ∈ 𝓝 x", " Perfect (closure C)", " IsClosed (closure C)", " Preperfect (closure C)", " AccPt x (𝓟 (closure C))", " AccPt...
import Mathlib.Init.Logic import Mathlib.Tactic.AdaptationNote import Mathlib.Tactic.Coe set_option autoImplicit true -- We align Lean 3 lemmas with lemmas in `Init.SimpLemmas` in Lean 4. #align band_self Bool.and_self #align band_tt Bool.and_true #align band_ff Bool.and_false #align tt_band Bool.true_and #align f...
Mathlib/Init/Data/Bool/Lemmas.lean
51
51
theorem false_eq_true_eq_False : ¬false = true := by
decide
[ " ¬true = false", " ¬false = true" ]
[ " ¬true = false" ]
import Mathlib.Analysis.NormedSpace.lpSpace import Mathlib.Topology.Sets.Compacts #align_import topology.metric_space.kuratowski from "leanprover-community/mathlib"@"95d4f6586d313c8c28e00f36621d2a6a66893aa6" noncomputable section set_option linter.uppercaseLean3 false open Set Metric TopologicalSpace NNReal ENNR...
Mathlib/Topology/MetricSpace/Kuratowski.lean
91
102
theorem exists_isometric_embedding (α : Type u) [MetricSpace α] [SeparableSpace α] : ∃ f : α → ℓ^∞(ℕ), Isometry f := by
rcases (univ : Set α).eq_empty_or_nonempty with h | h · use fun _ => 0; intro x; exact absurd h (Nonempty.ne_empty ⟨x, mem_univ x⟩) · -- We construct a map x : ℕ → α with dense image rcases h with ⟨basepoint⟩ haveI : Inhabited α := ⟨basepoint⟩ have : ∃ s : Set α, s.Countable ∧ Dense s := exists_count...
[ " (fun n => dist a (x n) - dist (x 0) (x n)) ∈ lp (fun i => ℝ) ⊤", " BddAbove (range fun i => ‖(fun n => dist a (x n) - dist (x 0) (x n)) i‖)", " dist a (x 0) ∈ upperBounds (range fun i => ‖(fun n => dist a (x n) - dist (x 0) (x n)) i‖)", " (fun i => ‖(fun n => dist a (x n) - dist (x 0) (x n)) i‖) n ≤ dist a ...
[ " (fun n => dist a (x n) - dist (x 0) (x n)) ∈ lp (fun i => ℝ) ⊤", " BddAbove (range fun i => ‖(fun n => dist a (x n) - dist (x 0) (x n)) i‖)", " dist a (x 0) ∈ upperBounds (range fun i => ‖(fun n => dist a (x n) - dist (x 0) (x n)) i‖)", " (fun i => ‖(fun n => dist a (x n) - dist (x 0) (x n)) i‖) n ≤ dist a ...
import Mathlib.Algebra.Order.Kleene import Mathlib.Algebra.Ring.Hom.Defs import Mathlib.Data.List.Join import Mathlib.Data.Set.Lattice import Mathlib.Tactic.DeriveFintype #align_import computability.language from "leanprover-community/mathlib"@"a239cd3e7ac2c7cde36c913808f9d40c411344f6" open List Set Computability...
Mathlib/Computability/Language.lean
104
104
theorem mem_one (x : List α) : x ∈ (1 : Language α) ↔ x = [] := by
rfl
[ " x ∈ 1 ↔ x = []" ]
[]
import Mathlib.Geometry.Manifold.ContMDiff.Basic open Set ChartedSpace SmoothManifoldWithCorners open scoped Manifold variable {𝕜 : Type*} [NontriviallyNormedField 𝕜] -- declare a smooth manifold `M` over the pair `(E, H)`. {E : Type*} [NormedAddCommGroup E] [NormedSpace 𝕜 E] {H : Type*} [TopologicalSpace...
Mathlib/Geometry/Manifold/ContMDiff/Atlas.lean
36
42
theorem contMDiff_model : ContMDiff I 𝓘(𝕜, E) n I := by
intro x refine (contMDiffAt_iff _ _).mpr ⟨I.continuousAt, ?_⟩ simp only [mfld_simps] refine contDiffWithinAt_id.congr_of_eventuallyEq ?_ ?_ · exact Filter.eventuallyEq_of_mem self_mem_nhdsWithin fun x₂ => I.right_inv simp_rw [Function.comp_apply, I.left_inv, Function.id_def]
[ " ContMDiff I 𝓘(𝕜, E) n ↑I", " ContMDiffAt I 𝓘(𝕜, E) n (↑I) x", " ContDiffWithinAt 𝕜 n (↑(extChartAt 𝓘(𝕜, E) (↑I x)) ∘ ↑I ∘ ↑(extChartAt I x).symm) (range ↑I) (↑(extChartAt I x) x)", " ContDiffWithinAt 𝕜 n (↑I ∘ ↑I.symm) (range ↑I) (↑I x)", " ↑I ∘ ↑I.symm =ᶠ[nhdsWithin (↑I x) (range ↑I)] id", " (↑...
[]
import Mathlib.Algebra.Order.Ring.Abs #align_import data.int.order.units from "leanprover-community/mathlib"@"d012cd09a9b256d870751284dd6a29882b0be105" namespace Int theorem isUnit_iff_abs_eq {x : ℤ} : IsUnit x ↔ abs x = 1 := by rw [isUnit_iff_natAbs_eq, abs_eq_natAbs, ← Int.ofNat_one, natCast_inj] #align int....
Mathlib/Data/Int/Order/Units.lean
33
33
theorem units_mul_self (u : ℤˣ) : u * u = 1 := by
rw [← sq, units_sq]
[ " IsUnit x ↔ |x| = 1", " a ^ 2 = 1", " u ^ 2 = 1", " u * u = 1" ]
[ " IsUnit x ↔ |x| = 1", " a ^ 2 = 1", " u ^ 2 = 1" ]
import Mathlib.Data.Matrix.Invertible import Mathlib.LinearAlgebra.Matrix.NonsingularInverse import Mathlib.LinearAlgebra.Matrix.PosDef #align_import linear_algebra.matrix.schur_complement from "leanprover-community/mathlib"@"a176cb1219e300e85793d44583dede42377b51af" variable {l m n α : Type*} namespace Matrix ...
Mathlib/LinearAlgebra/Matrix/SchurComplement.lean
506
519
theorem IsHermitian.fromBlocks₁₁ [Fintype m] [DecidableEq m] {A : Matrix m m 𝕜} (B : Matrix m n 𝕜) (D : Matrix n n 𝕜) (hA : A.IsHermitian) : (Matrix.fromBlocks A B Bᴴ D).IsHermitian ↔ (D - Bᴴ * A⁻¹ * B).IsHermitian := by
have hBAB : (Bᴴ * A⁻¹ * B).IsHermitian := by apply isHermitian_conjTranspose_mul_mul apply hA.inv rw [isHermitian_fromBlocks_iff] constructor · intro h apply IsHermitian.sub h.2.2.2 hBAB · intro h refine ⟨hA, rfl, conjTranspose_conjTranspose B, ?_⟩ rw [← sub_add_cancel D] apply IsHerm...
[ " A.fromBlocks B C D = fromBlocks 1 0 (C * ⅟A) 1 * A.fromBlocks 0 0 (D - C * ⅟A * B) * fromBlocks 1 (⅟A * B) 0 1", " (reindex (Equiv.sumComm l n) (Equiv.sumComm m n)) (A.fromBlocks B C D) =\n (reindex (Equiv.sumComm l n) (Equiv.sumComm m n))\n (fromBlocks 1 (B * ⅟D) 0 1 * (A - B * ⅟D * C).fromBlocks 0 0 D...
[ " A.fromBlocks B C D = fromBlocks 1 0 (C * ⅟A) 1 * A.fromBlocks 0 0 (D - C * ⅟A * B) * fromBlocks 1 (⅟A * B) 0 1", " (reindex (Equiv.sumComm l n) (Equiv.sumComm m n)) (A.fromBlocks B C D) =\n (reindex (Equiv.sumComm l n) (Equiv.sumComm m n))\n (fromBlocks 1 (B * ⅟D) 0 1 * (A - B * ⅟D * C).fromBlocks 0 0 D...
import Mathlib.Data.Set.Function import Mathlib.Order.Interval.Set.OrdConnected #align_import data.set.intervals.proj_Icc from "leanprover-community/mathlib"@"4e24c4bfcff371c71f7ba22050308aa17815626c" variable {α β : Type*} [LinearOrder α] open Function namespace Set def projIci (a x : α) : Ici a := ⟨max a x,...
Mathlib/Order/Interval/Set/ProjIcc.lean
128
128
theorem projIic_coe (x : Iic b) : projIic b x = x := by
cases x; apply projIic_of_mem
[ " projIcc a b h x = ⟨a, ⋯⟩", " projIcc a b h x = ⟨b, ⋯⟩", " projIci a x = ⟨a, ⋯⟩ ↔ x ≤ a", " projIic b x = ⟨b, ⋯⟩ ↔ b ≤ x", " projIcc a b ⋯ x = ⟨a, ⋯⟩ ↔ x ≤ a", " projIcc a b ⋯ x = ⟨b, ⋯⟩ ↔ b ≤ x", " projIci a x = ⟨x, hx⟩", " projIic b x = ⟨x, hx⟩", " projIcc a b h x = ⟨x, hx⟩", " projIci a ↑x = x...
[ " projIcc a b h x = ⟨a, ⋯⟩", " projIcc a b h x = ⟨b, ⋯⟩", " projIci a x = ⟨a, ⋯⟩ ↔ x ≤ a", " projIic b x = ⟨b, ⋯⟩ ↔ b ≤ x", " projIcc a b ⋯ x = ⟨a, ⋯⟩ ↔ x ≤ a", " projIcc a b ⋯ x = ⟨b, ⋯⟩ ↔ b ≤ x", " projIci a x = ⟨x, hx⟩", " projIic b x = ⟨x, hx⟩", " projIcc a b h x = ⟨x, hx⟩", " projIci a ↑x = x...
import Mathlib.Algebra.MonoidAlgebra.Degree import Mathlib.Algebra.MvPolynomial.Rename import Mathlib.Algebra.Order.BigOperators.Ring.Finset #align_import data.mv_polynomial.variables from "leanprover-community/mathlib"@"2f5b500a507264de86d666a5f87ddb976e2d8de4" noncomputable section open Set Function Finsupp Ad...
Mathlib/Algebra/MvPolynomial/Degrees.lean
144
146
theorem degrees_prod {ι : Type*} (s : Finset ι) (f : ι → MvPolynomial σ R) : (∏ i ∈ s, f i).degrees ≤ ∑ i ∈ s, (f i).degrees := by
classical exact supDegree_prod_le (map_zero _) (map_add _)
[ " p.degrees = p.support.sup fun s => toMultiset s", " (p.support.sup fun s => toMultiset s) = p.support.sup fun s => toMultiset s", " ((monomial s) a).degrees ≤ toMultiset s", " (if a = 0 then ⊥ else toMultiset s) ≤ toMultiset s", " toMultiset s ≤ toMultiset s", " ((monomial s) a).degrees = toMultiset s",...
[ " p.degrees = p.support.sup fun s => toMultiset s", " (p.support.sup fun s => toMultiset s) = p.support.sup fun s => toMultiset s", " ((monomial s) a).degrees ≤ toMultiset s", " (if a = 0 then ⊥ else toMultiset s) ≤ toMultiset s", " toMultiset s ≤ toMultiset s", " ((monomial s) a).degrees = toMultiset s",...
import Mathlib.MeasureTheory.Integral.Lebesgue import Mathlib.Analysis.MeanInequalities import Mathlib.Analysis.MeanInequalitiesPow import Mathlib.MeasureTheory.Function.SpecialFunctions.Basic #align_import measure_theory.integral.mean_inequalities from "leanprover-community/mathlib"@"13bf7613c96a9fd66a81b9020a82cad9...
Mathlib/MeasureTheory/Integral/MeanInequalities.lean
110
130
theorem lintegral_mul_le_Lp_mul_Lq_of_ne_zero_of_ne_top {p q : ℝ} (hpq : p.IsConjExponent q) {f g : α → ℝ≥0∞} (hf : AEMeasurable f μ) (hf_nontop : (∫⁻ a, f a ^ p ∂μ) ≠ ⊤) (hg_nontop : (∫⁻ a, g a ^ q ∂μ) ≠ ⊤) (hf_nonzero : (∫⁻ a, f a ^ p ∂μ) ≠ 0) (hg_nonzero : (∫⁻ a, g a ^ q ∂μ) ≠ 0) : (∫⁻ a, (f * g) a ∂...
let npf := (∫⁻ c : α, f c ^ p ∂μ) ^ (1 / p) let nqg := (∫⁻ c : α, g c ^ q ∂μ) ^ (1 / q) calc (∫⁻ a : α, (f * g) a ∂μ) = ∫⁻ a : α, (funMulInvSnorm f p μ * funMulInvSnorm g q μ) a * (npf * nqg) ∂μ := by refine lintegral_congr fun a => ?_ rw [Pi.mul_apply, fun_eq_funMulInvSnorm_mul_snorm f h...
[ " ∫⁻ (a : α), (f * g) a ∂μ ≤ 1", " ∫⁻ (a : α), f a ^ p / ENNReal.ofReal p + g a ^ q / ENNReal.ofReal q ∂μ = 1", " ∫⁻ (a : α), f a ^ p * (ENNReal.ofReal p)⁻¹ + g a ^ q * (ENNReal.ofReal q)⁻¹ ∂μ = 1", " ∫⁻ (a : α), f a ^ p * (ENNReal.ofReal p)⁻¹ ∂μ + ∫⁻ (a : α), g a ^ q * (ENNReal.ofReal q)⁻¹ ∂μ = 1", " (ENNR...
[ " ∫⁻ (a : α), (f * g) a ∂μ ≤ 1", " ∫⁻ (a : α), f a ^ p / ENNReal.ofReal p + g a ^ q / ENNReal.ofReal q ∂μ = 1", " ∫⁻ (a : α), f a ^ p * (ENNReal.ofReal p)⁻¹ + g a ^ q * (ENNReal.ofReal q)⁻¹ ∂μ = 1", " ∫⁻ (a : α), f a ^ p * (ENNReal.ofReal p)⁻¹ ∂μ + ∫⁻ (a : α), g a ^ q * (ENNReal.ofReal q)⁻¹ ∂μ = 1", " (ENNR...
import Mathlib.Data.PFunctor.Univariate.Basic #align_import data.pfunctor.univariate.M from "leanprover-community/mathlib"@"8631e2d5ea77f6c13054d9151d82b83069680cb1" universe u v w open Nat Function open List variable (F : PFunctor.{u}) -- Porting note: the ♯ tactic is never used -- local prefix:0 "♯" => cast...
Mathlib/Data/PFunctor/Univariate/M.lean
128
134
theorem P_corec (i : X) (n : ℕ) : Agree (sCorec f i n) (sCorec f i (succ n)) := by
induction' n with n n_ih generalizing i constructor cases' f i with y g constructor introv apply n_ih
[ " x = CofixA.intro (head' x) (children' x)", " CofixA.intro a✝¹ a✝ = CofixA.intro (head' (CofixA.intro a✝¹ a✝)) (children' (CofixA.intro a✝¹ a✝))", " Agree x y", " Agree (children' x i) (children' y j)", " Agree (children' (CofixA.intro a✝ x✝) i) (children' (CofixA.intro a✝ x'✝) j)", " Agree (children' (C...
[ " x = CofixA.intro (head' x) (children' x)", " CofixA.intro a✝¹ a✝ = CofixA.intro (head' (CofixA.intro a✝¹ a✝)) (children' (CofixA.intro a✝¹ a✝))", " Agree x y", " Agree (children' x i) (children' y j)", " Agree (children' (CofixA.intro a✝ x✝) i) (children' (CofixA.intro a✝ x'✝) j)", " Agree (children' (C...
import Mathlib.Algebra.Algebra.Tower import Mathlib.Algebra.Module.BigOperators import Mathlib.LinearAlgebra.Basis #align_import ring_theory.algebra_tower from "leanprover-community/mathlib"@"94825b2b0b982306be14d891c4f063a1eca4f370" open Pointwise universe u v w u₁ variable (R : Type u) (S : Type v) (A : Type ...
Mathlib/RingTheory/AlgebraTower.lean
108
121
theorem linearIndependent_smul {ι : Type v₁} {b : ι → S} {ι' : Type w₁} {c : ι' → A} (hb : LinearIndependent R b) (hc : LinearIndependent S c) : LinearIndependent R fun p : ι × ι' => b p.1 • c p.2 := by
rw [linearIndependent_iff'] at hb hc; rw [linearIndependent_iff'']; rintro s g hg hsg ⟨i, k⟩ by_cases hik : (i, k) ∈ s · have h1 : ∑ i ∈ s.image Prod.fst ×ˢ s.image Prod.snd, g i • b i.1 • c i.2 = 0 := by rw [← hsg] exact (Finset.sum_subset Finset.subset_product fun p _ hp => show...
[ " LinearIndependent R fun p => b p.1 • c p.2", " ∀ (s : Finset (ι × ι')) (g : ι × ι' → R),\n (∀ i ∉ s, g i = 0) → ∑ i ∈ s, g i • b i.1 • c i.2 = 0 → ∀ (i : ι × ι'), g i = 0", " g (i, k) = 0", " ∑ i ∈ Finset.image Prod.fst s ×ˢ Finset.image Prod.snd s, g i • b i.1 • c i.2 = 0", " ∑ i ∈ Finset.image Prod.f...
[]
import Mathlib.Probability.Notation import Mathlib.Probability.Density import Mathlib.Probability.ConditionalProbability import Mathlib.Probability.ProbabilityMassFunction.Constructions open scoped Classical MeasureTheory NNReal ENNReal -- TODO: We can't `open ProbabilityTheory` without opening the `ProbabilityThe...
Mathlib/Probability/Distributions/Uniform.lean
66
75
theorem aemeasurable {X : Ω → E} {s : Set E} (hns : μ s ≠ 0) (hnt : μ s ≠ ∞) (hu : IsUniform X s ℙ μ) : AEMeasurable X ℙ := by
dsimp [IsUniform, ProbabilityTheory.cond] at hu by_contra h rw [map_of_not_aemeasurable h] at hu apply zero_ne_one' ℝ≥0∞ calc 0 = (0 : Measure E) Set.univ := rfl _ = _ := by rw [hu, smul_apply, restrict_apply MeasurableSet.univ, Set.univ_inter, smul_eq_mul, ENNReal.inv_mul_cancel hns hnt]
[ " AEMeasurable X ℙ", " False", " 0 = 1", " 0 Set.univ = 1" ]
[]
import Mathlib.LinearAlgebra.FiniteDimensional import Mathlib.LinearAlgebra.FreeModule.Finite.Basic import Mathlib.LinearAlgebra.FreeModule.StrongRankCondition import Mathlib.LinearAlgebra.Projection import Mathlib.LinearAlgebra.SesquilinearForm import Mathlib.RingTheory.TensorProduct.Basic import Mathlib.RingTheory.I...
Mathlib/LinearAlgebra/Dual.lean
226
231
theorem LinearMap.dualMap_injective_of_surjective {f : M₁ →ₗ[R] M₂} (hf : Function.Surjective f) : Function.Injective f.dualMap := by
intro φ ψ h ext x obtain ⟨y, rfl⟩ := hf x exact congr_arg (fun g : Module.Dual R M₁ => g y) h
[ " id.dualMap = id", " (id.dualMap x✝¹) x✝ = (id x✝¹) x✝", " Function.Injective ⇑f.dualMap", " φ = ψ", " φ x = ψ x", " φ (f y) = ψ (f y)" ]
[ " id.dualMap = id", " (id.dualMap x✝¹) x✝ = (id x✝¹) x✝" ]
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.MvPolynomial.Rename import Mathlib.Algebra.MvPolynomial.Degrees import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Data.Finsupp.Fin import Mathlib.Logic.Equiv.Fin #align_import data.mv_polynomial.equiv from "leanprover-community/mathlib"@"2f5b500...
Mathlib/Algebra/MvPolynomial/Equiv.lean
143
147
theorem mapAlgEquiv_trans (e : A₁ ≃ₐ[R] A₂) (f : A₂ ≃ₐ[R] A₃) : (mapAlgEquiv σ e).trans (mapAlgEquiv σ f) = mapAlgEquiv σ (e.trans f) := by
ext simp only [AlgEquiv.trans_apply, mapAlgEquiv_apply, map_map] rfl
[ " LeftInverse (Polynomial.eval₂ C (X PUnit.unit)) (eval₂ Polynomial.C fun x => Polynomial.X)", " ∀ (p : MvPolynomial PUnit.{?u.2415 + 1} R), (f.comp g) p = p", " (f.comp g).comp C = C", " coeff m✝ (((f.comp g).comp C) a) = coeff m✝ (C a)", " coeff m✝ (Polynomial.eval₂ C (X PUnit.unit) (eval₂ Polynomial.C (f...
[ " LeftInverse (Polynomial.eval₂ C (X PUnit.unit)) (eval₂ Polynomial.C fun x => Polynomial.X)", " ∀ (p : MvPolynomial PUnit.{?u.2415 + 1} R), (f.comp g) p = p", " (f.comp g).comp C = C", " coeff m✝ (((f.comp g).comp C) a) = coeff m✝ (C a)", " coeff m✝ (Polynomial.eval₂ C (X PUnit.unit) (eval₂ Polynomial.C (f...
import Mathlib.RingTheory.Localization.Module import Mathlib.RingTheory.Norm import Mathlib.RingTheory.Discriminant #align_import ring_theory.localization.norm from "leanprover-community/mathlib"@"2e59a6de168f95d16b16d217b808a36290398c0a" open scoped nonZeroDivisors variable (R : Type*) {S : Type*} [CommRing R] ...
Mathlib/RingTheory/Localization/NormTrace.lean
50
56
theorem Algebra.map_leftMulMatrix_localization {ι : Type*} [Fintype ι] [DecidableEq ι] (b : Basis ι R S) (a : S) : (algebraMap R Rₘ).mapMatrix (leftMulMatrix b a) = leftMulMatrix (b.localizationLocalization Rₘ M Sₘ) (algebraMap S Sₘ a) := by
ext i j simp only [Matrix.map_apply, RingHom.mapMatrix_apply, leftMulMatrix_eq_repr_mul, ← map_mul, Basis.localizationLocalization_apply, Basis.localizationLocalization_repr_algebraMap]
[ " (algebraMap R Rₘ).mapMatrix ((leftMulMatrix b) a) =\n (leftMulMatrix (Basis.localizationLocalization Rₘ M Sₘ b)) ((algebraMap S Sₘ) a)", " (algebraMap R Rₘ).mapMatrix ((leftMulMatrix b) a) i j =\n (leftMulMatrix (Basis.localizationLocalization Rₘ M Sₘ b)) ((algebraMap S Sₘ) a) i j" ]
[]
import Mathlib.RingTheory.Valuation.Basic import Mathlib.NumberTheory.Padics.PadicNorm import Mathlib.Analysis.Normed.Field.Basic #align_import number_theory.padics.padic_numbers from "leanprover-community/mathlib"@"b9b2114f7711fec1c1e055d507f082f8ceb2c3b7" noncomputable section open scoped Classical open Nat m...
Mathlib/NumberTheory/Padics/PadicNumbers.lean
121
135
theorem norm_zero_iff (f : PadicSeq p) : f.norm = 0 ↔ f ≈ 0 := by
constructor · intro h by_contra hf unfold norm at h split_ifs at h · contradiction apply hf intro ε hε exists stationaryPoint hf intro j hj have heq := stationaryPoint_spec hf le_rfl hj simpa [h, heq] · intro h simp [norm, h]
[ " padicNorm p (↑f m) = padicNorm p (↑f n)", " False", " f.norm = 0 ↔ f ≈ 0", " f.norm = 0 → f ≈ 0", " f ≈ 0", " ∃ i, ∀ j ≥ i, padicNorm p (↑(f - 0) j) < ε", " ∀ j ≥ stationaryPoint hf, padicNorm p (↑(f - 0) j) < ε", " padicNorm p (↑(f - 0) j) < ε", " f ≈ 0 → f.norm = 0", " f.norm = 0" ]
[ " padicNorm p (↑f m) = padicNorm p (↑f n)", " False" ]
import Mathlib.Analysis.SpecialFunctions.Integrals #align_import data.real.pi.wallis from "leanprover-community/mathlib"@"980755c33b9168bc82f774f665eaa27878140fac" open scoped Real Topology Nat open Filter Finset intervalIntegral namespace Real namespace Wallis set_option linter.uppercaseLean3 false noncomp...
Mathlib/Data/Real/Pi/Wallis.lean
85
88
theorem W_le (k : ℕ) : W k ≤ π / 2 := by
rw [← div_le_one pi_div_two_pos, div_eq_inv_mul] rw [W_eq_integral_sin_pow_div_integral_sin_pow, div_le_one (integral_sin_pow_pos _)] apply integral_sin_pow_succ_le
[ " 0 < W k", " 0 < W 0", " 0 < ∏ i ∈ range 0, (2 * ↑i + 2) / (2 * ↑i + 1) * ((2 * ↑i + 2) / (2 * ↑i + 3))", " 0 < W (k + 1)", " 0 < W k * ((2 * ↑k + 2) / (2 * ↑k + 1) * ((2 * ↑k + 2) / (2 * ↑k + 3)))", " 0 < 2 * ↑k + 2", " 0 < 2 * ↑k + 1", " 0 < 2 * ↑k + 3", " W n = 2 ^ (4 * n) * ↑n ! ^ 4 / (↑(2 * n)...
[ " 0 < W k", " 0 < W 0", " 0 < ∏ i ∈ range 0, (2 * ↑i + 2) / (2 * ↑i + 1) * ((2 * ↑i + 2) / (2 * ↑i + 3))", " 0 < W (k + 1)", " 0 < W k * ((2 * ↑k + 2) / (2 * ↑k + 1) * ((2 * ↑k + 2) / (2 * ↑k + 3)))", " 0 < 2 * ↑k + 2", " 0 < 2 * ↑k + 1", " 0 < 2 * ↑k + 3", " W n = 2 ^ (4 * n) * ↑n ! ^ 4 / (↑(2 * n)...
import Aesop import Mathlib.Algebra.Group.Defs import Mathlib.Data.Nat.Defs import Mathlib.Data.Int.Defs import Mathlib.Logic.Function.Basic import Mathlib.Tactic.Cases import Mathlib.Tactic.SimpRw import Mathlib.Tactic.SplitIfs #align_import algebra.group.basic from "leanprover-community/mathlib"@"a07d750983b94c530a...
Mathlib/Algebra/Group/Basic.lean
1,426
1,432
theorem multiplicative_of_isTotal (p : α → Prop) (hswap : ∀ {a b}, p a → p b → f a b * f b a = 1) (hmul : ∀ {a b c}, r a b → r b c → p a → p b → p c → f a c = f a b * f b c) {a b c : α} (pa : p a) (pb : p b) (pc : p c) : f a c = f a b * f b c := by
apply multiplicative_of_symmetric_of_isTotal (fun a b => p a ∧ p b) r f fun _ _ => And.symm · simp_rw [and_imp]; exact @hswap · exact fun rab rbc pab _pbc pac => hmul rab rbc pab.1 pab.2 pac.2 exacts [⟨pa, pb⟩, ⟨pb, pc⟩, ⟨pa, pc⟩]
[ " f a c = f a b * f b c", " ∀ {b c : α}, r b c → p a b → p b c → p a c → f a c = f a b * f b c", " f a b * (f b a * f a c) = f a b * f b c", " ∀ {a b : α}, p a ∧ p b → f a b * f b a = 1", " ∀ {a b : α}, p a → p b → f a b * f b a = 1", " ∀ {a b c : α}, r a b → r b c → p a ∧ p b → p b ∧ p c → p a ∧ p c → f ...
[ " f a c = f a b * f b c", " ∀ {b c : α}, r b c → p a b → p b c → p a c → f a c = f a b * f b c", " f a b * (f b a * f a c) = f a b * f b c" ]
import Mathlib.Data.Multiset.Basic #align_import data.multiset.range from "leanprover-community/mathlib"@"0a0ec35061ed9960bf0e7ffb0335f44447b58977" open List Nat namespace Multiset -- range def range (n : ℕ) : Multiset ℕ := List.range n #align multiset.range Multiset.range theorem coe_range (n : ℕ) : ↑(List...
Mathlib/Data/Multiset/Range.lean
73
75
theorem range_add_eq_union (a b : ℕ) : range (a + b) = range a ∪ (range b).map (a + ·) := by
rw [range_add, add_eq_union_iff_disjoint] apply range_disjoint_map_add
[ " range n.succ = n ::ₘ range n", " ↑[n] + ↑(List.range n) = n ::ₘ range n", " (range a).Disjoint (map (fun x => a + x) m)", " False", " range (a + b) = range a ∪ map (fun x => a + x) (range b)", " (range a).Disjoint (map (fun x => a + x) (range b))" ]
[ " range n.succ = n ::ₘ range n", " ↑[n] + ↑(List.range n) = n ::ₘ range n", " (range a).Disjoint (map (fun x => a + x) m)", " False" ]
import Mathlib.Algebra.Order.EuclideanAbsoluteValue import Mathlib.Algebra.Order.Group.Basic import Mathlib.Algebra.Order.Ring.Basic import Mathlib.Algebra.Polynomial.FieldDivision #align_import data.polynomial.degree.card_pow_degree from "leanprover-community/mathlib"@"85d9f2189d9489f9983c0d01536575b0233bd305" n...
Mathlib/Algebra/Polynomial/Degree/CardPowDegree.lean
79
83
theorem cardPowDegree_apply [DecidableEq Fq] (p : Fq[X]) : cardPowDegree p = if p = 0 then 0 else (Fintype.card Fq : ℤ) ^ natDegree p := by
rw [cardPowDegree] dsimp convert rfl
[ " (fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree) (p * q) =\n (fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree) p *\n (fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree) q", " 0 ≤ { toFun := fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree, map_mu...
[ " (fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree) (p * q) =\n (fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree) p *\n (fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree) q", " 0 ≤ { toFun := fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree, map_mu...
import Mathlib.Data.Opposite import Mathlib.Tactic.Cases #align_import combinatorics.quiver.basic from "leanprover-community/mathlib"@"56adee5b5eef9e734d82272918300fca4f3e7cef" open Opposite -- We use the same universe order as in category theory. -- See note [CategoryTheory universes] universe v v₁ v₂ u u₁ u₂ ...
Mathlib/Combinatorics/Quiver/Basic.lean
138
140
theorem congr_map {U V : Type*} [Quiver U] [Quiver V] (F : U ⥤q V) {X Y : U} {f g : X ⟶ Y} (h : f = g) : F.map f = F.map g := by
rw [h]
[ " F = G", " { obj := F_obj, map := map✝ } = G", " { obj := F_obj, map := map✝¹ } = { obj := G_obj, map := map✝ }", " F_obj = G_obj", " F_obj X = G_obj X", " { obj := F_obj, map := map✝¹ } = { obj := F_obj, map := map✝ }", " map✝¹ = map✝", " map✝¹ f = map✝ f", " F.map f = F.map g" ]
[ " F = G", " { obj := F_obj, map := map✝ } = G", " { obj := F_obj, map := map✝¹ } = { obj := G_obj, map := map✝ }", " F_obj = G_obj", " F_obj X = G_obj X", " { obj := F_obj, map := map✝¹ } = { obj := F_obj, map := map✝ }", " map✝¹ = map✝", " map✝¹ f = map✝ f" ]
import Mathlib.Algebra.BigOperators.NatAntidiagonal import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Data.Nat.Choose.Sum import Mathlib.RingTheory.PowerSeries.Basic #align_import ring_theory.power_series.well_known from "leanprover-community/mathlib"@"8199f6717c150a7fe91c4534175f4cf99725978f" namespace PowerS...
Mathlib/RingTheory/PowerSeries/WellKnown.lean
218
220
theorem map_cos : map f (cos A) = cos A' := by
ext simp [cos, apply_ite f]
[ " (constantCoeff A) (exp A) = 1", " (algebraMap ℚ A) (1 / ↑0!) = 1", " (coeff A (bit0 n)) (sin A) = 0", " (coeff A (bit1 n)) (sin A) = (-1) ^ n * (coeff A (bit1 n)) (exp A)", " (coeff A (bit0 n)) (cos A) = (-1) ^ n * (coeff A (bit0 n)) (exp A)", " (coeff A (bit1 n)) (cos A) = 0", " (map f) (exp A) = exp...
[ " (constantCoeff A) (exp A) = 1", " (algebraMap ℚ A) (1 / ↑0!) = 1", " (coeff A (bit0 n)) (sin A) = 0", " (coeff A (bit1 n)) (sin A) = (-1) ^ n * (coeff A (bit1 n)) (exp A)", " (coeff A (bit0 n)) (cos A) = (-1) ^ n * (coeff A (bit0 n)) (exp A)", " (coeff A (bit1 n)) (cos A) = 0", " (map f) (exp A) = exp...
import Mathlib.Geometry.RingedSpace.PresheafedSpace import Mathlib.CategoryTheory.Limits.Final import Mathlib.Topology.Sheaves.Stalks #align_import algebraic_geometry.stalks from "leanprover-community/mathlib"@"d39590fc8728fbf6743249802486f8c91ffe07bc" noncomputable section universe v u v' u' open Opposite Cate...
Mathlib/Geometry/RingedSpace/Stalks.lean
108
121
theorem restrictStalkIso_inv_eq_ofRestrict {U : TopCat} (X : PresheafedSpace.{_, _, v} C) {f : U ⟶ (X : TopCat.{v})} (h : OpenEmbedding f) (x : U) : (X.restrictStalkIso h x).inv = stalkMap (X.ofRestrict h) x := by
-- We can't use `ext` here due to https://github.com/leanprover/std4/pull/159 refine colimit.hom_ext fun V => ?_ induction V with | h V => ?_ let i : (h.isOpenMap.functorNhds x).obj ((OpenNhds.map f x).obj V) ⟶ V := homOfLE (Set.image_preimage_subset f _) erw [Iso.comp_inv_eq, colimit.ι_map_assoc, colimi...
[]
[ " Y.presheaf.germ ⟨α.base ↑x, ⋯⟩ ≫ stalkMap α ↑x = α.c.app { unop := U } ≫ X.presheaf.germ x", " X.presheaf.germ ⟨f x, ⋯⟩ ≫ (X.restrictStalkIso h x).inv = (X.restrict h).presheaf.germ ⟨x, hx⟩" ]
import Mathlib.Algebra.Group.Subsemigroup.Basic #align_import group_theory.subsemigroup.membership from "leanprover-community/mathlib"@"6cb77a8eaff0ddd100e87b1591c6d3ad319514ff" assert_not_exists MonoidWithZero variable {ι : Sort*} {M A B : Type*} section NonAssoc variable [Mul M] open Set namespace Subsemigr...
Mathlib/Algebra/Group/Subsemigroup/Membership.lean
109
112
theorem mem_sSup_of_mem {S : Set (Subsemigroup M)} {s : Subsemigroup M} (hs : s ∈ S) : ∀ {x : M}, x ∈ s → x ∈ sSup S := by
have : s ≤ sSup S := le_sSup hs tauto
[ " x ∈ ⨆ i, S i ↔ ∃ i, x ∈ S i", " x ∈ ⨆ i, S i → ∃ i, x ∈ S i", " x ∈ closure (⋃ i, ↑(S i)) → ∃ i, x ∈ S i", " ∀ (x y : M), (∃ i, x ∈ S i) → (∃ i, y ∈ S i) → ∃ i, x * y ∈ S i", " ∃ i, x * y ∈ S i", " x ∈ ↑(⨆ i, S i) ↔ x ∈ ⋃ i, ↑(S i)", " x ∈ sSup S ↔ ∃ s ∈ S, x ∈ s", " x ∈ ↑(sSup S) ↔ x ∈ ⋃ s ∈ S, ↑s"...
[ " x ∈ ⨆ i, S i ↔ ∃ i, x ∈ S i", " x ∈ ⨆ i, S i → ∃ i, x ∈ S i", " x ∈ closure (⋃ i, ↑(S i)) → ∃ i, x ∈ S i", " ∀ (x y : M), (∃ i, x ∈ S i) → (∃ i, y ∈ S i) → ∃ i, x * y ∈ S i", " ∃ i, x * y ∈ S i", " x ∈ ↑(⨆ i, S i) ↔ x ∈ ⋃ i, ↑(S i)", " x ∈ sSup S ↔ ∃ s ∈ S, x ∈ s", " x ∈ ↑(sSup S) ↔ x ∈ ⋃ s ∈ S, ↑s"...
import Mathlib.Combinatorics.SetFamily.Shadow #align_import combinatorics.set_family.compression.uv from "leanprover-community/mathlib"@"6f8ab7de1c4b78a68ab8cf7dd83d549eb78a68a1" open Finset variable {α : Type*} theorem sup_sdiff_injOn [GeneralizedBooleanAlgebra α] (u v : α) : { x | Disjoint u x ∧ v ≤ x }....
Mathlib/Combinatorics/SetFamily/Compression/UV.lean
185
190
theorem compress_mem_compression (ha : a ∈ s) : compress u v a ∈ 𝓒 u v s := by
rw [mem_compression] by_cases h : compress u v a ∈ s · rw [compress_idem] exact Or.inl ⟨h, h⟩ · exact Or.inr ⟨h, a, ha, rfl⟩
[ " Set.InjOn (fun x => (x ⊔ u) \\ v) {x | Disjoint u x ∧ v ≤ x}", " a = b", " ((a ⊔ u) \\ v) \\ u ⊔ v = ((b ⊔ u) \\ v) \\ u ⊔ v", " compress u v ((a ⊔ v) \\ u) = a", " compress u u a = a", " (if Disjoint u a ∧ u ≤ a then (a ⊔ u) \\ u else a) = a", " (a ⊔ u) \\ u = a", " a = a", " compress (a \\ b) (b...
[ " Set.InjOn (fun x => (x ⊔ u) \\ v) {x | Disjoint u x ∧ v ≤ x}", " a = b", " ((a ⊔ u) \\ v) \\ u ⊔ v = ((b ⊔ u) \\ v) \\ u ⊔ v", " compress u v ((a ⊔ v) \\ u) = a", " compress u u a = a", " (if Disjoint u a ∧ u ≤ a then (a ⊔ u) \\ u else a) = a", " (a ⊔ u) \\ u = a", " a = a", " compress (a \\ b) (b...
import Mathlib.Analysis.LocallyConvex.Bounded import Mathlib.Analysis.RCLike.Basic #align_import analysis.locally_convex.continuous_of_bounded from "leanprover-community/mathlib"@"3f655f5297b030a87d641ad4e825af8d9679eb0b" open TopologicalSpace Bornology Filter Topology Pointwise variable {𝕜 𝕜' E F : Type*} var...
Mathlib/Analysis/LocallyConvex/ContinuousOfBounded.lean
96
166
theorem LinearMap.continuousAt_zero_of_locally_bounded (f : E →ₛₗ[σ] F) (hf : ∀ s, IsVonNBounded 𝕜 s → IsVonNBounded 𝕜' (f '' s)) : ContinuousAt f 0 := by
-- Assume that f is not continuous at 0 by_contra h -- We use a decreasing balanced basis for 0 : E and a balanced basis for 0 : F -- and reformulate non-continuity in terms of these bases rcases (nhds_basis_balanced 𝕜 E).exists_antitone_subbasis with ⟨b, bE1, bE⟩ simp only [_root_.id] at bE have bE' : ...
[ " ContinuousAt (⇑f) 0", " False", " (𝓝 0).HasBasis (fun x => x ≠ 0) fun n => (↑n)⁻¹ • b n", " ∀ (i : ℕ), True → ∃ i', i' ≠ 0 ∧ (↑i')⁻¹ • b i' ⊆ b i", " ∃ i', i' ≠ 0 ∧ (↑i')⁻¹ • b i' ⊆ b n", " n + 1 ≠ 0 ∧ (↑(n + 1))⁻¹ • b (n + 1) ⊆ b n", " (↑n + 1)⁻¹ • b (n + 1) ⊆ b n", " n ≤ n + 1", " (↑n + 1)⁻¹ • ...
[]
import Mathlib.Combinatorics.SimpleGraph.Finite import Mathlib.Data.Finset.Sym import Mathlib.Data.Matrix.Basic #align_import combinatorics.simple_graph.inc_matrix from "leanprover-community/mathlib"@"bb168510ef455e9280a152e7f31673cabd3d7496" open Finset Matrix SimpleGraph Sym2 open Matrix namespace SimpleGraph...
Mathlib/Combinatorics/SimpleGraph/IncMatrix.lean
85
89
theorem incMatrix_apply_mul_incMatrix_apply_of_not_adj (hab : a ≠ b) (h : ¬G.Adj a b) : G.incMatrix R a e * G.incMatrix R b e = 0 := by
rw [incMatrix_apply_mul_incMatrix_apply, Set.indicator_of_not_mem] rw [G.incidenceSet_inter_incidenceSet_of_not_adj h hab] exact Set.not_mem_empty e
[ " incMatrix R G a e = if e ∈ G.incidenceSet a then 1 else 0", " (if e ∈ G.incidenceSet a then 1 e else 0) = if e ∈ G.incidenceSet a then 1 else 0", " incMatrix R G a e * incMatrix R G b e = (G.incidenceSet a ∩ G.incidenceSet b).indicator 1 e", " incMatrix R G a e * incMatrix R G b e = 0", " e ∉ G.incidenceS...
[ " incMatrix R G a e = if e ∈ G.incidenceSet a then 1 else 0", " (if e ∈ G.incidenceSet a then 1 e else 0) = if e ∈ G.incidenceSet a then 1 else 0", " incMatrix R G a e * incMatrix R G b e = (G.incidenceSet a ∩ G.incidenceSet b).indicator 1 e" ]
import Mathlib.Order.Filter.AtTopBot #align_import order.filter.indicator_function from "leanprover-community/mathlib"@"8631e2d5ea77f6c13054d9151d82b83069680cb1" variable {α β M E : Type*} open Set Filter @[to_additive] theorem Monotone.mulIndicator_eventuallyEq_iUnion {ι} [Preorder ι] [One β] (s : ι → Set α) ...
Mathlib/Order/Filter/IndicatorFunction.lean
89
94
theorem mulIndicator_biUnion_finset_eventuallyEq {ι} [One β] (s : ι → Set α) (f : α → β) (a : α) : (fun n : Finset ι => mulIndicator (⋃ i ∈ n, s i) f a) =ᶠ[atTop] fun _ ↦ mulIndicator (iUnion s) f a := by
rw [iUnion_eq_iUnion_finset s] apply Monotone.mulIndicator_eventuallyEq_iUnion exact fun _ _ ↦ biUnion_subset_biUnion_left
[ " (fun i => (s i).mulIndicator f a) =ᶠ[atTop] fun x => (⋃ i, s i).mulIndicator f a", " (fun i => (s i).mulIndicator f a) =ᶠ[atTop] fun x => (⋂ i, s i).mulIndicator f a", " (fun n => (⋃ i ∈ n, s i).mulIndicator f a) =ᶠ[atTop] fun x => (iUnion s).mulIndicator f a", " (fun n => (⋃ i ∈ n, s i).mulIndicator f a) =...
[ " (fun i => (s i).mulIndicator f a) =ᶠ[atTop] fun x => (⋃ i, s i).mulIndicator f a", " (fun i => (s i).mulIndicator f a) =ᶠ[atTop] fun x => (⋂ i, s i).mulIndicator f a" ]
import Mathlib.Algebra.Bounds import Mathlib.Algebra.Order.Field.Basic -- Porting note: `LinearOrderedField`, etc import Mathlib.Data.Set.Pointwise.SMul #align_import algebra.order.pointwise from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" open Function Set open Pointwise variable ...
Mathlib/Algebra/Order/Pointwise.lean
183
194
theorem smul_Ioo : r • Ioo a b = Ioo (r • a) (r • b) := by
ext x simp only [mem_smul_set, smul_eq_mul, mem_Ioo] constructor · rintro ⟨a, ⟨a_h_left_left, a_h_left_right⟩, rfl⟩ constructor · exact (mul_lt_mul_left hr).mpr a_h_left_left · exact (mul_lt_mul_left hr).mpr a_h_left_right · rintro ⟨a_left, a_right⟩ use x / r refine ⟨⟨(lt_div_iff' hr).mpr...
[ " r • Ioo a b = Ioo (r • a) (r • b)", " x ∈ r • Ioo a b ↔ x ∈ Ioo (r • a) (r • b)", " (∃ y, (a < y ∧ y < b) ∧ r * y = x) ↔ r * a < x ∧ x < r * b", " (∃ y, (a < y ∧ y < b) ∧ r * y = x) → r * a < x ∧ x < r * b", " r * a✝ < r * a ∧ r * a < r * b", " r * a✝ < r * a", " r * a < r * b", " r * a < x ∧ x < r ...
[]
import Mathlib.Analysis.MeanInequalities import Mathlib.Data.Fintype.Order import Mathlib.LinearAlgebra.Matrix.Basis import Mathlib.Analysis.NormedSpace.WithLp #align_import analysis.normed_space.pi_Lp from "leanprover-community/mathlib"@"9d013ad8430ddddd350cff5c3db830278ded3c79" set_option linter.uppercaseLean3 f...
Mathlib/Analysis/NormedSpace/PiLp.lean
247
249
theorem dist_eq_iSup (f g : PiLp ∞ α) : dist f g = ⨆ i, dist (f i) (g i) := by
dsimp [dist] exact if_neg ENNReal.top_ne_zero
[ " dist f g = ⨆ i, dist (f i) (g i)", " (if ⊤ = 0 then ↑⋯.toFinset.card\n else if ⊤ = ⊤ then ⨆ i, dist (f i) (g i) else (∑ i : ι, dist (f i) (g i) ^ 0) ^ (1 / 0)) =\n ⨆ i, dist (f i) (g i)" ]
[]
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
88
93
theorem length_mul_left_ne (w : W) : ℓ (w * t) ≠ ℓ w := by
suffices cs.lengthParity (w * t) ≠ cs.lengthParity w by contrapose! this simp only [lengthParity_eq_ofAdd_length, this] rcases ht with ⟨w, i, rfl⟩ simp [lengthParity_simple]
[ " cs.IsReflection (cs.simple i)", " cs.simple i = 1 * cs.simple i * 1⁻¹", " t ^ 2 = 1", " (w * cs.simple i * w⁻¹) ^ 2 = 1", " t * t = 1", " w * cs.simple i * w⁻¹ * (w * cs.simple i * w⁻¹) = 1", " t⁻¹ = t", " (w * cs.simple i * w⁻¹)⁻¹ = w * cs.simple i * w⁻¹", " cs.IsReflection t⁻¹", " Odd (cs.leng...
[ " cs.IsReflection (cs.simple i)", " cs.simple i = 1 * cs.simple i * 1⁻¹", " t ^ 2 = 1", " (w * cs.simple i * w⁻¹) ^ 2 = 1", " t * t = 1", " w * cs.simple i * w⁻¹ * (w * cs.simple i * w⁻¹) = 1", " t⁻¹ = t", " (w * cs.simple i * w⁻¹)⁻¹ = w * cs.simple i * w⁻¹", " cs.IsReflection t⁻¹", " Odd (cs.leng...
import Mathlib.LinearAlgebra.ExteriorAlgebra.Basic import Mathlib.RingTheory.GradedAlgebra.Basic #align_import linear_algebra.exterior_algebra.grading from "leanprover-community/mathlib"@"34020e531ebc4e8aac6d449d9eecbcd1508ea8d0" namespace ExteriorAlgebra variable {R M : Type*} [CommRing R] [AddCommGroup M] [Modu...
Mathlib/LinearAlgebra/ExteriorAlgebra/Grading.lean
64
80
theorem GradedAlgebra.liftι_eq (i : ℕ) (x : ⋀[R]^i M) : GradedAlgebra.liftι R M x = DirectSum.of (fun i => ⋀[R]^i M) i x := by
cases' x with x hx dsimp only [Subtype.coe_mk, DirectSum.lof_eq_of] -- Porting note: original statement was -- refine Submodule.pow_induction_on_left' _ (fun r => ?_) (fun x y i hx hy ihx ihy => ?_) -- (fun m hm i x hx ih => ?_) hx -- but it created invalid goals induction hx using Submodule.pow_indu...
[ " (ι R) m ∈ ⋀[R]^1 M", " (GradedAlgebra.ι R M) m * (GradedAlgebra.ι R M) m = 0", " (DirectSum.of (fun i => ↥(⋀[R]^i M)) (1 + 1)) (GradedMonoid.GMul.mul ⟨(ι R) m, ⋯⟩ ⟨(ι R) m, ⋯⟩) = 0", " M →ₗ[R] ⨁ (i : ℕ), ↥(⋀[R]^i M)", " (liftι R M) ↑x = (DirectSum.of (fun i => ↥(⋀[R]^i M)) i) x", " (liftι R M) ↑⟨x, hx⟩ ...
[ " (ι R) m ∈ ⋀[R]^1 M", " (GradedAlgebra.ι R M) m * (GradedAlgebra.ι R M) m = 0", " (DirectSum.of (fun i => ↥(⋀[R]^i M)) (1 + 1)) (GradedMonoid.GMul.mul ⟨(ι R) m, ⋯⟩ ⟨(ι R) m, ⋯⟩) = 0", " M →ₗ[R] ⨁ (i : ℕ), ↥(⋀[R]^i M)" ]
import Mathlib.Algebra.Category.Ring.FilteredColimits import Mathlib.Geometry.RingedSpace.SheafedSpace import Mathlib.Topology.Sheaves.Stalks import Mathlib.Algebra.Category.Ring.Colimits import Mathlib.Algebra.Category.Ring.Limits #align_import algebraic_geometry.ringed_space from "leanprover-community/mathlib"@"5dc...
Mathlib/Geometry/RingedSpace/Basic.lean
58
79
theorem isUnit_res_of_isUnit_germ (U : Opens X) (f : X.presheaf.obj (op U)) (x : U) (h : IsUnit (X.presheaf.germ x f)) : ∃ (V : Opens X) (i : V ⟶ U) (_ : x.1 ∈ V), IsUnit (X.presheaf.map i.op f) := by
obtain ⟨g', heq⟩ := h.exists_right_inv obtain ⟨V, hxV, g, rfl⟩ := X.presheaf.germ_exist x.1 g' let W := U ⊓ V have hxW : x.1 ∈ W := ⟨x.2, hxV⟩ -- Porting note: `erw` can't write into `HEq`, so this is replaced with another `HEq` in the -- desired form replace heq : (X.presheaf.germ ⟨x.val, hxW⟩) ((X.pres...
[ " ∃ V i, ∃ (_ : ↑x ∈ V), IsUnit ((X.presheaf.map i.op) f)", " (X.presheaf.germ ⟨↑x, hxW⟩) ((X.presheaf.map (U.infLELeft V).op) f * (X.presheaf.map (U.infLERight V).op) g) =\n (X.presheaf.germ ⟨↑x, hxW⟩) 1", " (Limits.colimit.ι ((OpenNhds.inclusion ↑x).op ⋙ X.presheaf) { unop := { obj := W, property := ⋯ } })...
[]
import Mathlib.Algebra.Module.Submodule.Ker open Function Submodule namespace LinearMap variable {R N M : Type*} [Semiring R] [AddCommMonoid N] [Module R N] [AddCommMonoid M] [Module R M] (f i : N →ₗ[R] M) def iterateMapComap (n : ℕ) := (fun K : Submodule R N ↦ (K.map i).comap f)^[n] theorem iterateMapComap...
Mathlib/Algebra/Module/Submodule/IterateMapComap.lean
65
79
theorem iterateMapComap_eq_succ (K : Submodule R N) (m : ℕ) (heq : f.iterateMapComap i m K = f.iterateMapComap i (m + 1) K) (hf : Surjective f) (hi : Injective i) (n : ℕ) : f.iterateMapComap i n K = f.iterateMapComap i (n + 1) K := by
induction n with | zero => contrapose! heq induction m with | zero => exact heq | succ m ih => rw [iterateMapComap, iterateMapComap, iterate_succ', iterate_succ'] exact fun H ↦ ih (map_injective_of_injective hi (comap_injective_of_surjective hf H)) | succ n ih => rw [iterateMapCom...
[ " f.iterateMapComap i n K ≤ f.iterateMapComap i (n + 1) K", " f.iterateMapComap i n K ≤ (fun K => comap f (map i K))^[n + 1] K", " map f (f.iterateMapComap i n K) ≤ map i (f.iterateMapComap i n K)", " map f (f.iterateMapComap i 0 K) ≤ map i (f.iterateMapComap i 0 K)", " map f (f.iterateMapComap i (n + 1) K)...
[ " f.iterateMapComap i n K ≤ f.iterateMapComap i (n + 1) K", " f.iterateMapComap i n K ≤ (fun K => comap f (map i K))^[n + 1] K", " map f (f.iterateMapComap i n K) ≤ map i (f.iterateMapComap i n K)", " map f (f.iterateMapComap i 0 K) ≤ map i (f.iterateMapComap i 0 K)", " map f (f.iterateMapComap i (n + 1) K)...
import Mathlib.Topology.UniformSpace.UniformEmbedding import Mathlib.Topology.UniformSpace.Equiv #align_import topology.uniform_space.abstract_completion from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988" noncomputable section attribute [local instance] Classical.propDecidable open F...
Mathlib/Topology/UniformSpace/AbstractCompletion.lean
158
161
theorem extend_unique (hf : UniformContinuous f) {g : hatα → β} (hg : UniformContinuous g) (h : ∀ a : α, f a = g (ι a)) : pkg.extend f = g := by
apply pkg.funext pkg.continuous_extend hg.continuous simpa only [pkg.extend_coe hf] using h
[ " pkg.extend f (pkg.coe a) = f a", " ⋯.extend f (pkg.coe a) = f a", " UniformContinuous (pkg.extend f)", " UniformContinuous (⋯.extend f)", " UniformContinuous (if UniformContinuous f then ⋯.extend f else fun x => f (⋯.some x))", " UniformContinuous fun x => f (⋯.some x)", " f (⋯.some a) = f (⋯.some b)"...
[ " pkg.extend f (pkg.coe a) = f a", " ⋯.extend f (pkg.coe a) = f a", " UniformContinuous (pkg.extend f)", " UniformContinuous (⋯.extend f)", " UniformContinuous (if UniformContinuous f then ⋯.extend f else fun x => f (⋯.some x))", " UniformContinuous fun x => f (⋯.some x)", " f (⋯.some a) = f (⋯.some b)"...
import Mathlib.Data.List.Infix #align_import data.list.rdrop from "leanprover-community/mathlib"@"26f081a2fb920140ed5bc5cc5344e84bcc7cb2b2" -- Make sure we don't import algebra assert_not_exists Monoid variable {α : Type*} (p : α → Bool) (l : List α) (n : ℕ) namespace List def rdrop : List α := l.take (l.leng...
Mathlib/Data/List/DropRight.lean
166
174
theorem rdropWhile_eq_self_iff : rdropWhile p l = l ↔ ∀ hl : l ≠ [], ¬p (l.getLast hl) := by
simp only [rdropWhile, reverse_eq_iff, dropWhile_eq_self_iff, getLast_eq_get] refine ⟨fun h hl => ?_, fun h hl => ?_⟩ · rw [← length_pos, ← length_reverse] at hl have := h hl rwa [get_reverse'] at this · rw [length_reverse, length_pos] at hl have := h hl rwa [get_reverse']
[ " [].rdrop n = []", " l.rdrop 0 = l", " l.rdrop n = (drop n l.reverse).reverse", " take (l.length - n) l = (drop n l.reverse).reverse", " take ([].length - n) [] = (drop n [].reverse).reverse", " take ((xs ++ [x]).length - n) (xs ++ [x]) = (drop n (xs ++ [x]).reverse).reverse", " take ((xs ++ [x]).lengt...
[ " [].rdrop n = []", " l.rdrop 0 = l", " l.rdrop n = (drop n l.reverse).reverse", " take (l.length - n) l = (drop n l.reverse).reverse", " take ([].length - n) [] = (drop n [].reverse).reverse", " take ((xs ++ [x]).length - n) (xs ++ [x]) = (drop n (xs ++ [x]).reverse).reverse", " take ((xs ++ [x]).lengt...
import Mathlib.Data.List.Basic namespace List variable {α β : Type*} @[simp] theorem reduceOption_cons_of_some (x : α) (l : List (Option α)) : reduceOption (some x :: l) = x :: l.reduceOption := by simp only [reduceOption, filterMap, id, eq_self_iff_true, and_self_iff] #align list.reduce_option_cons_of_some...
Mathlib/Data/List/ReduceOption.lean
59
61
theorem reduceOption_length_le (l : List (Option α)) : l.reduceOption.length ≤ l.length := by
rw [length_eq_reduceOption_length_add_filter_none] apply Nat.le_add_right
[ " (some x :: l).reduceOption = x :: l.reduceOption", " (none :: l).reduceOption = l.reduceOption", " (map (Option.map f) l).reduceOption = map f l.reduceOption", " (map (Option.map f) []).reduceOption = map f [].reduceOption", " (map (Option.map f) (hd :: tl)).reduceOption = map f (hd :: tl).reduceOption", ...
[ " (some x :: l).reduceOption = x :: l.reduceOption", " (none :: l).reduceOption = l.reduceOption", " (map (Option.map f) l).reduceOption = map f l.reduceOption", " (map (Option.map f) []).reduceOption = map f [].reduceOption", " (map (Option.map f) (hd :: tl)).reduceOption = map f (hd :: tl).reduceOption", ...
import Mathlib.Algebra.Lie.Matrix import Mathlib.LinearAlgebra.Matrix.SesquilinearForm import Mathlib.Tactic.NoncommRing #align_import algebra.lie.skew_adjoint from "leanprover-community/mathlib"@"075b3f7d19b9da85a0b54b3e33055a74fc388dec" universe u v w w₁ section SkewAdjointMatrices open scoped Matrix variabl...
Mathlib/Algebra/Lie/SkewAdjoint.lean
103
112
theorem Matrix.isSkewAdjoint_bracket {A B : Matrix n n R} (hA : A ∈ skewAdjointMatricesSubmodule J) (hB : B ∈ skewAdjointMatricesSubmodule J) : ⁅A, B⁆ ∈ skewAdjointMatricesSubmodule J := by
simp only [mem_skewAdjointMatricesSubmodule] at * change ⁅A, B⁆ᵀ * J = J * (-⁅A, B⁆) change Aᵀ * J = J * (-A) at hA change Bᵀ * J = J * (-B) at hB rw [Matrix.lie_transpose, LieRing.of_associative_ring_bracket, LieRing.of_associative_ring_bracket, sub_mul, mul_assoc, mul_assoc, hA, hB, ← mul_assoc, ← ...
[ " (A * B - B * A)ᵀ = Bᵀ * Aᵀ - Aᵀ * Bᵀ", " ⁅A, B⁆ ∈ skewAdjointMatricesSubmodule J", " J.IsSkewAdjoint ⁅A, B⁆", " ⁅A, B⁆ᵀ * J = J * -⁅A, B⁆", " J * -B * -A - J * -A * -B = J * -(A * B - B * A)" ]
[ " (A * B - B * A)ᵀ = Bᵀ * Aᵀ - Aᵀ * Bᵀ" ]
import Mathlib.Data.ENNReal.Inv #align_import data.real.ennreal from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520" open Set NNReal ENNReal namespace ENNReal section iInf variable {ι : Sort*} {f g : ι → ℝ≥0∞} variable {a b c d : ℝ≥0∞} {r p q : ℝ≥0} theorem toNNReal_iInf (hf : ∀ i, f ...
Mathlib/Data/ENNReal/Real.lean
581
582
theorem toReal_iSup (hf : ∀ i, f i ≠ ∞) : (iSup f).toReal = ⨆ i, (f i).toReal := by
simp only [ENNReal.toReal, toNNReal_iSup hf, NNReal.coe_iSup]
[ " (iInf f).toNNReal = ⨅ i, (f i).toNNReal", " (⨅ i, ↑(f i)).toNNReal = ⨅ i, ((fun i => ↑(f i)) i).toNNReal", " (sInf s).toNNReal = sInf (ENNReal.toNNReal '' s)", " (iSup f).toNNReal = ⨆ i, (f i).toNNReal", " (⨆ i, ↑(f i)).toNNReal = ⨆ i, ((fun i => ↑(f i)) i).toNNReal", " (⨆ i, ↑(f i)).toNNReal = ⨆ i, f i...
[ " (iInf f).toNNReal = ⨅ i, (f i).toNNReal", " (⨅ i, ↑(f i)).toNNReal = ⨅ i, ((fun i => ↑(f i)) i).toNNReal", " (sInf s).toNNReal = sInf (ENNReal.toNNReal '' s)", " (iSup f).toNNReal = ⨆ i, (f i).toNNReal", " (⨆ i, ↑(f i)).toNNReal = ⨆ i, ((fun i => ↑(f i)) i).toNNReal", " (⨆ i, ↑(f i)).toNNReal = ⨆ i, f i...
import Mathlib.LinearAlgebra.CliffordAlgebra.Grading import Mathlib.LinearAlgebra.TensorProduct.Graded.Internal import Mathlib.LinearAlgebra.QuadraticForm.Prod suppress_compilation variable {R M₁ M₂ N : Type*} variable [CommRing R] [AddCommGroup M₁] [AddCommGroup M₂] [AddCommGroup N] variable [Module R M₁] [Module...
Mathlib/LinearAlgebra/CliffordAlgebra/Prod.lean
101
104
theorem map_mul_map_eq_neg_of_isOrtho_of_mem_evenOdd_one (hm₁ : m₁ ∈ evenOdd Q₁ 1) (hm₂ : m₂ ∈ evenOdd Q₂ 1) : map f₁ m₁ * map f₂ m₂ = - map f₂ m₂ * map f₁ m₁ := by
simp [map_mul_map_of_isOrtho_of_mem_evenOdd _ _ hf _ _ hm₁ hm₂]
[ " (map f₁) m₁ * (map f₂) m₂ = (-1) ^ (i₂ * i₁) • ((map f₂) m₂ * (map f₁) m₁)", " (map f₁) 0 * (map f₂) m₂ = (-1) ^ (i₂ * i₁) • ((map f₂) m₂ * (map f₁) 0)", " (map f₁) (x✝ + y✝) * (map f₂) m₂ = (-1) ^ (i₂ * i₁) • ((map f₂) m₂ * (map f₁) (x✝ + y✝))", " (map f₁) m₁' * (map f₂) m₂ = (-1) ^ (i₂ * i₁) • ((map f₂) m...
[ " (map f₁) m₁ * (map f₂) m₂ = (-1) ^ (i₂ * i₁) • ((map f₂) m₂ * (map f₁) m₁)", " (map f₁) 0 * (map f₂) m₂ = (-1) ^ (i₂ * i₁) • ((map f₂) m₂ * (map f₁) 0)", " (map f₁) (x✝ + y✝) * (map f₂) m₂ = (-1) ^ (i₂ * i₁) • ((map f₂) m₂ * (map f₁) (x✝ + y✝))", " (map f₁) m₁' * (map f₂) m₂ = (-1) ^ (i₂ * i₁) • ((map f₂) m...
import Mathlib.Algebra.BigOperators.NatAntidiagonal import Mathlib.Algebra.GeomSum import Mathlib.Data.Fintype.BigOperators import Mathlib.RingTheory.PowerSeries.Inverse import Mathlib.RingTheory.PowerSeries.WellKnown import Mathlib.Tactic.FieldSimp #align_import number_theory.bernoulli from "leanprover-community/mat...
Mathlib/NumberTheory/Bernoulli.lean
78
80
theorem bernoulli'_def (n : ℕ) : bernoulli' n = 1 - ∑ k ∈ range n, n.choose k / (n - k + 1) * bernoulli' k := by
rw [bernoulli'_def', ← Fin.sum_univ_eq_sum_range]
[ " bernoulli' n = 1 - ∑ k ∈ range n, ↑(n.choose k) / (↑n - ↑k + 1) * bernoulli' k" ]
[]
import Mathlib.Data.PFunctor.Multivariate.Basic #align_import data.qpf.multivariate.basic from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988" universe u open MvFunctor class MvQPF {n : ℕ} (F : TypeVec.{u} n → Type*) [MvFunctor F] where P : MvPFunctor.{u} n abs : ∀ {α}, P α → F α ...
Mathlib/Data/QPF/Multivariate/Basic.lean
164
177
theorem mem_supp {α : TypeVec n} (x : F α) (i) (u : α i) : u ∈ supp x i ↔ ∀ a f, abs ⟨a, f⟩ = x → u ∈ f i '' univ := by
rw [supp]; dsimp; constructor · intro h a f haf have : LiftP (fun i u => u ∈ f i '' univ) x := by rw [liftP_iff] refine ⟨a, f, haf.symm, ?_⟩ intro i u exact mem_image_of_mem _ (mem_univ _) exact h this intro h p; rw [liftP_iff] rintro ⟨a, f, xeq, h'⟩ rcases h a f xeq.symm with...
[ " TypeVec.id <$$> x = x", " TypeVec.id <$$> abs (repr x) = abs (repr x)", " TypeVec.id <$$> abs ⟨a, f⟩ = abs ⟨a, f⟩", " abs (TypeVec.id <$$> ⟨a, f⟩) = abs ⟨a, f⟩", " (g ⊚ f) <$$> x = g <$$> f <$$> x", " (g ⊚ f) <$$> abs (repr x) = g <$$> f <$$> abs (repr x)", " (g ⊚ f✝) <$$> abs ⟨a, f⟩ = g <$$> f✝ <$$> ...
[ " TypeVec.id <$$> x = x", " TypeVec.id <$$> abs (repr x) = abs (repr x)", " TypeVec.id <$$> abs ⟨a, f⟩ = abs ⟨a, f⟩", " abs (TypeVec.id <$$> ⟨a, f⟩) = abs ⟨a, f⟩", " (g ⊚ f) <$$> x = g <$$> f <$$> x", " (g ⊚ f) <$$> abs (repr x) = g <$$> f <$$> abs (repr x)", " (g ⊚ f✝) <$$> abs ⟨a, f⟩ = g <$$> f✝ <$$> ...
import Mathlib.LinearAlgebra.Matrix.Gershgorin import Mathlib.NumberTheory.NumberField.CanonicalEmbedding.ConvexBody import Mathlib.NumberTheory.NumberField.Units.Basic import Mathlib.RingTheory.RootsOfUnity.Basic #align_import number_theory.number_field.units from "leanprover-community/mathlib"@"00f91228655eecdcd3ac...
Mathlib/NumberTheory/NumberField/Units/DirichletTheorem.lean
100
106
theorem mult_log_place_eq_zero {x : (𝓞 K)ˣ} {w : InfinitePlace K} : mult w * Real.log (w x) = 0 ↔ w x = 1 := by
rw [mul_eq_zero, or_iff_right, Real.log_eq_zero, or_iff_right, or_iff_left] · linarith [(apply_nonneg _ _ : 0 ≤ w x)] · simp only [ne_eq, map_eq_zero, coe_ne_zero x, not_false_eq_true] · refine (ne_of_gt ?_) rw [mult]; split_ifs <;> norm_num
[ " (fun x w => ↑(↑w).mult * (↑w ((algebraMap (𝓞 K) K) ↑(Additive.toMul x))).log) 0 = 0", " (fun w => 0) = 0", " { toFun := fun x w => ↑(↑w).mult * (↑w ((algebraMap (𝓞 K) K) ↑(Additive.toMul x))).log, map_zero' := ⋯ }.toFun\n (x✝¹ + x✝) =\n { toFun := fun x w => ↑(↑w).mult * (↑w ((algebraMap (𝓞 K) K) ↑...
[ " (fun x w => ↑(↑w).mult * (↑w ((algebraMap (𝓞 K) K) ↑(Additive.toMul x))).log) 0 = 0", " (fun w => 0) = 0", " { toFun := fun x w => ↑(↑w).mult * (↑w ((algebraMap (𝓞 K) K) ↑(Additive.toMul x))).log, map_zero' := ⋯ }.toFun\n (x✝¹ + x✝) =\n { toFun := fun x w => ↑(↑w).mult * (↑w ((algebraMap (𝓞 K) K) ↑...
import Mathlib.Topology.Connected.Basic open Set Function universe u v variable {α : Type u} {β : Type v} {ι : Type*} {π : ι → Type*} [TopologicalSpace α] {s t u v : Set α} section TotallyDisconnected def IsTotallyDisconnected (s : Set α) : Prop := ∀ t, t ⊆ s → IsPreconnected t → t.Subsingleton #align is_t...
Mathlib/Topology/Connected/TotallyDisconnected.lean
123
128
theorem totallyDisconnectedSpace_iff_connectedComponent_singleton : TotallyDisconnectedSpace α ↔ ∀ x : α, connectedComponent x = {x} := by
rw [totallyDisconnectedSpace_iff_connectedComponent_subsingleton] refine forall_congr' fun x => ?_ rw [subsingleton_iff_singleton] exact mem_connectedComponent
[ " TotallyDisconnectedSpace (α ⊕ β)", " s.Subsingleton", " (Sum.inl '' t).Subsingleton", " (Sum.inr '' t).Subsingleton", " TotallyDisconnectedSpace ((i : ι) × π i)", " ∅.Subsingleton", " (Sigma.mk a '' t).Subsingleton", " IsTotallyDisconnected univ", " S.Subsingleton", " ∀ ⦃x : X⦄, x ∈ S → ∀ ⦃y : X...
[ " TotallyDisconnectedSpace (α ⊕ β)", " s.Subsingleton", " (Sum.inl '' t).Subsingleton", " (Sum.inr '' t).Subsingleton", " TotallyDisconnectedSpace ((i : ι) × π i)", " ∅.Subsingleton", " (Sigma.mk a '' t).Subsingleton", " IsTotallyDisconnected univ", " S.Subsingleton", " ∀ ⦃x : X⦄, x ∈ S → ∀ ⦃y : X...
import Mathlib.Combinatorics.SetFamily.Shadow #align_import combinatorics.set_family.compression.uv from "leanprover-community/mathlib"@"6f8ab7de1c4b78a68ab8cf7dd83d549eb78a68a1" open Finset variable {α : Type*} theorem sup_sdiff_injOn [GeneralizedBooleanAlgebra α] (u v : α) : { x | Disjoint u x ∧ v ≤ x }....
Mathlib/Combinatorics/SetFamily/Compression/UV.lean
156
158
theorem mem_compression : a ∈ 𝓒 u v s ↔ a ∈ s ∧ compress u v a ∈ s ∨ a ∉ s ∧ ∃ b ∈ s, compress u v b = a := by
simp_rw [compression, mem_union, mem_filter, mem_image, and_comm]
[ " Set.InjOn (fun x => (x ⊔ u) \\ v) {x | Disjoint u x ∧ v ≤ x}", " a = b", " ((a ⊔ u) \\ v) \\ u ⊔ v = ((b ⊔ u) \\ v) \\ u ⊔ v", " compress u v ((a ⊔ v) \\ u) = a", " compress u u a = a", " (if Disjoint u a ∧ u ≤ a then (a ⊔ u) \\ u else a) = a", " (a ⊔ u) \\ u = a", " a = a", " compress (a \\ b) (b...
[ " Set.InjOn (fun x => (x ⊔ u) \\ v) {x | Disjoint u x ∧ v ≤ x}", " a = b", " ((a ⊔ u) \\ v) \\ u ⊔ v = ((b ⊔ u) \\ v) \\ u ⊔ v", " compress u v ((a ⊔ v) \\ u) = a", " compress u u a = a", " (if Disjoint u a ∧ u ≤ a then (a ⊔ u) \\ u else a) = a", " (a ⊔ u) \\ u = a", " a = a", " compress (a \\ b) (b...
import Mathlib.Topology.Constructions #align_import topology.continuous_on from "leanprover-community/mathlib"@"d4f691b9e5f94cfc64639973f3544c95f8d5d494" open Set Filter Function Topology Filter variable {α : Type*} {β : Type*} {γ : Type*} {δ : Type*} variable [TopologicalSpace α] @[simp] theorem nhds_bind_nhdsW...
Mathlib/Topology/ContinuousOn.lean
104
107
theorem diff_mem_nhdsWithin_diff {x : α} {s t : Set α} (hs : s ∈ 𝓝[t] x) (t' : Set α) : s \ t' ∈ 𝓝[t \ t'] x := by
rw [nhdsWithin, diff_eq, diff_eq, ← inf_principal, ← inf_assoc] exact inter_mem_inf hs (mem_principal_self _)
[ " (∃ᶠ (x : α) in 𝓝 z, x ∈ s ∧ p x) ↔ ∃ᶠ (x : α) in 𝓝 z, p x ∧ x ∈ s", " z ∈ closure (s \\ {z}) ↔ ∃ᶠ (x : α) in 𝓝[≠] z, x ∈ s", " (∀ᶠ (y : α) in 𝓝[s] a, ∀ᶠ (x : α) in 𝓝[s] y, p x) ↔ ∀ᶠ (x : α) in 𝓝[s] a, p x", " ∀ᶠ (x : α) in 𝓝[s] a, p x", " ∀ᶠ (x : α) in 𝓝 a, x ∈ s → p x", " 𝓝[univ] a = 𝓝 a", ...
[ " (∃ᶠ (x : α) in 𝓝 z, x ∈ s ∧ p x) ↔ ∃ᶠ (x : α) in 𝓝 z, p x ∧ x ∈ s", " z ∈ closure (s \\ {z}) ↔ ∃ᶠ (x : α) in 𝓝[≠] z, x ∈ s", " (∀ᶠ (y : α) in 𝓝[s] a, ∀ᶠ (x : α) in 𝓝[s] y, p x) ↔ ∀ᶠ (x : α) in 𝓝[s] a, p x", " ∀ᶠ (x : α) in 𝓝[s] a, p x", " ∀ᶠ (x : α) in 𝓝 a, x ∈ s → p x", " 𝓝[univ] a = 𝓝 a", ...
import Mathlib.Data.Real.Irrational import Mathlib.Data.Nat.Fib.Basic import Mathlib.Data.Fin.VecNotation import Mathlib.Algebra.LinearRecurrence import Mathlib.Tactic.NormNum.NatFib import Mathlib.Tactic.NormNum.Prime #align_import data.real.golden_ratio from "leanprover-community/mathlib"@"2196ab363eb097c008d449712...
Mathlib/Data/Real/GoldenRatio.lean
129
131
theorem neg_one_lt_goldConj : -1 < ψ := by
rw [neg_lt, ← inv_gold] exact inv_lt_one one_lt_gold
[ " φ⁻¹ = -ψ", " 0 < 1", " 0 < 5", " 2 * 2 = 5 - 1", " ψ⁻¹ = -φ", " -ψ = φ⁻¹", " φ * ψ = -1", " (1 + √5) * (1 - √5) = -(2 * 2)", " 1 ^ 2 - √5 ^ 2 = -(2 * 2)", " ψ * φ = -1", " φ + ψ = 1", " (1 + √5) / 2 + (1 - √5) / 2 = 1", " 1 - φ = ψ", " 1 - ψ = φ", " φ - ψ = √5", " φ ^ (n + 2) - φ ^ (...
[ " φ⁻¹ = -ψ", " 0 < 1", " 0 < 5", " 2 * 2 = 5 - 1", " ψ⁻¹ = -φ", " -ψ = φ⁻¹", " φ * ψ = -1", " (1 + √5) * (1 - √5) = -(2 * 2)", " 1 ^ 2 - √5 ^ 2 = -(2 * 2)", " ψ * φ = -1", " φ + ψ = 1", " (1 + √5) / 2 + (1 - √5) / 2 = 1", " 1 - φ = ψ", " 1 - ψ = φ", " φ - ψ = √5", " φ ^ (n + 2) - φ ^ (...
import Mathlib.Analysis.SpecialFunctions.Pow.Real #align_import analysis.special_functions.pow.nnreal from "leanprover-community/mathlib"@"4fa54b337f7d52805480306db1b1439c741848c8" noncomputable section open scoped Classical open Real NNReal ENNReal ComplexConjugate open Finset Function Set namespace NNReal var...
Mathlib/Analysis/SpecialFunctions/Pow/NNReal.lean
108
109
theorem rpow_inv_rpow_self {y : ℝ} (hy : y ≠ 0) (x : ℝ≥0) : (x ^ y) ^ (1 / y) = x := by
field_simp [← rpow_mul]
[ " x ^ y = 0 ↔ x = 0 ∧ y ≠ 0", " ↑x ^ y = ↑0 ↔ ↑x = 0 ∧ y ≠ 0", " x ^ w = x ^ y * x ^ z", " y + z ≠ 0", " x ^ (-1) = x⁻¹", " (x ^ y) ^ (1 / y) = x" ]
[ " x ^ y = 0 ↔ x = 0 ∧ y ≠ 0", " ↑x ^ y = ↑0 ↔ ↑x = 0 ∧ y ≠ 0", " x ^ w = x ^ y * x ^ z", " y + z ≠ 0", " x ^ (-1) = x⁻¹" ]
import Mathlib.Data.Finset.Lattice #align_import combinatorics.set_family.compression.down from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" variable {α : Type*} [DecidableEq α] {𝒜 ℬ : Finset (Finset α)} {s : Finset α} {a : α} open Finset -- The namespace is here to distinguish fro...
Mathlib/Combinatorics/SetFamily/Compression/Down.lean
258
261
theorem erase_mem_compression_of_mem_compression : s ∈ 𝓓 a 𝒜 → s.erase a ∈ 𝓓 a 𝒜 := by
simp_rw [mem_compression, erase_idem] refine Or.imp (fun h => ⟨h.2, h.2⟩) fun h => ?_ rwa [erase_eq_of_not_mem (insert_ne_self.1 <| ne_of_mem_of_not_mem h.2 h.1)]
[ " False", " s ∈ 𝓓 a 𝒜 ↔ s ∈ 𝒜 ∧ s.erase a ∈ 𝒜 ∨ s ∉ 𝒜 ∧ insert a s ∈ 𝒜", " s ∈ 𝒜 ∧ s.erase a ∈ 𝒜 ∨ (∃ a_1 ∈ 𝒜, a_1.erase a = s) ∧ s ∉ 𝒜 ↔ s ∈ 𝒜 ∧ s.erase a ∈ 𝒜 ∨ insert a s ∈ 𝒜 ∧ s ∉ 𝒜", " (∃ a_1 ∈ 𝒜, a_1.erase a = s) → insert a s ∈ 𝒜", " insert a (t.erase a) ∈ 𝒜", " s.erase a ∈ 𝓓 a 𝒜",...
[ " False", " s ∈ 𝓓 a 𝒜 ↔ s ∈ 𝒜 ∧ s.erase a ∈ 𝒜 ∨ s ∉ 𝒜 ∧ insert a s ∈ 𝒜", " s ∈ 𝒜 ∧ s.erase a ∈ 𝒜 ∨ (∃ a_1 ∈ 𝒜, a_1.erase a = s) ∧ s ∉ 𝒜 ↔ s ∈ 𝒜 ∧ s.erase a ∈ 𝒜 ∨ insert a s ∈ 𝒜 ∧ s ∉ 𝒜", " (∃ a_1 ∈ 𝒜, a_1.erase a = s) → insert a s ∈ 𝒜", " insert a (t.erase a) ∈ 𝒜", " s.erase a ∈ 𝓓 a 𝒜",...
import Mathlib.Algebra.Algebra.Prod import Mathlib.LinearAlgebra.Basic import Mathlib.LinearAlgebra.Span import Mathlib.Order.PartialSups #align_import linear_algebra.prod from "leanprover-community/mathlib"@"cd391184c85986113f8c00844cfe6dda1d34be3d" universe u v w x y z u' v' w' y' variable {R : Type u} {K : Ty...
Mathlib/LinearAlgebra/Prod.lean
148
155
theorem range_inl : range (inl R M M₂) = ker (snd R M M₂) := by
ext x simp only [mem_ker, mem_range] constructor · rintro ⟨y, rfl⟩ rfl · intro h exact ⟨x.fst, Prod.ext rfl h.symm⟩
[ " Pi.prod (⇑f) (⇑g) (x + y) = Pi.prod (⇑f) (⇑g) x + Pi.prod (⇑f) (⇑g) y", " { toFun := Pi.prod ⇑f ⇑g, map_add' := ⋯ }.toFun (c • x) =\n (RingHom.id R) c • { toFun := Pi.prod ⇑f ⇑g, map_add' := ⋯ }.toFun x", " (fun f => (fst R M₂ M₃ ∘ₗ f, snd R M₂ M₃ ∘ₗ f))\n ({ toFun := fun f => f.1.prod f.2, map_add' :...
[ " Pi.prod (⇑f) (⇑g) (x + y) = Pi.prod (⇑f) (⇑g) x + Pi.prod (⇑f) (⇑g) y", " { toFun := Pi.prod ⇑f ⇑g, map_add' := ⋯ }.toFun (c • x) =\n (RingHom.id R) c • { toFun := Pi.prod ⇑f ⇑g, map_add' := ⋯ }.toFun x", " (fun f => (fst R M₂ M₃ ∘ₗ f, snd R M₂ M₃ ∘ₗ f))\n ({ toFun := fun f => f.1.prod f.2, map_add' :...
import Mathlib.Algebra.Bounds import Mathlib.Algebra.Order.Field.Basic -- Porting note: `LinearOrderedField`, etc import Mathlib.Data.Set.Pointwise.SMul #align_import algebra.order.pointwise from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" open Function Set open Pointwise variable ...
Mathlib/Algebra/Order/Pointwise.lean
167
169
theorem csInf_div (hs₀ : s.Nonempty) (hs₁ : BddBelow s) (ht₀ : t.Nonempty) (ht₁ : BddAbove t) : sInf (s / t) = sInf s / sSup t := by
rw [div_eq_mul_inv, csInf_mul hs₀ hs₁ ht₀.inv ht₁.inv, csInf_inv ht₀ ht₁, div_eq_mul_inv]
[ " sSup s⁻¹ = (sInf s)⁻¹", " sSup (Inv.inv '' s) = (sInf s)⁻¹", " sInf s⁻¹ = (sSup s)⁻¹", " sInf (Inv.inv '' s) = (sSup s)⁻¹", " sSup (s / t) = sSup s / sInf t", " sInf (s / t) = sInf s / sSup t" ]
[ " sSup s⁻¹ = (sInf s)⁻¹", " sSup (Inv.inv '' s) = (sInf s)⁻¹", " sInf s⁻¹ = (sSup s)⁻¹", " sInf (Inv.inv '' s) = (sSup s)⁻¹", " sSup (s / t) = sSup s / sInf t" ]
import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics import Mathlib.NumberTheory.Liouville.Basic import Mathlib.Topology.Instances.Irrational #align_import number_theory.liouville.liouville_with from "leanprover-community/mathlib"@"0b9eaaa7686280fad8cce467f5c3c57ee6ce77f8" open Filter Metric Real Set open sc...
Mathlib/NumberTheory/Liouville/LiouvilleWith.lean
99
110
theorem frequently_lt_rpow_neg (h : LiouvilleWith p x) (hlt : q < p) : ∃ᶠ n : ℕ in atTop, ∃ m : ℤ, x ≠ m / n ∧ |x - m / n| < n ^ (-q) := by
rcases h.exists_pos with ⟨C, _hC₀, hC⟩ have : ∀ᶠ n : ℕ in atTop, C < n ^ (p - q) := by simpa only [(· ∘ ·), neg_sub, one_div] using ((tendsto_rpow_atTop (sub_pos.2 hlt)).comp tendsto_natCast_atTop_atTop).eventually (eventually_gt_atTop C) refine (this.and_frequently hC).mono ?_ rintro n ⟨hnC,...
[ " LiouvilleWith 1 x", " ∃ᶠ (n : ℕ) in atTop, ∃ m, x ≠ ↑m / ↑n ∧ |x - ↑m / ↑n| < 2 / ↑n ^ 1", " ∃ m, x ≠ ↑m / ↑n ∧ |x - ↑m / ↑n| < 2 / ↑n ^ 1", " 0 < ↑n", " x < ↑(⌊x * ↑n⌋ + 1) / ↑n", " x * ↑n < ↑⌊x * ↑n⌋ + 1", " |x - ↑(⌊x * ↑n⌋ + 1) / ↑n| < 2 / ↑n ^ 1", " ↑(⌊x * ↑n⌋ + 1) / ↑n < (x * ↑n + 2) / ↑n", "...
[ " LiouvilleWith 1 x", " ∃ᶠ (n : ℕ) in atTop, ∃ m, x ≠ ↑m / ↑n ∧ |x - ↑m / ↑n| < 2 / ↑n ^ 1", " ∃ m, x ≠ ↑m / ↑n ∧ |x - ↑m / ↑n| < 2 / ↑n ^ 1", " 0 < ↑n", " x < ↑(⌊x * ↑n⌋ + 1) / ↑n", " x * ↑n < ↑⌊x * ↑n⌋ + 1", " |x - ↑(⌊x * ↑n⌋ + 1) / ↑n| < 2 / ↑n ^ 1", " ↑(⌊x * ↑n⌋ + 1) / ↑n < (x * ↑n + 2) / ↑n", "...
import Mathlib.Data.Sigma.Lex import Mathlib.Order.BoundedOrder import Mathlib.Mathport.Notation import Mathlib.Data.Sigma.Basic #align_import data.sigma.order from "leanprover-community/mathlib"@"1fc36cc9c8264e6e81253f88be7fb2cb6c92d76a" namespace Sigma variable {ι : Type*} {α : ι → Type*} -- Porting note: I...
Mathlib/Data/Sigma/Order.lean
89
96
theorem lt_def [∀ i, LT (α i)] {a b : Σi, α i} : a < b ↔ ∃ h : a.1 = b.1, h.rec a.2 < b.2 := by
constructor · rintro ⟨i, a, b, h⟩ exact ⟨rfl, h⟩ · obtain ⟨i, a⟩ := a obtain ⟨j, b⟩ := b rintro ⟨rfl : i = j, h⟩ exact lt.fiber _ _ _ h
[ " a ≤ b ↔ ∃ h, h ▸ a.snd ≤ b.snd", " a ≤ b → ∃ h, h ▸ a.snd ≤ b.snd", " ∃ h, h ▸ ⟨i, a⟩.snd ≤ ⟨i, b⟩.snd", " (∃ h, h ▸ a.snd ≤ b.snd) → a ≤ b", " (∃ h, h ▸ ⟨i, a⟩.snd ≤ b.snd) → ⟨i, a⟩ ≤ b", " (∃ h, h ▸ ⟨i, a⟩.snd ≤ ⟨j, b⟩.snd) → ⟨i, a⟩ ≤ ⟨j, b⟩", " ⟨i, a⟩ ≤ ⟨i, b⟩", " a < b ↔ ∃ h, h ▸ a.snd < b.snd",...
[ " a ≤ b ↔ ∃ h, h ▸ a.snd ≤ b.snd", " a ≤ b → ∃ h, h ▸ a.snd ≤ b.snd", " ∃ h, h ▸ ⟨i, a⟩.snd ≤ ⟨i, b⟩.snd", " (∃ h, h ▸ a.snd ≤ b.snd) → a ≤ b", " (∃ h, h ▸ ⟨i, a⟩.snd ≤ b.snd) → ⟨i, a⟩ ≤ b", " (∃ h, h ▸ ⟨i, a⟩.snd ≤ ⟨j, b⟩.snd) → ⟨i, a⟩ ≤ ⟨j, b⟩", " ⟨i, a⟩ ≤ ⟨i, b⟩" ]
import Mathlib.Data.List.Cycle import Mathlib.GroupTheory.Perm.Cycle.Type import Mathlib.GroupTheory.Perm.List #align_import group_theory.perm.cycle.concrete from "leanprover-community/mathlib"@"00638177efd1b2534fc5269363ebf42a7871df9a" open Equiv Equiv.Perm List variable {α : Type*} namespace List variable [D...
Mathlib/GroupTheory/Perm/Cycle/Concrete.lean
58
70
theorem formPerm_disjoint_iff (hl : Nodup l) (hl' : Nodup l') (hn : 2 ≤ l.length) (hn' : 2 ≤ l'.length) : Perm.Disjoint (formPerm l) (formPerm l') ↔ l.Disjoint l' := by
rw [disjoint_iff_eq_or_eq, List.Disjoint] constructor · rintro h x hx hx' specialize h x rw [formPerm_apply_mem_eq_self_iff _ hl _ hx, formPerm_apply_mem_eq_self_iff _ hl' _ hx'] at h omega · intro h x by_cases hx : x ∈ l on_goal 1 => by_cases hx' : x ∈ l' · exact (h hx hx').elim al...
[ " l.formPerm.Disjoint l'.formPerm ↔ l.Disjoint l'", " (∀ (x : α), l.formPerm x = x ∨ l'.formPerm x = x) ↔ ∀ ⦃a : α⦄, a ∈ l → a ∈ l' → False", " (∀ (x : α), l.formPerm x = x ∨ l'.formPerm x = x) → ∀ ⦃a : α⦄, a ∈ l → a ∈ l' → False", " False", " (∀ ⦃a : α⦄, a ∈ l → a ∈ l' → False) → ∀ (x : α), l.formPerm x = ...
[]
import Mathlib.Algebra.IsPrimePow import Mathlib.NumberTheory.ArithmeticFunction import Mathlib.Analysis.SpecialFunctions.Log.Basic #align_import number_theory.von_mangoldt from "leanprover-community/mathlib"@"c946d6097a6925ad16d7ec55677bbc977f9846de" namespace ArithmeticFunction open Finset Nat open scoped Arit...
Mathlib/NumberTheory/VonMangoldt.lean
79
79
theorem vonMangoldt_apply_one : Λ 1 = 0 := by
simp [vonMangoldt_apply]
[ " (fun n => (↑n).log) 0 = 0", " Λ 1 = 0" ]
[ " (fun n => (↑n).log) 0 = 0" ]
import Mathlib.Algebra.CharP.Invertible import Mathlib.Algebra.Order.Interval.Set.Group import Mathlib.Analysis.Convex.Segment import Mathlib.LinearAlgebra.AffineSpace.FiniteDimensional import Mathlib.Tactic.FieldSimp #align_import analysis.convex.between from "leanprover-community/mathlib"@"571e13cacbed7bf042fd3058c...
Mathlib/Analysis/Convex/Between.lean
133
135
theorem mem_vsub_const_affineSegment {x y z : P} (p : P) : z -ᵥ p ∈ affineSegment R (x -ᵥ p) (y -ᵥ p) ↔ z ∈ affineSegment R x y := by
rw [← affineSegment_vsub_const_image, (vsub_left_injective p).mem_set_image]
[ " affineSegment R x y = segment R x y", " affineSegment R x y = affineSegment R y x", " z ∈ affineSegment R x y ↔ z ∈ affineSegment R y x", " z ∈ affineSegment R x y → z ∈ affineSegment R y x", " z ∈ affineSegment R y x", " 1 - t ∈ Set.Icc 0 1", " (lineMap y x) (1 - t) = z", " z ∈ affineSegment R y x ...
[ " affineSegment R x y = segment R x y", " affineSegment R x y = affineSegment R y x", " z ∈ affineSegment R x y ↔ z ∈ affineSegment R y x", " z ∈ affineSegment R x y → z ∈ affineSegment R y x", " z ∈ affineSegment R y x", " 1 - t ∈ Set.Icc 0 1", " (lineMap y x) (1 - t) = z", " z ∈ affineSegment R y x ...
import Mathlib.Algebra.BigOperators.Intervals import Mathlib.Algebra.GeomSum import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Data.Nat.Bitwise import Mathlib.Data.Nat.Log import Mathlib.Data.Nat.Prime import Mathlib.Data.Nat.Digits import Mathlib.RingTheory.Multiplicity #align_import data.nat.multiplicity from "l...
Mathlib/Data/Nat/Multiplicity.lean
61
77
theorem multiplicity_eq_card_pow_dvd {m n b : ℕ} (hm : m ≠ 1) (hn : 0 < n) (hb : log m n < b) : multiplicity m n = ↑((Finset.Ico 1 b).filter fun i => m ^ i ∣ n).card := calc multiplicity m n = ↑(Ico 1 <| (multiplicity m n).get (finite_nat_iff.2 ⟨hm, hn⟩) + 1).card := by
simp _ = ↑((Finset.Ico 1 b).filter fun i => m ^ i ∣ n).card := congr_arg _ <| congr_arg card <| Finset.ext fun i => by rw [mem_filter, mem_Ico, mem_Ico, Nat.lt_succ_iff, ← @PartENat.coe_le_coe i, PartENat.natCast_get, ← pow_dvd_iff_le_multiplicity, and_right_...
[ " multiplicity m n = ↑(Ico 1 ((multiplicity m n).get ⋯ + 1)).card", " i ∈ Ico 1 ((multiplicity m n).get ⋯ + 1) ↔ i ∈ filter (fun i => m ^ i ∣ n) (Ico 1 b)", " 1 ≤ i ∧ m ^ i ∣ n ↔ (1 ≤ i ∧ m ^ i ∣ n) ∧ i < b", " i ≤ m.log n", " i ≤ log 0 n", " i ≠ 0", " i ≤ (m + 1).log n" ]
[]
import Mathlib.Analysis.Complex.AbsMax import Mathlib.Analysis.Complex.RemovableSingularity #align_import analysis.complex.schwarz from "leanprover-community/mathlib"@"3f655f5297b030a87d641ad4e825af8d9679eb0b" open Metric Set Function Filter TopologicalSpace open scoped Topology namespace Complex section Space...
Mathlib/Analysis/Complex/Schwarz.lean
65
88
theorem schwarz_aux {f : ℂ → ℂ} (hd : DifferentiableOn ℂ f (ball c R₁)) (h_maps : MapsTo f (ball c R₁) (ball (f c) R₂)) (hz : z ∈ ball c R₁) : ‖dslope f c z‖ ≤ R₂ / R₁ := by
have hR₁ : 0 < R₁ := nonempty_ball.1 ⟨z, hz⟩ suffices ∀ᶠ r in 𝓝[<] R₁, ‖dslope f c z‖ ≤ R₂ / r by refine ge_of_tendsto ?_ this exact (tendsto_const_nhds.div tendsto_id hR₁.ne').mono_left nhdsWithin_le_nhds rw [mem_ball] at hz filter_upwards [Ioo_mem_nhdsWithin_Iio ⟨hz, le_rfl⟩] with r hr have hr₀ : ...
[ " ‖dslope f c z‖ ≤ R₂ / R₁", " Tendsto (fun c => R₂ / c) (𝓝[<] R₁) (𝓝 (R₂ / R₁))", " ∀ᶠ (r : ℝ) in 𝓝[<] R₁, ‖dslope f c z‖ ≤ R₂ / r", " ‖dslope f c z‖ ≤ R₂ / r", " DiffContOnCl ℂ (dslope f c) (ball c r)", " DifferentiableOn ℂ (dslope f c) (closure (ball c r))", " DifferentiableOn ℂ (dslope f c) (clos...
[]
import Mathlib.MeasureTheory.SetSemiring open MeasurableSpace Set namespace MeasureTheory variable {α : Type*} {𝒜 : Set (Set α)} {s t : Set α} structure IsSetAlgebra (𝒜 : Set (Set α)) : Prop where empty_mem : ∅ ∈ 𝒜 compl_mem : ∀ ⦃s⦄, s ∈ 𝒜 → sᶜ ∈ 𝒜 union_mem : ∀ ⦃s t⦄, s ∈ 𝒜 → t ∈ 𝒜 → s ∪ t ∈ 𝒜 ...
Mathlib/MeasureTheory/SetAlgebra.lean
122
134
theorem generateFrom_generateSetAlgebra_eq : generateFrom (generateSetAlgebra 𝒜) = generateFrom 𝒜 := by
refine le_antisymm (fun s ms ↦ ?_) (generateFrom_mono self_subset_generateSetAlgebra) refine @generateFrom_induction _ _ (generateSetAlgebra 𝒜) (fun t ht ↦ ?_) (@MeasurableSet.empty _ (generateFrom 𝒜)) (fun t ↦ MeasurableSet.compl) (fun f hf ↦ MeasurableSet.iUnion hf) s ms induction ht with |...
[ " generateFrom (generateSetAlgebra 𝒜) = generateFrom 𝒜", " MeasurableSet s", " MeasurableSet t", " MeasurableSet u", " MeasurableSet ∅", " MeasurableSet uᶜ", " MeasurableSet (u ∪ v)" ]
[]
import Mathlib.Algebra.Polynomial.Expand import Mathlib.Algebra.Polynomial.Laurent import Mathlib.LinearAlgebra.Matrix.Charpoly.Basic import Mathlib.LinearAlgebra.Matrix.Reindex import Mathlib.RingTheory.Polynomial.Nilpotent #align_import linear_algebra.matrix.charpoly.coeff from "leanprover-community/mathlib"@"9745b...
Mathlib/LinearAlgebra/Matrix/Charpoly/Coeff.lean
260
276
theorem matPolyEquiv_eq_X_pow_sub_C {K : Type*} (k : ℕ) [Field K] (M : Matrix n n K) : matPolyEquiv ((expand K k : K[X] →+* K[X]).mapMatrix (charmatrix (M ^ k))) = X ^ k - C (M ^ k) := by
-- Porting note: `i` and `j` are used later on, but were not mentioned in mathlib3 ext m i j rw [coeff_sub, coeff_C, matPolyEquiv_coeff_apply, RingHom.mapMatrix_apply, Matrix.map_apply, AlgHom.coe_toRingHom, DMatrix.sub_apply, coeff_X_pow] by_cases hij : i = j · rw [hij, charmatrix_apply_eq, AlgHom.map_s...
[ " matPolyEquiv ((↑(expand K k)).mapMatrix (M ^ k).charmatrix) = X ^ k - C (M ^ k)", " (matPolyEquiv ((↑(expand K k)).mapMatrix (M ^ k).charmatrix)).coeff m i j = (X ^ k - C (M ^ k)).coeff m i j", " ((expand K k) ((M ^ k).charmatrix i j)).coeff m = (if m = k then 1 else 0) i j - (if m = 0 then M ^ k else 0) i j"...
[]
import Mathlib.Topology.Defs.Induced import Mathlib.Topology.Basic #align_import topology.order from "leanprover-community/mathlib"@"bcfa726826abd57587355b4b5b7e78ad6527b7e4" open Function Set Filter Topology universe u v w namespace TopologicalSpace variable {α : Type u} inductive GenerateOpen (g : Set (Set ...
Mathlib/Topology/Order.lean
129
138
theorem nhds_mkOfNhds_single [DecidableEq α] {a₀ : α} {l : Filter α} (h : pure a₀ ≤ l) (b : α) : @nhds α (TopologicalSpace.mkOfNhds (update pure a₀ l)) b = (update pure a₀ l : α → Filter α) b := by
refine nhds_mkOfNhds _ _ (le_update_iff.mpr ⟨h, fun _ _ => le_rfl⟩) fun a s hs => ?_ rcases eq_or_ne a a₀ with (rfl | ha) · filter_upwards [hs] with b hb rcases eq_or_ne b a with (rfl | hb) · exact hs · rwa [update_noteq hb] · simpa only [update_noteq ha, mem_pure, eventually_pure] using hs
[ " 𝓝 a = ⨅ s ∈ {s | a ∈ s ∧ s ∈ g}, 𝓟 s", " ⨅ s ∈ {s | a ∈ s ∧ IsOpen s}, 𝓟 s = ⨅ s ∈ {s | a ∈ s ∧ s ∈ g}, 𝓟 s", " ∀ i ∈ {s | a ∈ s ∧ IsOpen s}, ⨅ s ∈ {s | a ∈ s ∧ s ∈ g}, 𝓟 s ≤ 𝓟 i", " ⨅ s ∈ {s | a ∈ s ∧ s ∈ g}, 𝓟 s ≤ 𝓟 s", " ⨅ s ∈ {s | a ∈ s ∧ s ∈ g}, 𝓟 s ≤ 𝓟 s✝", " ⨅ s ∈ {s | a ∈ s ∧ s ∈ g}, �...
[ " 𝓝 a = ⨅ s ∈ {s | a ∈ s ∧ s ∈ g}, 𝓟 s", " ⨅ s ∈ {s | a ∈ s ∧ IsOpen s}, 𝓟 s = ⨅ s ∈ {s | a ∈ s ∧ s ∈ g}, 𝓟 s", " ∀ i ∈ {s | a ∈ s ∧ IsOpen s}, ⨅ s ∈ {s | a ∈ s ∧ s ∈ g}, 𝓟 s ≤ 𝓟 i", " ⨅ s ∈ {s | a ∈ s ∧ s ∈ g}, 𝓟 s ≤ 𝓟 s", " ⨅ s ∈ {s | a ∈ s ∧ s ∈ g}, 𝓟 s ≤ 𝓟 s✝", " ⨅ s ∈ {s | a ∈ s ∧ s ∈ g}, �...