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.Finsupp.Encodable import Mathlib.LinearAlgebra.Pi import Mathlib.LinearAlgebra.Span import Mathlib.Data.Set.Countable #align_import linear_algebra.finsupp from "leanprover-community/mathlib"@"9d684a893c52e1d6692a504a118bfccbae04feeb" noncomputable section open Set LinearMap Submodule namespa...
Mathlib/LinearAlgebra/Finsupp.lean
255
257
theorem iInf_ker_lapply_le_bot : β¨… a, ker (lapply a : (Ξ± β†’β‚€ M) β†’β‚—[R] M) ≀ βŠ₯ := by
simp only [SetLike.le_def, mem_iInf, mem_ker, mem_bot, lapply_apply] exact fun a h => Finsupp.ext h
[ " ⇑(x + y) = ⇑x + ⇑y", " (x + y) x✝ = (⇑x + ⇑y) x✝", " { toFun := DFunLike.coe, map_add' := β‹― }.toFun (x β€’ y) =\n (RingHom.id R) x β€’ { toFun := DFunLike.coe, map_add' := β‹― }.toFun y", " { toFun := DFunLike.coe, map_add' := β‹― }.toFun (x β€’ y) x✝ =\n ((RingHom.id R) x β€’ { toFun := DFunLike.coe, map_add' :=...
[ " ⇑(x + y) = ⇑x + ⇑y", " (x + y) x✝ = (⇑x + ⇑y) x✝", " { toFun := DFunLike.coe, map_add' := β‹― }.toFun (x β€’ y) =\n (RingHom.id R) x β€’ { toFun := DFunLike.coe, map_add' := β‹― }.toFun y", " { toFun := DFunLike.coe, map_add' := β‹― }.toFun (x β€’ y) x✝ =\n ((RingHom.id R) x β€’ { toFun := DFunLike.coe, map_add' :=...
import Mathlib.Algebra.GroupWithZero.Divisibility import Mathlib.Algebra.Ring.Divisibility.Basic import Mathlib.Algebra.Ring.Hom.Defs import Mathlib.GroupTheory.GroupAction.Units import Mathlib.Logic.Basic import Mathlib.Tactic.Ring #align_import ring_theory.coprime.basic from "leanprover-community/mathlib"@"a95b16cb...
Mathlib/RingTheory/Coprime/Basic.lean
124
126
theorem IsCoprime.mul_right (H1 : IsCoprime x y) (H2 : IsCoprime x z) : IsCoprime x (y * z) := by
rw [isCoprime_comm] at H1 H2 ⊒ exact H1.mul_left H2
[ " b * y + a * x = 1", " x * (a + b) = 1", " b * x + 0 * x = 1", " x * b = 1", " 1 * 0 + b * x = 1", " IsCoprime ↑a ↑b", " ↑u * ↑a + ↑v * ↑b = 1", " ↑1 = 1", " p β‰  0", " False", " x β‰  0 ∨ y β‰  0", " x = 0 β†’ y β‰  0", " 1 * 1 + 0 * x = 1", " 0 * x + 1 * 1 = 1", " x ∣ y", " x ∣ y * a * x + b...
[ " b * y + a * x = 1", " x * (a + b) = 1", " b * x + 0 * x = 1", " x * b = 1", " 1 * 0 + b * x = 1", " IsCoprime ↑a ↑b", " ↑u * ↑a + ↑v * ↑b = 1", " ↑1 = 1", " p β‰  0", " False", " x β‰  0 ∨ y β‰  0", " x = 0 β†’ y β‰  0", " 1 * 1 + 0 * x = 1", " 0 * x + 1 * 1 = 1", " x ∣ y", " x ∣ y * a * x + b...
import Mathlib.LinearAlgebra.Dimension.StrongRankCondition import Mathlib.LinearAlgebra.FreeModule.Basic #align_import linear_algebra.free_module.pid from "leanprover-community/mathlib"@"d87199d51218d36a0a42c66c82d147b5a7ff87b3" universe u v section Ring variable {R : Type u} {M : Type v} [Ring R] [AddCommGroup...
Mathlib/LinearAlgebra/FreeModule/PID.lean
59
69
theorem eq_bot_of_generator_maximal_map_eq_zero (b : Basis ΞΉ R M) {N : Submodule R M} {Ο• : M β†’β‚—[R] R} (hΟ• : βˆ€ ψ : M β†’β‚—[R] R, Β¬N.map Ο• < N.map ψ) [(N.map Ο•).IsPrincipal] (hgen : generator (N.map Ο•) = (0 : R)) : N = βŠ₯ := by
rw [Submodule.eq_bot_iff] intro x hx refine b.ext_elem fun i ↦ ?_ rw [(eq_bot_iff_generator_eq_zero _).mpr hgen] at hΟ• rw [LinearEquiv.map_zero, Finsupp.zero_apply] exact (Submodule.eq_bot_iff _).mp (not_bot_lt_iff.1 <| hΟ• (Finsupp.lapply i βˆ˜β‚— ↑b.repr)) _ ⟨x, hx, rfl⟩
[ " N = βŠ₯", " βˆ€ x ∈ N, x = 0", " x = 0", " (b.repr x) i = (b.repr 0) i", " (b.repr x) i = 0" ]
[]
import Mathlib.Analysis.SpecificLimits.Basic import Mathlib.Data.Setoid.Basic import Mathlib.Dynamics.FixedPoints.Topology import Mathlib.Topology.MetricSpace.Lipschitz #align_import topology.metric_space.contracting from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open scoped Classi...
Mathlib/Topology/MetricSpace/Contracting.lean
62
64
theorem one_sub_K_ne_top : (1 : ℝβ‰₯0∞) - K β‰  ∞ := by
norm_cast exact ENNReal.coe_ne_top
[ " 0 < 1 - ↑K", " 1 - ↑K β‰  ⊀", " Β¬1 - ↑K = ⊀" ]
[ " 0 < 1 - ↑K" ]
import Mathlib.Topology.MetricSpace.HausdorffDistance #align_import topology.metric_space.pi_nat from "leanprover-community/mathlib"@"49b7f94aab3a3bdca1f9f34c5d818afb253b3993" noncomputable section open scoped Classical open Topology Filter open TopologicalSpace Set Metric Filter Function attribute [local simp...
Mathlib/Topology/MetricSpace/PiNat.lean
134
147
theorem mem_cylinder_iff_eq {x y : βˆ€ n, E n} {n : β„•} : y ∈ cylinder x n ↔ cylinder y n = cylinder x n := by
constructor Β· intro hy apply Subset.antisymm Β· intro z hz i hi rw [← hy i hi] exact hz i hi Β· intro z hz i hi rw [hy i hi] exact hz i hi Β· intro h rw [← h] exact self_mem_cylinder _ _
[ " x (firstDiff x y) β‰  y (firstDiff x y)", " x (Nat.find β‹―) β‰  y (Nat.find β‹―)", " x n = y n", " x n = y n ↔ Β¬x n β‰  y n", " firstDiff x y = firstDiff y x", " min (firstDiff x y) (firstDiff y z) ≀ firstDiff x z", " False", " x (firstDiff x z) = z (firstDiff x z)", " cylinder x n = (↑(Finset.range n)).pi...
[ " x (firstDiff x y) β‰  y (firstDiff x y)", " x (Nat.find β‹―) β‰  y (Nat.find β‹―)", " x n = y n", " x n = y n ↔ Β¬x n β‰  y n", " firstDiff x y = firstDiff y x", " min (firstDiff x y) (firstDiff y z) ≀ firstDiff x z", " False", " x (firstDiff x z) = z (firstDiff x z)", " cylinder x n = (↑(Finset.range n)).pi...
import Mathlib.FieldTheory.IsAlgClosed.AlgebraicClosure import Mathlib.FieldTheory.Galois universe u v w open scoped Classical Polynomial open Polynomial variable (k : Type u) [Field k] (K : Type v) [Field K] class IsSepClosed : Prop where splits_of_separable : βˆ€ p : k[X], p.Separable β†’ (p.Splits <| RingHom....
Mathlib/FieldTheory/IsSepClosed.lean
122
129
theorem roots_eq_zero_iff [IsSepClosed k] {p : k[X]} (hsep : p.Separable) : p.roots = 0 ↔ p = Polynomial.C (p.coeff 0) := by
refine ⟨fun h => ?_, fun hp => by rw [hp, roots_C]⟩ rcases le_or_lt (degree p) 0 with hd | hd Β· exact eq_C_of_degree_le_zero hd Β· obtain ⟨z, hz⟩ := IsSepClosed.exists_root p hd.ne' hsep rw [← mem_roots (ne_zero_of_degree_gt hd), h] at hz simp at hz
[ " Splits f p", " Splits f p ↔ Splits (RingHom.id K) (map f p)", " βˆƒ z, z ^ n = x", " False", " (X ^ n - C x).degree β‰  0", " ↑n β‰  0", " 0 ^ n = x", " z ^ n = x", " βˆƒ z, x = z * z", " βˆƒ z_1, z ^ 2 = z_1 * z_1", " p.roots = 0 ↔ p = C (p.coeff 0)", " p.roots = 0", " p = C (p.coeff 0)" ]
[ " Splits f p", " Splits f p ↔ Splits (RingHom.id K) (map f p)", " βˆƒ z, z ^ n = x", " False", " (X ^ n - C x).degree β‰  0", " ↑n β‰  0", " 0 ^ n = x", " z ^ n = x", " βˆƒ z, x = z * z", " βˆƒ z_1, z ^ 2 = z_1 * z_1" ]
import Mathlib.NumberTheory.LegendreSymbol.Basic import Mathlib.NumberTheory.LegendreSymbol.QuadraticChar.GaussSum #align_import number_theory.legendre_symbol.quadratic_reciprocity from "leanprover-community/mathlib"@"5b2fe80501ff327b9109fb09b7cc8c325cd0d7d9" open Nat section Values variable {p : β„•} [Fact p.Pri...
Mathlib/NumberTheory/LegendreSymbol/QuadraticReciprocity.lean
158
162
theorem quadratic_reciprocity_three_mod_four (hp : p % 4 = 3) (hq : q % 4 = 3) : legendreSym q p = -legendreSym p q := by
let nop := @neg_one_pow_div_two_of_three_mod_four rw [quadratic_reciprocity', pow_mul, nop hp, nop hq, neg_one_mul] <;> rwa [← Prime.mod_two_eq_one_iff_ne_two, odd_of_mod_four_eq_three]
[ " legendreSym q ↑p * legendreSym p ↑q = (-1) ^ (p / 2 * (q / 2))", " ↑↑n = ↑n", " ↑((-1) ^ (p / 2)) = (-1) ^ (p / 2)", " legendreSym q ↑p = (-1) ^ (p / 2 * (q / 2)) * legendreSym p ↑q", " legendreSym q ↑q = (-1) ^ (q / 2 * (q / 2)) * legendreSym q ↑q", " legendreSym q ↑p = legendreSym p ↑q", " legendreS...
[ " legendreSym q ↑p * legendreSym p ↑q = (-1) ^ (p / 2 * (q / 2))", " ↑↑n = ↑n", " ↑((-1) ^ (p / 2)) = (-1) ^ (p / 2)", " legendreSym q ↑p = (-1) ^ (p / 2 * (q / 2)) * legendreSym p ↑q", " legendreSym q ↑q = (-1) ^ (q / 2 * (q / 2)) * legendreSym q ↑q", " legendreSym q ↑p = legendreSym p ↑q" ]
import Mathlib.Data.Int.GCD import Mathlib.Tactic.NormNum namespace Tactic namespace NormNum theorem int_gcd_helper' {d : β„•} {x y : β„€} (a b : β„€) (h₁ : (d : β„€) ∣ x) (hβ‚‚ : (d : β„€) ∣ y) (h₃ : x * a + y * b = d) : Int.gcd x y = d := by refine Nat.dvd_antisymm ?_ (Int.natCast_dvd_natCast.1 (Int.dvd_gcd h₁ hβ‚‚)) ...
Mathlib/Tactic/NormNum/GCD.lean
64
66
theorem int_gcd_helper {x y : β„€} {x' y' d : β„•} (hx : x.natAbs = x') (hy : y.natAbs = y') (h : Nat.gcd x' y' = d) : Int.gcd x y = d := by
subst_vars; rw [Int.gcd_def]
[ " x.gcd y = d", " x.gcd y ∣ d", " ↑(x.gcd y) ∣ x * a + y * b", " ↑(x.gcd y) ∣ x * a", " ↑(x.gcd y) ∣ y * b", " (↑x).gcd ↑y = d", " ↑x * ↑a + ↑y * -↑b = ↑d", " ↑x * ↑a = ↑y * ↑b + ↑d", " (fun x => d * x) (x.lcm y) = (fun x => d * x) m", " d * x.lcm y = d * m", " x.gcd y = x.natAbs.gcd y.natAbs" ]
[ " x.gcd y = d", " x.gcd y ∣ d", " ↑(x.gcd y) ∣ x * a + y * b", " ↑(x.gcd y) ∣ x * a", " ↑(x.gcd y) ∣ y * b", " (↑x).gcd ↑y = d", " ↑x * ↑a + ↑y * -↑b = ↑d", " ↑x * ↑a = ↑y * ↑b + ↑d", " (fun x => d * x) (x.lcm y) = (fun x => d * x) m", " d * x.lcm y = d * m" ]
import Mathlib.Order.PrimeIdeal import Mathlib.Order.Zorn universe u variable {Ξ± : Type*} open Order Ideal Set variable [DistribLattice Ξ±] [BoundedOrder Ξ±] variable {F : PFilter Ξ±} {I : Ideal Ξ±} namespace DistribLattice lemma mem_ideal_sup_principal (a b : Ξ±) (J : Ideal Ξ±) : b ∈ J βŠ” principal a ↔ βˆƒ j ∈ J, ...
Mathlib/Order/PrimeSeparator.lean
46
143
theorem prime_ideal_of_disjoint_filter_ideal (hFI : Disjoint (F : Set Ξ±) (I : Set Ξ±)) : βˆƒ J : Ideal Ξ±, (IsPrime J) ∧ I ≀ J ∧ Disjoint (F : Set Ξ±) J := by
-- Let S be the set of ideals containing I and disjoint from F. set S : Set (Set Ξ±) := { J : Set Ξ± | IsIdeal J ∧ I ≀ J ∧ Disjoint (F : Set Ξ±) J } -- Then I is in S... have IinS : ↑I ∈ S := by refine ⟨Order.Ideal.isIdeal I, by trivial⟩ -- ...and S contains upper bounds for any non-empty chains. have ...
[ " βˆƒ J, J.IsPrime ∧ I ≀ J ∧ Disjoint ↑F ↑J", " ↑I ∈ S", " ↑I ≀ ↑I ∧ Disjoint ↑F ↑I", " βˆ€ c βŠ† S, IsChain (fun x x_1 => x βŠ† x_1) c β†’ c.Nonempty β†’ βˆƒ ub ∈ S, βˆ€ s ∈ c, s βŠ† ub", " βˆƒ ub ∈ S, βˆ€ s ∈ c, s βŠ† ub", " ⋃₀ c ∈ S ∧ βˆ€ s ∈ c, s βŠ† ⋃₀ c", " ⋃₀ c ∈ S", " IsIdeal (⋃₀ c) ∧ ↑I βŠ† ⋃₀ c ∧ βˆ€ t ∈ c, Disjoint (↑F) t...
[]
import Mathlib.Dynamics.Flow import Mathlib.Tactic.Monotonicity #align_import dynamics.omega_limit from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open Set Function Filter Topology section omegaLimit variable {Ο„ : Type*} {Ξ± : Type*} {Ξ² : Type*} {ΞΉ : Type*} def omegaLimit [Topol...
Mathlib/Dynamics/OmegaLimit.lean
70
74
theorem omegaLimit_subset_of_tendsto {m : Ο„ β†’ Ο„} {f₁ fβ‚‚ : Filter Ο„} (hf : Tendsto m f₁ fβ‚‚) : Ο‰ f₁ (fun t x ↦ Ο• (m t) x) s βŠ† Ο‰ fβ‚‚ Ο• s := by
refine iInterβ‚‚_mono' fun u hu ↦ ⟨m ⁻¹' u, tendsto_def.mp hf _ hu, ?_⟩ rw [← image2_image_left] exact closure_mono (image2_subset (image_preimage_subset _ _) Subset.rfl)
[ " Ο‰ f₁ (fun t x => Ο• (m t) x) s βŠ† Ο‰ fβ‚‚ Ο• s", " closure (image2 (fun t x => Ο• (m t) x) (m ⁻¹' u) s) βŠ† closure (image2 Ο• u s)", " closure (image2 Ο• ((fun t => m t) '' (m ⁻¹' u)) s) βŠ† closure (image2 Ο• u s)" ]
[]
import Mathlib.Topology.Order.Basic open Set Filter OrderDual open scoped Topology section OrderClosedTopology variable {Ξ± : Type*} [LinearOrder Ξ±] [TopologicalSpace Ξ±] [OrderClosedTopology Ξ±] {a b c d : Ξ±} @[simp] theorem nhdsSet_Ioi : 𝓝˒ (Ioi a) = π“Ÿ (Ioi a) := isOpen_Ioi.nhdsSet_eq @[simp] theorem nhdsSet...
Mathlib/Topology/Order/NhdsSet.lean
36
37
theorem nhdsSet_Ici : 𝓝˒ (Ici a) = 𝓝 a βŠ” π“Ÿ (Ioi a) := by
rw [← Ioi_insert, nhdsSet_insert, nhdsSet_Ioi]
[ " 𝓝˒ (Ici a) = 𝓝 a βŠ” π“Ÿ (Ioi a)" ]
[]
import Mathlib.CategoryTheory.Sites.Coherent.ReflectsPreregular import Mathlib.Topology.Category.CompHaus.EffectiveEpi import Mathlib.Topology.Category.Stonean.Limits import Mathlib.Topology.Category.CompHaus.EffectiveEpi universe u open CategoryTheory Limits namespace Stonean noncomputable def struct {B X : St...
Mathlib/Topology/Category/Stonean/EffectiveEpi.lean
62
75
theorem effectiveEpi_tfae {B X : Stonean.{u}} (Ο€ : X ⟢ B) : TFAE [ EffectiveEpi Ο€ , Epi Ο€ , Function.Surjective Ο€ ] := by
tfae_have 1 β†’ 2 Β· intro; infer_instance tfae_have 2 ↔ 3 Β· exact epi_iff_surjective Ο€ tfae_have 3 β†’ 1 Β· exact fun hΟ€ ↦ ⟨⟨struct Ο€ hΟ€βŸ©βŸ© tfae_finish
[ " { toFun := fun x => a, continuous_toFun := β‹― } ≫ Ο€ = { toFun := fun x => b, continuous_toFun := β‹― } ≫ Ο€", " ({ toFun := fun x => a, continuous_toFun := β‹― } ≫ Ο€) x✝ = ({ toFun := fun x => b, continuous_toFun := β‹― } ≫ Ο€) x✝", " g = (fun {W} e h => β‹―.lift e β‹―) e β‹―", " g = β‹―.liftEquiv ⟨e, β‹―βŸ©", " β‹―.liftEquiv.s...
[ " { toFun := fun x => a, continuous_toFun := β‹― } ≫ Ο€ = { toFun := fun x => b, continuous_toFun := β‹― } ≫ Ο€", " ({ toFun := fun x => a, continuous_toFun := β‹― } ≫ Ο€) x✝ = ({ toFun := fun x => b, continuous_toFun := β‹― } ≫ Ο€) x✝", " g = (fun {W} e h => β‹―.lift e β‹―) e β‹―", " g = β‹―.liftEquiv ⟨e, β‹―βŸ©", " β‹―.liftEquiv.s...
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.Degree.Lemmas import Mathlib.Algebra.Polynomial.Monic #align_import data.polynomial.integral_normalization from "leanprover-community/mathlib"@"6f401acf4faec3ab9ab13a42789c4f68064a61cd" open Polynomial namespace Polynomial universe u...
Mathlib/RingTheory/Polynomial/IntegralNormalization.lean
48
53
theorem integralNormalization_coeff {f : R[X]} {i : β„•} : (integralNormalization f).coeff i = if f.degree = i then 1 else coeff f i * f.leadingCoeff ^ (f.natDegree - 1 - i) := by
have : f.coeff i = 0 β†’ f.degree β‰  i := fun hc hd => coeff_ne_zero_of_eq_degree hd hc simp (config := { contextual := true }) [integralNormalization, coeff_monomial, this, mem_support_iff]
[ " integralNormalization 0 = 0", " f.integralNormalization.coeff i = if f.degree = ↑i then 1 else f.coeff i * f.leadingCoeff ^ (f.natDegree - 1 - i)" ]
[ " integralNormalization 0 = 0" ]
import Mathlib.Algebra.Periodic import Mathlib.Data.Nat.Count import Mathlib.Data.Nat.GCD.Basic import Mathlib.Order.Interval.Finset.Nat #align_import data.nat.periodic from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988" namespace Nat open Nat Function theorem periodic_gcd (a : β„•) : P...
Mathlib/Data/Nat/Periodic.lean
29
30
theorem periodic_coprime (a : β„•) : Periodic (Coprime a) a := by
simp only [coprime_add_self_right, forall_const, iff_self_iff, eq_iff_iff, Periodic]
[ " Periodic a.gcd a", " Periodic a.Coprime a" ]
[ " Periodic a.gcd a" ]
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
95
98
theorem toMeasurable_iff {X : Ξ© β†’ E} {s : Set E} : IsUniform X (toMeasurable ΞΌ s) β„™ ΞΌ ↔ IsUniform X s β„™ ΞΌ := by
unfold IsUniform rw [ProbabilityTheory.cond_toMeasurable_eq]
[ " AEMeasurable X β„™", " False", " 0 = 1", " 0 Set.univ = 1", " Measure.map X β„™ β‰ͺ ΞΌ", " ProbabilityTheory.cond ΞΌ s β‰ͺ ΞΌ", " β„™ (X ⁻¹' A) = ΞΌ (s ∩ A) / ΞΌ s", " β„™ Set.univ = 1", " IsUniform X (toMeasurable ΞΌ s) β„™ ΞΌ ↔ IsUniform X s β„™ ΞΌ", " Measure.map X β„™ = ProbabilityTheory.cond ΞΌ (toMeasurable ΞΌ s) ↔ M...
[ " AEMeasurable X β„™", " False", " 0 = 1", " 0 Set.univ = 1", " Measure.map X β„™ β‰ͺ ΞΌ", " ProbabilityTheory.cond ΞΌ s β‰ͺ ΞΌ", " β„™ (X ⁻¹' A) = ΞΌ (s ∩ A) / ΞΌ s", " β„™ Set.univ = 1" ]
import Mathlib.Analysis.Quaternion import Mathlib.Analysis.NormedSpace.Exponential import Mathlib.Analysis.SpecialFunctions.Trigonometric.Series #align_import analysis.normed_space.quaternion_exponential from "leanprover-community/mathlib"@"f0c8bf9245297a541f468be517f1bde6195105e9" open scoped Quaternion Nat open...
Mathlib/Analysis/NormedSpace/QuaternionExponential.lean
114
114
theorem re_exp (q : ℍ[ℝ]) : (exp ℝ q).re = exp ℝ q.re * Real.cos β€–q - q.reβ€– := by
simp [exp_eq]
[ " ((expSeries ℝ ℍ (2 * n)) fun x => q) = ↑((-1) ^ n * β€–qβ€– ^ (2 * n) / ↑(2 * n)!)", " (↑(2 * n)!)⁻¹ β€’ q ^ (2 * n) = ↑((-1) ^ n * β€–qβ€– ^ (2 * n) / ↑(2 * n)!)", " k⁻¹ β€’ q ^ (2 * n) = k⁻¹ β€’ (-↑(normSq q)) ^ n", " k⁻¹ β€’ (-↑(normSq q)) ^ n = k⁻¹ β€’ ↑((-1) ^ n * β€–qβ€– ^ (2 * n))", " (-↑(normSq q)) ^ n = ↑((-1) ^ n * β€–...
[ " ((expSeries ℝ ℍ (2 * n)) fun x => q) = ↑((-1) ^ n * β€–qβ€– ^ (2 * n) / ↑(2 * n)!)", " (↑(2 * n)!)⁻¹ β€’ q ^ (2 * n) = ↑((-1) ^ n * β€–qβ€– ^ (2 * n) / ↑(2 * n)!)", " k⁻¹ β€’ q ^ (2 * n) = k⁻¹ β€’ (-↑(normSq q)) ^ n", " k⁻¹ β€’ (-↑(normSq q)) ^ n = k⁻¹ β€’ ↑((-1) ^ n * β€–qβ€– ^ (2 * n))", " (-↑(normSq q)) ^ n = ↑((-1) ^ n * β€–...
import Mathlib.Tactic.TFAE import Mathlib.Topology.ContinuousOn #align_import topology.inseparable from "leanprover-community/mathlib"@"bcfa726826abd57587355b4b5b7e78ad6527b7e4" open Set Filter Function Topology List variable {X Y Z Ξ± ΞΉ : Type*} {Ο€ : ΞΉ β†’ Type*} [TopologicalSpace X] [TopologicalSpace Y] [Topolo...
Mathlib/Topology/Inseparable.lean
95
96
theorem ker_nhds_eq_specializes : (𝓝 x).ker = {y | y β€³ x} := by
ext; simp [specializes_iff_pure, le_def]
[ " [x β€³ y, pure x ≀ 𝓝 y, βˆ€ (s : Set X), IsOpen s β†’ y ∈ s β†’ x ∈ s, βˆ€ (s : Set X), IsClosed s β†’ x ∈ s β†’ y ∈ s,\n y ∈ closure {x}, closure {y} βŠ† closure {x}, ClusterPt y (pure x)].TFAE", " x β€³ y β†’ pure x ≀ 𝓝 y", " pure x ≀ 𝓝 y β†’ βˆ€ (s : Set X), IsOpen s β†’ y ∈ s β†’ x ∈ s", " (βˆ€ (s : Set X), IsOpen s β†’ y ∈ s ...
[ " [x β€³ y, pure x ≀ 𝓝 y, βˆ€ (s : Set X), IsOpen s β†’ y ∈ s β†’ x ∈ s, βˆ€ (s : Set X), IsClosed s β†’ x ∈ s β†’ y ∈ s,\n y ∈ closure {x}, closure {y} βŠ† closure {x}, ClusterPt y (pure x)].TFAE", " x β€³ y β†’ pure x ≀ 𝓝 y", " pure x ≀ 𝓝 y β†’ βˆ€ (s : Set X), IsOpen s β†’ y ∈ s β†’ x ∈ s", " (βˆ€ (s : Set X), IsOpen s β†’ y ∈ s ...
import Mathlib.Data.Finsupp.Defs #align_import data.finsupp.fin from "leanprover-community/mathlib"@"f7fc89d5d5ff1db2d1242c7bb0e9062ce47ef47c" noncomputable section namespace Finsupp variable {n : β„•} (i : Fin n) {M : Type*} [Zero M] (y : M) (t : Fin (n + 1) β†’β‚€ M) (s : Fin n β†’β‚€ M) def tail (s : Fin (n + 1) β†’β‚€ ...
Mathlib/Data/Finsupp/Fin.lean
83
86
theorem cons_ne_zero_of_right (h : s β‰  0) : cons y s β‰  0 := by
contrapose! h with c ext a simp [← cons_succ a y s, c]
[ " (cons y s).tail k = s k", " cons (t 0) t.tail = t", " (cons (t 0) t.tail) a = t a", " cons 0 0 = 0", " (cons 0 0) a = 0 a", " 0 (a.pred c) = 0 (a.pred c).succ", " cons y s β‰  0", " y = 0", " s = 0", " s a = 0 a" ]
[ " (cons y s).tail k = s k", " cons (t 0) t.tail = t", " (cons (t 0) t.tail) a = t a", " cons 0 0 = 0", " (cons 0 0) a = 0 a", " 0 (a.pred c) = 0 (a.pred c).succ", " cons y s β‰  0", " y = 0" ]
import Mathlib.Algebra.Polynomial.Coeff import Mathlib.Algebra.Polynomial.Degree.Lemmas import Mathlib.RingTheory.PowerSeries.Basic #align_import ring_theory.power_series.basic from "leanprover-community/mathlib"@"2d5739b61641ee4e7e53eca5688a08f66f2e6a60" noncomputable section open Polynomial open Finset (antid...
Mathlib/RingTheory/PowerSeries/Trunc.lean
44
46
theorem coeff_trunc (m) (n) (Ο† : R⟦X⟧) : (trunc n Ο†).coeff m = if m < n then coeff R m Ο† else 0 := by
simp [trunc, Polynomial.coeff_sum, Polynomial.coeff_monomial, Nat.lt_succ_iff]
[ " (trunc n Ο†).coeff m = if m < n then (coeff R m) Ο† else 0" ]
[]
import Mathlib.Data.Set.Image import Mathlib.Data.SProd #align_import data.set.prod from "leanprover-community/mathlib"@"48fb5b5280e7c81672afc9524185ae994553ebf4" open Function namespace Set section Prod variable {Ξ± Ξ² Ξ³ Ξ΄ : Type*} {s s₁ sβ‚‚ : Set Ξ±} {t t₁ tβ‚‚ : Set Ξ²} {a : Ξ±} {b : Ξ²} theorem Subsingleton.pro...
Mathlib/Data/Set/Prod.lean
84
86
theorem prod_empty : s Γ—Λ’ (βˆ… : Set Ξ²) = βˆ… := by
ext exact and_false_iff _
[ " (βˆƒ x ∈ s Γ—Λ’ t, p x) ↔ βˆƒ x ∈ s, βˆƒ y ∈ t, p (x, y)", " s Γ—Λ’ βˆ… = βˆ…", " x✝ ∈ s Γ—Λ’ βˆ… ↔ x✝ ∈ βˆ…" ]
[ " (βˆƒ x ∈ s Γ—Λ’ t, p x) ↔ βˆƒ x ∈ s, βˆƒ y ∈ t, p (x, y)" ]
import Mathlib.Data.Finset.Lattice #align_import data.finset.pairwise from "leanprover-community/mathlib"@"c4c2ed622f43768eff32608d4a0f8a6cec1c047d" open Finset variable {Ξ± ΞΉ ΞΉ' : Type*} instance [DecidableEq Ξ±] {r : Ξ± β†’ Ξ± β†’ Prop} [DecidableRel r] {s : Finset Ξ±} : Decidable ((s : Set Ξ±).Pairwise r) := dec...
Mathlib/Data/Finset/Pairwise.lean
27
30
theorem Finset.pairwiseDisjoint_range_singleton : (Set.range (singleton : Ξ± β†’ Finset Ξ±)).PairwiseDisjoint id := by
rintro _ ⟨a, rfl⟩ _ ⟨b, rfl⟩ h exact disjoint_singleton.2 (ne_of_apply_ne _ h)
[ " (Set.range singleton).PairwiseDisjoint id", " (Disjoint on id) {a} {b}" ]
[]
import Mathlib.Analysis.SpecialFunctions.Gaussian.GaussianIntegral import Mathlib.Analysis.Complex.CauchyIntegral import Mathlib.MeasureTheory.Integral.Pi import Mathlib.Analysis.Fourier.FourierTransform open Real Set MeasureTheory Filter Asymptotics intervalIntegral open scoped Real Topology FourierTransform Re...
Mathlib/Analysis/SpecialFunctions/Gaussian/FourierTransform.lean
70
112
theorem verticalIntegral_norm_le (hb : 0 < b.re) (c : ℝ) {T : ℝ} (hT : 0 ≀ T) : β€–verticalIntegral b c Tβ€– ≀ (2 : ℝ) * |c| * exp (-(b.re * T ^ 2 - (2 : ℝ) * |b.im| * |c| * T - b.re * c ^ 2)) := by
-- first get uniform bound for integrand have vert_norm_bound : βˆ€ {T : ℝ}, 0 ≀ T β†’ βˆ€ {c y : ℝ}, |y| ≀ |c| β†’ β€–cexp (-b * (T + y * I) ^ 2)β€– ≀ exp (-(b.re * T ^ 2 - (2 : ℝ) * |b.im| * |c| * T - b.re * c ^ 2)) := by intro T hT c y hy rw [norm_cexp_neg_mul_s...
[ " β€–cexp (-b * (↑T + ↑c * I) ^ 2)β€– = rexp (-(b.re * T ^ 2 - 2 * b.im * c * T - b.re * c ^ 2))", " rexp (-((↑b.re + ↑b.im * I) * (↑T + ↑c * I) ^ 2).re) =\n rexp (-((↑b.re + ↑b.im * I).re * T ^ 2 - 2 * (↑b.re + ↑b.im * I).im * c * T - (↑b.re + ↑b.im * I).re * c ^ 2))", " rexp\n (-(b.re * ((T + (c * 0 - 0 *...
[ " β€–cexp (-b * (↑T + ↑c * I) ^ 2)β€– = rexp (-(b.re * T ^ 2 - 2 * b.im * c * T - b.re * c ^ 2))", " rexp (-((↑b.re + ↑b.im * I) * (↑T + ↑c * I) ^ 2).re) =\n rexp (-((↑b.re + ↑b.im * I).re * T ^ 2 - 2 * (↑b.re + ↑b.im * I).im * c * T - (↑b.re + ↑b.im * I).re * c ^ 2))", " rexp\n (-(b.re * ((T + (c * 0 - 0 *...
import Mathlib.Algebra.Order.Ring.Int #align_import data.int.least_greatest from "leanprover-community/mathlib"@"3342d1b2178381196f818146ff79bc0e7ccd9e2d" namespace Int def leastOfBdd {P : β„€ β†’ Prop} [DecidablePred P] (b : β„€) (Hb : βˆ€ z : β„€, P z β†’ b ≀ z) (Hinh : βˆƒ z : β„€, P z) : { lb : β„€ // P lb ∧ βˆ€ z : β„€, P z...
Mathlib/Data/Int/LeastGreatest.lean
96
103
theorem exists_greatest_of_bdd {P : β„€ β†’ Prop} (Hbdd : βˆƒ b : β„€ , βˆ€ z : β„€ , P z β†’ z ≀ b) (Hinh : βˆƒ z : β„€ , P z) : βˆƒ ub : β„€ , P ub ∧ βˆ€ z : β„€ , P z β†’ z ≀ ub := by
classical let ⟨b, Hb⟩ := Hbdd let ⟨lb, H⟩ := greatestOfBdd b Hb Hinh exact ⟨lb, H⟩
[ " βˆƒ lb, P lb ∧ βˆ€ (z : β„€), P z β†’ lb ≀ z", " ↑(b.leastOfBdd Hb Hinh) = ↑(b'.leastOfBdd Hb' Hinh)", " β†‘βŸ¨n, β‹―βŸ© = ↑(b'.leastOfBdd Hb' Hinh)", " β†‘βŸ¨n, β‹―βŸ© = β†‘βŸ¨n', β‹―βŸ©", " P (- -elt)", " P elt", " P (- -z)", " βˆƒ ub, P ub ∧ βˆ€ (z : β„€), P z β†’ z ≀ ub" ]
[ " βˆƒ lb, P lb ∧ βˆ€ (z : β„€), P z β†’ lb ≀ z", " ↑(b.leastOfBdd Hb Hinh) = ↑(b'.leastOfBdd Hb' Hinh)", " β†‘βŸ¨n, β‹―βŸ© = ↑(b'.leastOfBdd Hb' Hinh)", " β†‘βŸ¨n, β‹―βŸ© = β†‘βŸ¨n', β‹―βŸ©", " P (- -elt)", " P elt", " P (- -z)" ]
import Mathlib.LinearAlgebra.Projectivization.Basic #align_import linear_algebra.projective_space.independence from "leanprover-community/mathlib"@"1e82f5ec4645f6a92bb9e02fce51e44e3bc3e1fe" open scoped LinearAlgebra.Projectivization variable {ΞΉ K V : Type*} [DivisionRing K] [AddCommGroup V] [Module K V] {f : ΞΉ β†’ ...
Mathlib/LinearAlgebra/Projectivization/Independence.lean
109
114
theorem dependent_pair_iff_eq (u v : β„™ K V) : Dependent ![u, v] ↔ u = v := by
rw [dependent_iff_not_independent, independent_iff, linearIndependent_fin2, Function.comp_apply, Matrix.cons_val_one, Matrix.head_cons, Ne] simp only [Matrix.cons_val_zero, not_and, not_forall, Classical.not_not, Function.comp_apply, ← mk_eq_mk_iff' K _ _ (rep_nonzero u) (rep_nonzero v), mk_rep, Classical....
[ " Independent f ↔ LinearIndependent K (Projectivization.rep ∘ f)", " Independent f β†’ LinearIndependent K (Projectivization.rep ∘ f)", " LinearIndependent K (Projectivization.rep ∘ fun i => mk K (ff i) β‹―)", " (Projectivization.rep ∘ fun i => mk K (ff i) β‹―) = a β€’ ff", " (Projectivization.rep ∘ fun i => mk K (...
[ " Independent f ↔ LinearIndependent K (Projectivization.rep ∘ f)", " Independent f β†’ LinearIndependent K (Projectivization.rep ∘ f)", " LinearIndependent K (Projectivization.rep ∘ fun i => mk K (ff i) β‹―)", " (Projectivization.rep ∘ fun i => mk K (ff i) β‹―) = a β€’ ff", " (Projectivization.rep ∘ fun i => mk K (...
import Mathlib.SetTheory.Cardinal.Basic import Mathlib.Tactic.Ring #align_import data.nat.count from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988" open Finset namespace Nat variable (p : β„• β†’ Prop) section Count variable [DecidablePred p] def count (n : β„•) : β„• := (List.range n)....
Mathlib/Data/Nat/Count.lean
110
111
theorem count_succ_eq_count_iff {n : β„•} : count p (n + 1) = count p n ↔ Β¬p n := by
by_cases h : p n <;> simp [h, count_succ]
[ " count p 0 = 0", " Fintype { i // i < n ∧ p i }", " βˆ€ (x : β„•), x ∈ filter p (range n) ↔ x ∈ fun x => x < n ∧ p x", " x ∈ filter p (range n) ↔ x ∈ fun x => x < n ∧ p x", " x < n ∧ p x ↔ x ∈ fun x => x < n ∧ p x", " count p n = (filter p (range n)).card", " (List.filter (fun b => decide (p b)) (List.rang...
[ " count p 0 = 0", " Fintype { i // i < n ∧ p i }", " βˆ€ (x : β„•), x ∈ filter p (range n) ↔ x ∈ fun x => x < n ∧ p x", " x ∈ filter p (range n) ↔ x ∈ fun x => x < n ∧ p x", " x < n ∧ p x ↔ x ∈ fun x => x < n ∧ p x", " count p n = (filter p (range n)).card", " (List.filter (fun b => decide (p b)) (List.rang...
import Mathlib.LinearAlgebra.Matrix.Charpoly.Coeff import Mathlib.LinearAlgebra.Matrix.ToLin #align_import linear_algebra.matrix.charpoly.linear_map from "leanprover-community/mathlib"@"62c0a4ef1441edb463095ea02a06e87f3dfe135c" variable {ΞΉ : Type*} [Fintype ΞΉ] variable {M : Type*} [AddCommGroup M] (R : Type*) [Co...
Mathlib/LinearAlgebra/Matrix/Charpoly/LinearMap.lean
131
133
theorem Matrix.Represents.add {A A' : Matrix ΞΉ ΞΉ R} {f f' : Module.End R M} (h : A.Represents b f) (h' : Matrix.Represents b A' f') : (A + A').Represents b (f + f') := by
delta Matrix.Represents at h h' ⊒; rw [map_add, map_add, h, h']
[ " ((fromMatrix R b) A) (Pi.single j 1) = βˆ‘ i : ΞΉ, A i j β€’ b i", " βˆ‘ i : ΞΉ, (fun i => A i j * 1) i β€’ b i = βˆ‘ i : ΞΉ, A i j β€’ b i", " ((fromEnd R b) f) (Pi.single i 1) = f (b i)", " f (((Fintype.total R R) b) (Pi.single i 1)) = f (b i)", " ((Fintype.total R R) b) (Pi.single i 1) = b i", " b i = 1 β€’ b i", "...
[ " ((fromMatrix R b) A) (Pi.single j 1) = βˆ‘ i : ΞΉ, A i j β€’ b i", " βˆ‘ i : ΞΉ, (fun i => A i j * 1) i β€’ b i = βˆ‘ i : ΞΉ, A i j β€’ b i", " ((fromEnd R b) f) (Pi.single i 1) = f (b i)", " f (((Fintype.total R R) b) (Pi.single i 1)) = f (b i)", " ((Fintype.total R R) b) (Pi.single i 1) = b i", " b i = 1 β€’ b i", "...
import Mathlib.Algebra.Group.Center #align_import group_theory.subsemigroup.centralizer from "leanprover-community/mathlib"@"cc67cd75b4e54191e13c2e8d722289a89e67e4fa" variable {M : Type*} {S T : Set M} namespace Set variable (S) @[to_additive addCentralizer " The centralizer of a subset of an additive magma. ...
Mathlib/Algebra/Group/Centralizer.lean
102
105
theorem div_mem_centralizerβ‚€ [GroupWithZero M] (ha : a ∈ centralizer S) (hb : b ∈ centralizer S) : a / b ∈ centralizer S := by
rw [div_eq_mul_inv] exact mul_mem_centralizer ha (inv_mem_centralizerβ‚€ hb)
[ " 1 ∈ S.centralizer", " 0 ∈ S.centralizer", " g * (a * b) = a * b * g", " g * a⁻¹ = a⁻¹ * g", " a⁻¹ ∈ S.centralizer", " c * a⁻¹ = a⁻¹ * c", " a / b ∈ S.centralizer", " a * b⁻¹ ∈ S.centralizer" ]
[ " 1 ∈ S.centralizer", " 0 ∈ S.centralizer", " g * (a * b) = a * b * g", " g * a⁻¹ = a⁻¹ * g", " a⁻¹ ∈ S.centralizer", " c * a⁻¹ = a⁻¹ * c", " a / b ∈ S.centralizer", " a * b⁻¹ ∈ S.centralizer" ]
import Mathlib.Algebra.Squarefree.Basic import Mathlib.Data.ZMod.Basic import Mathlib.RingTheory.PrincipalIdealDomain #align_import ring_theory.zmod from "leanprover-community/mathlib"@"00d163e35035c3577c1c79fa53b68de17781ffc1" theorem ZMod.ker_intCastRingHom (n : β„•) : RingHom.ker (Int.castRingHom (ZMod n)) =...
Mathlib/RingTheory/ZMod.lean
42
46
theorem isReduced_zmod {n : β„•} : IsReduced (ZMod n) ↔ Squarefree n ∨ n = 0 := by
rw [← RingHom.ker_isRadical_iff_reduced_of_surjective (ZMod.ringHom_surjective <| Int.castRingHom <| ZMod n), ZMod.ker_intCastRingHom, ← isRadical_iff_span_singleton, isRadical_iff_squarefree_or_zero, Int.squarefree_natCast, Nat.cast_eq_zero]
[ " RingHom.ker (Int.castRingHom (ZMod n)) = Ideal.span {↑n}", " x✝ ∈ RingHom.ker (Int.castRingHom (ZMod n)) ↔ x✝ ∈ Ideal.span {↑n}", " f = g", " IsReduced (ZMod n) ↔ Squarefree n ∨ n = 0" ]
[ " RingHom.ker (Int.castRingHom (ZMod n)) = Ideal.span {↑n}", " x✝ ∈ RingHom.ker (Int.castRingHom (ZMod n)) ↔ x✝ ∈ Ideal.span {↑n}", " f = g" ]
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
83
92
theorem Algebra.trace_localization [Module.Free R S] [Module.Finite R S] (a : S) : Algebra.trace Rβ‚˜ Sβ‚˜ (algebraMap S Sβ‚˜ a) = algebraMap R Rβ‚˜ (Algebra.trace R S a) := by
cases subsingleton_or_nontrivial R Β· haveI : Subsingleton Rβ‚˜ := Module.subsingleton R Rβ‚˜ simp [eq_iff_true_of_subsingleton] let b := Module.Free.chooseBasis R S letI := Classical.decEq (Module.Free.ChooseBasisIndex R S) rw [Algebra.trace_eq_matrix_trace (b.localizationLocalization Rβ‚˜ M Sβ‚˜), Algebra.t...
[ " (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", " (norm Rβ‚˜) ((algebr...
[ " (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", " (norm Rβ‚˜) ((algebr...
import Mathlib.FieldTheory.SplittingField.Construction import Mathlib.RingTheory.Int.Basic import Mathlib.RingTheory.Localization.Integral import Mathlib.RingTheory.IntegrallyClosed #align_import ring_theory.polynomial.gauss_lemma from "leanprover-community/mathlib"@"e3f4be1fcb5376c4948d7f095bec45350bfb9d1a" open...
Mathlib/RingTheory/Polynomial/GaussLemma.lean
115
121
theorem IsPrimitive.isUnit_iff_isUnit_map_of_injective : IsUnit f ↔ IsUnit (map Ο† f) := by
refine ⟨(mapRingHom Ο†).isUnit_map, fun h => ?_⟩ rcases isUnit_iff.1 h with ⟨_, ⟨u, rfl⟩, hu⟩ have hdeg := degree_C u.ne_zero rw [hu, degree_map_eq_of_injective hinj] at hdeg rw [eq_C_of_degree_eq_zero hdeg] at hf ⊒ exact isUnit_C.mpr (isPrimitive_iff_isUnit_of_C_dvd.mp hf (f.coeff 0) dvd_rfl)
[ " IsUnit f ↔ IsUnit (map Ο† f)", " IsUnit f", " IsUnit (C (f.coeff 0))" ]
[]
import Mathlib.Algebra.Order.Field.Basic import Mathlib.Combinatorics.SimpleGraph.Basic import Mathlib.Data.Rat.Cast.Order import Mathlib.Order.Partition.Finpartition import Mathlib.Tactic.GCongr import Mathlib.Tactic.NormNum import Mathlib.Tactic.Positivity import Mathlib.Tactic.Ring #align_import combinatorics.simp...
Mathlib/Combinatorics/SimpleGraph/Density.lean
93
98
theorem interedges_disjoint_right (s : Finset Ξ±) {t t' : Finset Ξ²} (ht : Disjoint t t') : Disjoint (interedges r s t) (interedges r s t') := by
rw [Finset.disjoint_left] at ht ⊒ intro _ hx hy rw [mem_interedges_iff] at hx hy exact ht hx.2.1 hy.2.1
[ " x ∈ interedges r s t ↔ x.1 ∈ s ∧ x.2 ∈ t ∧ r x.1 x.2", " interedges r βˆ… t = βˆ…", " x ∈ interedges r sβ‚‚ tβ‚‚ β†’ x ∈ interedges r s₁ t₁", " x.1 ∈ sβ‚‚ ∧ x.2 ∈ tβ‚‚ ∧ r x.1 x.2 β†’ x.1 ∈ s₁ ∧ x.2 ∈ t₁ ∧ r x.1 x.2", " (interedges r s t).card + (interedges (fun x y => Β¬r x y) s t).card = s.card * t.card", " Disjoint (...
[ " x ∈ interedges r s t ↔ x.1 ∈ s ∧ x.2 ∈ t ∧ r x.1 x.2", " interedges r βˆ… t = βˆ…", " x ∈ interedges r sβ‚‚ tβ‚‚ β†’ x ∈ interedges r s₁ t₁", " x.1 ∈ sβ‚‚ ∧ x.2 ∈ tβ‚‚ ∧ r x.1 x.2 β†’ x.1 ∈ s₁ ∧ x.2 ∈ t₁ ∧ r x.1 x.2", " (interedges r s t).card + (interedges (fun x y => Β¬r x y) s t).card = s.card * t.card", " Disjoint (...
import Mathlib.Data.Set.Pairwise.Basic import Mathlib.Data.Set.Lattice import Mathlib.Data.SetLike.Basic #align_import order.chain from "leanprover-community/mathlib"@"c227d107bbada5d0d9d20287e3282c0a7f1651a0" open scoped Classical open Set variable {Ξ± Ξ² : Type*} section Chain variable (r : Ξ± β†’ Ξ± β†’ Prop) ...
Mathlib/Order/Chain.lean
171
174
theorem succChain_spec (h : βˆƒ t, IsChain r s ∧ SuperChain r s t) : SuperChain r s (SuccChain r s) := by
have : IsChain r s ∧ SuperChain r s h.choose := h.choose_spec simpa [SuccChain, dif_pos, exists_and_left.mp h] using this.2
[ " IsChain r univ ↔ IsTrichotomous Ξ± r", " r a b ∨ a = b ∨ r b a", " Β¬a = b β†’ r a b ∨ r b a", " IsChain (fun x x_1 => x ≀ x_1) (range f)", " IsChain (fun x x_1 => x ≀ x_1) (f '' univ)", " SuperChain r s (SuccChain r s)" ]
[ " IsChain r univ ↔ IsTrichotomous Ξ± r", " r a b ∨ a = b ∨ r b a", " Β¬a = b β†’ r a b ∨ r b a", " IsChain (fun x x_1 => x ≀ x_1) (range f)", " IsChain (fun x x_1 => x ≀ x_1) (f '' univ)" ]
import Mathlib.Algebra.MonoidAlgebra.Support import Mathlib.Algebra.Polynomial.Basic import Mathlib.Algebra.Regular.Basic import Mathlib.Data.Nat.Choose.Sum #align_import data.polynomial.coeff from "leanprover-community/mathlib"@"2651125b48fc5c170ab1111afd0817c903b1fc6c" set_option linter.uppercaseLean3 false no...
Mathlib/Algebra/Polynomial/Coeff.lean
120
124
theorem coeff_sum [Semiring S] (n : β„•) (f : β„• β†’ R β†’ S[X]) : coeff (p.sum f) n = p.sum fun a b => coeff (f a b) n := by
rcases p with ⟨⟩ -- porting note (#10745): was `simp [Polynomial.sum, support, coeff]`. simp [Polynomial.sum, support_ofFinsupp, coeff_ofFinsupp]
[ " (p + q).coeff n = p.coeff n + q.coeff n", " ({ toFinsupp := toFinsupp✝ } + q).coeff n = { toFinsupp := toFinsupp✝ }.coeff n + q.coeff n", " ({ toFinsupp := toFinsupp✝¹ } + { toFinsupp := toFinsupp✝ }).coeff n =\n { toFinsupp := toFinsupp✝¹ }.coeff n + { toFinsupp := toFinsupp✝ }.coeff n", " (toFinsupp✝¹ ...
[ " (p + q).coeff n = p.coeff n + q.coeff n", " ({ toFinsupp := toFinsupp✝ } + q).coeff n = { toFinsupp := toFinsupp✝ }.coeff n + q.coeff n", " ({ toFinsupp := toFinsupp✝¹ } + { toFinsupp := toFinsupp✝ }).coeff n =\n { toFinsupp := toFinsupp✝¹ }.coeff n + { toFinsupp := toFinsupp✝ }.coeff n", " (toFinsupp✝¹ ...
import Mathlib.Tactic.Ring #align_import algebra.group_power.identities from "leanprover-community/mathlib"@"c4658a649d216f57e99621708b09dcb3dcccbd23" variable {R : Type*} [CommRing R] {a b x₁ xβ‚‚ x₃ xβ‚„ xβ‚… x₆ x₇ xβ‚ˆ y₁ yβ‚‚ y₃ yβ‚„ yβ‚… y₆ y₇ yβ‚ˆ n : R} theorem sq_add_sq_mul_sq_add_sq : (x₁ ^ 2 + xβ‚‚ ^ 2) * (y₁ ^ 2 +...
Mathlib/Algebra/Ring/Identities.lean
31
34
theorem sq_add_mul_sq_mul_sq_add_mul_sq : (x₁ ^ 2 + n * xβ‚‚ ^ 2) * (y₁ ^ 2 + n * yβ‚‚ ^ 2) = (x₁ * y₁ - n * xβ‚‚ * yβ‚‚) ^ 2 + n * (x₁ * yβ‚‚ + xβ‚‚ * y₁) ^ 2 := by
ring
[ " (x₁ ^ 2 + xβ‚‚ ^ 2) * (y₁ ^ 2 + yβ‚‚ ^ 2) = (x₁ * y₁ - xβ‚‚ * yβ‚‚) ^ 2 + (x₁ * yβ‚‚ + xβ‚‚ * y₁) ^ 2", " (x₁ ^ 2 + n * xβ‚‚ ^ 2) * (y₁ ^ 2 + n * yβ‚‚ ^ 2) = (x₁ * y₁ - n * xβ‚‚ * yβ‚‚) ^ 2 + n * (x₁ * yβ‚‚ + xβ‚‚ * y₁) ^ 2" ]
[ " (x₁ ^ 2 + xβ‚‚ ^ 2) * (y₁ ^ 2 + yβ‚‚ ^ 2) = (x₁ * y₁ - xβ‚‚ * yβ‚‚) ^ 2 + (x₁ * yβ‚‚ + xβ‚‚ * y₁) ^ 2" ]
import Mathlib.Data.Set.Subsingleton import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.Group.Nat import Mathlib.Data.Set.Basic #align_import data.set.equitable from "leanprover-community/mathlib"@"8631e2d5ea77f6c13054d9151d82b83069680cb1" variable {Ξ± Ξ² : Type*} namespace Set def Equ...
Mathlib/Data/Set/Equitable.lean
62
64
theorem equitableOn_iff_exists_eq_eq_add_one {s : Set Ξ±} {f : Ξ± β†’ β„•} : s.EquitableOn f ↔ βˆƒ b, βˆ€ a ∈ s, f a = b ∨ f a = b + 1 := by
simp_rw [equitableOn_iff_exists_le_le_add_one, Nat.le_and_le_add_one_iff]
[ " s.EquitableOn f ↔ βˆƒ b, βˆ€ a ∈ s, b ≀ f a ∧ f a ≀ b + 1", " s.EquitableOn f β†’ βˆƒ b, βˆ€ a ∈ s, b ≀ f a ∧ f a ≀ b + 1", " βˆ….EquitableOn f β†’ βˆƒ b, βˆ€ a ∈ βˆ…, b ≀ f a ∧ f a ≀ b + 1", " βˆƒ b, βˆ€ a ∈ s, b ≀ f a ∧ f a ≀ b + 1", " (f w).succ ≀ (f y).succ", " f x ≀ (f y).succ", " s.EquitableOn f ↔ βˆƒ b, f '' s βŠ† Icc b (...
[ " s.EquitableOn f ↔ βˆƒ b, βˆ€ a ∈ s, b ≀ f a ∧ f a ≀ b + 1", " s.EquitableOn f β†’ βˆƒ b, βˆ€ a ∈ s, b ≀ f a ∧ f a ≀ b + 1", " βˆ….EquitableOn f β†’ βˆƒ b, βˆ€ a ∈ βˆ…, b ≀ f a ∧ f a ≀ b + 1", " βˆƒ b, βˆ€ a ∈ s, b ≀ f a ∧ f a ≀ b + 1", " (f w).succ ≀ (f y).succ", " f x ≀ (f y).succ", " s.EquitableOn f ↔ βˆƒ b, f '' s βŠ† Icc b (...
import Mathlib.AlgebraicGeometry.Morphisms.Basic import Mathlib.Topology.Spectral.Hom import Mathlib.AlgebraicGeometry.Limits #align_import algebraic_geometry.morphisms.quasi_compact from "leanprover-community/mathlib"@"5dc6092d09e5e489106865241986f7f2ad28d4c8" noncomputable section open CategoryTheory CategoryT...
Mathlib/AlgebraicGeometry/Morphisms/QuasiCompact.lean
109
111
theorem QuasiCompact.affineProperty_toProperty {X Y : Scheme} (f : X ⟢ Y) : (QuasiCompact.affineProperty : _).toProperty f ↔ IsAffine Y ∧ CompactSpace X.carrier := by
delta AffineTargetMorphismProperty.toProperty QuasiCompact.affineProperty; simp
[ " Continuous ⇑f.val.base", " QuasiCompact f", " βˆ€ (U : Set ↑↑Y.toPresheafedSpace), IsOpen U β†’ IsCompact U β†’ IsCompact (⇑f.val.base ⁻¹' U)", " IsCompact (⇑f.val.base ⁻¹' U)", " ⇑f.val.base ⁻¹' U = (inv f.val.base).toFun '' U", " Function.LeftInverse (⇑f.val.base) (inv f.val.base).toFun", " βˆ€ (x : ↑↑Y.toP...
[ " Continuous ⇑f.val.base", " QuasiCompact f", " βˆ€ (U : Set ↑↑Y.toPresheafedSpace), IsOpen U β†’ IsCompact U β†’ IsCompact (⇑f.val.base ⁻¹' U)", " IsCompact (⇑f.val.base ⁻¹' U)", " ⇑f.val.base ⁻¹' U = (inv f.val.base).toFun '' U", " Function.LeftInverse (⇑f.val.base) (inv f.val.base).toFun", " βˆ€ (x : ↑↑Y.toP...
import Mathlib.Geometry.Manifold.MFDeriv.Basic noncomputable section open scoped Manifold variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {E' : Type*} [NormedAddCommGroup E'] [NormedSpace π•œ E'] {f : E β†’ E'} {s : Set E} {x : E} section MFDerivFderiv t...
Mathlib/Geometry/Manifold/MFDeriv/FDeriv.lean
49
52
theorem hasMFDerivWithinAt_iff_hasFDerivWithinAt {f'} : HasMFDerivWithinAt π“˜(π•œ, E) π“˜(π•œ, E') f s x f' ↔ HasFDerivWithinAt f f' s x := by
simpa only [HasMFDerivWithinAt, and_iff_right_iff_imp, mfld_simps] using HasFDerivWithinAt.continuousWithinAt
[ " UniqueMDiffWithinAt π“˜(π•œ, E) s x ↔ UniqueDiffWithinAt π•œ s x", " UniqueMDiffOn π“˜(π•œ, E) s ↔ UniqueDiffOn π•œ s", " HasMFDerivWithinAt π“˜(π•œ, E) π“˜(π•œ, E') f s x f' ↔ HasFDerivWithinAt f f' s x" ]
[ " UniqueMDiffWithinAt π“˜(π•œ, E) s x ↔ UniqueDiffWithinAt π•œ s x", " UniqueMDiffOn π“˜(π•œ, E) s ↔ UniqueDiffOn π•œ s" ]
import Mathlib.Order.BooleanAlgebra import Mathlib.Logic.Equiv.Basic #align_import order.symm_diff from "leanprover-community/mathlib"@"6eb334bd8f3433d5b08ba156b8ec3e6af47e1904" open Function OrderDual variable {ΞΉ Ξ± Ξ² : Type*} {Ο€ : ΞΉ β†’ Type*} def symmDiff [Sup Ξ±] [SDiff Ξ±] (a b : Ξ±) : Ξ± := a \ b βŠ” b \ a #ali...
Mathlib/Order/SymmDiff.lean
133
134
theorem symmDiff_eq_bot {a b : Ξ±} : a βˆ† b = βŠ₯ ↔ a = b := by
simp_rw [symmDiff, sup_eq_bot_iff, sdiff_eq_bot_iff, le_antisymm_iff]
[ " βˆ€ (p q : Bool), p βˆ† q = xor p q", " a βˆ† b = b βˆ† a", " a βˆ† a = βŠ₯", " a βˆ† βŠ₯ = a", " βŠ₯ βˆ† a = a", " a βˆ† b = βŠ₯ ↔ a = b" ]
[ " βˆ€ (p q : Bool), p βˆ† q = xor p q", " a βˆ† b = b βˆ† a", " a βˆ† a = βŠ₯", " a βˆ† βŠ₯ = a", " βŠ₯ βˆ† a = a" ]
import Mathlib.Logic.Function.Basic import Mathlib.Logic.Relator import Mathlib.Init.Data.Quot import Mathlib.Tactic.Cases import Mathlib.Tactic.Use import Mathlib.Tactic.MkIffOfInductiveProp import Mathlib.Tactic.SimpRw #align_import logic.relation from "leanprover-community/mathlib"@"3365b20c2ffa7c35e47e5209b89ba9a...
Mathlib/Logic/Relation.lean
353
357
theorem cases_head_iff : ReflTransGen r a b ↔ a = b ∨ βˆƒ c, r a c ∧ ReflTransGen r c b := by
use cases_head rintro (rfl | ⟨c, hac, hcb⟩) · rfl · exact head hac hcb
[ " ReflTransGen r a c", " ReflTransGen r a b", " ReflTransGen r a c✝", " Symmetric (ReflTransGen r)", " ReflTransGen r y x", " ReflTransGen r x x", " ReflTransGen r w x", " P a h", " P a β‹―", " P b β‹―", " βˆ€ {a c_1 : Ξ±} (h' : r a c_1) (h : ReflTransGen r c_1 b), P c_1 β‹― β†’ P a β‹―", " P h", " P β‹―",...
[ " ReflTransGen r a c", " ReflTransGen r a b", " ReflTransGen r a c✝", " Symmetric (ReflTransGen r)", " ReflTransGen r y x", " ReflTransGen r x x", " ReflTransGen r w x", " P a h", " P a β‹―", " P b β‹―", " βˆ€ {a c_1 : Ξ±} (h' : r a c_1) (h : ReflTransGen r c_1 b), P c_1 β‹― β†’ P a β‹―", " P h", " P β‹―",...
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.Degree.Lemmas import Mathlib.Algebra.Polynomial.Monic #align_import data.polynomial.integral_normalization from "leanprover-community/mathlib"@"6f401acf4faec3ab9ab13a42789c4f68064a61cd" open Polynomial namespace Polynomial universe u...
Mathlib/RingTheory/Polynomial/IntegralNormalization.lean
44
45
theorem integralNormalization_zero : integralNormalization (0 : R[X]) = 0 := by
simp [integralNormalization]
[ " integralNormalization 0 = 0" ]
[]
import Mathlib.Algebra.Polynomial.Monic #align_import algebra.polynomial.big_operators from "leanprover-community/mathlib"@"47adfab39a11a072db552f47594bf8ed2cf8a722" open Finset open Multiset open Polynomial universe u w variable {R : Type u} {ΞΉ : Type w} namespace Polynomial variable (s : Finset ΞΉ) sectio...
Mathlib/Algebra/Polynomial/BigOperators.lean
86
89
theorem degree_list_prod_le (l : List S[X]) : degree l.prod ≀ (l.map degree).sum := by
induction' l with hd tl IH Β· simp Β· simpa using (degree_mul_le _ _).trans (add_le_add_left IH _)
[ " natDegree 0 ≀ 0", " βˆ€ (a : List S[X]), (Multiset.sum ⟦a⟧).natDegree ≀ foldr max β‹― 0 (Multiset.map natDegree ⟦a⟧)", " (βˆ‘ i ∈ s, f i).natDegree ≀ Finset.fold max 0 (natDegree ∘ f) s", " 0 ≀ n ∧ βˆ€ x ∈ s, (natDegree ∘ f) x ≀ n", " l.sum.degree ≀ (List.map natDegree l).maximum", " ↑l.sum.natDegree ≀ (List.ma...
[ " natDegree 0 ≀ 0", " βˆ€ (a : List S[X]), (Multiset.sum ⟦a⟧).natDegree ≀ foldr max β‹― 0 (Multiset.map natDegree ⟦a⟧)", " (βˆ‘ i ∈ s, f i).natDegree ≀ Finset.fold max 0 (natDegree ∘ f) s", " 0 ≀ n ∧ βˆ€ x ∈ s, (natDegree ∘ f) x ≀ n", " l.sum.degree ≀ (List.map natDegree l).maximum", " ↑l.sum.natDegree ≀ (List.ma...
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic import Mathlib.Topology.Order.ProjIcc #align_import analysis.special_functions.trigonometric.inverse from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" noncomputable section open scoped Classical open Topology Filter open S...
Mathlib/Analysis/SpecialFunctions/Trigonometric/Inverse.lean
124
125
theorem arcsin_of_one_le {x : ℝ} (hx : 1 ≀ x) : arcsin x = Ο€ / 2 := by
rw [← arcsin_projIcc, projIcc_of_right_le _ hx, Subtype.coe_mk, arcsin_one]
[ " range arcsin = Icc (-(Ο€ / 2)) (Ο€ / 2)", " Subtype.val '' range (IccExtend arcsin.proof_2 ⇑sinOrderIso.symm) = Icc (-(Ο€ / 2)) (Ο€ / 2)", " (↑(projIcc (-1) 1 β‹― x)).arcsin = x.arcsin", " x.arcsin.sin = x", " x.sin.arcsin.sin = x.sin", " y.arcsin = x", " x.sin.arcsin = x", " x.arcsin = Ο€ / 2" ]
[ " range arcsin = Icc (-(Ο€ / 2)) (Ο€ / 2)", " Subtype.val '' range (IccExtend arcsin.proof_2 ⇑sinOrderIso.symm) = Icc (-(Ο€ / 2)) (Ο€ / 2)", " (↑(projIcc (-1) 1 β‹― x)).arcsin = x.arcsin", " x.arcsin.sin = x", " x.sin.arcsin.sin = x.sin", " y.arcsin = x", " x.sin.arcsin = x" ]
import Mathlib.Analysis.SpecialFunctions.Pow.Real import Mathlib.Data.Int.Log #align_import analysis.special_functions.log.base from "leanprover-community/mathlib"@"f23a09ce6d3f367220dc3cecad6b7eb69eb01690" open Set Filter Function open Topology noncomputable section namespace Real variable {b x y : ℝ} -- @...
Mathlib/Analysis/SpecialFunctions/Log/Base.lean
105
108
theorem mul_logb {a b c : ℝ} (h₁ : b β‰  0) (hβ‚‚ : b β‰  1) (h₃ : b β‰  -1) : logb a b * logb b c = logb a c := by
unfold logb rw [mul_comm, div_mul_div_cancel _ (log_ne_zero.mpr ⟨h₁, hβ‚‚, hβ‚ƒβŸ©)]
[ " b.logb 0 = 0", " b.logb 1 = 0", " False", " b.logb |x| = b.logb x", " b.logb (-x) = b.logb x", " b.logb (x * y) = b.logb x + b.logb y", " b.logb (x / y) = b.logb x - b.logb y", " b.logb x⁻¹ = -b.logb x", " (a.logb b)⁻¹ = b.logb a", " ((a * b).logb c)⁻¹ = (a.logb c)⁻¹ + (b.logb c)⁻¹", " c.logb ...
[ " b.logb 0 = 0", " b.logb 1 = 0", " False", " b.logb |x| = b.logb x", " b.logb (-x) = b.logb x", " b.logb (x * y) = b.logb x + b.logb y", " b.logb (x / y) = b.logb x - b.logb y", " b.logb x⁻¹ = -b.logb x", " (a.logb b)⁻¹ = b.logb a", " ((a * b).logb c)⁻¹ = (a.logb c)⁻¹ + (b.logb c)⁻¹", " c.logb ...
import Mathlib.CategoryTheory.Limits.ColimitLimit import Mathlib.CategoryTheory.Limits.Preserves.FunctorCategory import Mathlib.CategoryTheory.Limits.Preserves.Finite import Mathlib.CategoryTheory.Limits.Shapes.FiniteLimits import Mathlib.CategoryTheory.Limits.TypesFiltered import Mathlib.CategoryTheory.ConcreteCatego...
Mathlib/CategoryTheory/Limits/FilteredColimitCommutesFiniteLimit.lean
72
142
theorem colimitLimitToLimitColimit_injective : Function.Injective (colimitLimitToLimitColimit F) := by
classical cases nonempty_fintype J -- Suppose we have two terms `x y` in the colimit (over `K`) of the limits (over `J`), -- and that these have the same image under `colimitLimitToLimitColimit F`. intro x y h -- These elements of the colimit have representatives somewhere: obtain ⟨kx, x, rfl...
[ " Function.Injective (colimitLimitToLimitColimit F)", " x = y", " colimit.ΞΉ (curry.obj (swap K J β‹™ F) β‹™ lim) kx x = y", " colimit.ΞΉ (curry.obj (swap K J β‹™ F) β‹™ lim) kx x = colimit.ΞΉ (curry.obj (swap K J β‹™ F) β‹™ lim) ky y", " kx ∈ {kx, ky}", " ky ∈ {kx, ky}", " k j ∈ Finset.image k Finset.univ", " ⟨kx, ...
[]
import Mathlib.LinearAlgebra.Dimension.Constructions import Mathlib.LinearAlgebra.Dimension.Finite universe u v open Function Set Cardinal variable {R} {M M₁ Mβ‚‚ M₃ : Type u} {M' : Type v} [Ring R] variable [AddCommGroup M] [AddCommGroup M₁] [AddCommGroup Mβ‚‚] [AddCommGroup M₃] [AddCommGroup M'] variable [Module R M...
Mathlib/LinearAlgebra/Dimension/RankNullity.lean
113
123
theorem exists_linearIndependent_cons_of_lt_rank [StrongRankCondition R] {n : β„•} {v : Fin n β†’ M} (hv : LinearIndependent R v) (h : n < Module.rank R M) : βˆƒ (x : M), LinearIndependent R (Fin.cons x v) := by
obtain ⟨t, h₁, hβ‚‚, hβ‚ƒβŸ© := exists_linearIndependent_of_lt_rank hv.to_subtype_range have : range v β‰  t := by refine fun e ↦ h.ne ?_ rw [← e, ← lift_injective.eq_iff, mk_range_eq_of_injective hv.injective] at hβ‚‚ simpa only [mk_fintype, Fintype.card_fin, lift_natCast, lift_id'] using hβ‚‚ obtain ⟨x, hx, hx...
[ " Nontrivial R", " False", " lift.{u, v} (Module.rank R β†₯(LinearMap.range f)) + lift.{v, u} (Module.rank R β†₯(LinearMap.ker f)) =\n lift.{v, u} (Module.rank R M)", " Module.rank R β†₯(LinearMap.range f) + Module.rank R β†₯(LinearMap.ker f) = Module.rank R M", " lift.{v, u} (Module.rank R M) = lift.{u, v} (Mod...
[ " Nontrivial R", " False", " lift.{u, v} (Module.rank R β†₯(LinearMap.range f)) + lift.{v, u} (Module.rank R β†₯(LinearMap.ker f)) =\n lift.{v, u} (Module.rank R M)", " Module.rank R β†₯(LinearMap.range f) + Module.rank R β†₯(LinearMap.ker f) = Module.rank R M", " lift.{v, u} (Module.rank R M) = lift.{u, v} (Mod...
import Mathlib.Algebra.DirectSum.Finsupp import Mathlib.LinearAlgebra.Finsupp import Mathlib.LinearAlgebra.DirectSum.TensorProduct #align_import linear_algebra.direct_sum.finsupp from "leanprover-community/mathlib"@"9b9d125b7be0930f564a68f1d73ace10cf46064d" noncomputable section open DirectSum TensorProduct ope...
Mathlib/LinearAlgebra/DirectSum/Finsupp.lean
298
301
theorem finsuppTensorFinsuppLid_single_tmul_single (a : ΞΉ) (b : ΞΊ) (r : R) (n : N) : finsuppTensorFinsuppLid R N ΞΉ ΞΊ (Finsupp.single a r βŠ—β‚œ[R] Finsupp.single b n) = Finsupp.single (a, b) (r β€’ n) := by
simp [finsuppTensorFinsuppLid]
[ " (finsuppTensorFinsupp R S M N ΞΉ ΞΊ) (Finsupp.single i m βŠ—β‚œ[R] Finsupp.single k n) = Finsupp.single (i, k) (m βŠ—β‚œ[R] n)", " ((finsuppTensorFinsupp R S M N ΞΉ ΞΊ) (f βŠ—β‚œ[R] g)) (i, k) = f i βŠ—β‚œ[R] g k", " ((finsuppTensorFinsupp R S M N ΞΉ ΞΊ) (0 βŠ—β‚œ[R] g)) (i, k) = 0 i βŠ—β‚œ[R] g k", " βˆ€ (f g_1 : ΞΉ β†’β‚€ M),\n ((finsuppT...
[ " (finsuppTensorFinsupp R S M N ΞΉ ΞΊ) (Finsupp.single i m βŠ—β‚œ[R] Finsupp.single k n) = Finsupp.single (i, k) (m βŠ—β‚œ[R] n)", " ((finsuppTensorFinsupp R S M N ΞΉ ΞΊ) (f βŠ—β‚œ[R] g)) (i, k) = f i βŠ—β‚œ[R] g k", " ((finsuppTensorFinsupp R S M N ΞΉ ΞΊ) (0 βŠ—β‚œ[R] g)) (i, k) = 0 i βŠ—β‚œ[R] g k", " βˆ€ (f g_1 : ΞΉ β†’β‚€ M),\n ((finsuppT...
import Mathlib.RingTheory.Localization.FractionRing import Mathlib.Algebra.Polynomial.RingDivision #align_import field_theory.ratfunc from "leanprover-community/mathlib"@"bf9bbbcf0c1c1ead18280b0d010e417b10abb1b6" noncomputable section open scoped Classical open scoped nonZeroDivisors Polynomial universe u v va...
Mathlib/FieldTheory/RatFunc/Defs.lean
123
127
theorem liftOn_ofFractionRing_mk {P : Sort v} (n : K[X]) (d : K[X]⁰) (f : K[X] β†’ K[X] β†’ P) (H : βˆ€ {p q p' q'} (_hq : q ∈ K[X]⁰) (_hq' : q' ∈ K[X]⁰), q' * p = q * p' β†’ f p q = f p' q') : RatFunc.liftOn (ofFractionRing (Localization.mk n d)) f @H = f n d := by
rw [RatFunc.liftOn] exact Localization.liftOn_mk _ _ _ _
[ " { toFractionRing := x } = { toFractionRing := y }", " { toFractionRing := x } = { toFractionRing := { toFractionRing := x }.toFractionRing }", " P", " βˆ€ {a c : K[X]} {b d : β†₯K[X]⁰},\n (Localization.r K[X]⁰) (a, b) (c, d) β†’ (fun p q => f p ↑q) a b = (fun p q => f p ↑q) c d", " (fun p q => f p ↑q) p q = ...
[ " { toFractionRing := x } = { toFractionRing := y }", " { toFractionRing := x } = { toFractionRing := { toFractionRing := x }.toFractionRing }", " P", " βˆ€ {a c : K[X]} {b d : β†₯K[X]⁰},\n (Localization.r K[X]⁰) (a, b) (c, d) β†’ (fun p q => f p ↑q) a b = (fun p q => f p ↑q) c d", " (fun p q => f p ↑q) p q = ...
import Mathlib.AlgebraicGeometry.AffineScheme import Mathlib.AlgebraicGeometry.Pullbacks import Mathlib.CategoryTheory.MorphismProperty.Limits import Mathlib.Data.List.TFAE #align_import algebraic_geometry.morphisms.basic from "leanprover-community/mathlib"@"434e2fd21c1900747afc6d13d8be7f4eedba7218" set_option lin...
Mathlib/AlgebraicGeometry/Morphisms/Basic.lean
104
106
theorem affine_cancel_right_isIso {P : AffineTargetMorphismProperty} (hP : P.toProperty.RespectsIso) {X Y Z : Scheme} (f : X ⟢ Y) (g : Y ⟢ Z) [IsIso g] [IsAffine Z] [IsAffine Y] : P (f ≫ g) ↔ P f := by
rw [← P.toProperty_apply, ← P.toProperty_apply, hP.cancel_right_isIso]
[ " P.toProperty f ↔ P f", " (βˆƒ (h : IsAffine Y), P f) ↔ P f", " P (f ≫ g) ↔ P g", " P (f ≫ g) ↔ P f" ]
[ " P.toProperty f ↔ P f", " (βˆƒ (h : IsAffine Y), P f) ↔ P f", " P (f ≫ g) ↔ P g" ]
import Mathlib.MeasureTheory.Integral.SetIntegral #align_import measure_theory.integral.average from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520" open ENNReal MeasureTheory MeasureTheory.Measure Metric Set Filter TopologicalSpace Function open scoped Topology ENNReal Convex variable...
Mathlib/MeasureTheory/Integral/Average.lean
336
337
theorem average_eq_integral [IsProbabilityMeasure ΞΌ] (f : Ξ± β†’ E) : ⨍ x, f x βˆ‚ΞΌ = ∫ x, f x βˆ‚ΞΌ := by
rw [average, measure_univ, inv_one, one_smul]
[ " ⨍ (x : Ξ±), 0 βˆ‚ΞΌ = 0", " ⨍ (x : Ξ±), f x βˆ‚0 = 0", " ⨍ (x : Ξ±), f x βˆ‚ΞΌ = (ΞΌ univ).toReal⁻¹ β€’ ∫ (x : Ξ±), f x βˆ‚ΞΌ", " ⨍ (x : Ξ±), f x βˆ‚ΞΌ = ∫ (x : Ξ±), f x βˆ‚ΞΌ" ]
[ " ⨍ (x : Ξ±), 0 βˆ‚ΞΌ = 0", " ⨍ (x : Ξ±), f x βˆ‚0 = 0", " ⨍ (x : Ξ±), f x βˆ‚ΞΌ = (ΞΌ univ).toReal⁻¹ β€’ ∫ (x : Ξ±), f x βˆ‚ΞΌ" ]
import Mathlib.Algebra.Order.Field.Power import Mathlib.NumberTheory.Padics.PadicVal #align_import number_theory.padics.padic_norm from "leanprover-community/mathlib"@"92ca63f0fb391a9ca5f22d2409a6080e786d99f7" def padicNorm (p : β„•) (q : β„š) : β„š := if q = 0 then 0 else (p : β„š) ^ (-padicValRat p q) #align padic_n...
Mathlib/NumberTheory/Padics/PadicNorm.lean
94
98
theorem padicNorm_of_prime_of_ne {q : β„•} [p_prime : Fact p.Prime] [q_prime : Fact q.Prime] (neq : p β‰  q) : padicNorm p q = 1 := by
have p : padicValRat p q = 0 := mod_cast padicValNat_primes neq rw [padicNorm, p] simp [q_prime.1.ne_zero]
[ " padicNorm p q = ↑p ^ (-padicValRat p q)", " 0 ≀ padicNorm p q", " 0 ≀ if q = 0 then 0 else ↑p ^ (-padicValRat p q)", " 0 ≀ ↑p ^ (-padicValRat p q)", " 0 ≀ ↑p", " padicNorm p 0 = 0", " padicNorm p 1 = 1", " padicNorm p ↑p = (↑p)⁻¹", " padicNorm p ↑q = 1", " padicNorm p✝ ↑q = 1", " (if ↑q = 0 th...
[ " padicNorm p q = ↑p ^ (-padicValRat p q)", " 0 ≀ padicNorm p q", " 0 ≀ if q = 0 then 0 else ↑p ^ (-padicValRat p q)", " 0 ≀ ↑p ^ (-padicValRat p q)", " 0 ≀ ↑p", " padicNorm p 0 = 0", " padicNorm p 1 = 1", " padicNorm p ↑p = (↑p)⁻¹" ]
import Mathlib.AlgebraicGeometry.Properties #align_import algebraic_geometry.function_field from "leanprover-community/mathlib"@"d39590fc8728fbf6743249802486f8c91ffe07bc" -- Explicit universe annotations were used in this file to improve perfomance #12737 set_option linter.uppercaseLean3 false universe u v open...
Mathlib/AlgebraicGeometry/FunctionField.lean
115
121
theorem genericPoint_eq_bot_of_affine (R : CommRingCat) [IsDomain R] : genericPoint (Scheme.Spec.obj <| op R).carrier = (⟨0, Ideal.bot_prime⟩ : PrimeSpectrum R) := by
apply (genericPoint_spec (Scheme.Spec.obj <| op R).carrier).eq rw [isGenericPoint_def] rw [← PrimeSpectrum.zeroLocus_vanishingIdeal_eq_closure, PrimeSpectrum.vanishingIdeal_singleton] rw [Set.top_eq_univ, ← PrimeSpectrum.zeroLocus_singleton_zero] simp_rw [Submodule.zero_eq_bot, Submodule.bot_coe]
[ " (⊀ ∩ ↑U).Nonempty", " Field ↑X.functionField", " IsUnit a ∨ a = 0", " IsUnit ((X.presheaf.germ ⟨genericPoint ↑↑X.toPresheafedSpace, m⟩) s) ∨\n (X.presheaf.germ ⟨genericPoint ↑↑X.toPresheafedSpace, m⟩) s = 0", " Β¬(X.presheaf.germ ⟨genericPoint ↑↑X.toPresheafedSpace, m⟩) s =\n (X.presheaf.germ ⟨ge...
[ " (⊀ ∩ ↑U).Nonempty", " Field ↑X.functionField", " IsUnit a ∨ a = 0", " IsUnit ((X.presheaf.germ ⟨genericPoint ↑↑X.toPresheafedSpace, m⟩) s) ∨\n (X.presheaf.germ ⟨genericPoint ↑↑X.toPresheafedSpace, m⟩) s = 0", " Β¬(X.presheaf.germ ⟨genericPoint ↑↑X.toPresheafedSpace, m⟩) s =\n (X.presheaf.germ ⟨ge...
import Mathlib.AlgebraicTopology.SimplicialObject import Mathlib.CategoryTheory.Limits.Shapes.Products #align_import algebraic_topology.split_simplicial_object from "leanprover-community/mathlib"@"dd1f8496baa505636a82748e6b652165ea888733" noncomputable section open CategoryTheory CategoryTheory.Category Category...
Mathlib/AlgebraicTopology/SplitSimplicialObject.lean
77
84
theorem ext (A₁ Aβ‚‚ : IndexSet Ξ”) (h₁ : A₁.1 = Aβ‚‚.1) (hβ‚‚ : A₁.e ≫ eqToHom (by rw [h₁]) = Aβ‚‚.e) : A₁ = Aβ‚‚ := by
rcases A₁ with βŸ¨Ξ”β‚, βŸ¨Ξ±β‚, hΞ±β‚βŸ©βŸ© rcases Aβ‚‚ with βŸ¨Ξ”β‚‚, βŸ¨Ξ±β‚‚, hΞ±β‚‚βŸ©βŸ© simp only at h₁ subst h₁ simp only [eqToHom_refl, comp_id, IndexSet.e] at hβ‚‚ simp only [hβ‚‚]
[ " A₁.fst.unop = Aβ‚‚.fst.unop", " A₁ = Aβ‚‚", " βŸ¨Ξ”β‚, βŸ¨Ξ±β‚, hΞ±β‚βŸ©βŸ© = Aβ‚‚", " βŸ¨Ξ”β‚, βŸ¨Ξ±β‚, hΞ±β‚βŸ©βŸ© = βŸ¨Ξ”β‚‚, βŸ¨Ξ±β‚‚, hΞ±β‚‚βŸ©βŸ©", " βŸ¨Ξ”β‚, βŸ¨Ξ±β‚, hΞ±β‚βŸ©βŸ© = βŸ¨Ξ”β‚, βŸ¨Ξ±β‚‚, hΞ±β‚‚βŸ©βŸ©" ]
[]
import Mathlib.Analysis.Convex.Function import Mathlib.Analysis.Convex.StrictConvexSpace import Mathlib.MeasureTheory.Function.AEEqOfIntegral import Mathlib.MeasureTheory.Integral.Average #align_import analysis.convex.integral from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open Mea...
Mathlib/Analysis/Convex/Integral.lean
122
127
theorem ConcaveOn.average_mem_hypograph [IsFiniteMeasure ΞΌ] [NeZero ΞΌ] (hg : ConcaveOn ℝ s g) (hgc : ContinuousOn g s) (hsc : IsClosed s) (hfs : βˆ€α΅ x βˆ‚ΞΌ, f x ∈ s) (hfi : Integrable f ΞΌ) (hgi : Integrable (g ∘ f) ΞΌ) : (⨍ x, f x βˆ‚ΞΌ, ⨍ x, g (f x) βˆ‚ΞΌ) ∈ {p : E Γ— ℝ | p.1 ∈ s ∧ p.2 ≀ g p.1} := by
simpa only [mem_setOf_eq, Pi.neg_apply, average_neg, neg_le_neg_iff] using hg.neg.average_mem_epigraph hgc.neg hsc hfs hfi hgi.neg
[ " ∫ (x : Ξ±), f x βˆ‚ΞΌ ∈ s", " (range g ∩ s).Nonempty", " f xβ‚€ ∈ range g", " ∫ (a : Ξ±), g a βˆ‚ΞΌ ∈ s", " βˆ€α΅ (x : Ξ±) βˆ‚ΞΌ, g x ∈ closure (range g ∩ s)", " g x ∈ closure (range g ∩ s)", " g x ∈ range g ∩ s", " βˆ€ i ∈ (G n).range, 0 ≀ (ΞΌ (↑(G n) ⁻¹' {i})).toReal", " βˆ‘ i ∈ (G n).range, (ΞΌ (↑(G n) ⁻¹' {i})).toRe...
[ " ∫ (x : Ξ±), f x βˆ‚ΞΌ ∈ s", " (range g ∩ s).Nonempty", " f xβ‚€ ∈ range g", " ∫ (a : Ξ±), g a βˆ‚ΞΌ ∈ s", " βˆ€α΅ (x : Ξ±) βˆ‚ΞΌ, g x ∈ closure (range g ∩ s)", " g x ∈ closure (range g ∩ s)", " g x ∈ range g ∩ s", " βˆ€ i ∈ (G n).range, 0 ≀ (ΞΌ (↑(G n) ⁻¹' {i})).toReal", " βˆ‘ i ∈ (G n).range, (ΞΌ (↑(G n) ⁻¹' {i})).toRe...
import Mathlib.Data.Nat.Choose.Basic import Mathlib.Data.Sym.Sym2 namespace List variable {Ξ± : Type*} section Sym2 protected def sym2 : List Ξ± β†’ List (Sym2 Ξ±) | [] => [] | x :: xs => (x :: xs).map (fun y => s(x, y)) ++ xs.sym2 theorem mem_sym2_cons_iff {x : Ξ±} {xs : List Ξ±} {z : Sym2 Ξ±} : z ∈ (x :: xs)...
Mathlib/Data/List/Sym.lean
81
87
theorem mk_mem_sym2_iff {xs : List Ξ±} {a b : Ξ±} : s(a, b) ∈ xs.sym2 ↔ a ∈ xs ∧ b ∈ xs := by
constructor · intro h exact ⟨left_mem_of_mk_mem_sym2 h, right_mem_of_mk_mem_sym2 h⟩ · rintro ⟨ha, hb⟩ exact mk_mem_sym2 ha hb
[ " z ∈ (x :: xs).sym2 ↔ z = s(x, x) ∨ (βˆƒ y ∈ xs, z = s(x, y)) ∨ z ∈ xs.sym2", " z = s(x, x) ∨ (βˆƒ a ∈ xs, s(x, a) = z) ∨ z ∈ xs.sym2 ↔ z = s(x, x) ∨ (βˆƒ y ∈ xs, z = s(x, y)) ∨ z ∈ xs.sym2", " xs.sym2 = [] ↔ xs = []", " [].sym2 = [] ↔ [] = []", " (head✝ :: tail✝).sym2 = [] ↔ head✝ :: tail✝ = []", " a ∈ xs", ...
[ " z ∈ (x :: xs).sym2 ↔ z = s(x, x) ∨ (βˆƒ y ∈ xs, z = s(x, y)) ∨ z ∈ xs.sym2", " z = s(x, x) ∨ (βˆƒ a ∈ xs, s(x, a) = z) ∨ z ∈ xs.sym2 ↔ z = s(x, x) ∨ (βˆƒ y ∈ xs, z = s(x, y)) ∨ z ∈ xs.sym2", " xs.sym2 = [] ↔ xs = []", " [].sym2 = [] ↔ [] = []", " (head✝ :: tail✝).sym2 = [] ↔ head✝ :: tail✝ = []", " a ∈ xs", ...
import Mathlib.Algebra.Group.ConjFinite import Mathlib.GroupTheory.Abelianization import Mathlib.GroupTheory.GroupAction.ConjAct import Mathlib.GroupTheory.GroupAction.Quotient import Mathlib.GroupTheory.Index import Mathlib.GroupTheory.SpecificGroups.Dihedral import Mathlib.Tactic.FieldSimp import Mathlib.Tactic.Line...
Mathlib/GroupTheory/CommutingProbability.lean
108
116
theorem Subgroup.commProb_subgroup_le : commProb H ≀ commProb G * (H.index : β„š) ^ 2 := by
/- After rewriting with `commProb_def`, we reduce to showing that `G` has at least as many commuting pairs as `H`. -/ rw [commProb_def, commProb_def, div_le_iff, mul_assoc, ← mul_pow, ← Nat.cast_mul, mul_comm H.index, H.card_mul_index, div_mul_cancelβ‚€, Nat.cast_le] Β· refine Finite.card_le_of_injective ...
[ " commProb (M Γ— M') = commProb M * commProb M'", " ↑(Nat.card { p // (p.1 * p.2).1 = (p.2 * p.1).1 ∧ (p.1 * p.2).2 = (p.2 * p.1).2 }) /\n (↑(Nat.card M) ^ 2 * ↑(Nat.card M') ^ 2) =\n ↑(Nat.card ({ p // p.1 * p.2 = p.2 * p.1 } Γ— { p // p.1 * p.2 = p.2 * p.1 })) /\n (↑(Nat.card M) ^ 2 * ↑(Nat.card M') ...
[ " commProb (M Γ— M') = commProb M * commProb M'", " ↑(Nat.card { p // (p.1 * p.2).1 = (p.2 * p.1).1 ∧ (p.1 * p.2).2 = (p.2 * p.1).2 }) /\n (↑(Nat.card M) ^ 2 * ↑(Nat.card M') ^ 2) =\n ↑(Nat.card ({ p // p.1 * p.2 = p.2 * p.1 } Γ— { p // p.1 * p.2 = p.2 * p.1 })) /\n (↑(Nat.card M) ^ 2 * ↑(Nat.card M') ...
import Mathlib.Order.UpperLower.Basic import Mathlib.Data.Finset.Preimage #align_import combinatorics.young.young_diagram from "leanprover-community/mathlib"@"59694bd07f0a39c5beccba34bd9f413a160782bf" open Function @[ext] structure YoungDiagram where cells : Finset (β„• Γ— β„•) isLowerSet : IsLowerSet (cel...
Mathlib/Combinatorics/Young/YoungDiagram.lean
289
289
theorem mk_mem_row_iff {ΞΌ : YoungDiagram} {i j : β„•} : (i, j) ∈ ΞΌ.row i ↔ (i, j) ∈ ΞΌ := by
simp [row]
[ " ΞΌ = Ξ½", " c ∈ ΞΌ.row i ↔ c ∈ ΞΌ ∧ c.1 = i", " (i, j) ∈ ΞΌ.row i ↔ (i, j) ∈ ΞΌ" ]
[ " ΞΌ = Ξ½", " c ∈ ΞΌ.row i ↔ c ∈ ΞΌ ∧ c.1 = i" ]
import Mathlib.Topology.Connected.Basic import Mathlib.Topology.Separation open scoped Topology variable {X Y A} [TopologicalSpace X] [TopologicalSpace A] theorem embedding_toPullbackDiag (f : X β†’ Y) : Embedding (toPullbackDiag f) := Embedding.mk' _ (injective_toPullbackDiag f) fun x ↦ by rw [toPullbackDiag,...
Mathlib/Topology/SeparatedMap.lean
89
92
theorem isSeparatedMap_iff_closedEmbedding {f : X β†’ Y} : IsSeparatedMap f ↔ ClosedEmbedding (toPullbackDiag f) := by
rw [isSeparatedMap_iff_isClosed_diagonal, ← range_toPullbackDiag] exact ⟨fun h ↦ ⟨embedding_toPullbackDiag f, h⟩, fun h ↦ h.isClosed_range⟩
[ " Filter.comap (toPullbackDiag f) (𝓝 (toPullbackDiag f x)) = 𝓝 x", " Filter.comap (Prod.fst ∘ Subtype.val ∘ toPullbackDiag f) (𝓝 x) βŠ“\n Filter.comap (Prod.snd ∘ Subtype.val ∘ toPullbackDiag f) (𝓝 x) =\n 𝓝 x", " Continuous (Function.mapPullback mapX mapY mapZ commX commZ)", " Continuous fun x => m...
[ " Filter.comap (toPullbackDiag f) (𝓝 (toPullbackDiag f x)) = 𝓝 x", " Filter.comap (Prod.fst ∘ Subtype.val ∘ toPullbackDiag f) (𝓝 x) βŠ“\n Filter.comap (Prod.snd ∘ Subtype.val ∘ toPullbackDiag f) (𝓝 x) =\n 𝓝 x", " Continuous (Function.mapPullback mapX mapY mapZ commX commZ)", " Continuous fun x => m...
import Mathlib.Algebra.Regular.Basic import Mathlib.LinearAlgebra.Matrix.MvPolynomial import Mathlib.LinearAlgebra.Matrix.Polynomial import Mathlib.RingTheory.Polynomial.Basic #align_import linear_algebra.matrix.adjugate from "leanprover-community/mathlib"@"a99f85220eaf38f14f94e04699943e185a5e1d1a" namespace Matr...
Mathlib/LinearAlgebra/Matrix/Adjugate.lean
141
142
theorem cramer_subsingleton_apply [Subsingleton n] (A : Matrix n n Ξ±) (b : n β†’ Ξ±) (i : n) : cramer A b i = b i := by
rw [cramer_apply, det_eq_elem_of_subsingleton _ i, updateColumn_self]
[ " IsLinearMap Ξ± A.cramerMap", " βˆ€ (x y : n β†’ Ξ±), A.cramerMap (x + y) = A.cramerMap x + A.cramerMap y", " βˆ€ (c : Ξ±) (x : n β†’ Ξ±), A.cramerMap (c β€’ x) = c β€’ A.cramerMap x", " A.cramerMap (x✝ + y✝) = A.cramerMap x✝ + A.cramerMap y✝", " A.cramerMap (c✝ β€’ x✝) = c✝ β€’ A.cramerMap x✝", " A.cramerMap (x✝ + y✝) i = ...
[ " IsLinearMap Ξ± A.cramerMap", " βˆ€ (x y : n β†’ Ξ±), A.cramerMap (x + y) = A.cramerMap x + A.cramerMap y", " βˆ€ (c : Ξ±) (x : n β†’ Ξ±), A.cramerMap (c β€’ x) = c β€’ A.cramerMap x", " A.cramerMap (x✝ + y✝) = A.cramerMap x✝ + A.cramerMap y✝", " A.cramerMap (c✝ β€’ x✝) = c✝ β€’ A.cramerMap x✝", " A.cramerMap (x✝ + y✝) i = ...
import Mathlib.Topology.MetricSpace.HausdorffDistance #align_import topology.metric_space.pi_nat from "leanprover-community/mathlib"@"49b7f94aab3a3bdca1f9f34c5d818afb253b3993" noncomputable section open scoped Classical open Topology Filter open TopologicalSpace Set Metric Filter Function attribute [local simp...
Mathlib/Topology/MetricSpace/PiNat.lean
74
77
theorem apply_firstDiff_ne {x y : βˆ€ n, E n} (h : x β‰  y) : x (firstDiff x y) β‰  y (firstDiff x y) := by
rw [firstDiff_def, dif_pos h] exact Nat.find_spec (ne_iff.1 h)
[ " x (firstDiff x y) β‰  y (firstDiff x y)", " x (Nat.find β‹―) β‰  y (Nat.find β‹―)" ]
[]
import Mathlib.Init.Function #align_import data.option.n_ary from "leanprover-community/mathlib"@"995b47e555f1b6297c7cf16855f1023e355219fb" universe u open Function namespace Option variable {Ξ± Ξ² Ξ³ Ξ΄ : Type*} {f : Ξ± β†’ Ξ² β†’ Ξ³} {a : Option Ξ±} {b : Option Ξ²} {c : Option Ξ³} def mapβ‚‚ (f : Ξ± β†’ Ξ² β†’ Ξ³) (a : Option Ξ±) ...
Mathlib/Data/Option/NAry.lean
46
48
theorem mapβ‚‚_def {Ξ± Ξ² Ξ³ : Type u} (f : Ξ± β†’ Ξ² β†’ Ξ³) (a : Option Ξ±) (b : Option Ξ²) : mapβ‚‚ f a b = f <$> a <*> b := by
cases a <;> rfl
[ " mapβ‚‚ f a b = Seq.seq (f <$> a) fun x => b", " mapβ‚‚ f none b = Seq.seq (f <$> none) fun x => b", " mapβ‚‚ f (some val✝) b = Seq.seq (f <$> some val✝) fun x => b" ]
[]
import Mathlib.MeasureTheory.Integral.Bochner import Mathlib.MeasureTheory.Group.Measure #align_import measure_theory.group.integration from "leanprover-community/mathlib"@"ec247d43814751ffceb33b758e8820df2372bf6f" namespace MeasureTheory open Measure TopologicalSpace open scoped ENNReal variable {π•œ M Ξ± G E F ...
Mathlib/MeasureTheory/Group/Integral.lean
124
127
theorem Integrable.comp_div_right {f : G β†’ F} [IsMulRightInvariant ΞΌ] (hf : Integrable f ΞΌ) (g : G) : Integrable (fun t => f (t / g)) ΞΌ := by
simp_rw [div_eq_mul_inv] exact hf.comp_mul_right g⁻¹
[ " ∫ (x : G), f (g * x) βˆ‚ΞΌ = ∫ (x : G), f x βˆ‚ΞΌ", " ∫ (x : G), f (x * g) βˆ‚ΞΌ = ∫ (x : G), f x βˆ‚ΞΌ", " ∫ (x : G), f (x / g) βˆ‚ΞΌ = ∫ (x : G), f x βˆ‚ΞΌ", " ∫ (x : G), f (x * g⁻¹) βˆ‚ΞΌ = ∫ (x : G), f x βˆ‚ΞΌ", " ∫ (x : G), f x βˆ‚ΞΌ = 0", " Integrable (fun t => f (t / g)) ΞΌ", " Integrable (fun t => f (t * g⁻¹)) ΞΌ" ]
[ " ∫ (x : G), f (g * x) βˆ‚ΞΌ = ∫ (x : G), f x βˆ‚ΞΌ", " ∫ (x : G), f (x * g) βˆ‚ΞΌ = ∫ (x : G), f x βˆ‚ΞΌ", " ∫ (x : G), f (x / g) βˆ‚ΞΌ = ∫ (x : G), f x βˆ‚ΞΌ", " ∫ (x : G), f (x * g⁻¹) βˆ‚ΞΌ = ∫ (x : G), f x βˆ‚ΞΌ", " ∫ (x : G), f x βˆ‚ΞΌ = 0" ]
import Mathlib.CategoryTheory.Adjunction.Basic import Mathlib.CategoryTheory.Conj #align_import category_theory.adjunction.mates from "leanprover-community/mathlib"@"cea27692b3fdeb328a2ddba6aabf181754543184" universe v₁ vβ‚‚ v₃ vβ‚„ u₁ uβ‚‚ u₃ uβ‚„ namespace CategoryTheory open Category variable {C : Type u₁} {D : Typ...
Mathlib/CategoryTheory/Adjunction/Mates.lean
111
115
theorem transferNatTrans_counit (f : G β‹™ Lβ‚‚ ⟢ L₁ β‹™ H) (Y : D) : Lβ‚‚.map ((transferNatTrans adj₁ adjβ‚‚ f).app _) ≫ adjβ‚‚.counit.app _ = f.app _ ≫ H.map (adj₁.counit.app Y) := by
erw [Functor.map_comp] simp
[ " (R₁ β‹™ G).map f ≫\n (fun X => adjβ‚‚.unit.app (G.obj (R₁.obj X)) ≫ Rβ‚‚.map (h.app (R₁.obj X) ≫ H.map (adj₁.counit.app X))) Y =\n (fun X => adjβ‚‚.unit.app (G.obj (R₁.obj X)) ≫ Rβ‚‚.map (h.app (R₁.obj X) ≫ H.map (adj₁.counit.app X))) X ≫\n (H β‹™ Rβ‚‚).map f", " G.map (R₁.map f) ≫ adjβ‚‚.unit.app (G.obj (R₁.obj Y...
[ " (R₁ β‹™ G).map f ≫\n (fun X => adjβ‚‚.unit.app (G.obj (R₁.obj X)) ≫ Rβ‚‚.map (h.app (R₁.obj X) ≫ H.map (adj₁.counit.app X))) Y =\n (fun X => adjβ‚‚.unit.app (G.obj (R₁.obj X)) ≫ Rβ‚‚.map (h.app (R₁.obj X) ≫ H.map (adj₁.counit.app X))) X ≫\n (H β‹™ Rβ‚‚).map f", " G.map (R₁.map f) ≫ adjβ‚‚.unit.app (G.obj (R₁.obj Y...
import Mathlib.Topology.ContinuousOn import Mathlib.Data.Set.BoolIndicator open Set Filter Topology TopologicalSpace Classical universe u v variable {X : Type u} {Y : Type v} {ΞΉ : Type*} variable [TopologicalSpace X] [TopologicalSpace Y] {s t : Set X} section Clopen protected theorem IsClopen.isOpen (hs : IsClo...
Mathlib/Topology/Clopen.lean
113
120
theorem isClopen_inter_of_disjoint_cover_clopen {s a b : Set X} (h : IsClopen s) (cover : s βŠ† a βˆͺ b) (ha : IsOpen a) (hb : IsOpen b) (hab : Disjoint a b) : IsClopen (s ∩ a) := by
refine ⟨?_, IsOpen.inter h.2 ha⟩ have : IsClosed (s ∩ bᢜ) := IsClosed.inter h.1 (isClosed_compl_iff.2 hb) convert this using 1 refine (inter_subset_inter_right s hab.subset_compl_right).antisymm ?_ rintro x ⟨hx₁, hxβ‚‚βŸ© exact ⟨hx₁, by simpa [not_mem_of_mem_compl hxβ‚‚] using cover hxβ‚βŸ©
[ " IsClopen s ↔ frontier s = βˆ…", " closure s = s ∧ interior s = s ↔ closure s βŠ† interior s", " closure s = s ∧ interior s = s", " IsClopen (s ∩ a)", " IsClosed (s ∩ a)", " s ∩ a = s ∩ bᢜ", " s ∩ bᢜ βŠ† s ∩ a", " x ∈ s ∩ a", " x ∈ a" ]
[ " IsClopen s ↔ frontier s = βˆ…", " closure s = s ∧ interior s = s ↔ closure s βŠ† interior s", " closure s = s ∧ interior s = s" ]
import Mathlib.Order.Filter.Bases import Mathlib.Order.ConditionallyCompleteLattice.Basic #align_import order.filter.lift from "leanprover-community/mathlib"@"8631e2d5ea77f6c13054d9151d82b83069680cb1" open Set Classical Filter Function namespace Filter variable {Ξ± Ξ² Ξ³ : Type*} {ΞΉ : Sort*} section lift protect...
Mathlib/Order/Filter/Lift.lean
65
70
theorem HasBasis.lift {ΞΉ} {p : ΞΉ β†’ Prop} {s : ΞΉ β†’ Set Ξ±} {f : Filter Ξ±} (hf : f.HasBasis p s) {Ξ² : ΞΉ β†’ Type*} {pg : βˆ€ i, Ξ² i β†’ Prop} {sg : βˆ€ i, Ξ² i β†’ Set Ξ³} {g : Set Ξ± β†’ Filter Ξ³} (hg : βˆ€ i, (g (s i)).HasBasis (pg i) (sg i)) (gm : Monotone g) : (f.lift g).HasBasis (fun i : Ξ£i, Ξ² i => p i.1 ∧ pg i.1 i.2) fun...
refine ⟨fun t => (hf.mem_lift_iff hg gm).trans ?_⟩ simp [Sigma.exists, and_assoc, exists_and_left]
[ " ⊀.lift g = g univ", " s ∈ f.lift g ↔ βˆƒ i, p i ∧ βˆƒ x, pg i x ∧ sg i x βŠ† s", " DirectedOn ((fun s => g s) ⁻¹'o fun x x_1 => x β‰₯ x_1) f.sets", " βˆƒ z ∈ f.sets, ((fun s => g s) ⁻¹'o fun x x_1 => x β‰₯ x_1) t₁ z ∧ ((fun s => g s) ⁻¹'o fun x x_1 => x β‰₯ x_1) tβ‚‚ z", " (βˆƒ i ∈ f.sets, s ∈ g i) ↔ βˆƒ i, p i ∧ βˆƒ x, pg i x...
[ " ⊀.lift g = g univ", " s ∈ f.lift g ↔ βˆƒ i, p i ∧ βˆƒ x, pg i x ∧ sg i x βŠ† s", " DirectedOn ((fun s => g s) ⁻¹'o fun x x_1 => x β‰₯ x_1) f.sets", " βˆƒ z ∈ f.sets, ((fun s => g s) ⁻¹'o fun x x_1 => x β‰₯ x_1) t₁ z ∧ ((fun s => g s) ⁻¹'o fun x x_1 => x β‰₯ x_1) tβ‚‚ z", " (βˆƒ i ∈ f.sets, s ∈ g i) ↔ βˆƒ i, p i ∧ βˆƒ x, pg i x...
import Mathlib.Algebra.MonoidAlgebra.Basic import Mathlib.Data.Finset.Pointwise #align_import algebra.monoid_algebra.support from "leanprover-community/mathlib"@"16749fc4661828cba18cd0f4e3c5eb66a8e80598" open scoped Pointwise universe u₁ uβ‚‚ u₃ namespace MonoidAlgebra open Finset Finsupp variable {k : Type u₁} ...
Mathlib/Algebra/MonoidAlgebra/Support.lean
55
62
theorem support_mul_single_eq_image [DecidableEq G] [Mul G] (f : MonoidAlgebra k G) {r : k} (hr : βˆ€ y, y * r = 0 ↔ y = 0) {x : G} (rx : IsRightRegular x) : (f * single x r).support = Finset.image (Β· * x) f.support := by
refine subset_antisymm (support_mul_single_subset f _ _) fun y hy => ?_ obtain ⟨y, yf, rfl⟩ : βˆƒ a : G, a ∈ f.support ∧ a * x = y := by simpa only [Finset.mem_image, exists_prop] using hy simp only [mul_apply, mem_support_iff.mp yf, hr, mem_support_iff, sum_single_index, Finsupp.sum_ite_eq', Ne, not_false...
[ " (a * b).support βŠ† a.support * b.support", " (sum a fun a₁ b₁ => sum b fun aβ‚‚ bβ‚‚ => single (a₁ * aβ‚‚) (b₁ * bβ‚‚)).support βŠ† a.support * b.support", " imageβ‚‚ (fun x x_1 => x * x_1) {a} f.support βŠ† image (fun x => a * x) f.support", " imageβ‚‚ (fun x x_1 => x * x_1) f.support {a} βŠ† image (fun x => x * a) f.support...
[ " (a * b).support βŠ† a.support * b.support", " (sum a fun a₁ b₁ => sum b fun aβ‚‚ bβ‚‚ => single (a₁ * aβ‚‚) (b₁ * bβ‚‚)).support βŠ† a.support * b.support", " imageβ‚‚ (fun x x_1 => x * x_1) {a} f.support βŠ† image (fun x => a * x) f.support", " imageβ‚‚ (fun x x_1 => x * x_1) f.support {a} βŠ† image (fun x => x * a) f.support...
import Batteries.Data.List.Basic import Batteries.Data.List.Lemmas open Nat namespace List section countP variable (p q : Ξ± β†’ Bool) @[simp] theorem countP_nil : countP p [] = 0 := rfl protected theorem countP_go_eq_add (l) : countP.go p l n = n + countP.go p l 0 := by induction l generalizing n with | nil...
.lake/packages/batteries/Batteries/Data/List/Count.lean
107
119
theorem countP_mono_left (h : βˆ€ x ∈ l, p x β†’ q x) : countP p l ≀ countP q l := by
induction l with | nil => apply Nat.le_refl | cons a l ihl => rw [forall_mem_cons] at h have ⟨ha, hl⟩ := h simp [countP_cons] cases h : p a . simp apply Nat.le_trans ?_ (Nat.le_add_right _ _) apply ihl hl . simp [ha h] apply ihl hl
[ " countP.go p l n = n + countP.go p l 0", " countP.go p [] n = n + countP.go p [] 0", " countP.go p (head :: tail) n = n + countP.go p (head :: tail) 0", " (bif p head then countP.go p tail (n + 1) else countP.go p tail n) =\n n + bif p head then countP.go p tail (0 + 1) else countP.go p tail 0", " (bif ...
[ " countP.go p l n = n + countP.go p l 0", " countP.go p [] n = n + countP.go p [] 0", " countP.go p (head :: tail) n = n + countP.go p (head :: tail) 0", " (bif p head then countP.go p tail (n + 1) else countP.go p tail n) =\n n + bif p head then countP.go p tail (0 + 1) else countP.go p tail 0", " (bif ...
import Mathlib.MeasureTheory.Constructions.BorelSpace.Order #align_import measure_theory.constructions.borel_space.basic from "leanprover-community/mathlib"@"9f55d0d4363ae59948c33864cbc52e0b12e0e8ce" open Set Filter MeasureTheory MeasurableSpace open scoped Classical Topology NNReal ENNReal MeasureTheory univers...
Mathlib/MeasureTheory/Constructions/BorelSpace/Real.lean
106
109
theorem isPiSystem_Ici_rat : IsPiSystem (⋃ a : β„š, {Ici (a : ℝ)}) := by
convert isPiSystem_image_Ici (((↑) : β„š β†’ ℝ) '' univ) ext x simp only [iUnion_singleton_eq_range, mem_range, image_univ, mem_image, exists_exists_eq_and]
[ " borel ℝ = generateFrom (⋃ a, {Iio ↑a})", " generateFrom (range Iio) = generateFrom (⋃ a, {Iio ↑a})", " βˆ€ t ∈ range Iio, MeasurableSet t", " MeasurableSet (Iio a)", " IsLUB (range Rat.cast ∩ Iio a) a", " MeasurableSet (⋃ y ∈ Rat.cast ⁻¹' Iio a, Iio ↑y)", " Iio ↑b ∈ ⋃ a, {Iio ↑a}", " borel ℝ = generat...
[ " borel ℝ = generateFrom (⋃ a, {Iio ↑a})", " generateFrom (range Iio) = generateFrom (⋃ a, {Iio ↑a})", " βˆ€ t ∈ range Iio, MeasurableSet t", " MeasurableSet (Iio a)", " IsLUB (range Rat.cast ∩ Iio a) a", " MeasurableSet (⋃ y ∈ Rat.cast ⁻¹' Iio a, Iio ↑y)", " Iio ↑b ∈ ⋃ a, {Iio ↑a}", " borel ℝ = generat...
import Mathlib.Algebra.Associated import Mathlib.Algebra.BigOperators.Finsupp #align_import algebra.big_operators.associated from "leanprover-community/mathlib"@"f7fc89d5d5ff1db2d1242c7bb0e9062ce47ef47c" variable {Ξ± Ξ² Ξ³ Ξ΄ : Type*} -- the same local notation used in `Algebra.Associated` local infixl:50 " ~α΅€ " => ...
Mathlib/Algebra/BigOperators/Associated.lean
29
36
theorem exists_mem_multiset_dvd {s : Multiset Ξ±} : p ∣ s.prod β†’ βˆƒ a ∈ s, p ∣ a := Multiset.induction_on s (fun h => (hp.not_dvd_one h).elim) fun a s ih h => have : p ∣ a * s.prod := by
simpa using h match hp.dvd_or_dvd this with | Or.inl h => ⟨a, Multiset.mem_cons_self a s, h⟩ | Or.inr h => let ⟨a, has, h⟩ := ih h ⟨a, Multiset.mem_cons_of_mem has, h⟩
[ " p ∣ a * s.prod" ]
[]
import Mathlib.Data.Option.NAry import Mathlib.Data.Seq.Computation #align_import data.seq.seq from "leanprover-community/mathlib"@"a7e36e48519ab281320c4d192da6a7b348ce40ad" namespace Stream' universe u v w def IsSeq {Ξ± : Type u} (s : Stream' (Option Ξ±)) : Prop := βˆ€ {n : β„•}, s n = none β†’ s (n + 1) = none #al...
Mathlib/Data/Seq/Seq.lean
160
163
theorem le_stable (s : Seq Ξ±) {m n} (h : m ≀ n) : s.get? m = none β†’ s.get? n = none := by
cases' s with f al induction' h with n _ IH exacts [id, fun h2 => al (IH h2)]
[ " (some a :: ↑s).IsSeq", " (some a :: ↑s) (0 + 1) = none", " (some a :: ↑s) (n✝ + 1 + 1) = none", " x = y", " s.get? n = t.get? n", " s.TerminatedAt n ↔ (s.get? n).isNone = true", " s.get? n = none ↔ (s.get? n).isNone = true", " none = none ↔ none.isNone = true", " some val✝ = none ↔ (some val✝).isN...
[ " (some a :: ↑s).IsSeq", " (some a :: ↑s) (0 + 1) = none", " (some a :: ↑s) (n✝ + 1 + 1) = none", " x = y", " s.get? n = t.get? n", " s.TerminatedAt n ↔ (s.get? n).isNone = true", " s.get? n = none ↔ (s.get? n).isNone = true", " none = none ↔ none.isNone = true", " some val✝ = none ↔ (some val✝).isN...
import Mathlib.Analysis.Analytic.IsolatedZeros import Mathlib.Analysis.Complex.CauchyIntegral import Mathlib.Analysis.Complex.AbsMax #align_import analysis.complex.open_mapping from "leanprover-community/mathlib"@"f9dd3204df14a0749cd456fac1e6849dfe7d2b88" open Set Filter Metric Complex open scoped Topology vari...
Mathlib/Analysis/Complex/OpenMapping.lean
44
70
theorem DiffContOnCl.ball_subset_image_closedBall (h : DiffContOnCl β„‚ f (ball zβ‚€ r)) (hr : 0 < r) (hf : βˆ€ z ∈ sphere zβ‚€ r, Ξ΅ ≀ β€–f z - f zβ‚€β€–) (hzβ‚€ : βˆƒαΆ  z in 𝓝 zβ‚€, f z β‰  f zβ‚€) : ball (f zβ‚€) (Ξ΅ / 2) βŠ† f '' closedBall zβ‚€ r := by
/- This is a direct application of the maximum principle. Pick `v` close to `f zβ‚€`, and look at the function `fun z ↦ β€–f z - vβ€–`: it is bounded below on the circle, and takes a small value at `zβ‚€` so it is not constant on the disk, which implies that its infimum is equal to `0` and hence that `v` is in t...
[ " ball (f zβ‚€) (Ξ΅ / 2) βŠ† f '' closedBall zβ‚€ r", " v ∈ f '' closedBall zβ‚€ r", " Ξ΅ / 2 ≀ β€–f z - vβ€–", " β€–f zβ‚€ - vβ€– < Ξ΅ / 2", " f z - v = 0", " False", " βˆ€αΆ  (w : β„‚) in 𝓝 z, f w = f z", " f h - v = f z - v β†’ f h = f z" ]
[]
import Mathlib.RingTheory.Valuation.Basic import Mathlib.RingTheory.Ideal.QuotientOperations #align_import ring_theory.valuation.quotient from "leanprover-community/mathlib"@"da420a8c6dd5bdfb85c4ced85c34388f633bc6ff" namespace Valuation variable {R Ξ“β‚€ : Type*} [CommRing R] [LinearOrderedCommMonoidWithZero Ξ“β‚€] va...
Mathlib/RingTheory/Valuation/Quotient.lean
66
74
theorem supp_quot {J : Ideal R} (hJ : J ≀ supp v) : supp (v.onQuot hJ) = (supp v).map (Ideal.Quotient.mk J) := by
apply le_antisymm · rintro ⟨x⟩ hx apply Ideal.subset_span exact ⟨x, hx, rfl⟩ · rw [Ideal.map_le_iff_le_comap] intro x hx exact hx
[ " v a = v (b + -(-a + b))", " J ≀ (comap (Ideal.Quotient.mk J) v).supp", " Ideal.map (Ideal.Quotient.mk J) J ≀ v.supp", " βˆ€ (r : R β§Έ J), ((comap (Ideal.Quotient.mk J) v).onQuot β‹―) r = v r", " ((comap (Ideal.Quotient.mk J) v).onQuot β‹―) (Quot.mk Setoid.r x) = v (Quot.mk Setoid.r x)", " (v.onQuot hJ).supp = ...
[ " v a = v (b + -(-a + b))", " J ≀ (comap (Ideal.Quotient.mk J) v).supp", " Ideal.map (Ideal.Quotient.mk J) J ≀ v.supp", " βˆ€ (r : R β§Έ J), ((comap (Ideal.Quotient.mk J) v).onQuot β‹―) r = v r", " ((comap (Ideal.Quotient.mk J) v).onQuot β‹―) (Quot.mk Setoid.r x) = v (Quot.mk Setoid.r x)" ]
import Mathlib.Algebra.Group.Support import Mathlib.Algebra.Order.Monoid.WithTop import Mathlib.Data.Nat.Cast.Field #align_import algebra.char_zero.lemmas from "leanprover-community/mathlib"@"acee671f47b8e7972a1eb6f4eed74b4b3abce829" open Function Set section AddMonoidWithOne variable {Ξ± M : Type*} [AddMonoidWith...
Mathlib/Algebra/CharZero/Lemmas.lean
236
238
theorem units_ne_neg_self (u : RΛ£) : u β‰  -u := by
simp_rw [ne_eq, Units.ext_iff, Units.val_neg, eq_neg_iff_add_eq_zero, ← two_mul, Units.mul_left_eq_zero, two_ne_zero, not_false_iff]
[ " 2 β‰  0", " a + a = 0 ↔ a = 0", " 0 = bit0 a ↔ a = 0", " bit0 a = 0 ↔ a = 0", " n = 0 ∨ a = b", " a = b", " ↑2 * a = ↑2 * b", " bit1 a = 1 ↔ a = 0", " 1 = bit1 0", " 1 = bit1 a ↔ a = 0", " (a + a) / 2 = a", " a / 2 + a / 2 = a", " a - a / 2 = a / 2", " a / 2 - a = -(a / 2)", " u β‰  -u" ]
[ " 2 β‰  0", " a + a = 0 ↔ a = 0", " 0 = bit0 a ↔ a = 0", " bit0 a = 0 ↔ a = 0", " n = 0 ∨ a = b", " a = b", " ↑2 * a = ↑2 * b", " bit1 a = 1 ↔ a = 0", " 1 = bit1 0", " 1 = bit1 a ↔ a = 0", " (a + a) / 2 = a", " a / 2 + a / 2 = a", " a - a / 2 = a / 2", " a / 2 - a = -(a / 2)" ]
import Mathlib.FieldTheory.PrimitiveElement import Mathlib.LinearAlgebra.Determinant import Mathlib.LinearAlgebra.FiniteDimensional import Mathlib.LinearAlgebra.Matrix.Charpoly.Minpoly import Mathlib.LinearAlgebra.Matrix.ToLinearEquiv import Mathlib.FieldTheory.IsAlgClosed.AlgebraicClosure import Mathlib.FieldTheory.G...
Mathlib/RingTheory/Norm.lean
179
183
theorem norm_eq_zero_iff_of_basis [IsDomain R] [IsDomain S] (b : Basis ΞΉ R S) {x : S} : Algebra.norm R x = 0 ↔ x = 0 := by
haveI : Module.Free R S := Module.Free.of_basis b haveI : Module.Finite R S := Module.Finite.of_basis b exact norm_eq_zero_iff
[ " (norm R) x = 1", " (if H : βˆƒ s, Nonempty (Basis { x // x ∈ s } R S) then detAux (Trunc.mk β‹―.some) else 1) ((lmul R S) x) = 1", " (detAux (Trunc.mk β‹―.some)) ((lmul R S) x) = 1", " 1 ((lmul R S) x) = 1", " (βˆƒ s, Nonempty (Basis { x // x ∈ s } R S)) β†’ Module.Finite R S", " Module.Finite R S", " (norm R) ...
[ " (norm R) x = 1", " (if H : βˆƒ s, Nonempty (Basis { x // x ∈ s } R S) then detAux (Trunc.mk β‹―.some) else 1) ((lmul R S) x) = 1", " (detAux (Trunc.mk β‹―.some)) ((lmul R S) x) = 1", " 1 ((lmul R S) x) = 1", " (βˆƒ s, Nonempty (Basis { x // x ∈ s } R S)) β†’ Module.Finite R S", " Module.Finite R S", " (norm R) ...
import Mathlib.Algebra.Order.Floor import Mathlib.Topology.Algebra.Order.Group import Mathlib.Topology.Order.Basic #align_import topology.algebra.order.floor from "leanprover-community/mathlib"@"84dc0bd6619acaea625086d6f53cb35cdd554219" open Filter Function Int Set Topology variable {Ξ± Ξ² Ξ³ : Type*} [LinearOrdere...
Mathlib/Topology/Algebra/Order/Floor.lean
74
75
theorem tendsto_floor_right_pure (n : β„€) : Tendsto (floor : Ξ± β†’ β„€) (𝓝[β‰₯] n) (pure n) := by
simpa only [floor_intCast] using tendsto_floor_right_pure_floor (n : Ξ±)
[ " b ≀ βŒŠβ†‘(b + 1)βŒ‹", " b ≀ b + 1", " βŒˆβ†‘(b - 1)βŒ‰ ≀ b", " b - 1 ≀ b", " Tendsto floor (𝓝[β‰₯] ↑n) (pure n)" ]
[ " b ≀ βŒŠβ†‘(b + 1)βŒ‹", " b ≀ b + 1", " βŒˆβ†‘(b - 1)βŒ‰ ≀ b", " b - 1 ≀ b" ]
import Mathlib.Probability.Kernel.MeasurableIntegral #align_import probability.kernel.composition from "leanprover-community/mathlib"@"3b92d54a05ee592aa2c6181a4e76b1bb7cc45d0b" open MeasureTheory open scoped ENNReal namespace ProbabilityTheory namespace kernel variable {Ξ± Ξ² ΞΉ : Type*} {mΞ± : MeasurableSpace Ξ±}...
Mathlib/Probability/Kernel/Composition.lean
131
143
theorem compProdFun_tsum_right (ΞΊ : kernel Ξ± Ξ²) (Ξ· : kernel (Ξ± Γ— Ξ²) Ξ³) [IsSFiniteKernel Ξ·] (a : Ξ±) (hs : MeasurableSet s) : compProdFun ΞΊ Ξ· a s = βˆ‘' n, compProdFun ΞΊ (seq Ξ· n) a s := by
simp_rw [compProdFun, (measure_sum_seq Ξ· _).symm] have : ∫⁻ b, Measure.sum (fun n => seq Ξ· n (a, b)) {c : Ξ³ | (b, c) ∈ s} βˆ‚ΞΊ a = ∫⁻ b, βˆ‘' n, seq Ξ· n (a, b) {c : Ξ³ | (b, c) ∈ s} βˆ‚ΞΊ a := by congr ext1 b rw [Measure.sum_apply] exact measurable_prod_mk_left hs rw [this, lintegral_tsum] ex...
[ " compProdFun ΞΊ Ξ· a βˆ… = 0", " compProdFun ΞΊ Ξ· a (⋃ i, f i) = βˆ‘' (i : β„•), compProdFun ΞΊ Ξ· a (f i)", " (fun b => (Ξ· (a, b)) {c | (b, c) ∈ ⋃ i, f i}) = fun b => (Ξ· (a, b)) (⋃ i, {c | (b, c) ∈ f i})", " (Ξ· (a, b)) {c | (b, c) ∈ ⋃ i, f i} = (Ξ· (a, b)) (⋃ i, {c | (b, c) ∈ f i})", " c ∈ {c | (b, c) ∈ ⋃ i, f i} ↔ c...
[ " compProdFun ΞΊ Ξ· a βˆ… = 0", " compProdFun ΞΊ Ξ· a (⋃ i, f i) = βˆ‘' (i : β„•), compProdFun ΞΊ Ξ· a (f i)", " (fun b => (Ξ· (a, b)) {c | (b, c) ∈ ⋃ i, f i}) = fun b => (Ξ· (a, b)) (⋃ i, {c | (b, c) ∈ f i})", " (Ξ· (a, b)) {c | (b, c) ∈ ⋃ i, f i} = (Ξ· (a, b)) (⋃ i, {c | (b, c) ∈ f i})", " c ∈ {c | (b, c) ∈ ⋃ i, f i} ↔ c...
import Mathlib.CategoryTheory.ConcreteCategory.Basic import Mathlib.CategoryTheory.Limits.Preserves.Basic import Mathlib.CategoryTheory.Limits.TypesFiltered import Mathlib.CategoryTheory.Limits.Yoneda import Mathlib.Tactic.ApplyFun #align_import category_theory.limits.concrete_category from "leanprover-community/math...
Mathlib/CategoryTheory/Limits/ConcreteCategory.lean
86
89
theorem Concrete.isColimit_exists_rep {D : Cocone F} (hD : IsColimit D) (x : D.pt) : βˆƒ (j : J) (y : F.obj j), D.ΞΉ.app j y = x := by
obtain ⟨a, rfl⟩ := Concrete.from_union_surjective_of_isColimit F hD x exact ⟨a.1, a.2, rfl⟩
[ " let ff := fun a => (D.ΞΉ.app a.fst) a.snd;\n Function.Surjective ff", " βˆƒ a, ff a = x", " βˆƒ j y, (D.ΞΉ.app j) y = x", " βˆƒ j y, (D.ΞΉ.app j) y = (fun a => (D.ΞΉ.app a.fst) a.snd) a" ]
[ " let ff := fun a => (D.ΞΉ.app a.fst) a.snd;\n Function.Surjective ff", " βˆƒ a, ff a = x" ]
import Mathlib.Algebra.Order.Ring.Nat #align_import data.nat.dist from "leanprover-community/mathlib"@"d50b12ae8e2bd910d08a94823976adae9825718b" namespace Nat def dist (n m : β„•) := n - m + (m - n) #align nat.dist Nat.dist -- Should be aligned to `Nat.dist.eq_def`, but that is generated on demand and isn't pr...
Mathlib/Data/Nat/Dist.lean
112
113
theorem dist_succ_succ {i j : Nat} : dist (succ i) (succ j) = dist i j := by
simp [dist, succ_sub_succ]
[ " n.dist m = m.dist n", " n.dist n = 0", " n.dist m = 0", " n.dist m = m - n", " n.dist m = n - m", " m.dist n = n - m", " m ≀ n + n.dist m", " m ≀ n.dist m + n", " n ≀ n.dist m + m", " n ≀ m.dist n + m", " n ≀ m + n.dist m", " n ≀ m + m.dist n", " n + k - (m + k) + (m + k - (n + k)) = n - m...
[ " n.dist m = m.dist n", " n.dist n = 0", " n.dist m = 0", " n.dist m = m - n", " n.dist m = n - m", " m.dist n = n - m", " m ≀ n + n.dist m", " m ≀ n.dist m + n", " n ≀ n.dist m + m", " n ≀ m.dist n + m", " n ≀ m + n.dist m", " n ≀ m + m.dist n", " n + k - (m + k) + (m + k - (n + k)) = n - m...
import Mathlib.Algebra.Group.Subgroup.Basic import Mathlib.Algebra.Group.Submonoid.Membership import Mathlib.Data.Finite.Card #align_import group_theory.subgroup.finite from "leanprover-community/mathlib"@"f93c11933efbc3c2f0299e47b8ff83e9b539cbf6" variable {G : Type*} [Group G] variable {A : Type*} [AddGroup A] ...
Mathlib/Algebra/Group/Subgroup/Finite.lean
127
137
theorem eq_top_of_card_eq [Finite H] (h : Nat.card H = Nat.card G) : H = ⊀ := by
have : Nonempty H := ⟨1, one_mem H⟩ have h' : Nat.card H β‰  0 := Nat.card_pos.ne' have : Finite G := (Nat.finite_of_card_ne_zero (h β–Έ h')) have : Fintype G := Fintype.ofFinite G have : Fintype H := Fintype.ofFinite H rw [Nat.card_eq_fintype_card, Nat.card_eq_fintype_card] at h rw [SetLike.ext'_iff, coe_to...
[ " βˆ€ (x : β†₯βŠ₯), x ∈ {1}", " ⟨1, β‹―βŸ© ∈ {1}", " H = ⊀", " Fintype.card ↑↑H = Fintype.card β†₯H" ]
[ " βˆ€ (x : β†₯βŠ₯), x ∈ {1}", " ⟨1, β‹―βŸ© ∈ {1}" ]
import Mathlib.Data.ZMod.Basic import Mathlib.GroupTheory.Exponent #align_import group_theory.specific_groups.dihedral from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" inductive DihedralGroup (n : β„•) : Type | r : ZMod n β†’ DihedralGroup n | sr : ZMod n β†’ DihedralGroup n derivin...
Mathlib/GroupTheory/SpecificGroups/Dihedral.lean
146
149
theorem r_one_pow_n : r (1 : ZMod n) ^ n = 1 := by
rw [r_one_pow, one_def] congr 1 exact ZMod.natCast_self _
[ " βˆ€ (a b c : DihedralGroup n), a * b * c = a * (b * c)", " r a * r b * r c = r a * (r b * r c)", " r a * r b * sr c = r a * (r b * sr c)", " r a * sr b * r c = r a * (sr b * r c)", " r a * sr b * sr c = r a * (sr b * sr c)", " sr a * r b * r c = sr a * (r b * r c)", " sr a * r b * sr c = sr a * (r b * s...
[ " βˆ€ (a b c : DihedralGroup n), a * b * c = a * (b * c)", " r a * r b * r c = r a * (r b * r c)", " r a * r b * sr c = r a * (r b * sr c)", " r a * sr b * r c = r a * (sr b * r c)", " r a * sr b * sr c = r a * (sr b * sr c)", " sr a * r b * r c = sr a * (r b * r c)", " sr a * r b * sr c = sr a * (r b * s...
import Mathlib.Init.Core import Mathlib.RingTheory.Polynomial.Cyclotomic.Roots import Mathlib.NumberTheory.NumberField.Basic import Mathlib.FieldTheory.Galois #align_import number_theory.cyclotomic.basic from "leanprover-community/mathlib"@"4b05d3f4f0601dca8abf99c4ec99187682ed0bba" open Polynomial Algebra FiniteD...
Mathlib/NumberTheory/Cyclotomic/Basic.lean
132
150
theorem trans (C : Type w) [CommRing C] [Algebra A C] [Algebra B C] [IsScalarTower A B C] [hS : IsCyclotomicExtension S A B] [hT : IsCyclotomicExtension T B C] (h : Function.Injective (algebraMap B C)) : IsCyclotomicExtension (S βˆͺ T) A C := by
refine ⟨fun hn => ?_, fun x => ?_⟩ · cases' hn with hn hn · obtain ⟨b, hb⟩ := ((isCyclotomicExtension_iff _ _ _).1 hS).1 hn refine ⟨algebraMap B C b, ?_⟩ exact hb.map_of_injective h · exact ((isCyclotomicExtension_iff _ _ _).1 hT).1 hn · refine adjoin_induction (((isCyclotomicExtension_iff T ...
[ " IsCyclotomicExtension {n} A B ↔ (βˆƒ r, IsPrimitiveRoot r ↑n) ∧ βˆ€ (x : B), x ∈ adjoin A {b | b ^ ↑n = 1}", " βŠ₯ = ⊀", " x ∈ βŠ₯", " IsCyclotomicExtension βˆ… A B", " βˆƒ r, IsPrimitiveRoot r ↑s", " x ∈ adjoin A {b | βˆƒ n ∈ βˆ…, b ^ ↑n = 1}", " IsCyclotomicExtension (S βˆͺ T) A C", " βˆƒ r, IsPrimitiveRoot r ↑n✝", ...
[ " IsCyclotomicExtension {n} A B ↔ (βˆƒ r, IsPrimitiveRoot r ↑n) ∧ βˆ€ (x : B), x ∈ adjoin A {b | b ^ ↑n = 1}", " βŠ₯ = ⊀", " x ∈ βŠ₯", " IsCyclotomicExtension βˆ… A B", " βˆƒ r, IsPrimitiveRoot r ↑s", " x ∈ adjoin A {b | βˆƒ n ∈ βˆ…, b ^ ↑n = 1}" ]
import Mathlib.Order.Filter.Basic import Mathlib.Topology.Bases import Mathlib.Data.Set.Accumulate import Mathlib.Topology.Bornology.Basic import Mathlib.Topology.LocallyFinite open Set Filter Topology TopologicalSpace Classical Function universe u v variable {X : Type u} {Y : Type v} {ΞΉ : Type*} variable [Topolog...
Mathlib/Topology/Compactness/Compact.lean
57
64
theorem IsCompact.compl_mem_sets_of_nhdsWithin (hs : IsCompact s) {f : Filter X} (hf : βˆ€ x ∈ s, βˆƒ t ∈ 𝓝[s] x, tᢜ ∈ f) : sᢜ ∈ f := by
refine hs.compl_mem_sets fun x hx => ?_ rcases hf x hx with ⟨t, ht, hst⟩ replace ht := mem_inf_principal.1 ht apply mem_inf_of_inter ht hst rintro x ⟨h₁, hβ‚‚βŸ© hs exact hβ‚‚ (h₁ hs)
[ " sᢜ ∈ f", " βˆƒ x ∈ s, sᢜ βˆ‰ 𝓝 x βŠ“ f", " βˆƒ x ∈ s, (𝓝 x βŠ“ (f βŠ“ π“Ÿ s)).NeBot", " sᢜ ∈ 𝓝 x βŠ“ f", " {x | x ∈ s β†’ x ∈ t} ∩ tᢜ βŠ† sᢜ", " False" ]
[ " sᢜ ∈ f", " βˆƒ x ∈ s, sᢜ βˆ‰ 𝓝 x βŠ“ f", " βˆƒ x ∈ s, (𝓝 x βŠ“ (f βŠ“ π“Ÿ s)).NeBot" ]
import Mathlib.Data.ZMod.Basic import Mathlib.GroupTheory.Index import Mathlib.GroupTheory.GroupAction.ConjAct import Mathlib.GroupTheory.GroupAction.Quotient import Mathlib.GroupTheory.Perm.Cycle.Type import Mathlib.GroupTheory.SpecificGroups.Cyclic import Mathlib.Tactic.IntervalCases #align_import group_theory.p_gr...
Mathlib/GroupTheory/PGroup.lean
54
65
theorem iff_card [Fact p.Prime] [Fintype G] : IsPGroup p G ↔ βˆƒ n : β„•, card G = p ^ n := by
have hG : card G β‰  0 := card_ne_zero refine ⟨fun h => ?_, fun ⟨n, hn⟩ => of_card hn⟩ suffices βˆ€ q ∈ Nat.factors (card G), q = p by use (card G).factors.length rw [← List.prod_replicate, ← List.eq_replicate_of_mem this, Nat.prod_factors hG] intro q hq obtain ⟨hq1, hq2⟩ := (Nat.mem_factors hG).mp hq ...
[ " g ^ p ^ k = 1", " g ^ p ^ n = 1", " card β†₯βŠ₯ = p ^ ?m.2806", " IsPGroup p G ↔ βˆƒ n, card G = p ^ n", " βˆƒ n, card G = p ^ n", " card G = p ^ (card G).factors.length", " βˆ€ q ∈ (card G).factors, q = p", " q = p" ]
[ " g ^ p ^ k = 1", " g ^ p ^ n = 1", " card β†₯βŠ₯ = p ^ ?m.2806" ]
import Mathlib.CategoryTheory.Closed.Cartesian import Mathlib.CategoryTheory.Limits.Preserves.Shapes.BinaryProducts import Mathlib.CategoryTheory.Adjunction.FullyFaithful #align_import category_theory.closed.functor from "leanprover-community/mathlib"@"cea27692b3fdeb328a2ddba6aabf181754543184" noncomputable secti...
Mathlib/CategoryTheory/Closed/Functor.lean
100
103
theorem uncurry_expComparison (A B : C) : CartesianClosed.uncurry ((expComparison F A).app B) = inv (prodComparison F _ _) ≫ F.map ((exp.ev _).app _) := by
rw [uncurry_eq, expComparison_ev]
[ " IsIso ((frobeniusMorphism F h A).app B)", " IsIso (prodComparison L (F.obj A) B ≫ prod.map (h.counit.app A) (πŸ™ (L.obj B)))", " prod.map (πŸ™ (F.obj A)) ((expComparison F A).app B) ≫ (exp.ev (F.obj A)).app (F.obj B) =\n inv (prodComparison F A (A ⟹ B)) ≫ F.map ((exp.ev A).app B)", " inv (prodComparison F ...
[ " IsIso ((frobeniusMorphism F h A).app B)", " IsIso (prodComparison L (F.obj A) B ≫ prod.map (h.counit.app A) (πŸ™ (L.obj B)))", " prod.map (πŸ™ (F.obj A)) ((expComparison F A).app B) ≫ (exp.ev (F.obj A)).app (F.obj B) =\n inv (prodComparison F A (A ⟹ B)) ≫ F.map ((exp.ev A).app B)", " inv (prodComparison F ...
import Mathlib.Data.Set.Image import Mathlib.Order.Interval.Set.Basic #align_import data.set.intervals.with_bot_top from "leanprover-community/mathlib"@"d012cd09a9b256d870751284dd6a29882b0be105" open Set variable {Ξ± : Type*} namespace WithTop @[simp] theorem preimage_coe_top : (some : Ξ± β†’ WithTop Ξ±) ⁻¹' {⊀} =...
Mathlib/Order/Interval/Set/WithBotTop.lean
80
81
theorem preimage_coe_Ico_top : (some : Ξ± β†’ WithTop Ξ±) ⁻¹' Ico a ⊀ = Ici a := by
simp [← Ici_inter_Iio]
[ " range some = Iio ⊀", " x ∈ range some ↔ x ∈ Iio ⊀", " some ⁻¹' Icc ↑a ↑b = Icc a b", " some ⁻¹' Ico ↑a ↑b = Ico a b", " some ⁻¹' Ioc ↑a ↑b = Ioc a b", " some ⁻¹' Ioo ↑a ↑b = Ioo a b", " some ⁻¹' Iio ⊀ = univ", " some ⁻¹' Ico ↑a ⊀ = Ici a" ]
[ " range some = Iio ⊀", " x ∈ range some ↔ x ∈ Iio ⊀", " some ⁻¹' Icc ↑a ↑b = Icc a b", " some ⁻¹' Ico ↑a ↑b = Ico a b", " some ⁻¹' Ioc ↑a ↑b = Ioc a b", " some ⁻¹' Ioo ↑a ↑b = Ioo a b", " some ⁻¹' Iio ⊀ = univ" ]
import Mathlib.CategoryTheory.Limits.Creates import Mathlib.CategoryTheory.Comma.Over import Mathlib.CategoryTheory.IsConnected #align_import category_theory.limits.constructions.over.connected from "leanprover-community/mathlib"@"d6814c584384ddf2825ff038e868451a7c956f31" universe v u -- morphism levels before o...
Mathlib/CategoryTheory/Limits/Constructions/Over/Connected.lean
60
62
theorem raised_cone_lowers_to_original [IsConnected J] {B : C} {F : J β₯€ Over B} (c : Cone (F β‹™ forget B)) : (forget B).mapCone (raiseCone c) = c := by
aesop_cat
[ " βˆ€ ⦃X Y : J⦄ (f : X ⟢ Y),\n ((Functor.const J).obj (mk (c.Ο€.app (Classical.arbitrary J) ≫ (F.obj (Classical.arbitrary J)).hom))).map f ≫\n (fun j => homMk (c.Ο€.app j) β‹―) Y =\n (fun j => homMk (c.Ο€.app j) β‹―) X ≫ F.map f", " ((Functor.const J).obj (mk (c.Ο€.app (Classical.arbitrary J) ≫ (F.obj (Class...
[ " βˆ€ ⦃X Y : J⦄ (f : X ⟢ Y),\n ((Functor.const J).obj (mk (c.Ο€.app (Classical.arbitrary J) ≫ (F.obj (Classical.arbitrary J)).hom))).map f ≫\n (fun j => homMk (c.Ο€.app j) β‹―) Y =\n (fun j => homMk (c.Ο€.app j) β‹―) X ≫ F.map f", " ((Functor.const J).obj (mk (c.Ο€.app (Classical.arbitrary J) ≫ (F.obj (Class...
import Mathlib.MeasureTheory.Integral.Lebesgue import Mathlib.Topology.MetricSpace.ThickenedIndicator open MeasureTheory Topology Metric Filter Set ENNReal NNReal open scoped Topology ENNReal NNReal BoundedContinuousFunction section auxiliary namespace MeasureTheory variable {Ξ© : Type*} [TopologicalSpace Ξ©] [Mea...
Mathlib/MeasureTheory/Measure/HasOuterApproxClosed.lean
110
119
theorem tendsto_lintegral_thickenedIndicator_of_isClosed {Ξ© : Type*} [MeasurableSpace Ξ©] [PseudoEMetricSpace Ξ©] [OpensMeasurableSpace Ξ©] (ΞΌ : Measure Ξ©) [IsFiniteMeasure ΞΌ] {F : Set Ξ©} (F_closed : IsClosed F) {Ξ΄s : β„• β†’ ℝ} (Ξ΄s_pos : βˆ€ n, 0 < Ξ΄s n) (Ξ΄s_lim : Tendsto Ξ΄s atTop (𝓝 0)) : Tendsto (fun n ↦ lin...
apply measure_of_cont_bdd_of_tendsto_indicator ΞΌ F_closed.measurableSet (fun n ↦ thickenedIndicator (Ξ΄s_pos n) F) fun n Ο‰ ↦ thickenedIndicator_le_one (Ξ΄s_pos n) F Ο‰ have key := thickenedIndicator_tendsto_indicator_closure Ξ΄s_pos Ξ΄s_lim F rwa [F_closed.closure_eq] at key
[ " Tendsto (fun i => ∫⁻ (Ο‰ : Ξ©), ↑((fs i) Ο‰) βˆ‚ΞΌ) L (𝓝 (∫⁻ (Ο‰ : Ξ©), ↑(f Ο‰) βˆ‚ΞΌ))", " βˆ€αΆ  (n : ΞΉ) in L, βˆ€α΅ (a : Ξ©) βˆ‚ΞΌ, ↑((fs n) a) ≀ (fun x => ↑c) a", " βˆ€α΅ (a : Ξ©) βˆ‚ΞΌ, Tendsto (fun n => ↑((fs n) a)) L (𝓝 ↑(f a))", " Tendsto (fun n => ∫⁻ (Ο‰ : Ξ©), ↑((fs n) Ο‰) βˆ‚ΞΌ) L (𝓝 (ΞΌ E))", " ΞΌ E = ∫⁻ (Ο‰ : Ξ©), ↑(E.indicator ...
[ " Tendsto (fun i => ∫⁻ (Ο‰ : Ξ©), ↑((fs i) Ο‰) βˆ‚ΞΌ) L (𝓝 (∫⁻ (Ο‰ : Ξ©), ↑(f Ο‰) βˆ‚ΞΌ))", " βˆ€αΆ  (n : ΞΉ) in L, βˆ€α΅ (a : Ξ©) βˆ‚ΞΌ, ↑((fs n) a) ≀ (fun x => ↑c) a", " βˆ€α΅ (a : Ξ©) βˆ‚ΞΌ, Tendsto (fun n => ↑((fs n) a)) L (𝓝 ↑(f a))", " Tendsto (fun n => ∫⁻ (Ο‰ : Ξ©), ↑((fs n) Ο‰) βˆ‚ΞΌ) L (𝓝 (ΞΌ E))", " ΞΌ E = ∫⁻ (Ο‰ : Ξ©), ↑(E.indicator ...
import Mathlib.Combinatorics.SimpleGraph.DegreeSum import Mathlib.Combinatorics.SimpleGraph.Subgraph #align_import combinatorics.simple_graph.matching from "leanprover-community/mathlib"@"138448ae98f529ef34eeb61114191975ee2ca508" universe u namespace SimpleGraph variable {V : Type u} {G : SimpleGraph V} (M : Su...
Mathlib/Combinatorics/SimpleGraph/Matching.lean
127
130
theorem IsPerfectMatching.even_card {M : Subgraph G} [Fintype V] (h : M.IsPerfectMatching) : Even (Fintype.card V) := by
classical simpa only [h.2.card_verts] using IsMatching.even_card h.1
[ " h.toEdge ⟨v, hv⟩ = ⟨s(v, w), hvw⟩", " s(v, Exists.choose β‹―) = s(v, w)", " Exists.choose β‹― = w", " Function.Surjective h.toEdge", " βˆƒ a, h.toEdge a = ⟨e, he⟩", " βˆƒ a, h.toEdge a = ⟨s(x, y), he⟩", " h.toEdge ⟨v, hv⟩ = h.toEdge ⟨w, hw⟩", " M.support = M.verts", " v ∈ M.support", " M.IsMatching ↔ βˆ€ ...
[ " h.toEdge ⟨v, hv⟩ = ⟨s(v, w), hvw⟩", " s(v, Exists.choose β‹―) = s(v, w)", " Exists.choose β‹― = w", " Function.Surjective h.toEdge", " βˆƒ a, h.toEdge a = ⟨e, he⟩", " βˆƒ a, h.toEdge a = ⟨s(x, y), he⟩", " h.toEdge ⟨v, hv⟩ = h.toEdge ⟨w, hw⟩", " M.support = M.verts", " v ∈ M.support", " M.IsMatching ↔ βˆ€ ...
import Mathlib.Algebra.Module.Equiv import Mathlib.Algebra.Module.Hom import Mathlib.Algebra.Module.Prod import Mathlib.Algebra.Module.Submodule.Range import Mathlib.Data.Set.Finite import Mathlib.Order.ConditionallyCompleteLattice.Basic import Mathlib.Tactic.Abel #align_import linear_algebra.basic from "leanprover-c...
Mathlib/LinearAlgebra/Basic.lean
138
138
theorem ofEq_rfl : ofEq p p rfl = LinearEquiv.refl R p := by
ext; rfl
[ " ofEq p p β‹― = refl R β†₯p", " ↑((ofEq p p β‹―) x✝) = ↑((refl R β†₯p) x✝)" ]
[]
import Mathlib.Algebra.ContinuedFractions.Computation.Basic import Mathlib.Algebra.ContinuedFractions.Translations #align_import algebra.continued_fractions.computation.translations from "leanprover-community/mathlib"@"a7e36e48519ab281320c4d192da6a7b348ce40ad" namespace GeneralizedContinuedFraction open Generali...
Mathlib/Algebra/ContinuedFractions/Computation/Translations.lean
163
165
theorem of_h_eq_intFractPair_seq1_fst_b : (of v).h = (IntFractPair.seq1 v).fst.b := by
cases aux_seq_eq : IntFractPair.seq1 v simp [of, aux_seq_eq]
[ " (of v).h = ↑(IntFractPair.seq1 v).1.b", " (of v).h = ↑(fst✝, snd✝).1.b" ]
[]
import Mathlib.Data.Fintype.Card import Mathlib.Computability.Language import Mathlib.Tactic.NormNum #align_import computability.DFA from "leanprover-community/mathlib"@"32253a1a1071173b33dc7d6a218cf722c6feb514" open Computability universe u v -- Porting note: Required as `DFA` is used in mathlib3 set_option li...
Mathlib/Computability/DFA.lean
98
98
theorem mem_accepts (x : List Ξ±) : x ∈ M.accepts ↔ M.evalFrom M.start x ∈ M.accept := by
rfl
[ " M.evalFrom s (x ++ [a]) = M.step (M.evalFrom s x) a", " x ∈ M.accepts ↔ M.evalFrom M.start x ∈ M.accept" ]
[ " M.evalFrom s (x ++ [a]) = M.step (M.evalFrom s x) a" ]
import Mathlib.Algebra.Group.Defs import Mathlib.Algebra.GroupWithZero.Defs import Mathlib.Data.Int.Cast.Defs import Mathlib.Tactic.Spread import Mathlib.Util.AssertExists #align_import algebra.ring.defs from "leanprover-community/mathlib"@"76de8ae01554c3b37d66544866659ff174e66e1f" universe u v w x variable {Ξ± : ...
Mathlib/Algebra/Ring/Defs.lean
197
198
theorem mul_ite {Ξ±} [Mul Ξ±] (P : Prop) [Decidable P] (a b c : Ξ±) : (a * if P then b else c) = if P then a * b else a * c := by
split_ifs <;> rfl
[ " (a + b + c) * d = a * d + b * d + c * d", " (a * if P then b else c) = if P then a * b else a * c", " a * b = a * b", " a * c = a * c" ]
[ " (a + b + c) * d = a * d + b * d + c * d" ]
import Mathlib.ModelTheory.Syntax import Mathlib.ModelTheory.Semantics import Mathlib.Algebra.Ring.Equiv variable {Ξ± : Type*} namespace FirstOrder open FirstOrder inductive ringFunc : β„• β†’ Type | add : ringFunc 2 | mul : ringFunc 2 | neg : ringFunc 1 | zero : ringFunc 0 | one : ringFunc 0 deriving D...
Mathlib/ModelTheory/Algebra/Ring/Basic.lean
190
192
theorem realize_neg (x : ring.Term Ξ±) (v : Ξ± β†’ R) : Term.realize v (-x) = -Term.realize v x := by
simp [neg_def, funMap_neg]
[ " DecidableEq (ring.Functions n)", " DecidableEq (ringFunc n)", " DecidableEq (ring.Relations n)", " DecidableEq Empty", " (↑[Sum.inl ⟨2, add⟩, Sum.inl ⟨2, mul⟩, Sum.inl ⟨1, neg⟩, Sum.inl ⟨0, zero⟩, Sum.inl ⟨0, one⟩]).Nodup", " βˆ€ (x : ring.Symbols),\n x ∈\n { val := ↑[Sum.inl ⟨2, add⟩, Sum.inl ⟨2,...
[ " DecidableEq (ring.Functions n)", " DecidableEq (ringFunc n)", " DecidableEq (ring.Relations n)", " DecidableEq Empty", " (↑[Sum.inl ⟨2, add⟩, Sum.inl ⟨2, mul⟩, Sum.inl ⟨1, neg⟩, Sum.inl ⟨0, zero⟩, Sum.inl ⟨0, one⟩]).Nodup", " βˆ€ (x : ring.Symbols),\n x ∈\n { val := ↑[Sum.inl ⟨2, add⟩, Sum.inl ⟨2,...
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
131
131
theorem zeta_mul_vonMangoldt : (ΞΆ : ArithmeticFunction ℝ) * Ξ› = log := by
rw [mul_comm]; simp
[ " (fun n => (↑n).log) 0 = 0", " Ξ› 1 = 0", " 0 ≀ Ξ› n", " 0 ≀ if IsPrimePow n then (↑n.minFac).log else 0", " 0 ≀ (↑n.minFac).log", " 0 ≀ 0", " Ξ› (n ^ k) = Ξ› n", " Ξ› p = (↑p).log", " Ξ› n β‰  0 ↔ IsPrimePow n", " Ξ› 1 β‰  0 ↔ IsPrimePow 1", " βˆ‘ i ∈ n.divisors, Ξ› i = (↑n).log", " βˆ‘ i ∈ divisors 0, Ξ› i ...
[ " (fun n => (↑n).log) 0 = 0", " Ξ› 1 = 0", " 0 ≀ Ξ› n", " 0 ≀ if IsPrimePow n then (↑n.minFac).log else 0", " 0 ≀ (↑n.minFac).log", " 0 ≀ 0", " Ξ› (n ^ k) = Ξ› n", " Ξ› p = (↑p).log", " Ξ› n β‰  0 ↔ IsPrimePow n", " Ξ› 1 β‰  0 ↔ IsPrimePow 1", " βˆ‘ i ∈ n.divisors, Ξ› i = (↑n).log", " βˆ‘ i ∈ divisors 0, Ξ› i ...
import Mathlib.Analysis.NormedSpace.Exponential import Mathlib.Analysis.Matrix import Mathlib.LinearAlgebra.Matrix.ZPow import Mathlib.LinearAlgebra.Matrix.Hermitian import Mathlib.LinearAlgebra.Matrix.Symmetric import Mathlib.Topology.UniformSpace.Matrix #align_import analysis.normed_space.matrix_exponential from "l...
Mathlib/Analysis/NormedSpace/MatrixExponential.lean
80
81
theorem exp_diagonal (v : m β†’ 𝔸) : exp 𝕂 (diagonal v) = diagonal (exp 𝕂 v) := by
simp_rw [exp_eq_tsum, diagonal_pow, ← diagonal_smul, ← diagonal_tsum]
[ " exp 𝕂 (diagonal v) = diagonal (exp 𝕂 v)" ]
[]
import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Algebra.Polynomial.Derivative import Mathlib.Data.Nat.Factorial.DoubleFactorial #align_import ring_theory.polynomial.hermite.basic from "leanprover-community/mathlib"@"938d3db9c278f8a52c0f964a405806f0f2b09b74" noncomputable section open Polynomial namespace P...
Mathlib/RingTheory/Polynomial/Hermite/Basic.lean
133
143
theorem coeff_hermite_of_odd_add {n k : β„•} (hnk : Odd (n + k)) : coeff (hermite n) k = 0 := by
induction' n with n ih generalizing k Β· rw [zero_add k] at hnk exact coeff_hermite_of_lt hnk.pos Β· cases' k with k Β· rw [Nat.succ_add_eq_add_succ] at hnk rw [coeff_hermite_succ_zero, ih hnk, neg_zero] Β· rw [coeff_hermite_succ_succ, ih, ih, mul_zero, sub_zero] Β· rwa [Nat.succ_add_eq_add_su...
[ " hermite (n + 1) = X * hermite n - derivative (hermite n)", " hermite n = (fun p => X * p - derivative p)^[n] 1", " hermite 0 = (fun p => X * p - derivative p)^[0] 1", " hermite (n + 1) = (fun p => X * p - derivative p)^[n + 1] 1", " hermite 1 = X", " X * C 1 - derivative (C 1) = X", " (hermite (n + 1)...
[ " hermite (n + 1) = X * hermite n - derivative (hermite n)", " hermite n = (fun p => X * p - derivative p)^[n] 1", " hermite 0 = (fun p => X * p - derivative p)^[0] 1", " hermite (n + 1) = (fun p => X * p - derivative p)^[n + 1] 1", " hermite 1 = X", " X * C 1 - derivative (C 1) = X", " (hermite (n + 1)...
import Mathlib.Algebra.GroupPower.IterateHom import Mathlib.Algebra.Polynomial.Eval import Mathlib.GroupTheory.GroupAction.Ring #align_import data.polynomial.derivative from "leanprover-community/mathlib"@"bbeb185db4ccee8ed07dc48449414ebfa39cb821" noncomputable section open Finset open Polynomial namespace Pol...
Mathlib/Algebra/Polynomial/Derivative.lean
92
93
theorem derivative_C_mul_X (a : R) : derivative (C a * X) = C a := by
simp [C_mul_X_eq_monomial, derivative_monomial, Nat.cast_one, mul_one]
[ " (fun p => p.sum fun n a => C (a * ↑n) * X ^ (n - 1)) (p + q) =\n (fun p => p.sum fun n a => C (a * ↑n) * X ^ (n - 1)) p + (fun p => p.sum fun n a => C (a * ↑n) * X ^ (n - 1)) q", " ((p + q).sum fun n a => C (a * ↑n) * X ^ (n - 1)) =\n (p.sum fun n a => C (a * ↑n) * X ^ (n - 1)) + q.sum fun n a => C (a * ↑...
[ " (fun p => p.sum fun n a => C (a * ↑n) * X ^ (n - 1)) (p + q) =\n (fun p => p.sum fun n a => C (a * ↑n) * X ^ (n - 1)) p + (fun p => p.sum fun n a => C (a * ↑n) * X ^ (n - 1)) q", " ((p + q).sum fun n a => C (a * ↑n) * X ^ (n - 1)) =\n (p.sum fun n a => C (a * ↑n) * X ^ (n - 1)) + q.sum fun n a => C (a * ↑...
import Mathlib.CategoryTheory.Limits.Shapes.CommSq import Mathlib.CategoryTheory.Limits.Shapes.Diagonal import Mathlib.CategoryTheory.MorphismProperty.Composition universe v u namespace CategoryTheory open Limits namespace MorphismProperty variable {C : Type u} [Category.{v} C] def StableUnderBaseChange (P : ...
Mathlib/CategoryTheory/MorphismProperty/Limits.lean
83
92
theorem StableUnderBaseChange.baseChange_map [HasPullbacks C] {P : MorphismProperty C} (hP : StableUnderBaseChange P) {S S' : C} (f : S' ⟢ S) {X Y : Over S} (g : X ⟢ Y) (H : P g.left) : P ((Over.baseChange f).map g).left := by
let e := pullbackRightPullbackFstIso Y.hom f g.left β‰ͺ≫ pullback.congrHom (g.w.trans (Category.comp_id _)) rfl have : e.inv ≫ pullback.snd = ((Over.baseChange f).map g).left := by ext <;> dsimp [e] <;> simp rw [← this, hP.respectsIso.cancel_left_isIso] exact hP.snd _ _ H
[ " P g'", " P pullback.fst", " P.RespectsIso", " βˆ€ (f g : Arrow C), (f β‰… g) β†’ P f.hom β†’ P g.hom", " P f.hom β†’ P g.hom", " P ((Over.baseChange f).map g).left", " e.inv ≫ pullback.snd = ((Over.baseChange f).map g).left", " (e.inv ≫ pullback.snd) ≫ pullback.fst = ((Over.baseChange f).map g).left ≫ pullbac...
[ " P g'", " P pullback.fst", " P.RespectsIso", " βˆ€ (f g : Arrow C), (f β‰… g) β†’ P f.hom β†’ P g.hom", " P f.hom β†’ P g.hom" ]
import Mathlib.MeasureTheory.Function.L1Space import Mathlib.MeasureTheory.Function.SimpleFuncDense #align_import measure_theory.function.simple_func_dense_lp from "leanprover-community/mathlib"@"5a2df4cd59cb31e97a516d4603a14bed5c2f9425" noncomputable section set_option linter.uppercaseLean3 false open Set Func...
Mathlib/MeasureTheory/Function/SimpleFuncDenseLp.lean
77
82
theorem norm_approxOn_yβ‚€_le [OpensMeasurableSpace E] {f : Ξ² β†’ E} (hf : Measurable f) {s : Set E} {yβ‚€ : E} (hβ‚€ : yβ‚€ ∈ s) [SeparableSpace s] (x : Ξ²) (n : β„•) : β€–approxOn f hf s yβ‚€ hβ‚€ n x - yβ‚€β€– ≀ β€–f x - yβ‚€β€– + β€–f x - yβ‚€β€– := by
have := edist_approxOn_y0_le hf hβ‚€ x n repeat rw [edist_comm yβ‚€, edist_eq_coe_nnnorm_sub] at this exact mod_cast this
[ " ‖↑(approxOn f hf s yβ‚€ hβ‚€ n) x - f xβ€–β‚Š ≀ β€–f x - yβ‚€β€–β‚Š", " ‖↑(approxOn f hf s yβ‚€ hβ‚€ n) x - yβ‚€β€– ≀ β€–f x - yβ‚€β€– + β€–f x - yβ‚€β€–" ]
[ " ‖↑(approxOn f hf s yβ‚€ hβ‚€ n) x - f xβ€–β‚Š ≀ β€–f x - yβ‚€β€–β‚Š" ]
import Mathlib.Algebra.Category.ModuleCat.EpiMono import Mathlib.CategoryTheory.ConcreteCategory.Elementwise #align_import algebra.category.Module.kernels from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" set_option linter.uppercaseLean3 false open CategoryTheory CategoryTheory.Limits...
Mathlib/Algebra/Category/ModuleCat/Kernels.lean
137
140
theorem cokernel_Ο€_ext {M N : ModuleCat.{u} R} (f : M ⟢ N) {x y : N} (m : M) (w : x = y + f m) : cokernel.Ο€ f x = cokernel.Ο€ f y := by
subst w simpa only [map_add, add_right_eq_self] using cokernel.condition_apply f m
[ " β†Ÿ(LinearMap.ker f).subtype ≫ f = 0", " (β†Ÿ(LinearMap.ker f).subtype ≫ f) x = 0 x", " (β†Ÿ(LinearMap.ker f).subtype ≫ f) ⟨val✝, property✝⟩ = 0 ⟨val✝, property✝⟩", " f (s.ΞΉ c) = 0", " (s.ΞΉ ≫ f) c = 0", " 0 c = 0", " ↑(m x) = ↑(((fun s => LinearMap.codRestrict (LinearMap.ker f) s.ΞΉ β‹―) s) x)", " m x = (Lin...
[ " β†Ÿ(LinearMap.ker f).subtype ≫ f = 0", " (β†Ÿ(LinearMap.ker f).subtype ≫ f) x = 0 x", " (β†Ÿ(LinearMap.ker f).subtype ≫ f) ⟨val✝, property✝⟩ = 0 ⟨val✝, property✝⟩", " f (s.ΞΉ c) = 0", " (s.ΞΉ ≫ f) c = 0", " 0 c = 0", " ↑(m x) = ↑(((fun s => LinearMap.codRestrict (LinearMap.ker f) s.ΞΉ β‹―) s) x)", " m x = (Lin...
import Mathlib.Algebra.Order.BigOperators.Ring.Finset import Mathlib.Data.Nat.Totient import Mathlib.GroupTheory.OrderOfElement import Mathlib.GroupTheory.Subgroup.Simple import Mathlib.Tactic.Group import Mathlib.GroupTheory.Exponent #align_import group_theory.specific_groups.cyclic from "leanprover-community/mathli...
Mathlib/GroupTheory/SpecificGroups/Cyclic.lean
105
107
theorem Nontrivial.of_not_isCyclic (nc : Β¬IsCyclic Ξ±) : Nontrivial Ξ± := by
contrapose! nc exact @isCyclic_of_subsingleton _ _ (not_nontrivial_iff_subsingleton.mp nc)
[ " x ∈ zpowers 1", " 1 ∈ zpowers 1", " Nontrivial α", " IsCyclic α" ]
[ " x ∈ zpowers 1", " 1 ∈ zpowers 1" ]