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.List.Cycle import Mathlib.GroupTheory.Perm.Cycle.Type import Mathlib.GroupTheory.Perm.List #align_import group_theory.perm.cycle.concrete from "leanprover-community/mathlib"@"00638177efd1b2534fc5269363ebf42a7871df9a" open Equiv Equiv.Perm List variable {α : Type*} namespace Equiv.Perm secti...
Mathlib/GroupTheory/Perm/Cycle/Concrete.lean
253
254
theorem nthLe_toList (n : ℕ) (hn : n < length (toList p x)) : (toList p x).nthLe n hn = (p ^ n) x := by
simp [toList]
[ " toList 1 x = []", " p.toList x = [] ↔ x ∉ p.support", " (p.toList x).length = (p.cycleOf x).support.card", " p.toList x ≠ [y]", " False", " 2 ≤ (p.toList x).length ↔ x ∈ p.support", " (p.toList x).get ⟨n, hn⟩ = (p ^ n) x", " (p.toList x).get ⟨0, ⋯⟩ = x", " (p.toList x).nthLe n hn = (p ^ n) x" ]
[ " toList 1 x = []", " p.toList x = [] ↔ x ∉ p.support", " (p.toList x).length = (p.cycleOf x).support.card", " p.toList x ≠ [y]", " False", " 2 ≤ (p.toList x).length ↔ x ∈ p.support", " (p.toList x).get ⟨n, hn⟩ = (p ^ n) x", " (p.toList x).get ⟨0, ⋯⟩ = x" ]
import Mathlib.LinearAlgebra.Determinant import Mathlib.LinearAlgebra.FreeModule.Finite.Basic #align_import linear_algebra.free_module.determinant from "leanprover-community/mathlib"@"31c458dc7baf3de906b95d9c5c968b6a4d75fee1" @[simp]
Mathlib/LinearAlgebra/FreeModule/Determinant.lean
25
29
theorem LinearMap.det_zero'' {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] [Module.Free R M] [Module.Finite R M] [Nontrivial M] : LinearMap.det (0 : M →ₗ[R] M) = 0 := by
letI : Nonempty (Module.Free.ChooseBasisIndex R M) := (Module.Free.chooseBasis R M).index_nonempty nontriviality R exact LinearMap.det_zero' (Module.Free.chooseBasis R M)
[ " LinearMap.det 0 = 0" ]
[]
import Mathlib.Analysis.SpecialFunctions.Integrals import Mathlib.Analysis.SumIntegralComparisons import Mathlib.NumberTheory.Harmonic.Defs theorem log_add_one_le_harmonic (n : ℕ) : Real.log ↑(n+1) ≤ harmonic n := by calc _ = ∫ x in (1:ℕ)..↑(n+1), x⁻¹ := ?_ _ ≤ ∑ d ∈ Finset.Icc 1 n, (d:ℝ)⁻¹ := ?_ ...
Mathlib/NumberTheory/Harmonic/Bounds.lean
26
50
theorem harmonic_le_one_add_log (n : ℕ) : harmonic n ≤ 1 + Real.log n := by
by_cases hn0 : n = 0 · simp [hn0] have hn : 1 ≤ n := Nat.one_le_iff_ne_zero.mpr hn0 simp_rw [harmonic_eq_sum_Icc, Rat.cast_sum, Rat.cast_inv, Rat.cast_natCast] rw [← Finset.sum_erase_add (Finset.Icc 1 n) _ (Finset.left_mem_Icc.mpr hn), add_comm, Nat.cast_one, inv_one] refine add_le_add_left ?_ 1 simp...
[ " (↑(n + 1)).log ≤ ↑(harmonic n)", " (↑(n + 1)).log = ∫ (x : ℝ) in ↑1 ..↑(n + 1), x⁻¹", " 0 ∉ Set.uIcc 1 ↑(n + 1)", " ¬1 ≤ 0", " ∫ (x : ℝ) in ↑1 ..↑(n + 1), x⁻¹ ≤ ∑ d ∈ Finset.Icc 1 n, (↑d)⁻¹", " 0 < ↑1", " ∑ d ∈ Finset.Icc 1 n, (↑d)⁻¹ = ↑(harmonic n)", " ↑(harmonic n) ≤ 1 + (↑n).log", " ∑ x ∈ Finse...
[ " (↑(n + 1)).log ≤ ↑(harmonic n)", " (↑(n + 1)).log = ∫ (x : ℝ) in ↑1 ..↑(n + 1), x⁻¹", " 0 ∉ Set.uIcc 1 ↑(n + 1)", " ¬1 ≤ 0", " ∫ (x : ℝ) in ↑1 ..↑(n + 1), x⁻¹ ≤ ∑ d ∈ Finset.Icc 1 n, (↑d)⁻¹", " 0 < ↑1", " ∑ d ∈ Finset.Icc 1 n, (↑d)⁻¹ = ↑(harmonic n)" ]
import Mathlib.RingTheory.Ideal.Operations import Mathlib.Algebra.Module.Torsion import Mathlib.Algebra.Ring.Idempotents import Mathlib.LinearAlgebra.FiniteDimensional import Mathlib.RingTheory.Ideal.LocalRing import Mathlib.RingTheory.Filtration import Mathlib.RingTheory.Nakayama #align_import ring_theory.ideal.cota...
Mathlib/RingTheory/Ideal/Cotangent.lean
122
128
theorem cotangentIdeal_square (I : Ideal R) : I.cotangentIdeal ^ 2 = ⊥ := by
rw [eq_bot_iff, pow_two I.cotangentIdeal, ← smul_eq_mul] intro x hx refine Submodule.smul_induction_on hx ?_ ?_ · rintro _ ⟨x, hx, rfl⟩ _ ⟨y, hy, rfl⟩; apply (Submodule.Quotient.eq _).mpr _ rw [sub_zero, pow_two]; exact Ideal.mul_mem_mul hx hy · intro x y hx hy; exact add_mem hx hy
[ " AddCommGroup I.Cotangent", " AddCommGroup (↥I ⧸ I • ⊤)", " Module (R ⧸ I) I.Cotangent", " Module (R ⧸ I) (↥I ⧸ I • ⊤)", " Submodule.map (Submodule.subtype I) (LinearMap.ker I.toCotangent) = I ^ 2", " x ∈ LinearMap.ker I.toCotangent ↔ ↑x ∈ I ^ 2", " x ∈ LinearMap.ker I.toCotangent ↔ ↑x ∈ Submodule.map ...
[ " AddCommGroup I.Cotangent", " AddCommGroup (↥I ⧸ I • ⊤)", " Module (R ⧸ I) I.Cotangent", " Module (R ⧸ I) (↥I ⧸ I • ⊤)", " Submodule.map (Submodule.subtype I) (LinearMap.ker I.toCotangent) = I ^ 2", " x ∈ LinearMap.ker I.toCotangent ↔ ↑x ∈ I ^ 2", " x ∈ LinearMap.ker I.toCotangent ↔ ↑x ∈ Submodule.map ...
import Mathlib.Algebra.BigOperators.Intervals import Mathlib.Algebra.BigOperators.Ring import Mathlib.Algebra.Order.BigOperators.Ring.Finset import Mathlib.Algebra.Order.Field.Basic import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Algebra.Ring.Opposite import Mathlib.Tactic.Abel #align_import algebra.geom_sum fro...
Mathlib/Algebra/GeomSum.lean
87
94
theorem op_geom_sum₂ (x y : α) (n : ℕ) : ∑ i ∈ range n, op y ^ (n - 1 - i) * op x ^ i = ∑ i ∈ range n, op y ^ i * op x ^ (n - 1 - i) := by
rw [← sum_range_reflect] refine sum_congr rfl fun j j_in => ?_ rw [mem_range, Nat.lt_iff_add_one_le] at j_in congr apply tsub_tsub_cancel_of_le exact le_tsub_of_add_le_right j_in
[ " ∑ i ∈ range (n + 1), x ^ i = x * ∑ i ∈ range n, x ^ i + 1", " ∑ i ∈ range 1, x ^ i = 1", " ∑ i ∈ range 2, x ^ i = x + 1", " ∑ i ∈ range 0, 0 ^ i = if 0 = 0 then 0 else 1", " ∑ i ∈ range 1, 0 ^ i = if 1 = 0 then 0 else 1", " ∑ i ∈ range (n + 2), 0 ^ i = if n + 2 = 0 then 0 else 1", " 0 ^ (n + 1) + ∑ i ...
[ " ∑ i ∈ range (n + 1), x ^ i = x * ∑ i ∈ range n, x ^ i + 1", " ∑ i ∈ range 1, x ^ i = 1", " ∑ i ∈ range 2, x ^ i = x + 1", " ∑ i ∈ range 0, 0 ^ i = if 0 = 0 then 0 else 1", " ∑ i ∈ range 1, 0 ^ i = if 1 = 0 then 0 else 1", " ∑ i ∈ range (n + 2), 0 ^ i = if n + 2 = 0 then 0 else 1", " 0 ^ (n + 1) + ∑ i ...
import Mathlib.Topology.Connected.Basic open Set Topology universe u v variable {α : Type u} {β : Type v} {ι : Type*} {π : ι → Type*} [TopologicalSpace α] {s t u v : Set α} section LocallyConnectedSpace class LocallyConnectedSpace (α : Type*) [TopologicalSpace α] : Prop where open_connected_basis : ∀ x,...
Mathlib/Topology/Connected/LocallyConnected.lean
41
52
theorem locallyConnectedSpace_iff_open_connected_subsets : LocallyConnectedSpace α ↔ ∀ x, ∀ U ∈ 𝓝 x, ∃ V : Set α, V ⊆ U ∧ IsOpen V ∧ x ∈ V ∧ IsConnected V := by
simp_rw [locallyConnectedSpace_iff_open_connected_basis] refine forall_congr' fun _ => ?_ constructor · intro h U hU rcases h.mem_iff.mp hU with ⟨V, hV, hVU⟩ exact ⟨V, hVU, hV⟩ · exact fun h => ⟨fun U => ⟨fun hU => let ⟨V, hVU, hV⟩ := h U hU ⟨V, hV, hVU⟩, fun ⟨V, ⟨hV, hxV, _⟩, hVU⟩ => mem...
[ " LocallyConnectedSpace α ↔ ∀ (x : α), ∀ U ∈ 𝓝 x, ∃ V ⊆ U, IsOpen V ∧ x ∈ V ∧ IsConnected V", " (∀ (x : α), (𝓝 x).HasBasis (fun s => IsOpen s ∧ x ∈ s ∧ IsConnected s) id) ↔\n ∀ (x : α), ∀ U ∈ 𝓝 x, ∃ V ⊆ U, IsOpen V ∧ x ∈ V ∧ IsConnected V", " (𝓝 x✝).HasBasis (fun s => IsOpen s ∧ x✝ ∈ s ∧ IsConnected s) i...
[]
import Mathlib.Probability.Kernel.Basic import Mathlib.MeasureTheory.Constructions.Prod.Basic import Mathlib.MeasureTheory.Integral.DominatedConvergence #align_import probability.kernel.measurable_integral from "leanprover-community/mathlib"@"28b2a92f2996d28e580450863c130955de0ed398" open MeasureTheory Probabilit...
Mathlib/Probability/Kernel/MeasurableIntegral.lean
113
119
theorem measurable_kernel_prod_mk_left' [IsSFiniteKernel η] {s : Set (β × γ)} (hs : MeasurableSet s) (a : α) : Measurable fun b => η (a, b) (Prod.mk b ⁻¹' s) := by
have : ∀ b, Prod.mk b ⁻¹' s = {c | ((a, b), c) ∈ {p : (α × β) × γ | (p.1.2, p.2) ∈ s}} := by intro b; rfl simp_rw [this] refine (measurable_kernel_prod_mk_left ?_).comp measurable_prod_mk_left exact (measurable_fst.snd.prod_mk measurable_snd) hs
[ " Measurable fun a => (κ a) (Prod.mk a ⁻¹' t)", " (fun t => Measurable fun a => (κ a) (Prod.mk a ⁻¹' t)) ∅", " ∀ t ∈ image2 (fun x x_1 => x ×ˢ x_1) {s | MeasurableSet s} {t | MeasurableSet t},\n (fun t => Measurable fun a => (κ a) (Prod.mk a ⁻¹' t)) t", " Measurable fun a => (κ a) (Prod.mk a ⁻¹' t')", " ...
[ " Measurable fun a => (κ a) (Prod.mk a ⁻¹' t)", " (fun t => Measurable fun a => (κ a) (Prod.mk a ⁻¹' t)) ∅", " ∀ t ∈ image2 (fun x x_1 => x ×ˢ x_1) {s | MeasurableSet s} {t | MeasurableSet t},\n (fun t => Measurable fun a => (κ a) (Prod.mk a ⁻¹' t)) t", " Measurable fun a => (κ a) (Prod.mk a ⁻¹' t')", " ...
import Mathlib.MeasureTheory.PiSystem import Mathlib.Order.OmegaCompletePartialOrder import Mathlib.Topology.Constructions import Mathlib.MeasureTheory.MeasurableSpace.Basic open Set namespace MeasureTheory variable {ι : Type _} {α : ι → Type _} section squareCylinders def squareCylinders (C : ∀ i, Set (Set (α...
Mathlib/MeasureTheory/Constructions/Cylinders.lean
107
126
theorem comap_eval_le_generateFrom_squareCylinders_singleton (α : ι → Type*) [m : ∀ i, MeasurableSpace (α i)] (i : ι) : MeasurableSpace.comap (Function.eval i) (m i) ≤ MeasurableSpace.generateFrom ((fun t ↦ ({i} : Set ι).pi t) '' univ.pi fun i ↦ {s : Set (α i) | MeasurableSet s}) := by
simp only [Function.eval, singleton_pi, ge_iff_le] rw [MeasurableSpace.comap_eq_generateFrom] refine MeasurableSpace.generateFrom_mono fun S ↦ ?_ simp only [mem_setOf_eq, mem_image, mem_univ_pi, forall_exists_index, and_imp] intro t ht h classical refine ⟨fun j ↦ if hji : j = i then by convert t else uni...
[ " squareCylinders C = ⋃ s, (fun t => (↑s).pi t) '' univ.pi C", " f ∈ squareCylinders C ↔ f ∈ ⋃ s, (fun t => (↑s).pi t) '' univ.pi C", " IsPiSystem (squareCylinders C)", " (↑s₁).pi t₁ ∩ (↑s₂).pi t₂ ∈ squareCylinders C", " ((↑s₁ ∪ ↑s₂).pi fun i => t₁' i ∩ t₂' i) ∈ squareCylinders C", " (fun i => t₁' i ∩ t₂'...
[ " squareCylinders C = ⋃ s, (fun t => (↑s).pi t) '' univ.pi C", " f ∈ squareCylinders C ↔ f ∈ ⋃ s, (fun t => (↑s).pi t) '' univ.pi C", " IsPiSystem (squareCylinders C)", " (↑s₁).pi t₁ ∩ (↑s₂).pi t₂ ∈ squareCylinders C", " ((↑s₁ ∪ ↑s₂).pi fun i => t₁' i ∩ t₂' i) ∈ squareCylinders C", " (fun i => t₁' i ∩ t₂'...
import Mathlib.AlgebraicTopology.DoldKan.Projections import Mathlib.CategoryTheory.Idempotents.FunctorCategories import Mathlib.CategoryTheory.Idempotents.FunctorExtension #align_import algebraic_topology.dold_kan.p_infty from "leanprover-community/mathlib"@"32a7e535287f9c73f2e4d2aef306a39190f0b504" open Category...
Mathlib/AlgebraicTopology/DoldKan/PInfty.lean
123
125
theorem QInfty_idem : (QInfty : K[X] ⟶ _) ≫ QInfty = QInfty := by
ext n exact QInfty_f_idem n
[ " (P (q + 1)).f n = (P q).f n", " (P (q + 1)).f 0 = (P q).f 0", " (P (q + 1)).f (n + 1) = (P q).f (n + 1)", " (P q).f (n + 1) ≫ (Hσ q).f (n + 1) = 0", " (Q (q + 1)).f n = (Q q).f n", " (fun n => (P n).f n) (n + 1) ≫ AlternatingFaceMapComplex.objD X n =\n AlternatingFaceMapComplex.objD X n ≫ (fun n => (...
[ " (P (q + 1)).f n = (P q).f n", " (P (q + 1)).f 0 = (P q).f 0", " (P (q + 1)).f (n + 1) = (P q).f (n + 1)", " (P q).f (n + 1) ≫ (Hσ q).f (n + 1) = 0", " (Q (q + 1)).f n = (Q q).f n", " (fun n => (P n).f n) (n + 1) ≫ AlternatingFaceMapComplex.objD X n =\n AlternatingFaceMapComplex.objD X n ≫ (fun n => (...
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Add #align_import analysis.calculus.deriv.add from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set variable...
Mathlib/Analysis/Calculus/Deriv/Add.lean
158
160
theorem HasStrictDerivAt.sum (h : ∀ i ∈ u, HasStrictDerivAt (A i) (A' i) x) : HasStrictDerivAt (fun y => ∑ i ∈ u, A i y) (∑ i ∈ u, A' i) x := by
simpa [ContinuousLinearMap.sum_apply] using (HasStrictFDerivAt.sum h).hasStrictDerivAt
[ " HasDerivAtFilter (fun y => ∑ i ∈ u, A i y) (∑ i ∈ u, A' i) x L", " HasStrictDerivAt (fun y => ∑ i ∈ u, A i y) (∑ i ∈ u, A' i) x" ]
[ " HasDerivAtFilter (fun y => ∑ i ∈ u, A i y) (∑ i ∈ u, A' i) x L" ]
import Lean.Elab.Tactic.Location import Mathlib.Logic.Basic import Mathlib.Init.Order.Defs import Mathlib.Tactic.Conv import Mathlib.Init.Set import Lean.Elab.Tactic.Location set_option autoImplicit true namespace Mathlib.Tactic.PushNeg open Lean Meta Elab.Tactic Parser.Tactic variable (p q : Prop) (s : α → Prop)...
Mathlib/Tactic/PushNeg.lean
39
42
theorem not_nonempty_eq (s : Set γ) : (¬ s.Nonempty) = (s = ∅) := by
have A : ∀ (x : γ), ¬(x ∈ (∅ : Set γ)) := fun x ↦ id simp only [Set.Nonempty, not_exists, eq_iff_iff] exact ⟨fun h ↦ Set.ext (fun x ↦ by simp only [h x, false_iff, A]), fun h ↦ by rwa [h]⟩
[ " ¬p ∧ q ∨ ¬¬p ∧ ¬q ↔ p ∧ ¬q ∨ ¬p ∧ q", " (¬s.Nonempty) = (s = ∅)", " (∀ (x : γ), ¬x ∈ s) ↔ s = ∅", " x ∈ s ↔ x ∈ ∅", " ∀ (x : γ), ¬x ∈ s" ]
[ " ¬p ∧ q ∨ ¬¬p ∧ ¬q ↔ p ∧ ¬q ∨ ¬p ∧ q" ]
import Mathlib.Topology.Order #align_import topology.maps from "leanprover-community/mathlib"@"d91e7f7a7f1c7e9f0e18fdb6bde4f652004c735d" open Set Filter Function open TopologicalSpace Topology Filter variable {X : Type*} {Y : Type*} {Z : Type*} {ι : Type*} {f : X → Y} {g : Y → Z} section Inducing variable [To...
Mathlib/Topology/Maps.lean
97
99
theorem nhdsSet_eq_comap (hf : Inducing f) (s : Set X) : 𝓝ˢ s = comap f (𝓝ˢ (f '' s)) := by
simp only [nhdsSet, sSup_image, comap_iSup, hf.nhds_eq_comap, iSup_image]
[ " inst✝² = TopologicalSpace.induced (g ∘ f) inst✝", " Inducing (g ∘ f) ↔ Inducing f", " Inducing f", " inst✝² ≤ induced f inst✝¹", " induced f inst✝¹ ≤ inst✝²", " induced f inst✝¹ ≤ induced f (induced g inst✝)", " 𝓝ˢ s = comap f (𝓝ˢ (f '' s))" ]
[ " inst✝² = TopologicalSpace.induced (g ∘ f) inst✝", " Inducing (g ∘ f) ↔ Inducing f", " Inducing f", " inst✝² ≤ induced f inst✝¹", " induced f inst✝¹ ≤ inst✝²", " induced f inst✝¹ ≤ induced f (induced g inst✝)" ]
import Mathlib.Algebra.EuclideanDomain.Basic import Mathlib.RingTheory.PrincipalIdealDomain import Mathlib.Algebra.GCDMonoid.Nat #align_import ring_theory.int.basic from "leanprover-community/mathlib"@"e655e4ea5c6d02854696f97494997ba4c31be802" theorem Int.Prime.dvd_mul {m n : ℤ} {p : ℕ} (hp : Nat.Prime p) (h : (p ...
Mathlib/RingTheory/Int/Basic.lean
93
96
theorem Int.Prime.dvd_mul' {m n : ℤ} {p : ℕ} (hp : Nat.Prime p) (h : (p : ℤ) ∣ m * n) : (p : ℤ) ∣ m ∨ (p : ℤ) ∣ n := by
rw [Int.natCast_dvd, Int.natCast_dvd] exact Int.Prime.dvd_mul hp h
[ " p ∣ m.natAbs ∨ p ∣ n.natAbs", " ↑p ∣ m ∨ ↑p ∣ n" ]
[ " p ∣ m.natAbs ∨ p ∣ n.natAbs" ]
import Mathlib.Algebra.Order.BigOperators.Ring.Finset import Mathlib.Analysis.Convex.Hull import Mathlib.LinearAlgebra.AffineSpace.Basis #align_import analysis.convex.combination from "leanprover-community/mathlib"@"92bd7b1ffeb306a89f450bee126ddd8a284c259d" open Set Function open scoped Classical open Pointwise ...
Mathlib/Analysis/Convex/Combination.lean
50
51
theorem Finset.centerMass_empty : (∅ : Finset ι).centerMass w z = 0 := by
simp only [centerMass, sum_empty, smul_zero]
[ " ∅.centerMass w z = 0" ]
[]
import Mathlib.RingTheory.DedekindDomain.Ideal import Mathlib.RingTheory.Valuation.ExtendToLocalization import Mathlib.RingTheory.Valuation.ValuationSubring import Mathlib.Topology.Algebra.ValuedField import Mathlib.Algebra.Order.Group.TypeTags #align_import ring_theory.dedekind_domain.adic_valuation from "leanprover...
Mathlib/RingTheory/DedekindDomain/AdicValuation.lean
114
120
theorem int_valuation_le_one (x : R) : v.intValuationDef x ≤ 1 := by
rw [intValuationDef] by_cases hx : x = 0 · rw [if_pos hx]; exact WithZero.zero_le 1 · rw [if_neg hx, ← WithZero.coe_one, ← ofAdd_zero, WithZero.coe_le_coe, ofAdd_le, Right.neg_nonpos_iff] exact Int.natCast_nonneg _
[ " v.intValuationDef x ≠ 0", " ↑(ofAdd (-↑((Associates.mk v.asIdeal).count (Associates.mk (Ideal.span {x})).factors))) ≠ 0", " 0 < v.intValuationDef ↑x", " 0 < ↑(ofAdd (-↑((Associates.mk v.asIdeal).count (Associates.mk (Ideal.span {↑x})).factors)))", " v.intValuationDef x ≤ 1", " (if x = 0 then 0 else ↑(of...
[ " v.intValuationDef x ≠ 0", " ↑(ofAdd (-↑((Associates.mk v.asIdeal).count (Associates.mk (Ideal.span {x})).factors))) ≠ 0", " 0 < v.intValuationDef ↑x", " 0 < ↑(ofAdd (-↑((Associates.mk v.asIdeal).count (Associates.mk (Ideal.span {↑x})).factors)))" ]
import Mathlib.SetTheory.Cardinal.ToNat import Mathlib.Data.Nat.PartENat #align_import set_theory.cardinal.basic from "leanprover-community/mathlib"@"3ff3f2d6a3118b8711063de7111a0d77a53219a8" universe u v open Function variable {α : Type u} namespace Cardinal noncomputable def toPartENat : Cardinal →+o PartEN...
Mathlib/SetTheory/Cardinal/PartENat.lean
108
109
theorem toPartENat_congr {β : Type v} (e : α ≃ β) : toPartENat #α = toPartENat #β := by
rw [← toPartENat_lift, lift_mk_eq.{_, _,v}.mpr ⟨e⟩, toPartENat_lift]
[ " toPartENat ↑n = ↑n", " toPartENat c = ↑(toNat c)", " toPartENat ↑c = ↑(toNat ↑c)", " toPartENat c = ⊤ ↔ ℵ₀ ≤ c", " ↑(toENat c) = PartENat.withTopEquiv.symm ⊤ ↔ PartENat.withTopEquiv.symm (toENat c) = PartENat.withTopEquiv.symm ⊤", " toPartENat c ≤ toPartENat c' ↔ c ≤ c'", " toPartENat ↑c ≤ toPartENat ...
[ " toPartENat ↑n = ↑n", " toPartENat c = ↑(toNat c)", " toPartENat ↑c = ↑(toNat ↑c)", " toPartENat c = ⊤ ↔ ℵ₀ ≤ c", " ↑(toENat c) = PartENat.withTopEquiv.symm ⊤ ↔ PartENat.withTopEquiv.symm (toENat c) = PartENat.withTopEquiv.symm ⊤", " toPartENat c ≤ toPartENat c' ↔ c ≤ c'", " toPartENat ↑c ≤ toPartENat ...
import Mathlib.FieldTheory.Finite.Basic import Mathlib.Order.Filter.Cofinite #align_import number_theory.fermat_psp from "leanprover-community/mathlib"@"c0439b4877c24a117bfdd9e32faf62eee9b115eb" namespace Nat def ProbablePrime (n b : ℕ) : Prop := n ∣ b ^ (n - 1) - 1 #align fermat_psp.probable_prime Nat.Probabl...
Mathlib/NumberTheory/FermatPsp.lean
102
112
theorem probablePrime_iff_modEq (n : ℕ) {b : ℕ} (h : 1 ≤ b) : ProbablePrime n b ↔ b ^ (n - 1) ≡ 1 [MOD n] := by
have : 1 ≤ b ^ (n - 1) := one_le_pow_of_one_le h (n - 1) -- For exact mod_cast rw [Nat.ModEq.comm] constructor · intro h₁ apply Nat.modEq_of_dvd exact mod_cast h₁ · intro h₁ exact mod_cast Nat.ModEq.dvd h₁
[ " n.Coprime b", " ∀ (k : ℕ), k.Prime → k ∣ n → ¬k ∣ b", " False", " k ∣ 1", " k ∣ (k * j) ^ (k * m - 1)", " k * m - 1 ≠ 0", " n = 1", " Coprime 1 b", " n.ProbablePrime b ↔ b ^ (n - 1) ≡ 1 [MOD n]", " n.ProbablePrime b ↔ 1 ≡ b ^ (n - 1) [MOD n]", " n.ProbablePrime b → 1 ≡ b ^ (n - 1) [MOD n]", ...
[ " n.Coprime b", " ∀ (k : ℕ), k.Prime → k ∣ n → ¬k ∣ b", " False", " k ∣ 1", " k ∣ (k * j) ^ (k * m - 1)", " k * m - 1 ≠ 0", " n = 1", " Coprime 1 b" ]
import Mathlib.RingTheory.Algebraic import Mathlib.RingTheory.Localization.AtPrime import Mathlib.RingTheory.Localization.Integral #align_import ring_theory.ideal.over from "leanprover-community/mathlib"@"198cb64d5c961e1a8d0d3e219feb7058d5353861" variable {R : Type*} [CommRing R] namespace Ideal open Polynomial...
Mathlib/RingTheory/Ideal/Over.lean
44
48
theorem coeff_zero_mem_comap_of_root_mem_of_eval_mem {r : S} (hr : r ∈ I) {p : R[X]} (hp : p.eval₂ f r ∈ I) : p.coeff 0 ∈ I.comap f := by
rw [← p.divX_mul_X_add, eval₂_add, eval₂_C, eval₂_mul, eval₂_X] at hp refine mem_comap.mpr ((I.add_mem_iff_right ?_).mp hp) exact I.mul_mem_left _ hr
[ " p.coeff 0 ∈ comap f I", " eval₂ f r p.divX * r ∈ I" ]
[]
import Mathlib.CategoryTheory.Limits.Shapes.ZeroMorphisms import Mathlib.CategoryTheory.Limits.Shapes.Kernels import Mathlib.CategoryTheory.Abelian.Basic import Mathlib.CategoryTheory.Subobject.Lattice import Mathlib.Order.Atoms #align_import category_theory.simple from "leanprover-community/mathlib"@"4ed0bcaef698011...
Mathlib/CategoryTheory/Simple.lean
237
248
theorem simple_of_isSimpleOrder_subobject (X : C) [IsSimpleOrder (Subobject X)] : Simple X := by
constructor; intros Y f hf; constructor · intro i rw [Subobject.isIso_iff_mk_eq_top] at i intro w rw [← Subobject.mk_eq_bot_iff_zero] at w exact IsSimpleOrder.bot_ne_top (w.symm.trans i) · intro i rcases IsSimpleOrder.eq_bot_or_eq_top (Subobject.mk f) with (h | h) · rw [Subobject.mk_eq_bo...
[ " IsIso f ↔ f ≠ 0", " IsIso f → f ≠ 0", " False", " IsIso (f ≫ i.hom)", " f ≠ 0 → IsIso f", " IsIso f", " f ≫ i.hom ≠ 0", " f = 0", " IsIso ((f ≫ i.hom) ≫ i.inv)", " kernel.ι f = 0", " Epi f", " Epi (factorThruImage f ≫ image.ι f)", " IsIso (𝟙 X)", " ¬IsZero X", " 0 ≫ 0 = 𝟙 0 ∧ 0 ≫ 0 =...
[ " IsIso f ↔ f ≠ 0", " IsIso f → f ≠ 0", " False", " IsIso (f ≫ i.hom)", " f ≠ 0 → IsIso f", " IsIso f", " f ≫ i.hom ≠ 0", " f = 0", " IsIso ((f ≫ i.hom) ≫ i.inv)", " kernel.ι f = 0", " Epi f", " Epi (factorThruImage f ≫ image.ι f)", " IsIso (𝟙 X)", " ¬IsZero X", " 0 ≫ 0 = 𝟙 0 ∧ 0 ≫ 0 =...
import Mathlib.LinearAlgebra.FiniteDimensional import Mathlib.RingTheory.IntegralClosure import Mathlib.RingTheory.Polynomial.IntegralNormalization #align_import ring_theory.algebraic from "leanprover-community/mathlib"@"2196ab363eb097c008d4497125e0dde23fb36db2" universe u v w open scoped Classical open Polynomi...
Mathlib/RingTheory/Algebraic.lean
118
120
theorem isAlgebraic_nat [Nontrivial R] (n : ℕ) : IsAlgebraic R (n : A) := by
rw [← map_natCast (_ : R →+* A) n] exact isAlgebraic_algebraMap (Nat.cast n)
[ " S.IsAlgebraic ↔ Algebra.IsAlgebraic R ↥S", " (∀ x ∈ S, _root_.IsAlgebraic R x) ↔ Algebra.IsAlgebraic R ↥S", " (∀ (x : ↥S), _root_.IsAlgebraic R ↑x) ↔ ∀ (x : ↥S), _root_.IsAlgebraic R x", " (aeval ↑x) p = 0 ↔ (aeval x) p = 0", "R : Type u\nA : Type v\ninst✝² : CommRing R\ninst✝¹ : Ring A\ninst✝ : Algebra R...
[ " S.IsAlgebraic ↔ Algebra.IsAlgebraic R ↥S", " (∀ x ∈ S, _root_.IsAlgebraic R x) ↔ Algebra.IsAlgebraic R ↥S", " (∀ (x : ↥S), _root_.IsAlgebraic R ↑x) ↔ ∀ (x : ↥S), _root_.IsAlgebraic R x", " (aeval ↑x) p = 0 ↔ (aeval x) p = 0", "R : Type u\nA : Type v\ninst✝² : CommRing R\ninst✝¹ : Ring A\ninst✝ : Algebra R...
import Mathlib.RingTheory.PrincipalIdealDomain #align_import ring_theory.bezout from "leanprover-community/mathlib"@"6623e6af705e97002a9054c1c05a980180276fc1" universe u v variable {R : Type u} [CommRing R] namespace IsBezout theorem iff_span_pair_isPrincipal : IsBezout R ↔ ∀ x y : R, (Ideal.span {x, y} : ...
Mathlib/RingTheory/Bezout.lean
42
50
theorem _root_.Function.Surjective.isBezout {S : Type v} [CommRing S] (f : R →+* S) (hf : Function.Surjective f) [IsBezout R] : IsBezout S := by
rw [iff_span_pair_isPrincipal] intro x y obtain ⟨⟨x, rfl⟩, ⟨y, rfl⟩⟩ := hf x, hf y use f (gcd x y) trans Ideal.map f (Ideal.span {gcd x y}) · rw [span_gcd, Ideal.map_span, Set.image_insert_eq, Set.image_singleton] · rw [Ideal.map_span, Set.image_singleton]; rfl
[ " IsBezout R ↔ ∀ (x y : R), Submodule.IsPrincipal (Ideal.span {x, y})", " IsBezout R → ∀ (x y : R), Submodule.IsPrincipal (Ideal.span {x, y})", " Submodule.IsPrincipal (Ideal.span {x, y})", " (∀ (x y : R), Submodule.IsPrincipal (Ideal.span {x, y})) → IsBezout R", " IsBezout R", " ∀ (I : Ideal R), I.FG → S...
[ " IsBezout R ↔ ∀ (x y : R), Submodule.IsPrincipal (Ideal.span {x, y})", " IsBezout R → ∀ (x y : R), Submodule.IsPrincipal (Ideal.span {x, y})", " Submodule.IsPrincipal (Ideal.span {x, y})", " (∀ (x y : R), Submodule.IsPrincipal (Ideal.span {x, y})) → IsBezout R", " IsBezout R", " ∀ (I : Ideal R), I.FG → S...
import Mathlib.FieldTheory.Galois import Mathlib.Topology.Algebra.FilterBasis import Mathlib.Topology.Algebra.OpenSubgroup import Mathlib.Tactic.ByContra #align_import field_theory.krull_topology from "leanprover-community/mathlib"@"039a089d2a4b93c761b234f3e5f5aeb752bac60f" open scoped Classical Pointwise theore...
Mathlib/FieldTheory/KrullTopology.lean
124
127
theorem IntermediateField.fixingSubgroup.antimono {K L : Type*} [Field K] [Field L] [Algebra K L] {E1 E2 : IntermediateField K L} (h12 : E1 ≤ E2) : E2.fixingSubgroup ≤ E1.fixingSubgroup := by
rintro σ hσ ⟨x, hx⟩ exact hσ ⟨x, h12 hx⟩
[ " ⊥.fixingSubgroup = ⊤", " f ∈ ⊥.fixingSubgroup ↔ f ∈ ⊤", " f ∈ ⊥.fixingSubgroup", " f • ↑⟨x, hx⟩ = ↑⟨x, hx⟩", " f • ↑⟨x, hx✝⟩ = ↑⟨x, hx✝⟩", " f • ↑⟨(algebraMap K L) y, hx⟩ = ↑⟨(algebraMap K L) y, hx⟩", " E2.fixingSubgroup ≤ E1.fixingSubgroup", " σ • ↑⟨x, hx⟩ = ↑⟨x, hx⟩" ]
[ " ⊥.fixingSubgroup = ⊤", " f ∈ ⊥.fixingSubgroup ↔ f ∈ ⊤", " f ∈ ⊥.fixingSubgroup", " f • ↑⟨x, hx⟩ = ↑⟨x, hx⟩", " f • ↑⟨x, hx✝⟩ = ↑⟨x, hx✝⟩", " f • ↑⟨(algebraMap K L) y, hx⟩ = ↑⟨(algebraMap K L) y, hx⟩" ]
import Mathlib.Data.Set.Finite import Mathlib.Order.Partition.Finpartition #align_import data.setoid.partition from "leanprover-community/mathlib"@"b363547b3113d350d053abdf2884e9850a56b205" namespace Setoid variable {α : Type*} theorem eq_of_mem_eqv_class {c : Set (Set α)} (H : ∀ a, ∃! b ∈ c, a ∈ b) {x b b'} ...
Mathlib/Data/Setoid/Partition.lean
78
81
theorem card_classes_ker_le {α β : Type*} [Fintype β] (f : α → β) [Fintype (Setoid.ker f).classes] : Fintype.card (Setoid.ker f).classes ≤ Fintype.card β := by
classical exact le_trans (Set.card_le_card (classes_ker_subset_fiber_set f)) (Fintype.card_range_le _)
[ " x ∈ s", " (ker f).classes ⊆ Set.range fun y => {x | f x = y}", " {x_1 | (ker f).Rel x_1 x} ∈ Set.range fun y => {x | f x = y}", " ∃ y, {x | f x = y} = {x_1 | (ker f).Rel x_1 x}", " Fintype.card ↑(ker f).classes ≤ Fintype.card β" ]
[ " x ∈ s", " (ker f).classes ⊆ Set.range fun y => {x | f x = y}", " {x_1 | (ker f).Rel x_1 x} ∈ Set.range fun y => {x | f x = y}", " ∃ y, {x | f x = y} = {x_1 | (ker f).Rel x_1 x}" ]
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.BigOperators import Mathlib.Algebra.Polynomial.Degree.Lemmas import Mathlib.Algebra.Polynomial.Div #align_import data.polynomial.ring_division from "leanprover-community/mathlib"@"8efcf8022aac8e01df8d302dcebdbc25d6a886c8" noncomputable ...
Mathlib/Algebra/Polynomial/RingDivision.lean
198
203
theorem natDegree_eq_zero_of_isUnit (h : IsUnit p) : natDegree p = 0 := by
nontriviality R obtain ⟨q, hq⟩ := h.exists_right_inv have := natDegree_mul (left_ne_zero_of_mul_eq_one hq) (right_ne_zero_of_mul_eq_one hq) rw [hq, natDegree_one, eq_comm, add_eq_zero_iff] at this exact this.1
[ " a✝ = 0 ∨ b✝ = 0", " a✝.leadingCoeff = 0 ∨ b✝.leadingCoeff = 0", " a✝.leadingCoeff * b✝.leadingCoeff = 0", " (p * q).natDegree = p.natDegree + q.natDegree", " (p * q).trailingDegree = p.trailingDegree + q.trailingDegree", " ↑(p.natTrailingDegree + q.natTrailingDegree) = ↑p.natTrailingDegree + ↑q.natTrail...
[ " a✝ = 0 ∨ b✝ = 0", " a✝.leadingCoeff = 0 ∨ b✝.leadingCoeff = 0", " a✝.leadingCoeff * b✝.leadingCoeff = 0", " (p * q).natDegree = p.natDegree + q.natDegree", " (p * q).trailingDegree = p.trailingDegree + q.trailingDegree", " ↑(p.natTrailingDegree + q.natTrailingDegree) = ↑p.natTrailingDegree + ↑q.natTrail...
import Mathlib.FieldTheory.Minpoly.Field #align_import ring_theory.power_basis from "leanprover-community/mathlib"@"d1d69e99ed34c95266668af4e288fc1c598b9a7f" open Polynomial open Polynomial variable {R S T : Type*} [CommRing R] [Ring S] [Algebra R S] variable {A B : Type*} [CommRing A] [CommRing B] [IsDomain B]...
Mathlib/RingTheory/PowerBasis.lean
138
142
theorem algHom_ext {S' : Type*} [Semiring S'] [Algebra R S'] (pb : PowerBasis R S) ⦃f g : S →ₐ[R] S'⦄ (h : f pb.gen = g pb.gen) : f = g := by
ext x obtain ⟨f, rfl⟩ := pb.exists_eq_aeval' x rw [← Polynomial.aeval_algHom_apply, ← Polynomial.aeval_algHom_apply, h]
[ " FiniteDimensional.finrank R S = pb.dim", " y ∈ Submodule.span R (Set.range fun i => x ^ ↑i) ↔ ∃ f, f.degree < ↑d ∧ y = (aeval x) f", " (Set.range fun i => x ^ ↑i) = (fun i => x ^ i) '' ↑(Finset.range d)", " (n ∈ Set.range fun i => x ^ ↑i) ↔ n ∈ (fun i => x ^ i) '' ↑(Finset.range d)", " (∃ y, x ^ ↑y = n) ↔...
[ " FiniteDimensional.finrank R S = pb.dim", " y ∈ Submodule.span R (Set.range fun i => x ^ ↑i) ↔ ∃ f, f.degree < ↑d ∧ y = (aeval x) f", " (Set.range fun i => x ^ ↑i) = (fun i => x ^ i) '' ↑(Finset.range d)", " (n ∈ Set.range fun i => x ^ ↑i) ↔ n ∈ (fun i => x ^ i) '' ↑(Finset.range d)", " (∃ y, x ^ ↑y = n) ↔...
import Mathlib.LinearAlgebra.Matrix.Reindex import Mathlib.LinearAlgebra.Matrix.ToLin #align_import linear_algebra.matrix.basis from "leanprover-community/mathlib"@"6c263e4bfc2e6714de30f22178b4d0ca4d149a76" noncomputable section open LinearMap Matrix Set Submodule open Matrix section BasisToMatrix variable {ι...
Mathlib/LinearAlgebra/Matrix/Basis.lean
124
128
theorem toMatrix_map_vecMul {S : Type*} [Ring S] [Algebra R S] [Fintype ι] (b : Basis ι R S) (v : ι' → S) : b ᵥ* ((b.toMatrix v).map <| algebraMap R S) = v := by
ext i simp_rw [vecMul, dotProduct, Matrix.map_apply, ← Algebra.commutes, ← Algebra.smul_def, sum_toMatrix_smul_self]
[ " e.toMatrix v = (LinearMap.toMatrix e e) ((e.constr ℕ) v)", " e.toMatrix v i✝ j✝ = (LinearMap.toMatrix e e) ((e.constr ℕ) v) i✝ j✝", " (Pi.basisFun R ι).toMatrix = transpose", " (Pi.basisFun R ι).toMatrix M i j = Mᵀ i j", " e.toMatrix ⇑e = 1", " (fun i j => (e.repr (e j)) i) = 1", " (e.repr (e j)) i = ...
[ " e.toMatrix v = (LinearMap.toMatrix e e) ((e.constr ℕ) v)", " e.toMatrix v i✝ j✝ = (LinearMap.toMatrix e e) ((e.constr ℕ) v) i✝ j✝", " (Pi.basisFun R ι).toMatrix = transpose", " (Pi.basisFun R ι).toMatrix M i j = Mᵀ i j", " e.toMatrix ⇑e = 1", " (fun i j => (e.repr (e j)) i) = 1", " (e.repr (e j)) i = ...
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
78
80
theorem cons_ne_zero_of_left (h : y ≠ 0) : cons y s ≠ 0 := by
contrapose! h with c rw [← cons_zero y s, c, Finsupp.coe_zero, Pi.zero_apply]
[ " (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" ]
[ " (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" ]
import Mathlib.MeasureTheory.Constructions.Prod.Basic import Mathlib.MeasureTheory.Group.Measure import Mathlib.Topology.Constructions #align_import measure_theory.constructions.pi from "leanprover-community/mathlib"@"fd5edc43dc4f10b85abfe544b88f82cf13c5f844" noncomputable section open Function Set MeasureTheory...
Mathlib/MeasureTheory/Constructions/Pi.lean
166
174
theorem piPremeasure_pi' {s : ∀ i, Set (α i)} : piPremeasure m (pi univ s) = ∏ i, m i (s i) := by
cases isEmpty_or_nonempty ι · simp [piPremeasure] rcases (pi univ s).eq_empty_or_nonempty with h | h · rcases univ_pi_eq_empty_iff.mp h with ⟨i, hi⟩ have : ∃ i, m i (s i) = 0 := ⟨i, by simp [hi]⟩ simpa [h, Finset.card_univ, zero_pow Fintype.card_ne_zero, @eq_comm _ (0 : ℝ≥0∞), Finset.prod_eq_zero...
[ " IsPiSystem (univ.pi '' univ.pi C)", " univ.pi s₁ ∩ univ.pi s₂ ∈ univ.pi '' univ.pi C", " (univ.pi fun i => s₁ i ∩ s₂ i) ∈ univ.pi '' univ.pi C", " piPremeasure m (univ.pi s) = ∏ i : ι, (m i) (s i)", " (m i) (s i) = 0" ]
[ " IsPiSystem (univ.pi '' univ.pi C)", " univ.pi s₁ ∩ univ.pi s₂ ∈ univ.pi '' univ.pi C", " (univ.pi fun i => s₁ i ∩ s₂ i) ∈ univ.pi '' univ.pi C", " piPremeasure m (univ.pi s) = ∏ i : ι, (m i) (s i)" ]
import Mathlib.Analysis.Analytic.Composition #align_import analysis.analytic.inverse from "leanprover-community/mathlib"@"284fdd2962e67d2932fa3a79ce19fcf92d38e228" open scoped Classical Topology open Finset Filter namespace FormalMultilinearSeries variable {𝕜 : Type*} [NontriviallyNormedField 𝕜] {E : Type*} ...
Mathlib/Analysis/Analytic/Inverse.lean
73
74
theorem leftInv_coeff_one (p : FormalMultilinearSeries 𝕜 E F) (i : E ≃L[𝕜] F) : p.leftInv i 1 = (continuousMultilinearCurryFin1 𝕜 F E).symm i.symm := by
rw [leftInv]
[ " p.leftInv i 0 = 0", " p.leftInv i 1 = (continuousMultilinearCurryFin1 𝕜 F E).symm ↑i.symm" ]
[ " p.leftInv i 0 = 0" ]
import Mathlib.Dynamics.Ergodic.MeasurePreserving import Mathlib.MeasureTheory.Function.SimpleFunc import Mathlib.MeasureTheory.Measure.MutuallySingular import Mathlib.MeasureTheory.Measure.Count import Mathlib.Topology.IndicatorConstPointwise import Mathlib.MeasureTheory.Constructions.BorelSpace.Real #align_import m...
Mathlib/MeasureTheory/Integral/Lebesgue.lean
114
120
theorem iSup_lintegral_measurable_le_eq_lintegral (f : α → ℝ≥0∞) : ⨆ (g : α → ℝ≥0∞) (_ : Measurable g) (_ : g ≤ f), ∫⁻ a, g a ∂μ = ∫⁻ a, f a ∂μ := by
apply le_antisymm · exact iSup_le fun i => iSup_le fun _ => iSup_le fun h'i => lintegral_mono h'i · rw [lintegral] refine iSup₂_le fun i hi => le_iSup₂_of_le i i.measurable <| le_iSup_of_le hi ?_ exact le_of_eq (i.lintegral_eq_lintegral _).symm
[ " ∫⁻ (a : α), ↑f a ∂μ = f.lintegral μ", " ⨆ g, ⨆ (_ : ↑g ≤ fun a => ↑f a), g.lintegral μ = f.lintegral μ", " ∫⁻ (a : α), f a ∂μ ≤ ∫⁻ (a : α), g a ∂ν", " ⨆ g, ⨆ (_ : ↑g ≤ fun a => f a), g.lintegral μ ≤ ⨆ g_1, ⨆ (_ : ↑g_1 ≤ fun a => g a), g_1.lintegral ν", " ⨆ g, ⨆ (_ : Measurable g), ⨆ (_ : g ≤ f), ∫⁻ (a : α...
[ " ∫⁻ (a : α), ↑f a ∂μ = f.lintegral μ", " ⨆ g, ⨆ (_ : ↑g ≤ fun a => ↑f a), g.lintegral μ = f.lintegral μ", " ∫⁻ (a : α), f a ∂μ ≤ ∫⁻ (a : α), g a ∂ν", " ⨆ g, ⨆ (_ : ↑g ≤ fun a => f a), g.lintegral μ ≤ ⨆ g_1, ⨆ (_ : ↑g_1 ≤ fun a => g a), g_1.lintegral ν" ]
import Mathlib.MeasureTheory.Measure.FiniteMeasure import Mathlib.MeasureTheory.Integral.Average #align_import measure_theory.measure.probability_measure from "leanprover-community/mathlib"@"f0c8bf9245297a541f468be517f1bde6195105e9" noncomputable section open MeasureTheory open Set open Filter open BoundedCon...
Mathlib/MeasureTheory/Measure/ProbabilityMeasure.lean
207
212
theorem nonempty (μ : ProbabilityMeasure Ω) : Nonempty Ω := by
by_contra maybe_empty have zero : (μ : Measure Ω) univ = 0 := by rw [univ_eq_empty_iff.mpr (not_nonempty_iff.mp maybe_empty), measure_empty] rw [measure_univ] at zero exact zero_ne_one zero.symm
[ " ↑μ s = ↑ν s", " ν univ ≠ 0", " ↑(ν s) = ↑ν s", " μ s₁ ≤ μ s₂", " μ.toFiniteMeasure s₁ ≤ μ.toFiniteMeasure s₂", " μ s ≤ 1", " Nonempty Ω", " False", " ↑μ univ = 0" ]
[ " ↑μ s = ↑ν s", " ν univ ≠ 0", " ↑(ν s) = ↑ν s", " μ s₁ ≤ μ s₂", " μ.toFiniteMeasure s₁ ≤ μ.toFiniteMeasure s₂", " μ s ≤ 1" ]
import Mathlib.CategoryTheory.Comma.Over import Mathlib.CategoryTheory.Limits.Shapes.Pullbacks import Mathlib.CategoryTheory.Yoneda import Mathlib.Data.Set.Lattice import Mathlib.Order.CompleteLattice #align_import category_theory.sites.sieves from "leanprover-community/mathlib"@"239d882c4fb58361ee8b3b39fb2091320edef...
Mathlib/CategoryTheory/Sites/Sieves.lean
151
161
theorem ofArrows_pullback [HasPullbacks C] {ι : Type*} (Z : ι → C) (g : ∀ i : ι, Z i ⟶ X) : (ofArrows (fun i => pullback (g i) f) fun i => pullback.snd) = pullbackArrows f (ofArrows Z g) := by
funext T ext h constructor · rintro ⟨hk⟩ exact pullbackArrows.mk _ _ (ofArrows.mk hk) · rintro ⟨W, k, hk₁⟩ cases' hk₁ with i hi apply ofArrows.mk
[ " CompleteLattice (Presieve X)", " CompleteLattice (⦃Y : C⦄ → Set (Y ⟶ X))", " singleton f g ↔ f = g", " singleton f g → f = g", " f = f", " f = g → singleton f g", " singleton f f", " pullbackArrows f (singleton g) = singleton pullback.snd", " h ∈ pullbackArrows f (singleton g) ↔ h ∈ singleton pull...
[ " CompleteLattice (Presieve X)", " CompleteLattice (⦃Y : C⦄ → Set (Y ⟶ X))", " singleton f g ↔ f = g", " singleton f g → f = g", " f = f", " f = g → singleton f g", " singleton f f", " pullbackArrows f (singleton g) = singleton pullback.snd", " h ∈ pullbackArrows f (singleton g) ↔ h ∈ singleton pull...
import Mathlib.ModelTheory.Substructures #align_import model_theory.finitely_generated from "leanprover-community/mathlib"@"0602c59878ff3d5f71dea69c2d32ccf2e93e5398" open FirstOrder Set namespace FirstOrder namespace Language open Structure variable {L : Language} {M : Type*} [L.Structure M] namespace Substru...
Mathlib/ModelTheory/FinitelyGenerated.lean
52
60
theorem fg_iff_exists_fin_generating_family {N : L.Substructure M} : N.FG ↔ ∃ (n : ℕ) (s : Fin n → M), closure L (range s) = N := by
rw [fg_def] constructor · rintro ⟨S, Sfin, hS⟩ obtain ⟨n, f, rfl⟩ := Sfin.fin_embedding exact ⟨n, f, hS⟩ · rintro ⟨n, s, hs⟩ exact ⟨range s, finite_range s, hs⟩
[ " (∃ S, S.Finite ∧ (closure L).toFun S = N) → N.FG", " ((closure L).toFun t').FG", " ((closure L).toFun ↑t).FG", " N.FG ↔ ∃ n s, (closure L).toFun (range s) = N", " (∃ S, S.Finite ∧ (closure L).toFun S = N) ↔ ∃ n s, (closure L).toFun (range s) = N", " (∃ S, S.Finite ∧ (closure L).toFun S = N) → ∃ n s, (cl...
[ " (∃ S, S.Finite ∧ (closure L).toFun S = N) → N.FG", " ((closure L).toFun t').FG", " ((closure L).toFun ↑t).FG" ]
import Mathlib.Algebra.GeomSum import Mathlib.Order.Filter.Archimedean import Mathlib.Order.Iterate import Mathlib.Topology.Algebra.Algebra import Mathlib.Topology.Algebra.InfiniteSum.Real #align_import analysis.specific_limits.basic from "leanprover-community/mathlib"@"57ac39bd365c2f80589a700f9fbb664d3a1a30c2" n...
Mathlib/Analysis/SpecificLimits/Basic.lean
74
79
theorem NNReal.tendsto_algebraMap_inverse_atTop_nhds_zero_nat (𝕜 : Type*) [Semiring 𝕜] [Algebra ℝ≥0 𝕜] [TopologicalSpace 𝕜] [ContinuousSMul ℝ≥0 𝕜] : Tendsto (algebraMap ℝ≥0 𝕜 ∘ fun n : ℕ ↦ (n : ℝ≥0)⁻¹) atTop (𝓝 0) := by
convert (continuous_algebraMap ℝ≥0 𝕜).continuousAt.tendsto.comp tendsto_inverse_atTop_nhds_zero_nat rw [map_zero]
[ " Tendsto (fun n => C / ↑n) atTop (𝓝 0)", " Tendsto (fun n => (↑n)⁻¹) atTop (𝓝 0)", " Tendsto (fun a => ↑(↑a)⁻¹) atTop (𝓝 ↑0)", " Tendsto (fun n => 1 / (↑n + 1)) atTop (𝓝 0)", " Tendsto (⇑(algebraMap ℝ≥0 𝕜) ∘ fun n => (↑n)⁻¹) atTop (𝓝 0)", " 0 = (algebraMap ℝ≥0 𝕜) 0" ]
[ " Tendsto (fun n => C / ↑n) atTop (𝓝 0)", " Tendsto (fun n => (↑n)⁻¹) atTop (𝓝 0)", " Tendsto (fun a => ↑(↑a)⁻¹) atTop (𝓝 ↑0)", " Tendsto (fun n => 1 / (↑n + 1)) atTop (𝓝 0)" ]
import Mathlib.Analysis.Convex.Basic import Mathlib.Topology.Algebra.Group.Basic import Mathlib.Topology.Order.Basic #align_import analysis.convex.strict from "leanprover-community/mathlib"@"84dc0bd6619acaea625086d6f53cb35cdd554219" open Set open Convex Pointwise variable {𝕜 𝕝 E F β : Type*} open Function Se...
Mathlib/Analysis/Convex/Strict.lean
67
70
theorem strictConvex_univ : StrictConvex 𝕜 (univ : Set E) := by
intro x _ y _ _ a b _ _ _ rw [interior_univ] exact mem_univ _
[ " StrictConvex 𝕜 univ", " a • x + b • y ∈ interior univ", " a • x + b • y ∈ univ" ]
[]
import Mathlib.Analysis.Calculus.ContDiff.Defs import Mathlib.Analysis.Calculus.FDeriv.Add import Mathlib.Analysis.Calculus.FDeriv.Mul import Mathlib.Analysis.Calculus.Deriv.Inverse #align_import analysis.calculus.cont_diff from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" noncomputab...
Mathlib/Analysis/Calculus/ContDiff/Basic.lean
140
145
theorem iteratedFDerivWithin_const_of_ne {n : ℕ} (hn : n ≠ 0) (c : F) (hs : UniqueDiffOn 𝕜 s) (hx : x ∈ s) : iteratedFDerivWithin 𝕜 n (fun _ : E ↦ c) s x = 0 := by
cases n with | zero => contradiction | succ n => exact iteratedFDerivWithin_succ_const n c hs hx
[ " iteratedFDerivWithin 𝕜 i (fun x => 0) s x = 0", " iteratedFDerivWithin 𝕜 0 (fun x => 0) s x = 0", " (iteratedFDerivWithin 𝕜 0 (fun x => 0) s x) x✝ = 0 x✝", " iteratedFDerivWithin 𝕜 (i + 1) (fun x => 0) s x = 0", " (iteratedFDerivWithin 𝕜 (i + 1) (fun x => 0) s x) m = 0 m", " ((fderivWithin 𝕜 (fun ...
[ " iteratedFDerivWithin 𝕜 i (fun x => 0) s x = 0", " iteratedFDerivWithin 𝕜 0 (fun x => 0) s x = 0", " (iteratedFDerivWithin 𝕜 0 (fun x => 0) s x) x✝ = 0 x✝", " iteratedFDerivWithin 𝕜 (i + 1) (fun x => 0) s x = 0", " (iteratedFDerivWithin 𝕜 (i + 1) (fun x => 0) s x) m = 0 m", " ((fderivWithin 𝕜 (fun ...
import Mathlib.Algebra.Group.Basic import Mathlib.Algebra.Group.Nat import Mathlib.Init.Data.Nat.Lemmas #align_import data.nat.psub from "leanprover-community/mathlib"@"70d50ecfd4900dd6d328da39ab7ebd516abe4025" namespace Nat def ppred : ℕ → Option ℕ | 0 => none | n + 1 => some n #align nat.ppred Nat.ppred @...
Mathlib/Data/Nat/PSub.lean
54
54
theorem pred_eq_ppred (n : ℕ) : pred n = (ppred n).getD 0 := by
cases n <;> rfl
[ " n.pred = n.ppred.getD 0", " pred 0 = (ppred 0).getD 0", " (n✝ + 1).pred = (n✝ + 1).ppred.getD 0" ]
[]
import Mathlib.Analysis.Calculus.Deriv.Comp import Mathlib.Analysis.Calculus.FDeriv.Equiv #align_import analysis.calculus.deriv.inverse from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set va...
Mathlib/Analysis/Calculus/Deriv/Inverse.lean
120
124
theorem not_differentiableAt_of_local_left_inverse_hasDerivAt_zero {f g : 𝕜 → 𝕜} {a : 𝕜} (hf : HasDerivAt f 0 (g a)) (hfg : f ∘ g =ᶠ[𝓝 a] id) : ¬DifferentiableAt 𝕜 g a := by
intro hg have := (hf.comp a hg.hasDerivAt).congr_of_eventuallyEq hfg.symm simpa using this.unique (hasDerivAt_id a)
[ " ‖z‖ ≤ ‖f'‖⁻¹ * ‖(ContinuousLinearMap.smulRight 1 f') z‖", " ¬DifferentiableWithinAt 𝕜 g s a", " False", " ¬DifferentiableAt 𝕜 g a" ]
[ " ‖z‖ ≤ ‖f'‖⁻¹ * ‖(ContinuousLinearMap.smulRight 1 f') z‖", " ¬DifferentiableWithinAt 𝕜 g s a", " False" ]
import Mathlib.Analysis.Normed.Field.Basic import Mathlib.Analysis.Normed.Group.InfiniteSum import Mathlib.Topology.Algebra.InfiniteSum.Real #align_import analysis.normed.field.infinite_sum from "leanprover-community/mathlib"@"008205aa645b3f194c1da47025c5f110c8406eab" variable {R : Type*} {ι : Type*} {ι' : Type*}...
Mathlib/Analysis/Normed/Field/InfiniteSum.lean
106
110
theorem tsum_mul_tsum_eq_tsum_sum_range_of_summable_norm [CompleteSpace R] {f g : ℕ → R} (hf : Summable fun x => ‖f x‖) (hg : Summable fun x => ‖g x‖) : ((∑' n, f n) * ∑' n, g n) = ∑' n, ∑ k ∈ range (n + 1), f k * g (n - k) := by
simp_rw [← sum_antidiagonal_eq_sum_range_succ fun k l => f k * g l] exact tsum_mul_tsum_eq_tsum_sum_antidiagonal_of_summable_norm hf hg
[ " Summable fun x => ∑' (y : ι'), f (x, y).1 * g (x, y).2", " Summable fun n => ‖∑ kl ∈ antidiagonal n, f kl.1 * g kl.2‖", " ‖∑ kl ∈ antidiagonal n, f kl.1 * g kl.2‖ ≤ ∑ kl ∈ antidiagonal n, ‖f kl.1‖ * ‖g kl.2‖", " ∑ kl ∈ antidiagonal n, ‖f kl.1 * g kl.2‖ ≤ ∑ kl ∈ antidiagonal n, ‖f kl.1‖ * ‖g kl.2‖", " ‖f i...
[ " Summable fun x => ∑' (y : ι'), f (x, y).1 * g (x, y).2", " Summable fun n => ‖∑ kl ∈ antidiagonal n, f kl.1 * g kl.2‖", " ‖∑ kl ∈ antidiagonal n, f kl.1 * g kl.2‖ ≤ ∑ kl ∈ antidiagonal n, ‖f kl.1‖ * ‖g kl.2‖", " ∑ kl ∈ antidiagonal n, ‖f kl.1 * g kl.2‖ ≤ ∑ kl ∈ antidiagonal n, ‖f kl.1‖ * ‖g kl.2‖", " ‖f i...
import Mathlib.Data.List.Infix #align_import data.list.rdrop from "leanprover-community/mathlib"@"26f081a2fb920140ed5bc5cc5344e84bcc7cb2b2" -- Make sure we don't import algebra assert_not_exists Monoid variable {α : Type*} (p : α → Bool) (l : List α) (n : ℕ) namespace List def rdrop : List α := l.take (l.leng...
Mathlib/Data/List/DropRight.lean
121
122
theorem rdropWhile_singleton (x : α) : rdropWhile p [x] = if p x then [] else [x] := by
rw [← nil_append [x], rdropWhile_concat, rdropWhile_nil]
[ " [].rdrop n = []", " l.rdrop 0 = l", " l.rdrop n = (drop n l.reverse).reverse", " take (l.length - n) l = (drop n l.reverse).reverse", " take ([].length - n) [] = (drop n [].reverse).reverse", " take ((xs ++ [x]).length - n) (xs ++ [x]) = (drop n (xs ++ [x]).reverse).reverse", " take ((xs ++ [x]).lengt...
[ " [].rdrop n = []", " l.rdrop 0 = l", " l.rdrop n = (drop n l.reverse).reverse", " take (l.length - n) l = (drop n l.reverse).reverse", " take ([].length - n) [] = (drop n [].reverse).reverse", " take ((xs ++ [x]).length - n) (xs ++ [x]) = (drop n (xs ++ [x]).reverse).reverse", " take ((xs ++ [x]).lengt...
import Mathlib.Data.List.Forall2 #align_import data.list.zip from "leanprover-community/mathlib"@"134625f523e737f650a6ea7f0c82a6177e45e622" -- Make sure we don't import algebra assert_not_exists Monoid universe u open Nat namespace List variable {α : Type u} {β γ δ ε : Type*} #align list.zip_with_cons_cons Li...
Mathlib/Data/List/Zip.lean
109
109
theorem unzip_left (l : List (α × β)) : (unzip l).1 = l.map Prod.fst := by
simp only [unzip_eq_map]
[ " map Prod.swap (l₁.zip []) = [].zip l₁", " map Prod.swap [] = [].zip l₁", " map Prod.swap ((a :: l₁).zip (b :: l₂)) = (b :: l₂).zip (a :: l₁)", " Forall p (zipWith f [] []) ↔ Forall₂ (fun x y => p (f x y)) [] []", " Forall p (zipWith f (a :: l₁) (b :: l₂)) ↔ Forall₂ (fun x y => p (f x y)) (a :: l₁) (b :: l...
[ " map Prod.swap (l₁.zip []) = [].zip l₁", " map Prod.swap [] = [].zip l₁", " map Prod.swap ((a :: l₁).zip (b :: l₂)) = (b :: l₂).zip (a :: l₁)", " Forall p (zipWith f [] []) ↔ Forall₂ (fun x y => p (f x y)) [] []", " Forall p (zipWith f (a :: l₁) (b :: l₂)) ↔ Forall₂ (fun x y => p (f x y)) (a :: l₁) (b :: l...
import Mathlib.Algebra.Order.Module.OrderedSMul import Mathlib.Analysis.Convex.Star import Mathlib.LinearAlgebra.AffineSpace.AffineSubspace #align_import analysis.convex.basic from "leanprover-community/mathlib"@"92bd7b1ffeb306a89f450bee126ddd8a284c259d" variable {𝕜 E F β : Type*} open LinearMap Set open scope...
Mathlib/Analysis/Convex/Basic.lean
131
134
theorem DirectedOn.convex_sUnion {c : Set (Set E)} (hdir : DirectedOn (· ⊆ ·) c) (hc : ∀ ⦃A : Set E⦄, A ∈ c → Convex 𝕜 A) : Convex 𝕜 (⋃₀ c) := by
rw [sUnion_eq_iUnion] exact (directedOn_iff_directed.1 hdir).convex_iUnion fun A => hc A.2
[ " Convex 𝕜 s → ∀ ⦃a b : 𝕜⦄, 0 ≤ a → 0 ≤ b → a + b = 1 → a • s + b • s ⊆ s", " (fun x x_1 => x + x_1) ((fun x => a • x) u) ((fun x => b • x) v) ∈ s", " Convex 𝕜 (⋃ i, s i)", " a • x + b • y ∈ ⋃ i, s i", " ∃ i, a • x + b • y ∈ s i", " Convex 𝕜 (⋃₀ c)", " Convex 𝕜 (⋃ i, ↑i)" ]
[ " Convex 𝕜 s → ∀ ⦃a b : 𝕜⦄, 0 ≤ a → 0 ≤ b → a + b = 1 → a • s + b • s ⊆ s", " (fun x x_1 => x + x_1) ((fun x => a • x) u) ((fun x => b • x) v) ∈ s", " Convex 𝕜 (⋃ i, s i)", " a • x + b • y ∈ ⋃ i, s i", " ∃ i, a • x + b • y ∈ s i" ]
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
149
151
theorem iff_comp {r : Prop → α → Prop} : (· ↔ ·) ∘r r = r := by
have : (· ↔ ·) = (· = ·) := by funext a b; exact iff_eq_eq rw [this, eq_comp]
[ " (fun x x_1 => x ↔ x_1) ∘r r = r", " (fun x x_1 => x ↔ x_1) = fun x x_1 => x = x_1", " (a ↔ b) = (a = 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
97
105
theorem quasiCompact_iff_forall_affine : QuasiCompact f ↔ ∀ U : Opens Y.carrier, IsAffineOpen U → IsCompact (f.1.base ⁻¹' (U : Set Y.carrier)) := by
rw [quasiCompact_iff] refine ⟨fun H U hU => H U U.isOpen hU.isCompact, ?_⟩ intro H U hU hU' obtain ⟨S, hS, rfl⟩ := (isCompact_open_iff_eq_finset_affine_union U).mp ⟨hU', hU⟩ simp only [Set.preimage_iUnion] exact Set.Finite.isCompact_biUnion hS (fun i _ => H i i.prop)
[ " 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.Algebra.Algebra.Spectrum import Mathlib.LinearAlgebra.GeneralLinearGroup import Mathlib.LinearAlgebra.FiniteDimensional import Mathlib.RingTheory.Nilpotent.Basic #align_import linear_algebra.eigenspace.basic from "leanprover-community/mathlib"@"6b0169218d01f2837d79ea2784882009a0da1aa1" universe u v...
Mathlib/LinearAlgebra/Eigenspace/Basic.lean
138
144
theorem HasEigenvalue.mem_spectrum {f : End R M} {μ : R} (hμ : HasEigenvalue f μ) : μ ∈ spectrum R f := by
refine spectrum.mem_iff.mpr fun h_unit => ?_ set f' := LinearMap.GeneralLinearGroup.toLinearEquiv h_unit.unit rcases hμ.exists_hasEigenvector with ⟨v, hv⟩ refine hv.2 ((LinearMap.ker_eq_bot'.mp f'.ker) v (?_ : μ • v - f v = 0)) rw [hv.apply_eq_smul, sub_self]
[ " f.eigenspace 0 = LinearMap.ker f", " f.HasEigenvalue μ", " ∃ x ∈ f.eigenspace μ, x ≠ 0", " x ∈ f.eigenspace μ ∧ x ≠ 0", " x ∈ f.eigenspace μ ↔ f x = μ • x", " (f ^ n) v = μ ^ n • v", " (f ^ 0) v = μ ^ 0 • v", " (f ^ (n✝ + 1)) v = μ ^ (n✝ + 1) • v", " (f ^ n).HasEigenvalue (μ ^ n)", " ∃ x ∈ (f ^ ...
[ " f.eigenspace 0 = LinearMap.ker f", " f.HasEigenvalue μ", " ∃ x ∈ f.eigenspace μ, x ≠ 0", " x ∈ f.eigenspace μ ∧ x ≠ 0", " x ∈ f.eigenspace μ ↔ f x = μ • x", " (f ^ n) v = μ ^ n • v", " (f ^ 0) v = μ ^ 0 • v", " (f ^ (n✝ + 1)) v = μ ^ (n✝ + 1) • v", " (f ^ n).HasEigenvalue (μ ^ n)", " ∃ x ∈ (f ^ ...
import Mathlib.Algebra.Homology.HomologicalComplex import Mathlib.AlgebraicTopology.SimplicialObject import Mathlib.CategoryTheory.Abelian.Basic #align_import algebraic_topology.Moore_complex from "leanprover-community/mathlib"@"0bd2ea37bcba5769e14866170f251c9bc64e35d7" universe v u noncomputable section open C...
Mathlib/AlgebraicTopology/MooreComplex.lean
100
111
theorem d_squared (n : ℕ) : objD X (n + 1) ≫ objD X n = 0 := by
-- It's a pity we need to do a case split here; -- after the first erw the proofs are almost identical rcases n with _ | n <;> dsimp [objD] · erw [Subobject.factorThru_arrow_assoc, Category.assoc, ← X.δ_comp_δ_assoc (Fin.zero_le (0 : Fin 2)), ← factorThru_arrow _ _ (finset_inf_arrow_factors Finse...
[ " underlying.obj (objX X (n + 1 + 1)) ⟶ underlying.obj (objX X (n + 1))", " (objX X (n + 1)).Factors ((objX X (n + 1 + 1)).arrow ≫ X.δ 0)", " (kernelSubobject (X.δ i.succ)).Factors ((objX X (n + 1 + 1)).arrow ≫ X.δ 0)", " ((objX X (n + 1 + 1)).arrow ≫ X.δ 0) ≫ X.δ i.succ = 0", " ((Finset.univ.inf fun k => k...
[ " underlying.obj (objX X (n + 1 + 1)) ⟶ underlying.obj (objX X (n + 1))", " (objX X (n + 1)).Factors ((objX X (n + 1 + 1)).arrow ≫ X.δ 0)", " (kernelSubobject (X.δ i.succ)).Factors ((objX X (n + 1 + 1)).arrow ≫ X.δ 0)", " ((objX X (n + 1 + 1)).arrow ≫ X.δ 0) ≫ X.δ i.succ = 0", " ((Finset.univ.inf fun k => k...
import Mathlib.Algebra.BigOperators.Finprod import Mathlib.SetTheory.Ordinal.Basic import Mathlib.Topology.ContinuousFunction.Algebra import Mathlib.Topology.Compactness.Paracompact import Mathlib.Topology.ShrinkingLemma import Mathlib.Topology.UrysohnsLemma #align_import topology.partition_of_unity from "leanprover-...
Mathlib/Topology/PartitionOfUnity.lean
193
196
theorem coe_finsupport (x₀ : X) : (ρ.finsupport x₀ : Set ι) = support fun i ↦ ρ i x₀ := by
ext rw [Finset.mem_coe, mem_finsupport]
[ " f = g", " { toFun := toFun✝, locallyFinite' := locallyFinite'✝, nonneg' := nonneg'✝, sum_eq_one' := sum_eq_one'✝,\n sum_le_one' := sum_le_one'✝ } =\n g", " { toFun := toFun✝¹, locallyFinite' := locallyFinite'✝¹, nonneg' := nonneg'✝¹, sum_eq_one' := sum_eq_one'✝¹,\n sum_le_one' := sum_le_one'✝¹ } ...
[ " f = g", " { toFun := toFun✝, locallyFinite' := locallyFinite'✝, nonneg' := nonneg'✝, sum_eq_one' := sum_eq_one'✝,\n sum_le_one' := sum_le_one'✝ } =\n g", " { toFun := toFun✝¹, locallyFinite' := locallyFinite'✝¹, nonneg' := nonneg'✝¹, sum_eq_one' := sum_eq_one'✝¹,\n sum_le_one' := sum_le_one'✝¹ } ...
import Mathlib.Data.Fin.Tuple.Basic import Mathlib.Data.List.Join #align_import data.list.of_fn from "leanprover-community/mathlib"@"bf27744463e9620ca4e4ebe951fe83530ae6949b" universe u variable {α : Type u} open Nat namespace List #noalign list.length_of_fn_aux @[simp] theorem length_ofFn_go {n} (f : Fin n ...
Mathlib/Data/List/OfFn.lean
151
158
theorem ofFn_add {m n} (f : Fin (m + n) → α) : List.ofFn f = (List.ofFn fun i => f (Fin.castAdd n i)) ++ List.ofFn fun j => f (Fin.natAdd m j) := by
induction' n with n IH · rw [ofFn_zero, append_nil, Fin.castAdd_zero, Fin.cast_refl] rfl · rw [ofFn_succ', ofFn_succ', IH, append_concat] rfl
[ " (ofFn.go f i j h).length = i", " (ofFn.go f 0 j h).length = 0", " (ofFn.go f (n✝ + 1) j h).length = n✝ + 1", " (ofFn f).length = n", " j + k < n", " (ofFn.go f i j h).get ⟨k, hk⟩ = f ⟨j + k, ⋯⟩", " (ofFn.go f (i + 1) j h).get ⟨k, hk⟩ = f ⟨j + k, ⋯⟩", " (ofFn.go f (i + 1) j h).get ⟨0, hk⟩ = f ⟨j + 0,...
[ " (ofFn.go f i j h).length = i", " (ofFn.go f 0 j h).length = 0", " (ofFn.go f (n✝ + 1) j h).length = n✝ + 1", " (ofFn f).length = n", " j + k < n", " (ofFn.go f i j h).get ⟨k, hk⟩ = f ⟨j + k, ⋯⟩", " (ofFn.go f (i + 1) j h).get ⟨k, hk⟩ = f ⟨j + k, ⋯⟩", " (ofFn.go f (i + 1) j h).get ⟨0, hk⟩ = f ⟨j + 0,...
import Mathlib.Analysis.Convex.Combination import Mathlib.Analysis.Convex.Function import Mathlib.Tactic.FieldSimp #align_import analysis.convex.jensen from "leanprover-community/mathlib"@"bfad3f455b388fbcc14c49d0cac884f774f14d20" open Finset LinearMap Set open scoped Classical open Convex Pointwise variable {�...
Mathlib/Analysis/Convex/Jensen.lean
69
72
theorem ConvexOn.map_sum_le (hf : ConvexOn 𝕜 s f) (h₀ : ∀ i ∈ t, 0 ≤ w i) (h₁ : ∑ i ∈ t, w i = 1) (hmem : ∀ i ∈ t, p i ∈ s) : f (∑ i ∈ t, w i • p i) ≤ ∑ i ∈ t, w i • f (p i) := by
simpa only [centerMass, h₁, inv_one, one_smul] using hf.map_centerMass_le h₀ (h₁.symm ▸ zero_lt_one) hmem
[ " f (t.centerMass w p) ≤ t.centerMass w (f ∘ p)", " t.centerMass w p = (t.centerMass (fun i => w i) fun i => (p i, (f ∘ p) i)).1", " t.centerMass w (f ∘ p) = (t.centerMass (fun i => w i) fun i => (p i, (f ∘ p) i)).2", " f (∑ i ∈ t, w i • p i) ≤ ∑ i ∈ t, w i • f (p i)" ]
[ " f (t.centerMass w p) ≤ t.centerMass w (f ∘ p)", " t.centerMass w p = (t.centerMass (fun i => w i) fun i => (p i, (f ∘ p) i)).1", " t.centerMass w (f ∘ p) = (t.centerMass (fun i => w i) fun i => (p i, (f ∘ p) i)).2" ]
import Mathlib.Topology.MetricSpace.HausdorffDistance #align_import topology.metric_space.hausdorff_distance from "leanprover-community/mathlib"@"bc91ed7093bf098d253401e69df601fc33dde156" noncomputable section open NNReal ENNReal Topology Set Filter Bornology universe u v w variable {ι : Sort*} {α : Type u} {β :...
Mathlib/Topology/MetricSpace/Thickening.lean
219
223
theorem mem_cthickening_of_dist_le {α : Type*} [PseudoMetricSpace α] (x y : α) (δ : ℝ) (E : Set α) (h : y ∈ E) (h' : dist x y ≤ δ) : x ∈ cthickening δ E := by
apply mem_cthickening_of_edist_le x y δ E h rw [edist_dist] exact ENNReal.ofReal_le_ofReal h'
[ " ∀ᶠ (δ : ℝ) in 𝓝 0, x ∉ cthickening δ E", " x ∉ cthickening δ E", " ENNReal.ofReal δ < infEdist x E", " x ∈ cthickening δ E", " edist x y ≤ ENNReal.ofReal δ", " ENNReal.ofReal (dist x y) ≤ ENNReal.ofReal δ" ]
[ " ∀ᶠ (δ : ℝ) in 𝓝 0, x ∉ cthickening δ E", " x ∉ cthickening δ E", " ENNReal.ofReal δ < infEdist x E" ]
import Mathlib.Data.Set.Pointwise.SMul import Mathlib.Topology.MetricSpace.Isometry import Mathlib.Topology.MetricSpace.Lipschitz #align_import topology.metric_space.isometric_smul from "leanprover-community/mathlib"@"bc91ed7093bf098d253401e69df601fc33dde156" open Set open ENNReal Pointwise universe u v w vari...
Mathlib/Topology/MetricSpace/IsometricSMul.lean
128
131
theorem edist_inv_inv [PseudoEMetricSpace G] [IsometricSMul G G] [IsometricSMul Gᵐᵒᵖ G] (a b : G) : edist a⁻¹ b⁻¹ = edist a b := by
rw [← edist_mul_left a, ← edist_mul_right _ _ b, mul_right_inv, one_mul, inv_mul_cancel_right, edist_comm]
[ " edist ((fun x => c • x) x) ((fun x => c • x) y) = edist x y", " edist (a / c) (b / c) = edist a b", " edist a⁻¹ b⁻¹ = edist a b" ]
[ " edist ((fun x => c • x) x) ((fun x => c • x) y) = edist x y", " edist (a / c) (b / c) = edist a b" ]
import Mathlib.Data.Multiset.Nodup #align_import data.multiset.dedup from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" namespace Multiset open List variable {α β : Type*} [DecidableEq α] def dedup (s : Multiset α) : Multiset α := Quot.liftOn s (fun l => (l.dedup : Multiset α)...
Mathlib/Data/Multiset/Dedup.lean
116
117
theorem dedup_ext {s t : Multiset α} : dedup s = dedup t ↔ ∀ a, a ∈ s ↔ a ∈ t := by
simp [Nodup.ext]
[ " count a (dedup (Quot.mk Setoid.r x✝)) = if a ∈ Quot.mk Setoid.r x✝ then 1 else 0", " List.count a x✝.dedup = if a ∈ x✝ then 1 else 0", " s ≤ s.dedup ↔ s.Nodup", " s.dedup = t.dedup ↔ ∀ (a : α), a ∈ s ↔ a ∈ t" ]
[ " count a (dedup (Quot.mk Setoid.r x✝)) = if a ∈ Quot.mk Setoid.r x✝ then 1 else 0", " List.count a x✝.dedup = if a ∈ x✝ then 1 else 0", " s ≤ s.dedup ↔ s.Nodup" ]
import Mathlib.Topology.Order.MonotoneContinuity import Mathlib.Topology.Algebra.Order.LiminfLimsup import Mathlib.Topology.Instances.NNReal import Mathlib.Topology.EMetricSpace.Lipschitz import Mathlib.Topology.Metrizable.Basic import Mathlib.Topology.Order.T5 #align_import topology.instances.ennreal from "leanprove...
Mathlib/Topology/Instances/ENNReal.lean
60
62
theorem isOpen_Ico_zero : IsOpen (Ico 0 b) := by
rw [ENNReal.Ico_eq_Iio] exact isOpen_Iio
[ " (range ofNNReal).OrdConnected", " (Iio ⊤).OrdConnected", " IsOpen (Ico 0 b)", " IsOpen (Iio b)" ]
[ " (range ofNNReal).OrdConnected", " (Iio ⊤).OrdConnected" ]
import Mathlib.Data.Set.Finite #align_import data.finset.preimage from "leanprover-community/mathlib"@"3365b20c2ffa7c35e47e5209b89ba9abdddf3ffe" assert_not_exists Finset.sum open Set Function universe u v w x variable {α : Type u} {β : Type v} {ι : Sort w} {γ : Type x} namespace Finset section Preimage nonc...
Mathlib/Data/Finset/Preimage.lean
113
116
theorem subset_map_iff {f : α ↪ β} {s : Finset β} {t : Finset α} : s ⊆ t.map f ↔ ∃ u ⊆ t, s = u.map f := by
classical simp_rw [← coe_subset, coe_map, subset_image_iff, map_eq_image, eq_comm]
[ " InjOn f (f ⁻¹' ↑∅)", " ↑(∅.preimage f ⋯) = ↑∅", " ↑(univ.preimage f hf) = ↑univ", " ↑((s ∩ t).preimage f ⋯) = ↑(s.preimage f hs ∩ t.preimage f ht)", " ↑((s ∪ t).preimage f hst) = ↑(s.preimage f ⋯ ∪ t.preimage f ⋯)", " ↑(sᶜ.preimage f ⋯) = ↑(s.preimage f ⋯)ᶜ", " ↑((map f s).preimage ⇑f ⋯) = ↑s", " (∀...
[ " InjOn f (f ⁻¹' ↑∅)", " ↑(∅.preimage f ⋯) = ↑∅", " ↑(univ.preimage f hf) = ↑univ", " ↑((s ∩ t).preimage f ⋯) = ↑(s.preimage f hs ∩ t.preimage f ht)", " ↑((s ∪ t).preimage f hst) = ↑(s.preimage f ⋯ ∪ t.preimage f ⋯)", " ↑(sᶜ.preimage f ⋯) = ↑(s.preimage f ⋯)ᶜ", " ↑((map f s).preimage ⇑f ⋯) = ↑s", " (∀...
import Mathlib.LinearAlgebra.Matrix.BilinearForm import Mathlib.LinearAlgebra.Matrix.Charpoly.Minpoly import Mathlib.LinearAlgebra.Determinant import Mathlib.LinearAlgebra.FiniteDimensional import Mathlib.LinearAlgebra.Vandermonde import Mathlib.LinearAlgebra.Trace import Mathlib.FieldTheory.IsAlgClosed.AlgebraicClosu...
Mathlib/RingTheory/Trace.lean
128
131
theorem trace_algebraMap (x : K) : trace K L (algebraMap K L x) = finrank K L • x := by
by_cases H : ∃ s : Finset L, Nonempty (Basis s K L) · rw [trace_algebraMap_of_basis H.choose_spec.some, finrank_eq_card_basis H.choose_spec.some] · simp [trace_eq_zero_of_not_exists_basis K H, finrank_eq_zero_of_not_exists_basis_finset H]
[ " trace R S = 0", " (trace R S) s = 0 s", " (trace R S) s = ((leftMulMatrix b) s).trace", " ((toMatrix b b) ((lmul R S) s)).trace = ((toMatrix b b) (mulLeft R s)).trace", " (trace R S) ((algebraMap R S) x) = Fintype.card ι • x", " ∑ i : ι, ((toMatrix b b) ((lmul R S) ((algebraMap R S) x))).diag i = Fintyp...
[ " trace R S = 0", " (trace R S) s = 0 s", " (trace R S) s = ((leftMulMatrix b) s).trace", " ((toMatrix b b) ((lmul R S) s)).trace = ((toMatrix b b) (mulLeft R s)).trace", " (trace R S) ((algebraMap R S) x) = Fintype.card ι • x", " ∑ i : ι, ((toMatrix b b) ((lmul R S) ((algebraMap R S) x))).diag i = Fintyp...
import Mathlib.Topology.Category.TopCat.Limits.Products #align_import topology.category.Top.limits.pullbacks from "leanprover-community/mathlib"@"178a32653e369dce2da68dc6b2694e385d484ef1" -- Porting note: every ML3 decl has an uppercase letter set_option linter.uppercaseLean3 false open TopologicalSpace open Cat...
Mathlib/Topology/Category/TopCat/Limits/Pullbacks.lean
467
478
theorem coequalizer_isOpen_iff (F : WalkingParallelPair ⥤ TopCat.{u}) (U : Set ((colimit F : _) : Type u)) : IsOpen U ↔ IsOpen (colimit.ι F WalkingParallelPair.one ⁻¹' U) := by
rw [colimit_isOpen_iff] constructor · intro H exact H _ · intro H j cases j · rw [← colimit.w F WalkingParallelPairHom.left] exact (F.map WalkingParallelPairHom.left).continuous_toFun.isOpen_preimage _ H · exact H
[ " c.pt.str = ⨆ j, coinduced (⇑(c.ι.app j)) (F.obj j).str", " IsOpen x✝ ↔ IsOpen x✝", " IsOpen (⇑homeo.symm ⁻¹' x✝) ↔ ∀ (i : J), IsOpen x✝", " IsOpen U ↔ ∀ (j : J), IsOpen (⇑(colimit.ι F j) ⁻¹' U)", "J : Type v inst✝ : SmallCategory J F : J ⥤ TopCat U : Set ↑(colimit F) | IsOpen U", " IsOpen U ↔ IsOpen (⇑(...
[ " c.pt.str = ⨆ j, coinduced (⇑(c.ι.app j)) (F.obj j).str", " IsOpen x✝ ↔ IsOpen x✝", " IsOpen (⇑homeo.symm ⁻¹' x✝) ↔ ∀ (i : J), IsOpen x✝", " IsOpen U ↔ ∀ (j : J), IsOpen (⇑(colimit.ι F j) ⁻¹' U)", "J : Type v inst✝ : SmallCategory J F : J ⥤ TopCat U : Set ↑(colimit F) | IsOpen U" ]
import Mathlib.Analysis.SpecialFunctions.ExpDeriv import Mathlib.Analysis.SpecialFunctions.Complex.Circle import Mathlib.Analysis.InnerProductSpace.l2Space import Mathlib.MeasureTheory.Function.ContinuousMapDense import Mathlib.MeasureTheory.Function.L2Space import Mathlib.MeasureTheory.Group.Integral import Mathlib.M...
Mathlib/Analysis/Fourier/AddCircle.lean
154
159
theorem fourier_neg {n : ℤ} {x : AddCircle T} : fourier (-n) x = conj (fourier n x) := by
induction x using QuotientAddGroup.induction_on' simp_rw [fourier_apply, toCircle] rw [← QuotientAddGroup.mk_zsmul, ← QuotientAddGroup.mk_zsmul] simp_rw [Function.Periodic.lift_coe, ← coe_inv_circle_eq_conj, ← expMapCircle_neg, neg_smul, mul_neg]
[ " (fourier n) ↑x = (2 * ↑π * Complex.I * ↑n * ↑x / ↑T).exp", " (↑2 * ↑π / ↑T * (↑n * ↑x) * Complex.I).exp = (2 * ↑π * Complex.I * ↑n * ↑x / ↑T).exp", " (2 * ↑π / ↑T * (↑n * ↑x) * Complex.I).exp = (2 * ↑π * Complex.I * ↑n * ↑x / ↑T).exp", " 2 * ↑π / ↑T * (↑n * ↑x) * Complex.I = 2 * ↑π * Complex.I * ↑n * ↑x / ↑...
[ " (fourier n) ↑x = (2 * ↑π * Complex.I * ↑n * ↑x / ↑T).exp", " (↑2 * ↑π / ↑T * (↑n * ↑x) * Complex.I).exp = (2 * ↑π * Complex.I * ↑n * ↑x / ↑T).exp", " (2 * ↑π / ↑T * (↑n * ↑x) * Complex.I).exp = (2 * ↑π * Complex.I * ↑n * ↑x / ↑T).exp", " 2 * ↑π / ↑T * (↑n * ↑x) * Complex.I = 2 * ↑π * Complex.I * ↑n * ↑x / ↑...
import Mathlib.Data.Set.Lattice import Mathlib.Order.Hom.Lattice #align_import order.hom.complete_lattice from "leanprover-community/mathlib"@"9d684a893c52e1d6692a504a118bfccbae04feeb" open Function OrderDual Set variable {F α β γ δ : Type*} {ι : Sort*} {κ : ι → Sort*} -- Porting note: mathport made this & sInf...
Mathlib/Order/Hom/CompleteLattice.lean
142
143
theorem map_iInf₂ [InfSet α] [InfSet β] [sInfHomClass F α β] (f : F) (g : ∀ i, κ i → α) : f (⨅ (i) (j), g i j) = ⨅ (i) (j), f (g i j) := by
simp_rw [map_iInf]
[ " f (⨆ i, g i) = ⨆ i, f (g i)", " f (⨆ i, ⨆ j, g i j) = ⨆ i, ⨆ j, f (g i j)", " f (⨅ i, g i) = ⨅ i, f (g i)", " f (⨅ i, ⨅ j, g i j) = ⨅ i, ⨅ j, f (g i j)" ]
[ " f (⨆ i, g i) = ⨆ i, f (g i)", " f (⨆ i, ⨆ j, g i j) = ⨆ i, ⨆ j, f (g i j)", " f (⨅ i, g i) = ⨅ i, f (g i)" ]
import Mathlib.CategoryTheory.Monoidal.Free.Coherence import Mathlib.CategoryTheory.Monoidal.Discrete import Mathlib.CategoryTheory.Monoidal.NaturalTransformation import Mathlib.CategoryTheory.Monoidal.Opposite import Mathlib.Tactic.CategoryTheory.Coherence import Mathlib.CategoryTheory.CommSq #align_import category_...
Mathlib/CategoryTheory/Monoidal/Braided/Basic.lean
267
271
theorem braiding_leftUnitor_aux₁ (X : C) : (α_ (𝟙_ C) (𝟙_ C) X).hom ≫ (𝟙_ C ◁ (β_ X (𝟙_ C)).inv) ≫ (α_ _ X _).inv ≫ ((λ_ X).hom ▷ _) = ((λ_ _).hom ▷ X) ≫ (β_ X (𝟙_ C)).inv := by
coherence
[ " ∀ (X : C) {Y Z : C} (f : Y ⟶ Z), X ◁ f ≫ (β X Z).hom = (β X Y).hom ≫ f ▷ X", " X✝ ◁ f✝ ≫ (β X✝ Z✝).hom = (β X✝ Y✝).hom ≫ f✝ ▷ X✝", " F.map (X✝ ◁ f✝ ≫ (β X✝ Z✝).hom) = F.map ((β X✝ Y✝).hom ≫ f✝ ▷ X✝)", " F.μ X✝ Y✝ ≫ F.map (X✝ ◁ f✝ ≫ (β X✝ Z✝).hom) = F.μ X✝ Y✝ ≫ F.map ((β X✝ Y✝).hom ≫ f✝ ▷ X✝)", " ∀ {X Y : ...
[ " ∀ (X : C) {Y Z : C} (f : Y ⟶ Z), X ◁ f ≫ (β X Z).hom = (β X Y).hom ≫ f ▷ X", " X✝ ◁ f✝ ≫ (β X✝ Z✝).hom = (β X✝ Y✝).hom ≫ f✝ ▷ X✝", " F.map (X✝ ◁ f✝ ≫ (β X✝ Z✝).hom) = F.map ((β X✝ Y✝).hom ≫ f✝ ▷ X✝)", " F.μ X✝ Y✝ ≫ F.map (X✝ ◁ f✝ ≫ (β X✝ Z✝).hom) = F.μ X✝ Y✝ ≫ F.map ((β X✝ Y✝).hom ≫ f✝ ▷ X✝)", " ∀ {X Y : ...
import Mathlib.Algebra.GCDMonoid.Basic import Mathlib.Algebra.Order.Ring.Int import Mathlib.Data.Int.GCD instance : GCDMonoid ℕ where gcd := Nat.gcd lcm := Nat.lcm gcd_dvd_left := Nat.gcd_dvd_left gcd_dvd_right := Nat.gcd_dvd_right dvd_gcd := Nat.dvd_gcd gcd_mul_lcm a b := by rw [Nat.gcd_mul_lcm]; rfl ...
Mathlib/Algebra/GCDMonoid/Nat.lean
139
145
theorem exists_unit_of_abs (a : ℤ) : ∃ (u : ℤ) (_ : IsUnit u), (Int.natAbs a : ℤ) = u * a := by
cases' natAbs_eq a with h h · use 1, isUnit_one rw [← h, one_mul] · use -1, isUnit_one.neg rw [← neg_eq_iff_eq_neg.mpr h] simp only [neg_mul, one_mul]
[ " Associated (a.gcd b * a.lcm b) (a * b)", " Associated (a * b) (a * b)", " ∃ u, ∃ (_ : IsUnit u), ↑a.natAbs = u * a", " ↑a.natAbs = 1 * a", " ↑a.natAbs = -1 * a", " -a = -1 * a" ]
[ " Associated (a.gcd b * a.lcm b) (a * b)", " Associated (a * b) (a * b)" ]
import Mathlib.NumberTheory.NumberField.ClassNumber import Mathlib.NumberTheory.Cyclotomic.Rat import Mathlib.NumberTheory.Cyclotomic.Embeddings universe u namespace IsCyclotomicExtension.Rat open NumberField Polynomial InfinitePlace Nat Real cyclotomic variable (K : Type u) [Field K] [NumberField K]
Mathlib/NumberTheory/Cyclotomic/PID.lean
30
41
theorem three_pid [IsCyclotomicExtension {3} ℚ K] : IsPrincipalIdealRing (𝓞 K) := by
apply RingOfIntegers.isPrincipalIdealRing_of_abs_discr_lt rw [absdiscr_prime 3 K, IsCyclotomicExtension.finrank (n := 3) K (irreducible_rat (by norm_num)), nrComplexPlaces_eq_totient_div_two 3, totient_prime PNat.prime_three] simp only [Int.reduceNeg, PNat.val_ofNat, succ_sub_succ_eq_sub, tsub_zero, ze...
[ " IsPrincipalIdealRing (𝓞 K)", " ↑|discr K| <\n (2 * (π / 4) ^ NrComplexPlaces K *\n (↑(FiniteDimensional.finrank ℚ K) ^ FiniteDimensional.finrank ℚ K / ↑(FiniteDimensional.finrank ℚ K)!)) ^\n 2", " 0 < ↑3", " ↑|(-1) ^ ((↑3 - 1) / 2) * ↑↑3 ^ (↑3 - 2)| < (2 * (π / 4) ^ ((↑3 - 1) / 2) * (↑(↑3 - ...
[]
import Mathlib.Mathport.Rename #align_import init.meta.well_founded_tactics from "leanprover-community/lean"@"855e5b74e3a52a40552e8f067169d747d48743fd" -- Porting note: meta code used to implement well-founded recursion is not ported theorem Nat.lt_add_of_zero_lt_left (a b : Nat) (h : 0 < b) : a < a + b := show a...
Mathlib/Init/Meta/WellFoundedTactics.lean
18
18
theorem Nat.zero_lt_one_add (a : Nat) : 0 < 1 + a := by
simp [Nat.one_add]
[ " a + 0 < a + b", " 0 < b", " 0 < 1 + a" ]
[ " a + 0 < a + b", " 0 < b" ]
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
72
73
theorem norm_eq_one_of_not_exists_basis (h : ¬∃ s : Finset S, Nonempty (Basis s R S)) (x : S) : norm R x = 1 := by
rw [norm_apply, LinearMap.det]; split_ifs <;> trivial
[ " (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" ]
[]
import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Strict import Mathlib.Analysis.Normed.Order.Basic import Mathlib.Analysis.NormedSpace.AddTorsor import Mathlib.Analysis.NormedSpace.Pointwise import Mathlib.Analysis.NormedSpace.Ray #align_import analysis.convex.strict_convex_space from "leanprover-...
Mathlib/Analysis/Convex/StrictConvexSpace.lean
109
120
theorem StrictConvexSpace.of_norm_combo_ne_one (h : ∀ x y : E, ‖x‖ = 1 → ‖y‖ = 1 → x ≠ y → ∃ a b : ℝ, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ ‖a • x + b • y‖ ≠ 1) : StrictConvexSpace ℝ E := by
refine StrictConvexSpace.of_strictConvex_closed_unit_ball ℝ ((convex_closedBall _ _).strictConvex ?_) simp only [interior_closedBall _ one_ne_zero, closedBall_diff_ball, Set.Pairwise, frontier_closedBall _ one_ne_zero, mem_sphere_zero_iff_norm] intro x hx y hy hne rcases h x y hx hy hne with ⟨a, b, ha,...
[ " StrictConvex 𝕜 (closedBall x r)", " StrictConvex 𝕜 (x +ᵥ closedBall 0 r)", " StrictConvex 𝕜 (closedBall 0 r)", " StrictConvexSpace ℝ E", " (fun x y => ∃ c, (AffineMap.lineMap x y) c ∈ interior (closedBall 0 1)) x y", " ∃ c, (AffineMap.lineMap x y) c ∈ interior (closedBall 0 1)", " (AffineMap.lineMa...
[ " StrictConvex 𝕜 (closedBall x r)", " StrictConvex 𝕜 (x +ᵥ closedBall 0 r)", " StrictConvex 𝕜 (closedBall 0 r)", " StrictConvexSpace ℝ E", " (fun x y => ∃ c, (AffineMap.lineMap x y) c ∈ interior (closedBall 0 1)) x y", " ∃ c, (AffineMap.lineMap x y) c ∈ interior (closedBall 0 1)", " (AffineMap.lineMa...
import Mathlib.LinearAlgebra.AffineSpace.Independent import Mathlib.LinearAlgebra.Basis #align_import linear_algebra.affine_space.basis from "leanprover-community/mathlib"@"2de9c37fa71dde2f1c6feff19876dd6a7b1519f0" open Affine open Set universe u₁ u₂ u₃ u₄ structure AffineBasis (ι : Type u₁) (k : Type u₂) {V ...
Mathlib/LinearAlgebra/AffineSpace/Basis.lean
162
164
theorem coord_reindex (i : ι') : (b.reindex e).coord i = b.coord (e.symm i) := by
ext classical simp [AffineBasis.coord]
[ " affineSpan k (range id) = ⊤", " f = g", " { toFun := toFun✝, ind' := ind'✝, tot' := tot'✝ } = g", " { toFun := toFun✝¹, ind' := ind'✝¹, tot' := tot'✝¹ } = { toFun := toFun✝, ind' := ind'✝, tot' := tot'✝ }", " False", " affineSpan k (range (⇑b ∘ ⇑e.symm)) = ⊤", " affineSpan k (range ⇑b) = ⊤", " ⊤ ≤ S...
[ " affineSpan k (range id) = ⊤", " f = g", " { toFun := toFun✝, ind' := ind'✝, tot' := tot'✝ } = g", " { toFun := toFun✝¹, ind' := ind'✝¹, tot' := tot'✝¹ } = { toFun := toFun✝, ind' := ind'✝, tot' := tot'✝ }", " False", " affineSpan k (range (⇑b ∘ ⇑e.symm)) = ⊤", " affineSpan k (range ⇑b) = ⊤", " ⊤ ≤ S...
import Mathlib.GroupTheory.QuotientGroup import Mathlib.GroupTheory.Solvable import Mathlib.GroupTheory.PGroup import Mathlib.GroupTheory.Sylow import Mathlib.Data.Nat.Factorization.Basic import Mathlib.Tactic.TFAE #align_import group_theory.nilpotent from "leanprover-community/mathlib"@"2bbc7e3884ba234309d2a43b19144...
Mathlib/GroupTheory/Nilpotent.lean
210
214
theorem upperCentralSeries_mono : Monotone (upperCentralSeries G) := by
refine monotone_nat_of_le_succ ?_ intro n x hx y rw [mul_assoc, mul_assoc, ← mul_assoc y x⁻¹ y⁻¹] exact mul_mem hx (Normal.conj_mem (upperCentralSeries_normal G n) x⁻¹ (inv_mem hx) y)
[ " a * b * y * (a * b)⁻¹ * y⁻¹ ∈ H", " a * b * y * (a * b)⁻¹ * y⁻¹ = a * (b * y * b⁻¹) * a⁻¹ * (b * y * b⁻¹)⁻¹ * (b * y * b⁻¹ * y⁻¹)", " 1 * y * 1⁻¹ * y⁻¹ ∈ H", " x⁻¹ * y * x⁻¹⁻¹ * y⁻¹ ∈ H", " x⁻¹ * y * (x * y⁻¹) ∈ H", " upperCentralSeriesStep H = comap (mk' H) (center (G ⧸ H))", " x✝ ∈ upperCentralSerie...
[ " a * b * y * (a * b)⁻¹ * y⁻¹ ∈ H", " a * b * y * (a * b)⁻¹ * y⁻¹ = a * (b * y * b⁻¹) * a⁻¹ * (b * y * b⁻¹)⁻¹ * (b * y * b⁻¹ * y⁻¹)", " 1 * y * 1⁻¹ * y⁻¹ ∈ H", " x⁻¹ * y * x⁻¹⁻¹ * y⁻¹ ∈ H", " x⁻¹ * y * (x * y⁻¹) ∈ H", " upperCentralSeriesStep H = comap (mk' H) (center (G ⧸ H))", " x✝ ∈ upperCentralSerie...
import Mathlib.Data.Set.Image import Mathlib.Order.SuccPred.Relation import Mathlib.Topology.Clopen import Mathlib.Topology.Irreducible #align_import topology.connected from "leanprover-community/mathlib"@"d101e93197bb5f6ea89bd7ba386b7f7dff1f3903" open Set Function Topology TopologicalSpace Relation open scoped C...
Mathlib/Topology/Connected/Basic.lean
124
128
theorem isPreconnected_sUnion (x : α) (c : Set (Set α)) (H1 : ∀ s ∈ c, x ∈ s) (H2 : ∀ s ∈ c, IsPreconnected s) : IsPreconnected (⋃₀ c) := by
apply isPreconnected_of_forall x rintro y ⟨s, sc, ys⟩ exact ⟨s, subset_sUnion_of_mem sc, H1 s sc, ys, H2 s sc⟩
[ " IsPreconnected s", " (s ∩ (u ∩ v)).Nonempty", " x ∈ s", " s ⊆ v ∪ u", " IsPreconnected (⋃₀ c)", " ∀ y ∈ ⋃₀ c, ∃ t ⊆ ⋃₀ c, x ∈ t ∧ y ∈ t ∧ IsPreconnected t", " ∃ t ⊆ ⋃₀ c, x ∈ t ∧ y ∈ t ∧ IsPreconnected t" ]
[ " IsPreconnected s", " (s ∩ (u ∩ v)).Nonempty", " x ∈ s", " s ⊆ v ∪ u" ]
import Mathlib.Data.Finset.Prod import Mathlib.Data.Set.Finite #align_import data.finset.n_ary from "leanprover-community/mathlib"@"eba7871095e834365616b5e43c8c7bb0b37058d0" open Function Set variable {α α' β β' γ γ' δ δ' ε ε' ζ ζ' ν : Type*} namespace Finset variable [DecidableEq α'] [DecidableEq β'] [Decidabl...
Mathlib/Data/Finset/NAry.lean
77
79
theorem image₂_subset (hs : s ⊆ s') (ht : t ⊆ t') : image₂ f s t ⊆ image₂ f s' t' := by
rw [← coe_subset, coe_image₂, coe_image₂] exact image2_subset hs ht
[ " c ∈ image₂ f s t ↔ ∃ a ∈ s, ∃ b ∈ t, f a b = c", " (image₂ f s t).card = s.card * t.card ↔ InjOn (fun x => f x.1 x.2) (↑s ×ˢ ↑t)", " (image₂ f s t).card = (s ×ˢ t).card ↔ InjOn (fun x => f x.1 x.2) ↑(s ×ˢ t)", " f a b ∈ image₂ f s t ↔ a ∈ s ∧ b ∈ t", " image₂ f s t ⊆ image₂ f s' t'", " image2 f ↑s ↑t ⊆ ...
[ " c ∈ image₂ f s t ↔ ∃ a ∈ s, ∃ b ∈ t, f a b = c", " (image₂ f s t).card = s.card * t.card ↔ InjOn (fun x => f x.1 x.2) (↑s ×ˢ ↑t)", " (image₂ f s t).card = (s ×ˢ t).card ↔ InjOn (fun x => f x.1 x.2) ↑(s ×ˢ t)", " f a b ∈ image₂ f s t ↔ a ∈ s ∧ b ∈ t" ]
import Mathlib.Algebra.BigOperators.Ring import Mathlib.Combinatorics.SimpleGraph.Dart import Mathlib.Combinatorics.SimpleGraph.Finite import Mathlib.Data.ZMod.Parity #align_import combinatorics.simple_graph.degree_sum from "leanprover-community/mathlib"@"90659cbe25e59ec302e2fb92b00e9732160cc620" open Finset nam...
Mathlib/Combinatorics/SimpleGraph/DegreeSum.lean
73
76
theorem dart_card_eq_sum_degrees : Fintype.card G.Dart = ∑ v, G.degree v := by
haveI := Classical.decEq V simp only [← card_univ, ← dart_fst_fiber_card_eq_degree] exact card_eq_sum_card_fiberwise (by simp)
[ " filter (fun d => d.toProd.1 = v) univ = image (G.dartOfNeighborSet v) univ", " d ∈ filter (fun d => d.toProd.1 = v) univ ↔ d ∈ image (G.dartOfNeighborSet v) univ", " d.toProd.1 = v ↔ ∃ x, ∃ (h : x ∈ G.neighborSet v), G.dartOfNeighborSet v ⟨x, h⟩ = d", " d.toProd.1 = v → ∃ x, ∃ (h : x ∈ G.neighborSet v), G.d...
[ " filter (fun d => d.toProd.1 = v) univ = image (G.dartOfNeighborSet v) univ", " d ∈ filter (fun d => d.toProd.1 = v) univ ↔ d ∈ image (G.dartOfNeighborSet v) univ", " d.toProd.1 = v ↔ ∃ x, ∃ (h : x ∈ G.neighborSet v), G.dartOfNeighborSet v ⟨x, h⟩ = d", " d.toProd.1 = v → ∃ x, ∃ (h : x ∈ G.neighborSet v), G.d...
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
79
85
theorem IsCompact.inter_right (hs : IsCompact s) (ht : IsClosed t) : IsCompact (s ∩ t) := by
intro f hnf hstf obtain ⟨x, hsx, hx⟩ : ∃ x ∈ s, ClusterPt x f := hs (le_trans hstf (le_principal_iff.2 inter_subset_left)) have : x ∈ t := ht.mem_of_nhdsWithin_neBot <| hx.mono <| le_trans hstf (le_principal_iff.2 inter_subset_right) exact ⟨x, ⟨hsx, this⟩, hx⟩
[ " sᶜ ∈ f", " ∃ x ∈ s, sᶜ ∉ 𝓝 x ⊓ f", " ∃ x ∈ s, (𝓝 x ⊓ (f ⊓ 𝓟 s)).NeBot", " sᶜ ∈ 𝓝 x ⊓ f", " {x | x ∈ s → x ∈ t} ∩ tᶜ ⊆ sᶜ", " False", " p s", " ∀ x ∈ s, ∃ t ∈ 𝓝[s] x, tᶜ ∈ f", " IsCompact (s ∩ t)", " ∃ x ∈ s ∩ t, ClusterPt x f" ]
[ " sᶜ ∈ f", " ∃ x ∈ s, sᶜ ∉ 𝓝 x ⊓ f", " ∃ x ∈ s, (𝓝 x ⊓ (f ⊓ 𝓟 s)).NeBot", " sᶜ ∈ 𝓝 x ⊓ f", " {x | x ∈ s → x ∈ t} ∩ tᶜ ⊆ sᶜ", " False", " p s", " ∀ x ∈ s, ∃ t ∈ 𝓝[s] x, tᶜ ∈ f" ]
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
351
353
theorem hnot_symmDiff_self : (¬a) ∆ a = ⊤ := by
rw [eq_top_iff, symmDiff, hnot_sdiff, sup_sdiff_self] exact Codisjoint.top_le codisjoint_hnot_left
[ " ∀ (p q : Bool), p ∆ q = xor p q", " a ∆ ⊤ = ¬a", " ⊤ ∆ a = ¬a", " (¬a) ∆ a = ⊤", " ⊤ ≤ ¬a ⊔ a" ]
[ " ∀ (p q : Bool), p ∆ q = xor p q", " a ∆ ⊤ = ¬a", " ⊤ ∆ a = ¬a" ]
import Mathlib.Topology.Algebra.GroupWithZero import Mathlib.Topology.Order.OrderClosed #align_import topology.algebra.with_zero_topology from "leanprover-community/mathlib"@"3e0c4d76b6ebe9dfafb67d16f7286d2731ed6064" open Topology Filter TopologicalSpace Filter Set Function namespace WithZeroTopology variable {α...
Mathlib/Topology/Algebra/WithZeroTopology.lean
106
106
theorem singleton_mem_nhds_of_ne_zero (h : γ ≠ 0) : ({γ} : Set Γ₀) ∈ 𝓝 (γ : Γ₀) := by
simp [h]
[ " 𝓝 = update pure 0 (⨅ γ, ⨅ (_ : γ ≠ 0), 𝓟 (Iio γ))", " pure 0 ≤ ⨅ γ, ⨅ (_ : γ ≠ 0), 𝓟 (Iio γ)", " 𝓝 0 = ⨅ γ, ⨅ (_ : γ ≠ 0), 𝓟 (Iio γ)", " (𝓝 0).HasBasis (fun γ => γ ≠ 0) Iio", " (⨅ γ, ⨅ (_ : γ ≠ 0), 𝓟 (Iio γ)).HasBasis (fun γ => γ ≠ 0) Iio", " DirectedOn ((fun γ => Iio γ) ⁻¹'o fun x x_1 => x ≥ x_1...
[ " 𝓝 = update pure 0 (⨅ γ, ⨅ (_ : γ ≠ 0), 𝓟 (Iio γ))", " pure 0 ≤ ⨅ γ, ⨅ (_ : γ ≠ 0), 𝓟 (Iio γ)", " 𝓝 0 = ⨅ γ, ⨅ (_ : γ ≠ 0), 𝓟 (Iio γ)", " (𝓝 0).HasBasis (fun γ => γ ≠ 0) Iio", " (⨅ γ, ⨅ (_ : γ ≠ 0), 𝓟 (Iio γ)).HasBasis (fun γ => γ ≠ 0) Iio", " DirectedOn ((fun γ => Iio γ) ⁻¹'o fun x x_1 => x ≥ x_1...
import Mathlib.Data.Countable.Basic import Mathlib.Data.Fin.VecNotation import Mathlib.Order.Disjointed import Mathlib.MeasureTheory.OuterMeasure.Defs #align_import measure_theory.measure.outer_measure from "leanprover-community/mathlib"@"343e80208d29d2d15f8050b929aa50fe4ce71b55" noncomputable section open Set F...
Mathlib/MeasureTheory/OuterMeasure/Basic.lean
72
76
theorem measure_biUnion_le {I : Set ι} (μ : F) (hI : I.Countable) (s : ι → Set α) : μ (⋃ i ∈ I, s i) ≤ ∑' i : I, μ (s i) := by
have := hI.to_subtype rw [biUnion_eq_iUnion] apply measure_iUnion_le
[ " μ (⋃ i, s i) ≤ ∑' (i : ι), μ (s i)", " (fun x x_1 => x ≤ x_1) (μ (⨆ i, t i)) (∑' (i : ℕ), μ (t i))", " μ (⋃ i, t i) = μ (⋃ i, disjointed t i)", " ∑' (i : ℕ), μ (disjointed t i) ≤ ∑' (i : ℕ), μ (t i)", " disjointed t a✝ ⊆ t a✝", " μ (⋃ i ∈ I, s i) ≤ ∑' (i : ↑I), μ (s ↑i)", " μ (⋃ x, s ↑x) ≤ ∑' (i : ↑I)...
[ " μ (⋃ i, s i) ≤ ∑' (i : ι), μ (s i)", " (fun x x_1 => x ≤ x_1) (μ (⨆ i, t i)) (∑' (i : ℕ), μ (t i))", " μ (⋃ i, t i) = μ (⋃ i, disjointed t i)", " ∑' (i : ℕ), μ (disjointed t i) ≤ ∑' (i : ℕ), μ (t i)", " disjointed t a✝ ⊆ t a✝" ]
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
127
140
theorem eqId_iff_eq : A.EqId ↔ A.1 = Δ := by
constructor · intro h dsimp at h rw [h] rfl · intro h rcases A with ⟨_, ⟨f, hf⟩⟩ simp only at h subst h refine ext _ _ rfl ?_ haveI := hf simp only [eqToHom_refl, comp_id] exact eq_id_of_epi f
[ " A₁.fst.unop = A₂.fst.unop", " A₁ = A₂", " ⟨Δ₁, ⟨α₁, hα₁⟩⟩ = A₂", " ⟨Δ₁, ⟨α₁, hα₁⟩⟩ = ⟨Δ₂, ⟨α₂, hα₂⟩⟩", " ⟨Δ₁, ⟨α₁, hα₁⟩⟩ = ⟨Δ₁, ⟨α₂, hα₂⟩⟩", " Function.Injective fun A => ⟨⟨A.fst.unop.len, ⋯⟩, ⇑(Hom.toOrderHom A.e)⟩", " ⟨Δ₁, α₁⟩ = ⟨Δ₂, α₂⟩", " ⟨{ unop := Δ₁ }, α₁⟩ = ⟨Δ₂, α₂⟩", " ⟨{ unop := Δ₁ }, α...
[ " A₁.fst.unop = A₂.fst.unop", " A₁ = A₂", " ⟨Δ₁, ⟨α₁, hα₁⟩⟩ = A₂", " ⟨Δ₁, ⟨α₁, hα₁⟩⟩ = ⟨Δ₂, ⟨α₂, hα₂⟩⟩", " ⟨Δ₁, ⟨α₁, hα₁⟩⟩ = ⟨Δ₁, ⟨α₂, hα₂⟩⟩", " Function.Injective fun A => ⟨⟨A.fst.unop.len, ⋯⟩, ⇑(Hom.toOrderHom A.e)⟩", " ⟨Δ₁, α₁⟩ = ⟨Δ₂, α₂⟩", " ⟨{ unop := Δ₁ }, α₁⟩ = ⟨Δ₂, α₂⟩", " ⟨{ unop := Δ₁ }, α...
import Mathlib.Analysis.InnerProductSpace.Dual import Mathlib.Analysis.InnerProductSpace.PiL2 #align_import analysis.inner_product_space.adjoint from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f6dddd2b4f5" noncomputable section open RCLike open scoped ComplexConjugate variable {𝕜 E F G : Type...
Mathlib/Analysis/InnerProductSpace/Adjoint.lean
99
107
theorem adjointAux_norm (A : E →L[𝕜] F) : ‖adjointAux A‖ = ‖A‖ := by
refine le_antisymm ?_ ?_ · refine ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _) fun x => ?_ rw [adjointAux_apply, LinearIsometryEquiv.norm_map] exact toSesqForm_apply_norm_le · nth_rw 1 [← adjointAux_adjointAux A] refine ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _) fun x => ?_ rw...
[ " ⟪(adjointAux A) y, x⟫_𝕜 = ⟪y, A x⟫_𝕜", " ⟪x, (adjointAux A) y⟫_𝕜 = ⟪A x, y⟫_𝕜", " adjointAux (adjointAux A) = A", " (adjointAux (adjointAux A)) v = A v", " ⟪w, (adjointAux (adjointAux A)) v⟫_𝕜 = ⟪w, A v⟫_𝕜", " ‖adjointAux A‖ = ‖A‖", " ‖adjointAux A‖ ≤ ‖A‖", " ‖(adjointAux A) x‖ ≤ ‖A‖ * ‖x‖", ...
[ " ⟪(adjointAux A) y, x⟫_𝕜 = ⟪y, A x⟫_𝕜", " ⟪x, (adjointAux A) y⟫_𝕜 = ⟪A x, y⟫_𝕜", " adjointAux (adjointAux A) = A", " (adjointAux (adjointAux A)) v = A v", " ⟪w, (adjointAux (adjointAux A)) v⟫_𝕜 = ⟪w, A v⟫_𝕜" ]
import Mathlib.Combinatorics.Quiver.Path import Mathlib.Combinatorics.Quiver.Push #align_import combinatorics.quiver.symmetric from "leanprover-community/mathlib"@"706d88f2b8fdfeb0b22796433d7a6c1a010af9f2" universe v u w v' namespace Quiver -- Porting note: no hasNonemptyInstance linter yet def Symmetrify (V : ...
Mathlib/Combinatorics/Quiver/Symmetric.lean
188
194
theorem lift_spec [HasReverse V'] (φ : Prefunctor V V') : Symmetrify.of.comp (Symmetrify.lift φ) = φ := by
fapply Prefunctor.ext · rintro X rfl · rintro X Y f rfl
[ " reverse (reverse f) = f", " reverse f = reverse g ↔ f = g", " reverse f = reverse g → f = g", " f = g", " f = g → reverse f = reverse g", " reverse f = reverse g", " f = reverse g ↔ reverse f = g", " of ⋙q lift φ = φ", " ∀ (X : V), (of ⋙q lift φ).obj X = φ.obj X", " (of ⋙q lift φ).obj X = φ.obj ...
[ " reverse (reverse f) = f", " reverse f = reverse g ↔ f = g", " reverse f = reverse g → f = g", " f = g", " f = g → reverse f = reverse g", " reverse f = reverse g", " f = reverse g ↔ reverse f = g" ]
import Mathlib.Topology.Separation #align_import topology.sober from "leanprover-community/mathlib"@"0a0ec35061ed9960bf0e7ffb0335f44447b58977" open Set variable {α β : Type*} [TopologicalSpace α] [TopologicalSpace β] section genericPoint def IsGenericPoint (x : α) (S : Set α) : Prop := closure ({x} : Set α)...
Mathlib/Topology/Sober.lean
96
97
theorem mem_closed_set_iff (h : IsGenericPoint x S) (hZ : IsClosed Z) : x ∈ Z ↔ S ⊆ Z := by
rw [← h.def, hZ.closure_subset_iff, singleton_subset_iff]
[ " IsGenericPoint x S ↔ ∀ (y : α), x ⤳ y ↔ y ∈ S", " Disjoint S U ↔ x ∉ U", " x ∈ Z ↔ S ⊆ Z" ]
[ " IsGenericPoint x S ↔ ∀ (y : α), x ⤳ y ↔ y ∈ S", " Disjoint S U ↔ x ∉ U" ]
import Mathlib.Data.Int.Bitwise import Mathlib.Data.Int.Order.Lemmas import Mathlib.Data.Set.Function import Mathlib.Order.Interval.Set.Basic #align_import data.int.lemmas from "leanprover-community/mathlib"@"09597669f02422ed388036273d8848119699c22f" open Nat namespace Int theorem le_natCast_sub (m n : ℕ) : (m ...
Mathlib/Data/Int/Lemmas.lean
64
67
theorem natAbs_inj_of_nonpos_of_nonpos {a b : ℤ} (ha : a ≤ 0) (hb : b ≤ 0) : natAbs a = natAbs b ↔ a = b := by
simpa only [Int.natAbs_neg, neg_inj] using natAbs_inj_of_nonneg_of_nonneg (neg_nonneg_of_nonpos ha) (neg_nonneg_of_nonpos hb)
[ " ↑m - ↑n ≤ ↑(m - n)", " 0 ≤ ↑n", " a.natAbs = b.natAbs ↔ a ^ 2 = b ^ 2", " a.natAbs = b.natAbs ↔ a * a = b * b", " a.natAbs < b.natAbs ↔ a ^ 2 < b ^ 2", " a.natAbs < b.natAbs ↔ a * a < b * b", " a.natAbs ≤ b.natAbs ↔ a ^ 2 ≤ b ^ 2", " a.natAbs ≤ b.natAbs ↔ a * a ≤ b * b", " a.natAbs = b.natAbs ↔ a ...
[ " ↑m - ↑n ≤ ↑(m - n)", " 0 ≤ ↑n", " a.natAbs = b.natAbs ↔ a ^ 2 = b ^ 2", " a.natAbs = b.natAbs ↔ a * a = b * b", " a.natAbs < b.natAbs ↔ a ^ 2 < b ^ 2", " a.natAbs < b.natAbs ↔ a * a < b * b", " a.natAbs ≤ b.natAbs ↔ a ^ 2 ≤ b ^ 2", " a.natAbs ≤ b.natAbs ↔ a * a ≤ b * b", " a.natAbs = b.natAbs ↔ a ...
import Mathlib.Data.Fintype.Option import Mathlib.Data.Fintype.Perm import Mathlib.Data.Fintype.Prod import Mathlib.GroupTheory.Perm.Sign import Mathlib.Logic.Equiv.Option #align_import group_theory.perm.option from "leanprover-community/mathlib"@"c3019c79074b0619edb4b27553a91b2e82242395" open Equiv @[simp] theo...
Mathlib/GroupTheory/Perm/Option.lean
47
58
theorem map_equiv_removeNone {α : Type*} [DecidableEq α] (σ : Perm (Option α)) : (removeNone σ).optionCongr = swap none (σ none) * σ := by
ext1 x have : Option.map (⇑(removeNone σ)) x = (swap none (σ none)) (σ x) := by cases' x with x · simp · cases h : σ (some _) · simp [removeNone_none _ h] · have hn : σ (some x) ≠ none := by simp [h] have hσn : σ (some x) ≠ σ none := σ.injective.ne (by simp) simp [removeNone...
[ " optionCongr (swap x y) = swap (some x) (some y)", " a✝ ∈ (optionCongr (swap x y)) none ↔ a✝ ∈ (swap (some x) (some y)) none", " a✝ ∈ (optionCongr (swap x y)) (some i) ↔ a✝ ∈ (swap (some x) (some y)) (some i)", " Perm.sign (optionCongr e) = Perm.sign e", " Perm.sign (optionCongr 1) = Perm.sign 1", " ∀ (f...
[ " optionCongr (swap x y) = swap (some x) (some y)", " a✝ ∈ (optionCongr (swap x y)) none ↔ a✝ ∈ (swap (some x) (some y)) none", " a✝ ∈ (optionCongr (swap x y)) (some i) ↔ a✝ ∈ (swap (some x) (some y)) (some i)", " Perm.sign (optionCongr e) = Perm.sign e", " Perm.sign (optionCongr 1) = Perm.sign 1", " ∀ (f...
import Mathlib.Data.List.Cycle import Mathlib.GroupTheory.Perm.Cycle.Type import Mathlib.GroupTheory.Perm.List #align_import group_theory.perm.cycle.concrete from "leanprover-community/mathlib"@"00638177efd1b2534fc5269363ebf42a7871df9a" open Equiv Equiv.Perm List variable {α : Type*} namespace Equiv.Perm secti...
Mathlib/GroupTheory/Perm/Cycle/Concrete.lean
229
229
theorem length_toList : length (toList p x) = (cycleOf p x).support.card := by
simp [toList]
[ " toList 1 x = []", " p.toList x = [] ↔ x ∉ p.support", " (p.toList x).length = (p.cycleOf x).support.card" ]
[ " toList 1 x = []", " p.toList x = [] ↔ x ∉ p.support" ]
import Mathlib.Order.Interval.Set.UnorderedInterval import Mathlib.Algebra.Order.Interval.Set.Monoid import Mathlib.Data.Set.Pointwise.Basic import Mathlib.Algebra.Order.Field.Basic import Mathlib.Algebra.Order.Group.MinMax #align_import data.set.pointwise.interval from "leanprover-community/mathlib"@"2196ab363eb097c...
Mathlib/Data/Set/Pointwise/Interval.lean
46
48
theorem Icc_mul_Icc_subset' (a b c d : α) : Icc a b * Icc c d ⊆ Icc (a * c) (b * d) := by
rintro x ⟨y, ⟨hya, hyb⟩, z, ⟨hzc, hzd⟩, rfl⟩ exact ⟨mul_le_mul' hya hzc, mul_le_mul' hyb hzd⟩
[ " Icc a b * Icc c d ⊆ Icc (a * c) (b * d)", " (fun x x_1 => x * x_1) y z ∈ Icc (a * c) (b * d)" ]
[]
import Mathlib.Order.Cover import Mathlib.Order.Interval.Finset.Defs #align_import data.finset.locally_finite from "leanprover-community/mathlib"@"442a83d738cb208d3600056c489be16900ba701d" assert_not_exists MonoidWithZero assert_not_exists Finset.sum open Function OrderDual open FinsetInterval variable {ι α : T...
Mathlib/Order/Interval/Finset/Basic.lean
134
134
theorem left_mem_Icc : a ∈ Icc a b ↔ a ≤ b := by
simp only [mem_Icc, true_and_iff, le_rfl]
[ " (Icc a b).Nonempty ↔ a ≤ b", " (Ico a b).Nonempty ↔ a < b", " (Ioc a b).Nonempty ↔ a < b", " (Ioo a b).Nonempty ↔ a < b", " Icc a b = ∅ ↔ ¬a ≤ b", " Ico a b = ∅ ↔ ¬a < b", " Ioc a b = ∅ ↔ ¬a < b", " Ioo a b = ∅ ↔ ¬a < b", " a ∈ Icc a b ↔ a ≤ b" ]
[ " (Icc a b).Nonempty ↔ a ≤ b", " (Ico a b).Nonempty ↔ a < b", " (Ioc a b).Nonempty ↔ a < b", " (Ioo a b).Nonempty ↔ a < b", " Icc a b = ∅ ↔ ¬a ≤ b", " Ico a b = ∅ ↔ ¬a < b", " Ioc a b = ∅ ↔ ¬a < b", " Ioo a b = ∅ ↔ ¬a < b" ]
import Mathlib.MeasureTheory.PiSystem import Mathlib.Order.OmegaCompletePartialOrder import Mathlib.Topology.Constructions import Mathlib.MeasureTheory.MeasurableSpace.Basic open Set namespace MeasureTheory variable {ι : Type _} {α : ι → Type _} section cylinder def cylinder (s : Finset ι) (S : Set (∀ i : s, α...
Mathlib/MeasureTheory/Constructions/Cylinders.lean
217
229
theorem eq_of_cylinder_eq_of_subset [h_nonempty : Nonempty (∀ i, α i)] {I J : Finset ι} {S : Set (∀ i : I, α i)} {T : Set (∀ i : J, α i)} (h_eq : cylinder I S = cylinder J T) (hJI : J ⊆ I) : S = (fun f : ∀ i : I, α i ↦ fun j : J ↦ f ⟨j, hJI j.prop⟩) ⁻¹' T := by
rw [Set.ext_iff] at h_eq simp only [mem_cylinder] at h_eq ext1 f simp only [mem_preimage] classical specialize h_eq fun i ↦ if hi : i ∈ I then f ⟨i, hi⟩ else h_nonempty.some i have h_mem : ∀ j : J, ↑j ∈ I := fun j ↦ hJI j.prop simp only [Finset.coe_mem, dite_true, h_mem] at h_eq exact h_eq
[ " cylinder s ∅ = ∅", " cylinder s univ = univ", " cylinder s S = ∅ ↔ S = ∅", " cylinder s S = ∅", " S = ∅", " False", " f' ∈ cylinder s S", " (fun i => f' ↑i) ∈ S", " cylinder s₁ S₁ ∩ cylinder s₂ S₂ = cylinder (s₁ ∪ s₂) ((fun f j => f ⟨↑j, ⋯⟩) ⁻¹' S₁ ∩ (fun f j => f ⟨↑j, ⋯⟩) ⁻¹' S₂)", " f ∈ cylind...
[ " cylinder s ∅ = ∅", " cylinder s univ = univ", " cylinder s S = ∅ ↔ S = ∅", " cylinder s S = ∅", " S = ∅", " False", " f' ∈ cylinder s S", " (fun i => f' ↑i) ∈ S", " cylinder s₁ S₁ ∩ cylinder s₂ S₂ = cylinder (s₁ ∪ s₂) ((fun f j => f ⟨↑j, ⋯⟩) ⁻¹' S₁ ∩ (fun f j => f ⟨↑j, ⋯⟩) ⁻¹' S₂)", " f ∈ cylind...
import Mathlib.Analysis.Convex.Slope import Mathlib.Analysis.SpecialFunctions.Pow.Real import Mathlib.Tactic.LinearCombination #align_import analysis.convex.specific_functions.basic from "leanprover-community/mathlib"@"8f9fea08977f7e450770933ee6abb20733b47c92" open Real Set NNReal
Mathlib/Analysis/Convex/SpecificFunctions/Basic.lean
39
58
theorem strictConvexOn_exp : StrictConvexOn ℝ univ exp := by
apply strictConvexOn_of_slope_strict_mono_adjacent convex_univ rintro x y z - - hxy hyz trans exp y · have h1 : 0 < y - x := by linarith have h2 : x - y < 0 := by linarith rw [div_lt_iff h1] calc exp y - exp x = exp y - exp y * exp (x - y) := by rw [← exp_add]; ring_nf _ = exp y * (1 - ...
[ " StrictConvexOn ℝ univ rexp", " ∀ {x y z : ℝ}, x ∈ univ → z ∈ univ → x < y → y < z → (rexp y - rexp x) / (y - x) < (rexp z - rexp y) / (z - y)", " (rexp y - rexp x) / (y - x) < (rexp z - rexp y) / (z - y)", " (rexp y - rexp x) / (y - x) < rexp y", " 0 < y - x", " x - y < 0", " rexp y - rexp x < rexp y ...
[]
import Mathlib.Data.Multiset.Dedup #align_import data.multiset.finset_ops from "leanprover-community/mathlib"@"c227d107bbada5d0d9d20287e3282c0a7f1651a0" namespace Multiset open List variable {α : Type*} [DecidableEq α] {s : Multiset α} def ndinsert (a : α) (s : Multiset α) : Multiset α := Quot.liftOn s (...
Mathlib/Data/Multiset/FinsetOps.lean
127
129
theorem disjoint_ndinsert_right {a : α} {s t : Multiset α} : Disjoint s (ndinsert a t) ↔ a ∉ s ∧ Disjoint s t := by
rw [disjoint_comm, disjoint_ndinsert_left]; tauto
[ " card (ndinsert a s) = card s", " card (ndinsert a s) = card s + 1", " (a ::ₘ s).dedup = ndinsert a s.dedup", " ndinsert a s ≤ t", " s ≤ t", " ∀ (t : Multiset α) (eq : ndinsert a s = t), t.attach = ndinsert ⟨a, ⋯⟩ (map (fun p => ⟨↑p, ⋯⟩) s.attach)", " t.attach = ndinsert ⟨a, ⋯⟩ (map (fun p => ⟨↑p, ⋯⟩) ...
[ " card (ndinsert a s) = card s", " card (ndinsert a s) = card s + 1", " (a ::ₘ s).dedup = ndinsert a s.dedup", " ndinsert a s ≤ t", " s ≤ t", " ∀ (t : Multiset α) (eq : ndinsert a s = t), t.attach = ndinsert ⟨a, ⋯⟩ (map (fun p => ⟨↑p, ⋯⟩) s.attach)", " t.attach = ndinsert ⟨a, ⋯⟩ (map (fun p => ⟨↑p, ⋯⟩) ...
import Mathlib.CategoryTheory.Subobject.Lattice #align_import category_theory.subobject.limits from "leanprover-community/mathlib"@"956af7c76589f444f2e1313911bad16366ea476d" universe v u noncomputable section open CategoryTheory CategoryTheory.Category CategoryTheory.Limits CategoryTheory.Subobject Opposite var...
Mathlib/CategoryTheory/Subobject/Limits.lean
369
371
theorem imageSubobject_zero_arrow : (imageSubobject (0 : X ⟶ Y)).arrow = 0 := by
rw [← imageSubobject_arrow] simp
[ " (imageSubobjectIso f).hom ≫ image.ι f = (imageSubobject f).arrow", " (imageSubobjectIso f).inv ≫ (imageSubobject f).arrow = image.ι f", " Epi (factorThruImageSubobject f)", " Epi (factorThruImage f ≫ (imageSubobjectIso f).inv)", " factorThruImageSubobject f ≫ (imageSubobject f).arrow = f", " factorThruI...
[ " (imageSubobjectIso f).hom ≫ image.ι f = (imageSubobject f).arrow", " (imageSubobjectIso f).inv ≫ (imageSubobject f).arrow = image.ι f", " Epi (factorThruImageSubobject f)", " Epi (factorThruImage f ≫ (imageSubobjectIso f).inv)", " factorThruImageSubobject f ≫ (imageSubobject f).arrow = f", " factorThruI...
import Mathlib.LinearAlgebra.Eigenspace.Basic import Mathlib.FieldTheory.IsAlgClosed.Spectrum #align_import linear_algebra.eigenspace.is_alg_closed from "leanprover-community/mathlib"@"6b0169218d01f2837d79ea2784882009a0da1aa1" open Set Function Module FiniteDimensional variable {K V : Type*} [Field K] [AddCommGro...
Mathlib/LinearAlgebra/Eigenspace/Triangularizable.lean
51
54
theorem exists_eigenvalue [IsAlgClosed K] [FiniteDimensional K V] [Nontrivial V] (f : End K V) : ∃ c : K, f.HasEigenvalue c := by
simp_rw [hasEigenvalue_iff_mem_spectrum] exact spectrum.nonempty_of_isAlgClosed_of_finiteDimensional K f
[ " ∃ c, f.HasEigenvalue c", " ∃ c, c ∈ spectrum K f" ]
[]
import Mathlib.Data.ZMod.Basic import Mathlib.Algebra.Group.Nat import Mathlib.Tactic.IntervalCases import Mathlib.GroupTheory.SpecificGroups.Dihedral import Mathlib.GroupTheory.SpecificGroups.Cyclic #align_import group_theory.specific_groups.quaternion from "leanprover-community/mathlib"@"879155bff5af618b9062cbb2915...
Mathlib/GroupTheory/SpecificGroups/Quaternion.lean
180
185
theorem a_one_pow (k : ℕ) : (a 1 : QuaternionGroup n) ^ k = a k := by
induction' k with k IH · rw [Nat.cast_zero]; rfl · rw [pow_succ, IH, a_mul_a] congr 1 norm_cast
[ " ∀ (a b c : QuaternionGroup n), a * b * c = a * (b * c)", " a i * a j * a k = a i * (a j * a k)", " a i * a j * xa k = a i * (a j * xa k)", " a i * xa j * a k = a i * (xa j * a k)", " a i * xa j * xa k = a i * (xa j * xa k)", " xa i * a j * a k = xa i * (a j * a k)", " xa i * a j * xa k = xa i * (a j *...
[ " ∀ (a b c : QuaternionGroup n), a * b * c = a * (b * c)", " a i * a j * a k = a i * (a j * a k)", " a i * a j * xa k = a i * (a j * xa k)", " a i * xa j * a k = a i * (xa j * a k)", " a i * xa j * xa k = a i * (xa j * xa k)", " xa i * a j * a k = xa i * (a j * a k)", " xa i * a j * xa k = xa i * (a j *...
import Mathlib.Dynamics.Ergodic.MeasurePreserving import Mathlib.LinearAlgebra.Determinant import Mathlib.LinearAlgebra.Matrix.Diagonal import Mathlib.LinearAlgebra.Matrix.Transvection import Mathlib.MeasureTheory.Group.LIntegral import Mathlib.MeasureTheory.Integral.Marginal import Mathlib.MeasureTheory.Measure.Stiel...
Mathlib/MeasureTheory/Measure/Lebesgue/Basic.lean
118
123
theorem volume_emetric_ball (a : ℝ) (r : ℝ≥0∞) : volume (EMetric.ball a r) = 2 * r := by
rcases eq_or_ne r ∞ with (rfl | hr) · rw [Metric.emetric_ball_top, volume_univ, two_mul, _root_.top_add] · lift r to ℝ≥0 using hr rw [Metric.emetric_ball_nnreal, volume_ball, two_mul, ← NNReal.coe_add, ENNReal.ofReal_coe_nnreal, ENNReal.coe_add, two_mul]
[ " volume = StieltjesFunction.id.measure", " StieltjesFunction.id.measure (Ioo ↑p ↑q) = (Measure.map (fun x => a + x) StieltjesFunction.id.measure) (Ioo ↑p ↑q)", " StieltjesFunction.id.measure ↑(stdOrthonormalBasis ℝ ℝ).toBasis.parallelepiped = 1", " StieltjesFunction.id.measure (parallelepiped ⇑(stdOrthonorma...
[ " volume = StieltjesFunction.id.measure", " StieltjesFunction.id.measure (Ioo ↑p ↑q) = (Measure.map (fun x => a + x) StieltjesFunction.id.measure) (Ioo ↑p ↑q)", " StieltjesFunction.id.measure ↑(stdOrthonormalBasis ℝ ℝ).toBasis.parallelepiped = 1", " StieltjesFunction.id.measure (parallelepiped ⇑(stdOrthonorma...
import Mathlib.CategoryTheory.Limits.Preserves.Basic #align_import category_theory.limits.preserves.limits from "leanprover-community/mathlib"@"e97cf15cd1aec9bd5c193b2ffac5a6dc9118912b" universe w' w v₁ v₂ u₁ u₂ noncomputable section namespace CategoryTheory open Category Limits variable {C : Type u₁} [Catego...
Mathlib/CategoryTheory/Limits/Preserves/Limits.lean
69
73
theorem lift_comp_preservesLimitsIso_hom (t : Cone F) : G.map (limit.lift _ t) ≫ (preservesLimitIso G F).hom = limit.lift (F ⋙ G) (G.mapCone _) := by
ext simp [← G.map_comp]
[ " ∀ (j : J), G.map (t.lift c₂) ≫ (G.mapCone c₁).π.app j = (G.mapCone c₂).π.app j", " G.map (limit.lift F t) ≫ (preservesLimitIso G F).hom = limit.lift (F ⋙ G) (G.mapCone t)", " (G.map (limit.lift F t) ≫ (preservesLimitIso G F).hom) ≫ limit.π (F ⋙ G) j✝ =\n limit.lift (F ⋙ G) (G.mapCone t) ≫ limit.π (F ⋙ G) j...
[ " ∀ (j : J), G.map (t.lift c₂) ≫ (G.mapCone c₁).π.app j = (G.mapCone c₂).π.app j" ]
import Mathlib.Algebra.Order.Floor import Mathlib.Data.Rat.Cast.Order import Mathlib.Tactic.FieldSimp import Mathlib.Tactic.Ring #align_import data.rat.floor from "leanprover-community/mathlib"@"e1bccd6e40ae78370f01659715d3c948716e3b7e" open Int namespace Rat variable {α : Type*} [LinearOrderedField α] [FloorRi...
Mathlib/Data/Rat/Floor.lean
86
87
theorem cast_fract (x : ℚ) : (↑(fract x) : α) = fract (x : α) := by
simp only [fract, cast_sub, cast_intCast, floor_cast]
[ " a.floor = a.num / ↑a.den", " (if a.den = 1 then a.num else a.num / ↑a.den) = a.num / ↑a.den", " a.num = a.num / ↑a.den", " a.num / ↑a.den = a.num / ↑a.den", " z ≤ { num := n, den := d, den_nz := h, reduced := c }.floor ↔ ↑z ≤ { num := n, den := d, den_nz := h, reduced := c }", " z ≤ n / ↑d ↔ ↑z ≤ { num ...
[ " a.floor = a.num / ↑a.den", " (if a.den = 1 then a.num else a.num / ↑a.den) = a.num / ↑a.den", " a.num = a.num / ↑a.den", " a.num / ↑a.den = a.num / ↑a.den", " z ≤ { num := n, den := d, den_nz := h, reduced := c }.floor ↔ ↑z ≤ { num := n, den := d, den_nz := h, reduced := c }", " z ≤ n / ↑d ↔ ↑z ≤ { num ...
import Mathlib.Algebra.Group.Subgroup.Basic import Mathlib.CategoryTheory.Groupoid.VertexGroup import Mathlib.CategoryTheory.Groupoid.Basic import Mathlib.CategoryTheory.Groupoid import Mathlib.Data.Set.Lattice import Mathlib.Order.GaloisConnection #align_import category_theory.groupoid.subgroupoid from "leanprover-c...
Mathlib/CategoryTheory/Groupoid/Subgroupoid.lean
152
154
theorem coe_inv_coe' {c d : S.objs} (p : c ⟶ d) : (CategoryTheory.inv p).val = CategoryTheory.inv p.val := by
simp only [← inv_eq_inv, coe_inv_coe]
[ " Groupoid.inv f ∈ S.arrows d c ↔ f ∈ S.arrows c d", " Groupoid.inv f ∈ S.arrows d c → f ∈ S.arrows c d", " f ∈ S.arrows c d", " f ∈ S.arrows c d → Groupoid.inv f ∈ S.arrows d c", " f ≫ g ∈ S.arrows c e ↔ g ∈ S.arrows d e", " f ≫ g ∈ S.arrows c e → g ∈ S.arrows d e", " g ∈ S.arrows d e", " Groupoid.in...
[ " Groupoid.inv f ∈ S.arrows d c ↔ f ∈ S.arrows c d", " Groupoid.inv f ∈ S.arrows d c → f ∈ S.arrows c d", " f ∈ S.arrows c d", " f ∈ S.arrows c d → Groupoid.inv f ∈ S.arrows d c", " f ≫ g ∈ S.arrows c e ↔ g ∈ S.arrows d e", " f ≫ g ∈ S.arrows c e → g ∈ S.arrows d e", " g ∈ S.arrows d e", " Groupoid.in...
import Mathlib.Combinatorics.SimpleGraph.Connectivity namespace SimpleGraph universe u v variable {V : Type u} {V' : Type v} {G : SimpleGraph V} {G' : SimpleGraph V'} namespace Subgraph protected structure Preconnected (H : G.Subgraph) : Prop where protected coe : H.coe.Preconnected instance {H : G.Subgraph}...
Mathlib/Combinatorics/SimpleGraph/Connectivity/Subgraph.lean
73
78
theorem subgraphOfAdj_connected {v w : V} (hvw : G.Adj v w) : (G.subgraphOfAdj hvw).Connected := by
refine ⟨⟨?_⟩⟩ rintro ⟨a, ha⟩ ⟨b, hb⟩ simp only [subgraphOfAdj_verts, Set.mem_insert_iff, Set.mem_singleton_iff] at ha hb obtain rfl | rfl := ha <;> obtain rfl | rfl := hb <;> first | rfl | (apply Adj.reachable; simp)
[ " H.Connected ↔ H.Preconnected ∧ H.verts.Nonempty", " H.Preconnected", " H.verts.Nonempty", " (G.singletonSubgraph v).Connected", " (G.singletonSubgraph v).coe.Preconnected", " (G.singletonSubgraph v).coe.Reachable ⟨a, ha⟩ ⟨b, hb⟩", " (G.singletonSubgraph v).coe.Reachable ⟨a, ha✝⟩ ⟨b, hb✝⟩", " (G.sing...
[ " H.Connected ↔ H.Preconnected ∧ H.verts.Nonempty", " H.Preconnected", " H.verts.Nonempty", " (G.singletonSubgraph v).Connected", " (G.singletonSubgraph v).coe.Preconnected", " (G.singletonSubgraph v).coe.Reachable ⟨a, ha⟩ ⟨b, hb⟩", " (G.singletonSubgraph v).coe.Reachable ⟨a, ha✝⟩ ⟨b, hb✝⟩", " (G.sing...
import Mathlib.Order.Filter.Cofinite #align_import topology.bornology.basic from "leanprover-community/mathlib"@"8631e2d5ea77f6c13054d9151d82b83069680cb1" open Set Filter variable {ι α β : Type*} class Bornology (α : Type*) where cobounded' : Filter α le_cofinite' : cobounded' ≤ cofinite #align borno...
Mathlib/Topology/Bornology/Basic.lean
173
175
theorem isBounded_singleton : IsBounded ({x} : Set α) := by
rw [isBounded_def] exact le_cofinite _ (finite_singleton x).compl_mem_cofinite
[ " t = t'", " { cobounded' := cobounded'✝, le_cofinite' := le_cofinite'✝ } = t'", " { cobounded' := cobounded'✝¹, le_cofinite' := le_cofinite'✝¹ } =\n { cobounded' := cobounded'✝, le_cofinite' := le_cofinite'✝ }", " comk (fun x => x ∈ B) empty_mem subset_mem union_mem ≤ cofinite", " {x} ∈ B", " IsBounde...
[ " t = t'", " { cobounded' := cobounded'✝, le_cofinite' := le_cofinite'✝ } = t'", " { cobounded' := cobounded'✝¹, le_cofinite' := le_cofinite'✝¹ } =\n { cobounded' := cobounded'✝, le_cofinite' := le_cofinite'✝ }", " comk (fun x => x ∈ B) empty_mem subset_mem union_mem ≤ cofinite", " {x} ∈ B", " IsBounde...
import Mathlib.Algebra.Group.Prod import Mathlib.Data.Set.Lattice #align_import data.nat.pairing from "leanprover-community/mathlib"@"207cfac9fcd06138865b5d04f7091e46d9320432" assert_not_exists MonoidWithZero open Prod Decidable Function namespace Nat -- Porting note: no pp_nodot --@[pp_nodot] def pair (a b : ...
Mathlib/Data/Nat/Pairing.lean
126
137
theorem pair_lt_pair_left {a₁ a₂} (b) (h : a₁ < a₂) : pair a₁ b < pair a₂ b := by
by_cases h₁ : a₁ < b <;> simp [pair, h₁, Nat.add_assoc] · by_cases h₂ : a₂ < b <;> simp [pair, h₂, h] simp? at h₂ says simp only [not_lt] at h₂ apply Nat.add_lt_add_of_le_of_lt · exact Nat.mul_self_le_mul_self h₂ · exact Nat.lt_add_right _ h · simp at h₁ simp only [not_lt_of_gt (lt_of_le_of_l...
[ " n.unpair.1.pair n.unpair.2 = n", " (if n - n.sqrt * n.sqrt < n.sqrt then (n - n.sqrt * n.sqrt, n.sqrt)\n else (n.sqrt, n - n.sqrt * n.sqrt - n.sqrt)).1.pair\n (if n - n.sqrt * n.sqrt < n.sqrt then (n - n.sqrt * n.sqrt, n.sqrt)\n else (n.sqrt, n - n.sqrt * n.sqrt - n.sqrt)).2 =\n n", " ...
[ " n.unpair.1.pair n.unpair.2 = n", " (if n - n.sqrt * n.sqrt < n.sqrt then (n - n.sqrt * n.sqrt, n.sqrt)\n else (n.sqrt, n - n.sqrt * n.sqrt - n.sqrt)).1.pair\n (if n - n.sqrt * n.sqrt < n.sqrt then (n - n.sqrt * n.sqrt, n.sqrt)\n else (n.sqrt, n - n.sqrt * n.sqrt - n.sqrt)).2 =\n n", " ...
import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.Asymptotics.SpecificAsymptotics #align_import analysis.special_functions.compare_exp from "leanprover-community/mathlib"@"0b9eaaa7686280fad8cce467f5c3c57ee6ce77f8" open Asympto...
Mathlib/Analysis/SpecialFunctions/CompareExp.lean
107
116
theorem isLittleO_im_pow_exp_re (hl : IsExpCmpFilter l) (n : ℕ) : (fun z : ℂ => z.im ^ n) =o[l] fun z => Real.exp z.re := flip IsLittleO.of_pow two_ne_zero <| calc (fun z : ℂ ↦ (z.im ^ n) ^ 2) = (fun z ↦ z.im ^ (2 * n)) := by
simp only [pow_mul'] _ =O[l] fun z ↦ Real.exp z.re := hl.isBigO_im_pow_re _ _ = fun z ↦ (Real.exp z.re) ^ 1 := by simp only [pow_one] _ =o[l] fun z ↦ (Real.exp z.re) ^ 2 := (isLittleO_pow_pow_atTop_of_lt one_lt_two).comp_tendsto <| Real.tendsto_exp_atTop.comp hl.tendsto_re
[ " (fun z => (z.re ^ r) ^ n) z = (fun z => z.re ^ (r * ↑n)) z", " im =O[l] fun z => z.re ^ 0", " (fun z => (z.im ^ n) ^ 2) = fun z => z.im ^ (2 * n)", " (fun z => z.re.exp) = fun z => z.re.exp ^ 1" ]
[ " (fun z => (z.re ^ r) ^ n) z = (fun z => z.re ^ (r * ↑n)) z", " im =O[l] fun z => z.re ^ 0" ]
import Mathlib.AlgebraicTopology.SplitSimplicialObject import Mathlib.AlgebraicTopology.DoldKan.Degeneracies import Mathlib.AlgebraicTopology.DoldKan.FunctorN #align_import algebraic_topology.dold_kan.split_simplicial_object from "leanprover-community/mathlib"@"32a7e535287f9c73f2e4d2aef306a39190f0b504" open Categ...
Mathlib/AlgebraicTopology/DoldKan/SplitSimplicialObject.lean
127
132
theorem PInfty_comp_πSummand_id (n : ℕ) : PInfty.f n ≫ s.πSummand (IndexSet.id (op [n])) = s.πSummand (IndexSet.id (op [n])) := by
conv_rhs => rw [← id_comp (s.πSummand _)] symm rw [← sub_eq_zero, ← sub_comp, ← comp_PInfty_eq_zero_iff, sub_comp, id_comp, PInfty_f_idem, sub_self]
[ " s.N B.fst.unop.len ⟶ s.N A.fst.unop.len", " s.N B.fst.unop.len = s.N A.fst.unop.len", " s.N B.fst.unop.len = s.N B.fst.unop.len", " (s.cofan Δ).inj A ≫ s.πSummand A = 𝟙 (summand s.N Δ A)", " (s.cofan Δ).inj A ≫ s.πSummand B = 0", " ((s.cofan Δ).inj A ≫ s.desc Δ fun B_1 => if h : B_1 = B then eqToHom ⋯ ...
[ " s.N B.fst.unop.len ⟶ s.N A.fst.unop.len", " s.N B.fst.unop.len = s.N A.fst.unop.len", " s.N B.fst.unop.len = s.N B.fst.unop.len", " (s.cofan Δ).inj A ≫ s.πSummand A = 𝟙 (summand s.N Δ A)", " (s.cofan Δ).inj A ≫ s.πSummand B = 0", " ((s.cofan Δ).inj A ≫ s.desc Δ fun B_1 => if h : B_1 = B then eqToHom ⋯ ...
import Mathlib.Topology.Sets.Opens #align_import topology.local_at_target from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open TopologicalSpace Set Filter open Topology Filter variable {α β : Type*} [TopologicalSpace α] [TopologicalSpace β] {f : α → β} variable {s : Set β} {ι : Ty...
Mathlib/Topology/LocalAtTarget.lean
29
34
theorem Set.restrictPreimage_inducing (s : Set β) (h : Inducing f) : Inducing (s.restrictPreimage f) := by
simp_rw [← inducing_subtype_val.of_comp_iff, inducing_iff_nhds, restrictPreimage, MapsTo.coe_restrict, restrict_eq, ← @Filter.comap_comap _ _ _ _ _ f, Function.comp_apply] at h ⊢ intro a rw [← h, ← inducing_subtype_val.nhds_eq_comap]
[ " Inducing (s.restrictPreimage f)", " ∀ (x : ↑(f ⁻¹' s)), 𝓝 x = comap Subtype.val (comap f (𝓝 (f ↑x)))", " 𝓝 a = comap Subtype.val (comap f (𝓝 (f ↑a)))" ]
[]
import Mathlib.Dynamics.Ergodic.AddCircle import Mathlib.MeasureTheory.Covering.LiminfLimsup #align_import number_theory.well_approximable from "leanprover-community/mathlib"@"f0c8bf9245297a541f468be517f1bde6195105e9" open Set Filter Function Metric MeasureTheory open scoped MeasureTheory Topology Pointwise @[...
Mathlib/NumberTheory/WellApproximable.lean
134
142
theorem smul_subset_of_coprime (han : (orderOf a).Coprime n) : a • approxOrderOf A n δ ⊆ approxOrderOf A (orderOf a * n) δ := by
simp_rw [approxOrderOf, thickening_eq_biUnion_ball, ← image_smul, image_iUnion₂, image_smul, smul_ball'', smul_eq_mul, mem_setOf_eq] refine iUnion₂_subset_iff.mpr fun b hb c hc => ?_ simp only [mem_iUnion, exists_prop] refine ⟨a * b, ?_, hc⟩ rw [← hb] at han ⊢ exact (Commute.all a b).orderOf_mul_eq_mul...
[ " a ∈ approxOrderOf A n δ ↔ ∃ b, orderOf b = n ∧ a ∈ ball b δ", " (fun y => y ^ m) '' approxOrderOf A n δ ⊆ approxOrderOf A n (↑m * δ)", " (fun y => y ^ m) a ∈ approxOrderOf A n (↑m * δ)", " b ^ m ∈ {u | orderOf u = n}", " b ^ m ∈ {u | orderOf u = orderOf b}", " (fun y => y ^ m) a ∈ ball (b ^ m) (↑m • δ)"...
[ " a ∈ approxOrderOf A n δ ↔ ∃ b, orderOf b = n ∧ a ∈ ball b δ", " (fun y => y ^ m) '' approxOrderOf A n δ ⊆ approxOrderOf A n (↑m * δ)", " (fun y => y ^ m) a ∈ approxOrderOf A n (↑m * δ)", " b ^ m ∈ {u | orderOf u = n}", " b ^ m ∈ {u | orderOf u = orderOf b}", " (fun y => y ^ m) a ∈ ball (b ^ m) (↑m • δ)"...
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
123
129
theorem isCyclic_of_orderOf_eq_card [Fintype α] (x : α) (hx : orderOf x = Fintype.card α) : IsCyclic α := by
classical use x simp_rw [← SetLike.mem_coe, ← Set.eq_univ_iff_forall] rw [← Fintype.card_congr (Equiv.Set.univ α), ← Fintype.card_zpowers] at hx exact Set.eq_of_subset_of_card_le (Set.subset_univ _) (ge_of_eq hx)
[ " x ∈ zpowers 1", " 1 ∈ zpowers 1", " Nontrivial α", " IsCyclic α", " ∃ m, ∀ (g : G), σ g = g ^ m", " σ g = g ^ m", " σ ((fun x => h ^ x) n) = (fun x => h ^ x) n ^ m", " ∀ (x_1 : α), x_1 ∈ zpowers x", " ↑(zpowers x) = Set.univ" ]
[ " x ∈ zpowers 1", " 1 ∈ zpowers 1", " Nontrivial α", " IsCyclic α", " ∃ m, ∀ (g : G), σ g = g ^ m", " σ g = g ^ m", " σ ((fun x => h ^ x) n) = (fun x => h ^ x) n ^ m" ]