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.Order.Bounds.Basic import Mathlib.Order.WellFounded import Mathlib.Data.Set.Image import Mathlib.Order.Interval.Set.Basic import Mathlib.Data.Set.Lattice #align_import order.conditionally_complete_lattice.basic from "leanprover-community/mathlib"@"29cb56a7b35f72758b05a30490e1f10bd62c35c1" open Func...
Mathlib/Order/ConditionallyCompleteLattice/Basic.lean
91
92
theorem WithTop.iInf_empty [IsEmpty ι] [InfSet α] (f : ι → WithTop α) : ⨅ i, f i = ⊤ := by
rw [iInf, range_eq_empty, WithTop.sInf_empty]
[ " ¬(s ⊆ {⊤} ∨ ¬BddBelow s)", " ∅ ⊆ {⊤} ∨ ¬BddBelow ∅", " ⨅ i, f i = ⊤" ]
[ " ¬(s ⊆ {⊤} ∨ ¬BddBelow s)", " ∅ ⊆ {⊤} ∨ ¬BddBelow ∅" ]
import Mathlib.Init.Function import Mathlib.Logic.Function.Basic #align_import data.sigma.basic from "leanprover-community/mathlib"@"a148d797a1094ab554ad4183a4ad6f130358ef64" open Function section Sigma variable {α α₁ α₂ : Type*} {β : α → Type*} {β₁ : α₁ → Type*} {β₂ : α₂ → Type*} namespace Sigma instance inst...
Mathlib/Data/Sigma/Basic.lean
75
80
theorem _root_.Function.eq_of_sigmaMk_comp {γ : Type*} [Nonempty γ] {a b : α} {f : γ → β a} {g : γ → β b} (h : Sigma.mk a ∘ f = Sigma.mk b ∘ g) : a = b ∧ HEq f g := by
rcases ‹Nonempty γ› with ⟨i⟩ obtain rfl : a = b := congr_arg Sigma.fst (congr_fun h i) simpa [funext_iff] using h
[ " a₁ = a₂ ∧ HEq b₁ b₂", " a₁ = a₁ ∧ HEq b₁ b₁", " ⟨a₁, b₁⟩ = ⟨a₂, b₂⟩", " ⟨a₁, b₁⟩ = ⟨a₁, b₂⟩", " x₀ = x₁ ↔ x₀.fst = x₁.fst ∧ HEq x₀.snd x₁.snd", " ⟨fst✝, snd✝⟩ = x₁ ↔ ⟨fst✝, snd✝⟩.fst = x₁.fst ∧ HEq ⟨fst✝, snd✝⟩.snd x₁.snd", " ⟨fst✝¹, snd✝¹⟩ = ⟨fst✝, snd✝⟩ ↔ ⟨fst✝¹, snd✝¹⟩.fst = ⟨fst✝, snd✝⟩.fst ∧ HEq ...
[ " a₁ = a₂ ∧ HEq b₁ b₂", " a₁ = a₁ ∧ HEq b₁ b₁", " ⟨a₁, b₁⟩ = ⟨a₂, b₂⟩", " ⟨a₁, b₁⟩ = ⟨a₁, b₂⟩", " x₀ = x₁ ↔ x₀.fst = x₁.fst ∧ HEq x₀.snd x₁.snd", " ⟨fst✝, snd✝⟩ = x₁ ↔ ⟨fst✝, snd✝⟩.fst = x₁.fst ∧ HEq ⟨fst✝, snd✝⟩.snd x₁.snd", " ⟨fst✝¹, snd✝¹⟩ = ⟨fst✝, snd✝⟩ ↔ ⟨fst✝¹, snd✝¹⟩.fst = ⟨fst✝, snd✝⟩.fst ∧ HEq ...
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
112
117
theorem not_differentiableWithinAt_of_local_left_inverse_hasDerivWithinAt_zero {f g : 𝕜 → 𝕜} {a : 𝕜} {s t : Set 𝕜} (ha : a ∈ s) (hsu : UniqueDiffWithinAt 𝕜 s a) (hf : HasDerivWithinAt f 0 t (g a)) (hst : MapsTo g s t) (hfg : f ∘ g =ᶠ[𝓝[s] a] id) : ¬DifferentiableWithinAt 𝕜 g s a := by
intro hg have := (hf.comp a hg.hasDerivWithinAt hst).congr_of_eventuallyEq_of_mem hfg.symm ha simpa using hsu.eq_deriv _ this (hasDerivWithinAt_id _ _)
[ " ‖z‖ ≤ ‖f'‖⁻¹ * ‖(ContinuousLinearMap.smulRight 1 f') z‖", " ¬DifferentiableWithinAt 𝕜 g s a", " False" ]
[ " ‖z‖ ≤ ‖f'‖⁻¹ * ‖(ContinuousLinearMap.smulRight 1 f') z‖" ]
import Mathlib.Geometry.Manifold.MFDeriv.SpecificFunctions noncomputable section open scoped Manifold open Bundle Set Topology variable {𝕜 : Type*} [NontriviallyNormedField 𝕜] {E : Type*} [NormedAddCommGroup E] [NormedSpace 𝕜 E] {H : Type*} [TopologicalSpace H] (I : ModelWithCorners 𝕜 E H) {M : Type*} [To...
Mathlib/Geometry/Manifold/MFDeriv/Atlas.lean
200
210
theorem symm_comp_deriv {x : M} (hx : x ∈ e.source) : (mfderiv I' I e.symm (e x)).comp (mfderiv I I' e x) = ContinuousLinearMap.id 𝕜 (TangentSpace I x) := by
have : mfderiv I I (e.symm ∘ e) x = (mfderiv I' I e.symm (e x)).comp (mfderiv I I' e x) := mfderiv_comp x (he.mdifferentiableAt_symm (e.map_source hx)) (he.mdifferentiableAt hx) rw [← this] have : mfderiv I I (_root_.id : M → M) x = ContinuousLinearMap.id _ _ := mfderiv_id I rw [← this] apply Filter.Even...
[ " (mfderiv I' I (↑e.symm) (↑e x)).comp (mfderiv I I' (↑e) x) = ContinuousLinearMap.id 𝕜 (TangentSpace I x)", " mfderiv I I (↑e.symm ∘ ↑e) x = ContinuousLinearMap.id 𝕜 (TangentSpace I x)", " mfderiv I I (↑e.symm ∘ ↑e) x = mfderiv I I id x", " ↑e.symm ∘ ↑e =ᶠ[𝓝 x] id", " e.source ⊆ {x | (fun x => (↑e.symm ...
[]
import Mathlib.Algebra.Group.Defs #align_import algebra.invertible from "leanprover-community/mathlib"@"722b3b152ddd5e0cf21c0a29787c76596cb6b422" assert_not_exists MonoidWithZero assert_not_exists DenselyOrdered universe u variable {α : Type u} class Invertible [Mul α] [One α] (a : α) : Type u where invOf...
Mathlib/Algebra/Group/Invertible/Defs.lean
133
134
theorem mul_invOf_mul_self_cancel' [Monoid α] (a b : α) {_ : Invertible b} : a * ⅟ b * b = a := by
simp [mul_assoc]
[ " ⅟a * (a * b) = b", " a * (⅟a * b) = b", " a * ⅟b * b = a" ]
[ " ⅟a * (a * b) = b", " a * (⅟a * b) = b" ]
import Mathlib.Logic.Small.Defs import Mathlib.Logic.Equiv.Set #align_import logic.small.basic from "leanprover-community/mathlib"@"d012cd09a9b256d870751284dd6a29882b0be105" universe u w v v' section open scoped Classical instance small_subtype (α : Type v) [Small.{w} α] (P : α → Prop) : Small.{w} { x // P x } ...
Mathlib/Logic/Small/Basic.lean
46
54
theorem small_of_injective_of_exists {α : Type v} {β : Type w} {γ : Type v'} [Small.{u} α] (f : α → γ) {g : β → γ} (hg : Function.Injective g) (h : ∀ b : β, ∃ a : α, f a = g b) : Small.{u} β := by
by_cases hβ : Nonempty β · refine small_of_surjective (f := Function.invFun g ∘ f) (fun b => ?_) obtain ⟨a, ha⟩ := h b exact ⟨a, by rw [Function.comp_apply, ha, Function.leftInverse_invFun hg]⟩ · simp only [not_nonempty_iff] at hβ infer_instance
[ " Small.{w, v} α", " Small.{u, w} β", " ∃ a, (Function.invFun g ∘ f) a = b", " (Function.invFun g ∘ f) a = b" ]
[ " Small.{w, v} α" ]
import Mathlib.Init.Logic import Mathlib.Init.Function import Mathlib.Init.Algebra.Classes import Batteries.Util.LibraryNote import Batteries.Tactic.Lint.Basic #align_import logic.basic from "leanprover-community/mathlib"@"3365b20c2ffa7c35e47e5209b89ba9abdddf3ffe" #align_import init.ite_simp from "leanprover-communit...
Mathlib/Logic/Basic.lean
591
592
theorem Eq.rec_eq_cast {α : Sort _} {P : α → Sort _} {x y : α} (h : x = y) (z : P x) : h ▸ z = cast (congr_arg P h) z := by
induction h; rfl
[ " h ▸ z = cast ⋯ z", " ⋯ ▸ z = cast ⋯ z" ]
[]
import Mathlib.Data.ENNReal.Real #align_import data.real.conjugate_exponents from "leanprover-community/mathlib"@"2196ab363eb097c008d4497125e0dde23fb36db2" noncomputable section open scoped ENNReal namespace Real @[mk_iff] structure IsConjExponent (p q : ℝ) : Prop where one_lt : 1 < p inv_add_inv_conj : p⁻...
Mathlib/Data/Real/ConjExponents.lean
115
118
theorem inv_add_inv_conj_ennreal : (ENNReal.ofReal p)⁻¹ + (ENNReal.ofReal q)⁻¹ = 1 := by
rw [← ENNReal.ofReal_one, ← ENNReal.ofReal_inv_of_pos h.pos, ← ENNReal.ofReal_inv_of_pos h.symm.pos, ← ENNReal.ofReal_add h.inv_nonneg h.symm.inv_nonneg, h.inv_add_inv_conj]
[ " q = p / (p - 1)", " p⁻¹ - 1 = -q⁻¹", " p * q = p + q", " 1 < q", " q⁻¹ + p⁻¹ = 1", " p / q = p - 1", " p = (p - 1) * q", " (ENNReal.ofReal p)⁻¹ + (ENNReal.ofReal q)⁻¹ = 1" ]
[ " q = p / (p - 1)", " p⁻¹ - 1 = -q⁻¹", " p * q = p + q", " 1 < q", " q⁻¹ + p⁻¹ = 1", " p / q = p - 1", " p = (p - 1) * q" ]
import Mathlib.Algebra.CharP.ExpChar import Mathlib.Algebra.GeomSum import Mathlib.Algebra.MvPolynomial.CommRing import Mathlib.Algebra.MvPolynomial.Equiv import Mathlib.RingTheory.Polynomial.Content import Mathlib.RingTheory.UniqueFactorizationDomain #align_import ring_theory.polynomial.basic from "leanprover-commun...
Mathlib/RingTheory/Polynomial/Basic.lean
98
109
theorem mem_degreeLT {n : ℕ} {f : R[X]} : f ∈ degreeLT R n ↔ degree f < n := by
rw [degreeLT, Submodule.mem_iInf] conv_lhs => intro i; rw [Submodule.mem_iInf] rw [degree, Finset.max_eq_sup_coe] rw [Finset.sup_lt_iff ?_] rotate_left · apply WithBot.bot_lt_coe conv_rhs => simp only [mem_support_iff] intro b rw [Nat.cast_withBot, WithBot.coe_lt_coe, lt_iff_not_le, Ne, not_i...
[ " ↑n = 0 ↔ p ∣ n", " ExpChar R[X] p", " f ∈ degreeLE R n ↔ f.degree ≤ n", " (∀ (i : ℕ), ↑i > n → (lcoeff R i) f = 0) ↔ ∀ (m : ℕ), n < ↑m → f.coeff m = 0", " degreeLE R ↑n = Submodule.span R ↑(image (fun n => X ^ n) (range (n + 1)))", " degreeLE R ↑n ≤ Submodule.span R ↑(image (fun n => X ^ n) (range (n + ...
[ " ↑n = 0 ↔ p ∣ n", " ExpChar R[X] p", " f ∈ degreeLE R n ↔ f.degree ≤ n", " (∀ (i : ℕ), ↑i > n → (lcoeff R i) f = 0) ↔ ∀ (m : ℕ), n < ↑m → f.coeff m = 0", " degreeLE R ↑n = Submodule.span R ↑(image (fun n => X ^ n) (range (n + 1)))", " degreeLE R ↑n ≤ Submodule.span R ↑(image (fun n => X ^ n) (range (n + ...
import Mathlib.Order.ConditionallyCompleteLattice.Finset import Mathlib.Order.Interval.Finset.Nat #align_import data.nat.lattice from "leanprover-community/mathlib"@"52fa514ec337dd970d71d8de8d0fd68b455a1e54" assert_not_exists MonoidWithZero open Set namespace Nat open scoped Classical noncomputable instance : ...
Mathlib/Data/Nat/Lattice.lean
80
83
theorem not_mem_of_lt_sInf {s : Set ℕ} {m : ℕ} (hm : m < sInf s) : m ∉ s := by
cases eq_empty_or_nonempty s with | inl h => subst h; apply not_mem_empty | inr h => rw [Nat.sInf_def h] at hm; exact Nat.find_min h hm
[ " sInf s = 0 ↔ 0 ∈ s ∨ s = ∅", " sInf ∅ = 0 ↔ 0 ∈ ∅ ∨ ∅ = ∅", " sInf ∅ = 0", " 0 ∈ ∅ ∨ ∅ = ∅", " ∅ = ∅", " iInf f = 0", " ⨅ i, 0 = 0", " (0 ∈ range fun i => 0) ∨ (range fun i => 0) = ∅", " sInf s ∈ s", " Nat.find h ∈ s", " m ∉ s", " m ∉ ∅" ]
[ " sInf s = 0 ↔ 0 ∈ s ∨ s = ∅", " sInf ∅ = 0 ↔ 0 ∈ ∅ ∨ ∅ = ∅", " sInf ∅ = 0", " 0 ∈ ∅ ∨ ∅ = ∅", " ∅ = ∅", " iInf f = 0", " ⨅ i, 0 = 0", " (0 ∈ range fun i => 0) ∨ (range fun i => 0) = ∅", " sInf s ∈ s", " Nat.find h ∈ s" ]
import Mathlib.Order.Antichain import Mathlib.Order.UpperLower.Basic import Mathlib.Order.Interval.Set.Basic import Mathlib.Order.RelIso.Set #align_import order.minimal from "leanprover-community/mathlib"@"59694bd07f0a39c5beccba34bd9f413a160782bf" open Function Set variable {α : Type*} (r r₁ r₂ : α → α → Prop) (s...
Mathlib/Order/Minimal.lean
96
99
theorem mem_maximals_iff : x ∈ maximals r s ↔ x ∈ s ∧ ∀ ⦃y⦄, y ∈ s → r x y → x = y := by
simp only [maximals, Set.mem_sep_iff, and_congr_right_iff] refine fun _ ↦ ⟨fun h y hys hxy ↦ antisymm hxy (h hys hxy), fun h y hys hxy ↦ ?_⟩ convert hxy <;> rw [h hys hxy]
[ " ∀ ⦃b : α⦄, b ∈ {a} → r a b → r b a", " r b b → r b b", " x ∈ maximals r s ↔ x ∈ s ∧ ∀ ⦃y : α⦄, y ∈ s → r x y → x = y", " x ∈ s → ((∀ ⦃b : α⦄, b ∈ s → r x b → r b x) ↔ ∀ ⦃y : α⦄, y ∈ s → r x y → x = y)", " r y x", " y = x", " x = y" ]
[ " ∀ ⦃b : α⦄, b ∈ {a} → r a b → r b a", " r b b → r b b" ]
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
204
210
theorem le_pi {m : ∀ i, OuterMeasure (α i)} {n : OuterMeasure (∀ i, α i)} : n ≤ OuterMeasure.pi m ↔ ∀ s : ∀ i, Set (α i), (pi univ s).Nonempty → n (pi univ s) ≤ ∏ i, m i (s i) := by
rw [OuterMeasure.pi, le_boundedBy']; constructor · intro h s hs; refine (h _ hs).trans_eq (piPremeasure_pi hs) · intro h s hs; refine le_trans (n.mono <| subset_pi_eval_image univ s) (h _ ?_) simp [univ_pi_nonempty_iff, hs]
[ " 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", " piPremeasure m (univ.pi fun i => eval i '' s) = piPremeasure m s", " ∏ i : ι, (m ...
[ " 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", " piPremeasure m (univ.pi fun i => eval i '' s) = piPremeasure m s", " ∏ i : ι, (m ...
import Mathlib.Algebra.Category.GroupCat.Basic import Mathlib.CategoryTheory.Limits.Shapes.ZeroObjects #align_import algebra.category.Group.zero from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" open CategoryTheory open CategoryTheory.Limits universe u namespace CommGroupCat @[to_...
Mathlib/Algebra/Category/GroupCat/Zero.lean
49
55
theorem isZero_of_subsingleton (G : CommGroupCat) [Subsingleton G] : IsZero G := by
refine ⟨fun X => ⟨⟨⟨1⟩, fun f => ?_⟩⟩, fun X => ⟨⟨⟨1⟩, fun f => ?_⟩⟩⟩ · ext x have : x = 1 := Subsingleton.elim _ _ rw [this, map_one, map_one] · ext apply Subsingleton.elim
[ " IsZero G", " f = default", " f x = default x", " f x✝ = default x✝" ]
[]
import Mathlib.RingTheory.IntegralClosure import Mathlib.RingTheory.Localization.Integral #align_import ring_theory.integrally_closed from "leanprover-community/mathlib"@"d35b4ff446f1421bd551fafa4b8efd98ac3ac408" open scoped nonZeroDivisors Polynomial open Polynomial abbrev IsIntegrallyClosedIn (R A : Type*) [...
Mathlib/RingTheory/IntegrallyClosed.lean
80
90
theorem AlgHom.isIntegrallyClosedIn (f : A →ₐ[R] B) (hf : Function.Injective f) : IsIntegrallyClosedIn R B → IsIntegrallyClosedIn R A := by
rintro ⟨inj, cl⟩ refine ⟨Function.Injective.of_comp (f := f) ?_, fun hx => ?_, ?_⟩ · convert inj aesop · obtain ⟨y, fx_eq⟩ := cl.mp ((isIntegral_algHom_iff f hf).mpr hx) aesop · rintro ⟨y, rfl⟩ apply (isIntegral_algHom_iff f hf).mp aesop
[ " IsIntegrallyClosedIn R B → IsIntegrallyClosedIn R A", " IsIntegrallyClosedIn R A", " Function.Injective (⇑f ∘ ⇑(algebraMap R A))", " ⇑f ∘ ⇑(algebraMap R A) = ⇑(algebraMap R B)", " ∃ y, (algebraMap R A) y = x✝", " (∃ y, (algebraMap R A) y = x✝) → IsIntegral R x✝", " IsIntegral R ((algebraMap R A) y)", ...
[]
import Mathlib.Data.PFunctor.Multivariate.W import Mathlib.Data.QPF.Multivariate.Basic #align_import data.qpf.multivariate.constructions.fix from "leanprover-community/mathlib"@"28aa996fc6fb4317f0083c4e6daf79878d81be33" universe u v namespace MvQPF open TypeVec open MvFunctor (LiftP LiftR) open MvFunctor var...
Mathlib/Data/QPF/Multivariate/Constructions/Fix.lean
125
129
theorem wEquiv.symm {α : TypeVec n} (x y : q.P.W α) : WEquiv x y → WEquiv y x := by
intro h; induction h with | ind a f' f₀ f₁ _h ih => exact WEquiv.ind _ _ _ _ ih | abs a₀ f'₀ f₀ a₁ f'₁ f₁ h => exact WEquiv.abs _ _ _ _ _ _ h.symm | trans x y z _e₁ _e₂ ih₁ ih₂ => exact MvQPF.WEquiv.trans _ _ _ ih₂ ih₁
[ " recF g ((P F).wMk a f' f) = g (abs ⟨a, splitFun f' (recF g ∘ f)⟩)", " g (abs ⟨a, splitFun f' fun i => (P F).wRec (fun a f' _f rec => g (abs ⟨a, splitFun f' rec⟩)) (f i)⟩) =\n g (abs ⟨a, splitFun f' (((P F).wRec fun a f' _f rec => g (abs ⟨a, splitFun f' rec⟩)) ∘ f)⟩)", " recF g x = g (abs ((TypeVec.id ::: r...
[ " recF g ((P F).wMk a f' f) = g (abs ⟨a, splitFun f' (recF g ∘ f)⟩)", " g (abs ⟨a, splitFun f' fun i => (P F).wRec (fun a f' _f rec => g (abs ⟨a, splitFun f' rec⟩)) (f i)⟩) =\n g (abs ⟨a, splitFun f' (((P F).wRec fun a f' _f rec => g (abs ⟨a, splitFun f' rec⟩)) ∘ f)⟩)", " recF g x = g (abs ((TypeVec.id ::: r...
import Mathlib.Algebra.Field.Subfield import Mathlib.Algebra.GroupWithZero.Divisibility import Mathlib.Topology.Algebra.GroupWithZero import Mathlib.Topology.Algebra.Ring.Basic import Mathlib.Topology.Order.LocalExtr #align_import topology.algebra.field from "leanprover-community/mathlib"@"c10e724be91096453ee3db13862...
Mathlib/Topology/Algebra/Field.lean
130
136
theorem IsPreconnected.eq_one_or_eq_neg_one_of_sq_eq [Ring 𝕜] [NoZeroDivisors 𝕜] (hS : IsPreconnected S) (hf : ContinuousOn f S) (hsq : EqOn (f ^ 2) 1 S) : EqOn f 1 S ∨ EqOn f (-1) S := by
have : DiscreteTopology ({1, -1} : Set 𝕜) := discrete_of_t1_of_finite have hmaps : MapsTo f S {1, -1} := by simpa only [EqOn, Pi.one_apply, Pi.pow_apply, sq_eq_one_iff] using hsq simpa using hS.eqOn_const_of_mapsTo hf hmaps
[ " EqOn f 1 S ∨ EqOn f (-1) S", " MapsTo f S {1, -1}" ]
[]
import Mathlib.Order.Sublattice import Mathlib.Order.Hom.CompleteLattice open Function Set variable (α β : Type*) [CompleteLattice α] [CompleteLattice β] (f : CompleteLatticeHom α β) structure CompleteSublattice extends Sublattice α where sSupClosed' : ∀ ⦃s : Set α⦄, s ⊆ carrier → sSup s ∈ carrier sInfClosed...
Mathlib/Order/CompleteSublattice.lean
89
90
theorem coe_sInf' (S : Set L) : (↑(sInf S) : α) = ⨅ N ∈ S, (N : α) := by
rw [coe_sInf, ← Set.image, sInf_image]
[ " x ⊔ y ∈ carrier", " z ∈ carrier", " x ⊔ y = sSup {x, y}", " x ⊓ y ∈ carrier", " x ⊓ y = sInf {x, y}", " L = M", " { toSublattice := toSublattice✝, sSupClosed' := sSupClosed'✝, sInfClosed' := sInfClosed'✝ } = M", " { toSublattice := toSublattice✝¹, sSupClosed' := sSupClosed'✝¹, sInfClosed' := sInfClo...
[ " x ⊔ y ∈ carrier", " z ∈ carrier", " x ⊔ y = sSup {x, y}", " x ⊓ y ∈ carrier", " x ⊓ y = sInf {x, y}", " L = M", " { toSublattice := toSublattice✝, sSupClosed' := sSupClosed'✝, sInfClosed' := sInfClosed'✝ } = M", " { toSublattice := toSublattice✝¹, sSupClosed' := sSupClosed'✝¹, sInfClosed' := sInfClo...
import Mathlib.Analysis.Normed.Group.Basic #align_import analysis.normed.group.hom from "leanprover-community/mathlib"@"3c4225288b55380a90df078ebae0991080b12393" noncomputable section open NNReal -- TODO: migrate to the new morphism / morphism_class style structure NormedAddGroupHom (V W : Type*) [SeminormedAd...
Mathlib/Analysis/Normed/Group/Hom.lean
67
74
theorem exists_pos_bound_of_bound {V W : Type*} [SeminormedAddCommGroup V] [SeminormedAddCommGroup W] {f : V → W} (M : ℝ) (h : ∀ x, ‖f x‖ ≤ M * ‖x‖) : ∃ N, 0 < N ∧ ∀ x, ‖f x‖ ≤ N * ‖x‖ := ⟨max M 1, lt_of_lt_of_le zero_lt_one (le_max_right _ _), fun x => calc ‖f x‖ ≤ M * ‖x‖ := h x _ ≤ max M 1 ...
gcongr; apply le_max_left ⟩
[ " M * ‖x‖ ≤ max M 1 * ‖x‖", " M ≤ max M 1" ]
[]
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.Polynomial.Degree.Lemmas #align_import data.polynomial.erase_lead from "leanprover-community/mathlib"@"fa256f00ce018e7b40e1dc756e403c86680bf448" noncomputable section open Polynomial open Polynomial Finset namespace Polynomial variable {R : Type*}...
Mathlib/Algebra/Polynomial/EraseLead.lean
141
144
theorem card_support_le_one_of_eraseLead_eq_zero (h : f.eraseLead = 0) : f.support.card ≤ 1 := by
by_cases hpz : f = 0 case pos => simp [hpz] case neg => exact le_of_eq (card_support_eq_one_of_eraseLead_eq_zero hpz h)
[ " f.eraseLead.support = f.support.erase f.natDegree", " f.eraseLead.coeff i = if i = f.natDegree then 0 else f.coeff i", " f.eraseLead.coeff f.natDegree = 0", " f.eraseLead.coeff i = f.coeff i", " eraseLead 0 = 0", " f.eraseLead + C f.leadingCoeff * X ^ f.natDegree = f", " f - C f.leadingCoeff * X ^ f.n...
[ " f.eraseLead.support = f.support.erase f.natDegree", " f.eraseLead.coeff i = if i = f.natDegree then 0 else f.coeff i", " f.eraseLead.coeff f.natDegree = 0", " f.eraseLead.coeff i = f.coeff i", " eraseLead 0 = 0", " f.eraseLead + C f.leadingCoeff * X ^ f.natDegree = f", " f - C f.leadingCoeff * X ^ f.n...
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.Monic #align_import data.polynomial.lifts from "leanprover-community/mathlib"@"63417e01fbc711beaf25fa73b6edb395c0cfddd0" open Polynomial noncomputable section namespace Polynomial universe u v w section Semiring variable {R : Type...
Mathlib/Algebra/Polynomial/Lifts.lean
141
162
theorem monomial_mem_lifts_and_degree_eq {s : S} {n : ℕ} (hl : monomial n s ∈ lifts f) : ∃ q : R[X], map f q = monomial n s ∧ q.degree = (monomial n s).degree := by
by_cases hzero : s = 0 · use 0 simp only [hzero, degree_zero, eq_self_iff_true, and_self_iff, monomial_zero_right, Polynomial.map_zero] rw [lifts_iff_set_range] at hl obtain ⟨q, hq⟩ := hl replace hq := (ext_iff.1 hq) n have hcoeff : f (q.coeff n) = s := by simp? [coeff_monomial] at hq says si...
[ " p ∈ lifts f ↔ ∃ q, map f q = p", " p ∈ lifts f ↔ p ∈ Set.range (map f)", " p ∈ lifts f ↔ p ∈ (mapRingHom f).rangeS", " p ∈ lifts f ↔ ∀ (n : ℕ), p.coeff n ∈ Set.range ⇑f", " (∀ (n : ℕ), p.coeff n ∈ f.rangeS) ↔ ∀ (n : ℕ), p.coeff n ∈ Set.range ⇑f", " (mapRingHom f) (C r) = C (f r)", " C s ∈ lifts f", ...
[ " p ∈ lifts f ↔ ∃ q, map f q = p", " p ∈ lifts f ↔ p ∈ Set.range (map f)", " p ∈ lifts f ↔ p ∈ (mapRingHom f).rangeS", " p ∈ lifts f ↔ ∀ (n : ℕ), p.coeff n ∈ Set.range ⇑f", " (∀ (n : ℕ), p.coeff n ∈ f.rangeS) ↔ ∀ (n : ℕ), p.coeff n ∈ Set.range ⇑f", " (mapRingHom f) (C r) = C (f r)", " C s ∈ lifts f", ...
import Mathlib.Order.BoundedOrder import Mathlib.Order.MinMax import Mathlib.Algebra.NeZero import Mathlib.Algebra.Order.Monoid.Defs #align_import algebra.order.monoid.canonical.defs from "leanprover-community/mathlib"@"e8638a0fcaf73e4500469f368ef9494e495099b3" universe u variable {α : Type u} class ExistsMulOf...
Mathlib/Algebra/Order/Monoid/Canonical/Defs.lean
56
58
theorem exists_one_lt_mul_of_lt' (h : a < b) : ∃ c, 1 < c ∧ a * c = b := by
obtain ⟨c, rfl⟩ := exists_mul_of_le h.le exact ⟨c, one_lt_of_lt_mul_right h, rfl⟩
[ " ∃ c, 1 < c ∧ a * c = b", " ∃ c_1, 1 < c_1 ∧ a * c_1 = a * c" ]
[]
import Mathlib.Data.PFunctor.Multivariate.Basic #align_import data.pfunctor.multivariate.W from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988" universe u v namespace MvPFunctor open TypeVec open MvFunctor variable {n : ℕ} (P : MvPFunctor.{u} (n + 1)) inductive WPath : P.last.W → F...
Mathlib/Data/PFunctor/Multivariate/W.lean
109
111
theorem wPathCasesOn_eta {α : TypeVec n} {a : P.A} {f : P.last.B a → P.last.W} (h : P.WPath ⟨a, f⟩ ⟹ α) : P.wPathCasesOn (P.wPathDestLeft h) (P.wPathDestRight h) = h := by
ext i x; cases x <;> rfl
[ " P.WPath (WType.mk a f) ⟹ α", " α i", " P.wPathCasesOn (P.wPathDestLeft h) (P.wPathDestRight h) = h", " P.wPathCasesOn (P.wPathDestLeft h) (P.wPathDestRight h) i x = h i x", " P.wPathCasesOn (P.wPathDestLeft h) (P.wPathDestRight h) i (WPath.root a (fun j => f j) i c✝) =\n h i (WPath.root a (fun j => f j...
[ " P.WPath (WType.mk a f) ⟹ α", " α i" ]
import Mathlib.Analysis.InnerProductSpace.TwoDim import Mathlib.Geometry.Euclidean.Angle.Unoriented.Basic #align_import geometry.euclidean.angle.oriented.basic from "leanprover-community/mathlib"@"f0c8bf9245297a541f468be517f1bde6195105e9" noncomputable section open FiniteDimensional Complex open scoped Real Rea...
Mathlib/Geometry/Euclidean/Angle/Oriented/Basic.lean
73
73
theorem oangle_zero_right (x : V) : o.oangle x 0 = 0 := by
simp [oangle]
[ " ContinuousAt (fun y => o.oangle y.1 y.2) x", " (o.kahler x.1) x.2 ≠ 0", " ContinuousAt (fun y => (o.kahler y.1) y.2) x", " o.oangle 0 x = 0", " o.oangle x 0 = 0" ]
[ " ContinuousAt (fun y => o.oangle y.1 y.2) x", " (o.kahler x.1) x.2 ≠ 0", " ContinuousAt (fun y => (o.kahler y.1) y.2) x", " o.oangle 0 x = 0" ]
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.Monic #align_import data.polynomial.lifts from "leanprover-community/mathlib"@"63417e01fbc711beaf25fa73b6edb395c0cfddd0" open Polynomial noncomputable section namespace Polynomial universe u v w section Semiring variable {R : Type...
Mathlib/Algebra/Polynomial/Lifts.lean
286
289
theorem smul_mem_lifts {p : S[X]} (r : R) (hp : p ∈ lifts (algebraMap R S)) : r • p ∈ lifts (algebraMap R S) := by
rw [mem_lifts_iff_mem_alg] at hp ⊢ exact Subalgebra.smul_mem (mapAlg R S).range hp r
[ " p ∈ lifts f ↔ ∃ q, map f q = p", " p ∈ lifts f ↔ p ∈ Set.range (map f)", " p ∈ lifts f ↔ p ∈ (mapRingHom f).rangeS", " p ∈ lifts f ↔ ∀ (n : ℕ), p.coeff n ∈ Set.range ⇑f", " (∀ (n : ℕ), p.coeff n ∈ f.rangeS) ↔ ∀ (n : ℕ), p.coeff n ∈ Set.range ⇑f", " (mapRingHom f) (C r) = C (f r)", " C s ∈ lifts f", ...
[ " p ∈ lifts f ↔ ∃ q, map f q = p", " p ∈ lifts f ↔ p ∈ Set.range (map f)", " p ∈ lifts f ↔ p ∈ (mapRingHom f).rangeS", " p ∈ lifts f ↔ ∀ (n : ℕ), p.coeff n ∈ Set.range ⇑f", " (∀ (n : ℕ), p.coeff n ∈ f.rangeS) ↔ ∀ (n : ℕ), p.coeff n ∈ Set.range ⇑f", " (mapRingHom f) (C r) = C (f r)", " C s ∈ lifts f", ...
import Mathlib.Analysis.Complex.Basic import Mathlib.Topology.FiberBundle.IsHomeomorphicTrivialBundle #align_import analysis.complex.re_im_topology from "leanprover-community/mathlib"@"468b141b14016d54b479eb7a0fff1e360b7e3cf6" open Set noncomputable section namespace Complex theorem isHomeomorphicTrivialFiber...
Mathlib/Analysis/Complex/ReImTopology.lean
129
130
theorem closure_setOf_lt_im (a : ℝ) : closure { z : ℂ | a < z.im } = { z | a ≤ z.im } := by
simpa only [closure_Ioi] using closure_preimage_im (Ioi a)
[ " interior {z | z.re ≤ a} = {z | z.re < a}", " interior {z | z.im ≤ a} = {z | z.im < a}", " interior {z | a ≤ z.re} = {z | a < z.re}", " interior {z | a ≤ z.im} = {z | a < z.im}", " closure {z | z.re < a} = {z | z.re ≤ a}", " closure {z | z.im < a} = {z | z.im ≤ a}", " closure {z | a < z.re} = {z | a ≤ ...
[ " interior {z | z.re ≤ a} = {z | z.re < a}", " interior {z | z.im ≤ a} = {z | z.im < a}", " interior {z | a ≤ z.re} = {z | a < z.re}", " interior {z | a ≤ z.im} = {z | a < z.im}", " closure {z | z.re < a} = {z | z.re ≤ a}", " closure {z | z.im < a} = {z | z.im ≤ a}", " closure {z | a < z.re} = {z | a ≤ ...
import Mathlib.Algebra.BigOperators.NatAntidiagonal import Mathlib.Algebra.GeomSum import Mathlib.Data.Fintype.BigOperators import Mathlib.RingTheory.PowerSeries.Inverse import Mathlib.RingTheory.PowerSeries.WellKnown import Mathlib.Tactic.FieldSimp #align_import number_theory.bernoulli from "leanprover-community/mat...
Mathlib/NumberTheory/Bernoulli.lean
128
131
theorem bernoulli'_four : bernoulli' 4 = -1 / 30 := by
have : Nat.choose 4 2 = 6 := by decide -- shrug rw [bernoulli'_def] norm_num [sum_range_succ, sum_range_succ, sum_range_zero, this]
[ " bernoulli' n = 1 - ∑ k ∈ range n, ↑(n.choose k) / (↑n - ↑k + 1) * bernoulli' k", " ∑ k ∈ range n.succ, ↑(n.choose (n - k)) / (↑n - ↑k + 1) * bernoulli' k = 1", " ∑ x ∈ range n, (↑(n.choose x) / (↑n - ↑x + 1) * bernoulli' x - ↑(n.choose (n - x)) / (↑n - ↑x + 1) * bernoulli' x) = 0", " ↑(n.choose x) / (↑n - ↑...
[ " bernoulli' n = 1 - ∑ k ∈ range n, ↑(n.choose k) / (↑n - ↑k + 1) * bernoulli' k", " ∑ k ∈ range n.succ, ↑(n.choose (n - k)) / (↑n - ↑k + 1) * bernoulli' k = 1", " ∑ x ∈ range n, (↑(n.choose x) / (↑n - ↑x + 1) * bernoulli' x - ↑(n.choose (n - x)) / (↑n - ↑x + 1) * bernoulli' x) = 0", " ↑(n.choose x) / (↑n - ↑...
import Mathlib.Algebra.Order.BigOperators.Ring.Finset import Mathlib.Data.NNRat.Defs variable {ι α : Type*} namespace NNRat @[norm_cast] theorem coe_list_sum (l : List ℚ≥0) : (l.sum : ℚ) = (l.map (↑)).sum := map_list_sum coeHom _ #align nnrat.coe_list_sum NNRat.coe_list_sum @[norm_cast] theorem coe_list_prod (...
Mathlib/Data/NNRat/BigOperators.lean
41
44
theorem toNNRat_sum_of_nonneg {s : Finset α} {f : α → ℚ} (hf : ∀ a, a ∈ s → 0 ≤ f a) : (∑ a ∈ s, f a).toNNRat = ∑ a ∈ s, (f a).toNNRat := by
rw [← coe_inj, coe_sum, Rat.coe_toNNRat _ (Finset.sum_nonneg hf)] exact Finset.sum_congr rfl fun x hxs ↦ by rw [Rat.coe_toNNRat _ (hf x hxs)]
[ " (∑ a ∈ s, f a).toNNRat = ∑ a ∈ s, (f a).toNNRat", " ∑ i ∈ s, f i = ∑ a ∈ s, ↑(f a).toNNRat", " f x = ↑(f x).toNNRat" ]
[]
import Mathlib.Data.Finset.Lattice import Mathlib.Data.Fintype.Vector import Mathlib.Data.Multiset.Sym #align_import data.finset.sym from "leanprover-community/mathlib"@"02ba8949f486ebecf93fe7460f1ed0564b5e442c" namespace Finset variable {α : Type*} @[simps] protected def sym2 (s : Finset α) : Finset (Sym2 α) :...
Mathlib/Data/Finset/Sym.lean
85
89
theorem sym2_toFinset [DecidableEq α] (m : Multiset α) : m.toFinset.sym2 = m.sym2.toFinset := by
ext z refine z.ind fun x y ↦ ?_ simp only [mk_mem_sym2_iff, Multiset.mem_toFinset, Multiset.mk_mem_sym2_iff]
[ " s(a, b) ∈ s.sym2 ↔ a ∈ s ∧ b ∈ s", " m ∈ s.sym2 ↔ ∀ a ∈ m, a ∈ s", " (∀ y ∈ m, y ∈ s.val) ↔ ∀ a ∈ m, a ∈ s", " x ∈ univ.sym2", " ∀ a ∈ x, a ∈ univ", " univ.sym2 = univ", " a✝ ∈ univ.sym2 ↔ a✝ ∈ univ", " s.sym2 ⊆ t.sym2", " s.val.sym2 ≤ t.val.sym2", " s.val ≤ t.val", " Function.Injective Finset...
[ " s(a, b) ∈ s.sym2 ↔ a ∈ s ∧ b ∈ s", " m ∈ s.sym2 ↔ ∀ a ∈ m, a ∈ s", " (∀ y ∈ m, y ∈ s.val) ↔ ∀ a ∈ m, a ∈ s", " x ∈ univ.sym2", " ∀ a ∈ x, a ∈ univ", " univ.sym2 = univ", " a✝ ∈ univ.sym2 ↔ a✝ ∈ univ", " s.sym2 ⊆ t.sym2", " s.val.sym2 ≤ t.val.sym2", " s.val ≤ t.val", " Function.Injective Finset...
import Mathlib.CategoryTheory.Preadditive.Yoneda.Basic import Mathlib.CategoryTheory.Preadditive.Injective import Mathlib.Algebra.Category.GroupCat.EpiMono import Mathlib.Algebra.Category.ModuleCat.EpiMono #align_import category_theory.preadditive.yoneda.injective from "leanprover-community/mathlib"@"f8d8465c3c392a93...
Mathlib/CategoryTheory/Preadditive/Yoneda/Injective.lean
32
40
theorem injective_iff_preservesEpimorphisms_preadditiveYoneda_obj (J : C) : Injective J ↔ (preadditiveYoneda.obj J).PreservesEpimorphisms := by
rw [injective_iff_preservesEpimorphisms_yoneda_obj] refine ⟨fun h : (preadditiveYoneda.obj J ⋙ (forget AddCommGroupCat)).PreservesEpimorphisms => ?_, ?_⟩ · exact Functor.preservesEpimorphisms_of_preserves_of_reflects (preadditiveYoneda.obj J) (forget _) · intro exact (inferInstance : (preadditive...
[ " Injective J ↔ (preadditiveYoneda.obj J).PreservesEpimorphisms", " (yoneda.obj J).PreservesEpimorphisms ↔ (preadditiveYoneda.obj J).PreservesEpimorphisms", " (preadditiveYoneda.obj J).PreservesEpimorphisms", " (preadditiveYoneda.obj J).PreservesEpimorphisms → (yoneda.obj J).PreservesEpimorphisms", " (yoned...
[]
import Mathlib.Data.Finset.Sort import Mathlib.Data.Fin.VecNotation import Mathlib.Data.Sign import Mathlib.LinearAlgebra.AffineSpace.Combination import Mathlib.LinearAlgebra.AffineSpace.AffineEquiv import Mathlib.LinearAlgebra.Basis.VectorSpace #align_import linear_algebra.affine_space.independent from "leanprover-c...
Mathlib/LinearAlgebra/AffineSpace/Independent.lean
139
158
theorem affineIndependent_set_iff_linearIndependent_vsub {s : Set P} {p₁ : P} (hp₁ : p₁ ∈ s) : AffineIndependent k (fun p => p : s → P) ↔ LinearIndependent k (fun v => v : (fun p => (p -ᵥ p₁ : V)) '' (s \ {p₁}) → V) := by
rw [affineIndependent_iff_linearIndependent_vsub k (fun p => p : s → P) ⟨p₁, hp₁⟩] constructor · intro h have hv : ∀ v : (fun p => (p -ᵥ p₁ : V)) '' (s \ {p₁}), (v : V) +ᵥ p₁ ∈ s \ {p₁} := fun v => (vsub_left_injective p₁).mem_set_image.1 ((vadd_vsub (v : V) p₁).symm ▸ v.property) let f : (fun p : ...
[ " AffineIndependent k p ↔ ∀ (w : ι → k), ∑ i : ι, w i = 0 → (univ.weightedVSub p) w = 0 → ∀ (i : ι), w i = 0", " AffineIndependent k p → ∀ (w : ι → k), ∑ i : ι, w i = 0 → (univ.weightedVSub p) w = 0 → ∀ (i : ι), w i = 0", " (∀ (w : ι → k), ∑ i : ι, w i = 0 → (univ.weightedVSub p) w = 0 → ∀ (i : ι), w i = 0) → A...
[ " AffineIndependent k p ↔ ∀ (w : ι → k), ∑ i : ι, w i = 0 → (univ.weightedVSub p) w = 0 → ∀ (i : ι), w i = 0", " AffineIndependent k p → ∀ (w : ι → k), ∑ i : ι, w i = 0 → (univ.weightedVSub p) w = 0 → ∀ (i : ι), w i = 0", " (∀ (w : ι → k), ∑ i : ι, w i = 0 → (univ.weightedVSub p) w = 0 → ∀ (i : ι), w i = 0) → A...
import Mathlib.Algebra.Group.Commute.Basic import Mathlib.GroupTheory.GroupAction.Basic import Mathlib.Dynamics.PeriodicPts import Mathlib.Data.Set.Pointwise.SMul namespace MulAction open Pointwise variable {α : Type*} variable {G : Type*} [Group G] [MulAction G α] variable {M : Type*} [Monoid M] [MulAction M α] ...
Mathlib/GroupTheory/GroupAction/FixedPoints.lean
96
98
theorem fixedBy_mul (m₁ m₂ : M) : fixedBy α m₁ ∩ fixedBy α m₂ ⊆ fixedBy α (m₁ * m₂) := by
intro a ⟨h₁, h₂⟩ rw [mem_fixedBy, mul_smul, h₂, h₁]
[ " fixedBy α g⁻¹ = fixedBy α g", " x✝ ∈ fixedBy α g⁻¹ ↔ x✝ ∈ fixedBy α g", " g • a ∈ fixedBy α g ↔ a ∈ fixedBy α g", " g • a = a ↔ a ∈ fixedBy α g", " g⁻¹ • a ∈ fixedBy α g ↔ a ∈ fixedBy α g", " fixedBy α g ⊆ fixedBy α (g ^ j)", " a ∈ fixedBy α (g ^ j)", " 1 ∣ j", " fixedBy α m₁ ∩ fixedBy α m₂ ⊆ fixe...
[ " fixedBy α g⁻¹ = fixedBy α g", " x✝ ∈ fixedBy α g⁻¹ ↔ x✝ ∈ fixedBy α g", " g • a ∈ fixedBy α g ↔ a ∈ fixedBy α g", " g • a = a ↔ a ∈ fixedBy α g", " g⁻¹ • a ∈ fixedBy α g ↔ a ∈ fixedBy α g", " fixedBy α g ⊆ fixedBy α (g ^ j)", " a ∈ fixedBy α (g ^ j)", " 1 ∣ j" ]
import Mathlib.Algebra.Group.Commute.Basic import Mathlib.Data.Fintype.Card import Mathlib.GroupTheory.Perm.Basic #align_import group_theory.perm.support from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" open Equiv Finset namespace Equiv.Perm variable {α : Type*} section support s...
Mathlib/GroupTheory/Perm/Support.lean
264
267
theorem set_support_inv_eq : { x | p⁻¹ x ≠ x } = { x | p x ≠ x } := by
ext x simp only [Set.mem_setOf_eq, Ne] rw [inv_def, symm_apply_eq, eq_comm]
[ " {x | p⁻¹ x ≠ x} = {x | p x ≠ x}", " x ∈ {x | p⁻¹ x ≠ x} ↔ x ∈ {x | p x ≠ x}", " ¬p⁻¹ x = x ↔ ¬p x = x" ]
[]
import Mathlib.Data.Fintype.Basic import Mathlib.GroupTheory.Perm.Sign import Mathlib.Logic.Equiv.Defs #align_import logic.equiv.fintype from "leanprover-community/mathlib"@"9407b03373c8cd201df99d6bc5514fc2db44054f" namespace Equiv variable {α β : Type*} [Finite α] noncomputable def toCompl {p q : α → Prop} (e ...
Mathlib/Logic/Equiv/Fintype.lean
138
142
theorem extendSubtype_apply_of_not_mem (e : { x // p x } ≃ { x // q x }) (x) (hx : ¬p x) : e.extendSubtype x = e.toCompl ⟨x, hx⟩ := by
dsimp only [extendSubtype] simp only [subtypeCongr, Equiv.trans_apply, Equiv.sumCongr_apply] rw [sumCompl_apply_symm_of_neg _ _ hx, Sum.map_inr, sumCompl_apply_inr]
[ " { x // ¬p x } ≃ { x // ¬q x }", " Nonempty ({ x // ¬p x } ≃ { x // ¬q x })", " e.extendSubtype x = ↑(e ⟨x, hx⟩)", " (e.subtypeCongr e.toCompl) x = ↑(e ⟨x, hx⟩)", " (sumCompl fun x => q x) (Sum.map (⇑e) (⇑e.toCompl) ((sumCompl fun x => p x).symm x)) = ↑(e ⟨x, hx⟩)", " q (e.extendSubtype x)", " e.extend...
[ " { x // ¬p x } ≃ { x // ¬q x }", " Nonempty ({ x // ¬p x } ≃ { x // ¬q x })", " e.extendSubtype x = ↑(e ⟨x, hx⟩)", " (e.subtypeCongr e.toCompl) x = ↑(e ⟨x, hx⟩)", " (sumCompl fun x => q x) (Sum.map (⇑e) (⇑e.toCompl) ((sumCompl fun x => p x).symm x)) = ↑(e ⟨x, hx⟩)", " q (e.extendSubtype x)" ]
import Mathlib.Algebra.DirectSum.Module import Mathlib.Analysis.Complex.Basic import Mathlib.Analysis.Convex.Uniform import Mathlib.Analysis.NormedSpace.Completion import Mathlib.Analysis.NormedSpace.BoundedLinearMaps #align_import analysis.inner_product_space.basic from "leanprover-community/mathlib"@"3f655f5297b030...
Mathlib/Analysis/InnerProductSpace/Basic.lean
229
229
theorem inner_re_symm (x y : F) : re ⟪x, y⟫ = re ⟪y, x⟫ := by
rw [← inner_conj_symm, conj_re]
[ " 0 ≤ re ⟪x, x⟫_𝕜", " 0 ≤ ‖x‖ ^ 2", " ‖x‖ ^ 2 = 0", " im ⟪x, x⟫_𝕜 = 0", " I * ((starRingEnd 𝕜) ⟪x, x⟫_𝕜 - ⟪x, x⟫_𝕜) / 2 = ↑0", " ⟪x, y + z⟫_𝕜 = ⟪x, y⟫_𝕜 + ⟪x, z⟫_𝕜", " (starRingEnd 𝕜) ⟪y, x⟫_𝕜 + (starRingEnd 𝕜) ⟪z, x⟫_𝕜 = ⟪x, y⟫_𝕜 + ⟪x, z⟫_𝕜", " ↑(normSq x) = ⟪x, x⟫_𝕜", " re ↑(normSq ...
[ " 0 ≤ re ⟪x, x⟫_𝕜", " 0 ≤ ‖x‖ ^ 2", " ‖x‖ ^ 2 = 0", " im ⟪x, x⟫_𝕜 = 0", " I * ((starRingEnd 𝕜) ⟪x, x⟫_𝕜 - ⟪x, x⟫_𝕜) / 2 = ↑0", " ⟪x, y + z⟫_𝕜 = ⟪x, y⟫_𝕜 + ⟪x, z⟫_𝕜", " (starRingEnd 𝕜) ⟪y, x⟫_𝕜 + (starRingEnd 𝕜) ⟪z, x⟫_𝕜 = ⟪x, y⟫_𝕜 + ⟪x, z⟫_𝕜", " ↑(normSq x) = ⟪x, x⟫_𝕜", " re ↑(normSq ...
import Mathlib.Data.ENNReal.Basic import Mathlib.Topology.ContinuousFunction.Bounded import Mathlib.Topology.MetricSpace.Thickening #align_import topology.metric_space.thickened_indicator from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open scoped Classical open NNReal ENNReal Topol...
Mathlib/Topology/MetricSpace/ThickenedIndicator.lean
79
81
theorem thickenedIndicatorAux_closure_eq (δ : ℝ) (E : Set α) : thickenedIndicatorAux δ (closure E) = thickenedIndicatorAux δ E := by
simp (config := { unfoldPartialApp := true }) only [thickenedIndicatorAux, infEdist_closure]
[ " Continuous (thickenedIndicatorAux δ E)", " Continuous fun x => 1 - infEdist x E / ENNReal.ofReal δ", " (fun x => 1 - infEdist x E / ENNReal.ofReal δ) = sub ∘ f", " Continuous (sub ∘ f)", " Continuous fun x => (f x).2", " ENNReal.ofReal δ ≠ 0", " thickenedIndicatorAux δ E x ≤ 1", " thickenedIndicator...
[ " Continuous (thickenedIndicatorAux δ E)", " Continuous fun x => 1 - infEdist x E / ENNReal.ofReal δ", " (fun x => 1 - infEdist x E / ENNReal.ofReal δ) = sub ∘ f", " Continuous (sub ∘ f)", " Continuous fun x => (f x).2", " ENNReal.ofReal δ ≠ 0", " thickenedIndicatorAux δ E x ≤ 1" ]
import Batteries.Data.List.Lemmas import Batteries.Data.Array.Basic import Batteries.Tactic.SeqFocus import Batteries.Util.ProofWanted namespace Array theorem forIn_eq_data_forIn [Monad m] (as : Array α) (b : β) (f : α → β → m (ForInStep β)) : forIn as b f = forIn as.data b f := by let rec loop : ∀ {i h b ...
.lake/packages/batteries/Batteries/Data/Array/Lemmas.lean
75
77
theorem size_zipWith (as : Array α) (bs : Array β) (f : α → β → γ) : (as.zipWith bs f).size = min as.size bs.size := by
rw [size_eq_length_data, zipWith_eq_zipWith_data, List.length_zipWith]
[ " forIn as b f = forIn as.data b f", " forIn.loop as f 0 x✝¹ x✝ = forIn (List.drop as.data.length as.data) x✝ f", " forIn.loop as f 0 x✝¹ x✝ = forIn [] x✝ f", " forIn.loop as f (i + 1) x✝¹ x✝ = forIn (List.drop j as.data) x✝ f", " (do\n let __do_lift ← f as[as.size - 1 - i] x✝\n match __do_lift wi...
[ " forIn as b f = forIn as.data b f", " forIn.loop as f 0 x✝¹ x✝ = forIn (List.drop as.data.length as.data) x✝ f", " forIn.loop as f 0 x✝¹ x✝ = forIn [] x✝ f", " forIn.loop as f (i + 1) x✝¹ x✝ = forIn (List.drop j as.data) x✝ f", " (do\n let __do_lift ← f as[as.size - 1 - i] x✝\n match __do_lift wi...
import Mathlib.Probability.Kernel.MeasurableIntegral import Mathlib.MeasureTheory.Integral.SetIntegral #align_import probability.kernel.with_density from "leanprover-community/mathlib"@"c0d694db494dd4f9aa57f2714b6e4c82b4ebc113" open MeasureTheory ProbabilityTheory open scoped MeasureTheory ENNReal NNReal namesp...
Mathlib/Probability/Kernel/WithDensity.lean
56
57
theorem withDensity_of_not_measurable (κ : kernel α β) [IsSFiniteKernel κ] (hf : ¬Measurable (Function.uncurry f)) : withDensity κ f = 0 := by
classical exact dif_neg hf
[ " (fun a => (κ a).withDensity (f a)) ∈ kernel α β", " Measurable fun b => ((κ b).withDensity (f b)) s", " Measurable fun b => ∫⁻ (a : β) in s, f b a ∂κ b", " withDensity κ f = 0" ]
[ " (fun a => (κ a).withDensity (f a)) ∈ kernel α β", " Measurable fun b => ((κ b).withDensity (f b)) s", " Measurable fun b => ∫⁻ (a : β) in s, f b a ∂κ b" ]
import Mathlib.Data.Nat.Cast.Basic import Mathlib.Algebra.CharZero.Defs import Mathlib.Algebra.Order.Group.Abs import Mathlib.Data.Nat.Cast.NeZero import Mathlib.Algebra.Order.Ring.Nat #align_import data.nat.cast.basic from "leanprover-community/mathlib"@"acebd8d49928f6ed8920e502a6c90674e75bd441" variable {α β : T...
Mathlib/Data/Nat/Cast/Order.lean
147
147
theorem cast_le_one : (n : α) ≤ 1 ↔ n ≤ 1 := by
rw [← cast_one, cast_le]
[ " ↑n ≤ ↑(n + 1)", " ↑n ≤ ↑n + 1", " 1 < ↑n ↔ 1 < n", " 1 ≤ ↑n ↔ 1 ≤ n", " ↑n < 1 ↔ n = 0", " ↑n ≤ 1 ↔ n ≤ 1" ]
[ " ↑n ≤ ↑(n + 1)", " ↑n ≤ ↑n + 1", " 1 < ↑n ↔ 1 < n", " 1 ≤ ↑n ↔ 1 ≤ n", " ↑n < 1 ↔ n = 0" ]
import Mathlib.AlgebraicGeometry.PrimeSpectrum.Basic import Mathlib.RingTheory.Polynomial.Basic #align_import algebraic_geometry.prime_spectrum.is_open_comap_C from "leanprover-community/mathlib"@"052f6013363326d50cb99c6939814a4b8eb7b301" open Ideal Polynomial PrimeSpectrum Set namespace AlgebraicGeometry names...
Mathlib/AlgebraicGeometry/PrimeSpectrum/IsOpenComapC.lean
54
66
theorem imageOfDf_eq_comap_C_compl_zeroLocus : imageOfDf f = PrimeSpectrum.comap (C : R →+* R[X]) '' (zeroLocus {f})ᶜ := by
ext x refine ⟨fun hx => ⟨⟨map C x.asIdeal, isPrime_map_C_of_isPrime x.IsPrime⟩, ⟨?_, ?_⟩⟩, ?_⟩ · rw [mem_compl_iff, mem_zeroLocus, singleton_subset_iff] cases' hx with i hi exact fun a => hi (mem_map_C_iff.mp a i) · ext x refine ⟨fun h => ?_, fun h => subset_span (mem_image_of_mem C.1 h)⟩ rw [←...
[ " IsOpen (imageOfDf f)", " IsOpen (⋃ i, {x | f.coeff i ∉ x.asIdeal})", " imageOfDf f = ⇑(PrimeSpectrum.comap C) '' (zeroLocus {f})ᶜ", " x ∈ imageOfDf f ↔ x ∈ ⇑(PrimeSpectrum.comap C) '' (zeroLocus {f})ᶜ", " { asIdeal := Ideal.map C x.asIdeal, IsPrime := ⋯ } ∈ (zeroLocus {f})ᶜ", " f ∉ ↑{ asIdeal := Ideal.m...
[ " IsOpen (imageOfDf f)", " IsOpen (⋃ i, {x | f.coeff i ∉ x.asIdeal})" ]
import Mathlib.Tactic.CategoryTheory.Coherence import Mathlib.CategoryTheory.Bicategory.Coherence namespace CategoryTheory namespace Bicategory open Category open scoped Bicategory open Mathlib.Tactic.BicategoryCoherence (bicategoricalComp bicategoricalIsoComp) universe w v u variable {B : Type u} [Bicategory...
Mathlib/CategoryTheory/Bicategory/Adjunction.lean
136
149
theorem comp_left_triangle_aux (adj₁ : f₁ ⊣ g₁) (adj₂ : f₂ ⊣ g₂) : leftZigzag (compUnit adj₁ adj₂) (compCounit adj₁ adj₂) = (λ_ _).hom ≫ (ρ_ _).inv := by
calc _ = 𝟙 _ ⊗≫ adj₁.unit ▷ (f₁ ≫ f₂) ⊗≫ f₁ ◁ (adj₂.unit ▷ (g₁ ≫ f₁) ≫ (f₂ ≫ g₂) ◁ adj₁.counit) ▷ f₂ ⊗≫ (f₁ ≫ f₂) ◁ adj₂.counit ⊗≫ 𝟙 _ := by simp [bicategoricalComp]; coherence _ = 𝟙 _ ⊗≫ (leftZigzag adj₁.unit adj₁.counit) ▷ f₂ ⊗≫ f₁ ◁ (leftZ...
[ " rightZigzag η ε ⊗≫ rightZigzag η ε = rightZigzag η ε", " (g ◁ η ⊗≫ ε ▷ g) ⊗≫ g ◁ η ⊗≫ ε ▷ g = g ◁ η ⊗≫ ε ▷ g", " (g ◁ η ⊗≫ ε ▷ g) ⊗≫ g ◁ η ⊗≫ ε ▷ g = g ◁ η ⊗≫ (ε ▷ g ▷ 𝟙 a ≫ (𝟙 b ≫ g) ◁ η) ⊗≫ ε ▷ g", " g ◁ η ≫ (α_ g f g).inv ≫ ε ▷ g ≫ (λ_ g).hom ≫ (ρ_ g).inv ≫ g ◁ η ≫ (α_ g f g).inv ≫ ε ▷ g =\n g ◁ η ≫...
[ " rightZigzag η ε ⊗≫ rightZigzag η ε = rightZigzag η ε", " (g ◁ η ⊗≫ ε ▷ g) ⊗≫ g ◁ η ⊗≫ ε ▷ g = g ◁ η ⊗≫ ε ▷ g", " (g ◁ η ⊗≫ ε ▷ g) ⊗≫ g ◁ η ⊗≫ ε ▷ g = g ◁ η ⊗≫ (ε ▷ g ▷ 𝟙 a ≫ (𝟙 b ≫ g) ◁ η) ⊗≫ ε ▷ g", " g ◁ η ≫ (α_ g f g).inv ≫ ε ▷ g ≫ (λ_ g).hom ≫ (ρ_ g).inv ≫ g ◁ η ≫ (α_ g f g).inv ≫ ε ▷ g =\n g ◁ η ≫...
import Mathlib.Data.ENNReal.Inv #align_import data.real.ennreal from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520" open Set NNReal ENNReal namespace ENNReal section Real variable {a b c d : ℝ≥0∞} {r p q : ℝ≥0} theorem toReal_add (ha : a ≠ ∞) (hb : b ≠ ∞) : (a + b).toReal = a.toReal ...
Mathlib/Data/ENNReal/Real.lean
88
91
theorem toReal_mono' (h : a ≤ b) (ht : b = ∞ → a = ∞) : a.toReal ≤ b.toReal := by
rcases eq_or_ne a ∞ with rfl | ha · exact toReal_nonneg · exact toReal_mono (mt ht ha) h
[ " (a + b).toReal = a.toReal + b.toReal", " (↑a + b).toReal = (↑a).toReal + b.toReal", " (↑a + ↑b).toReal = (↑a).toReal + (↑b).toReal", " (a - b).toReal = a.toReal - b.toReal", " (a - ↑b).toReal = a.toReal - (↑b).toReal", " (↑a - ↑b).toReal = (↑a).toReal - (↑b).toReal", " a.toReal - b.toReal ≤ (a - b).to...
[ " (a + b).toReal = a.toReal + b.toReal", " (↑a + b).toReal = (↑a).toReal + b.toReal", " (↑a + ↑b).toReal = (↑a).toReal + (↑b).toReal", " (a - b).toReal = a.toReal - b.toReal", " (a - ↑b).toReal = a.toReal - (↑b).toReal", " (↑a - ↑b).toReal = (↑a).toReal - (↑b).toReal", " a.toReal - b.toReal ≤ (a - b).to...
import Mathlib.Order.Interval.Set.Disjoint import Mathlib.Order.SuccPred.Basic #align_import data.set.intervals.monotone from "leanprover-community/mathlib"@"4d06b17aea8cf2e220f0b0aa46cd0231593c5c97" open Set section SuccOrder open Order variable {α β : Type*} [PartialOrder α] theorem StrictMonoOn.Iic_id_le [...
Mathlib/Order/Interval/Set/Monotone.lean
230
253
theorem strictMonoOn_Iic_of_lt_succ [SuccOrder α] [IsSuccArchimedean α] {n : α} (hψ : ∀ m, m < n → ψ m < ψ (succ m)) : StrictMonoOn ψ (Set.Iic n) := by
intro x hx y hy hxy obtain ⟨i, rfl⟩ := hxy.le.exists_succ_iterate induction' i with k ih · simp at hxy cases' k with k · exact hψ _ (lt_of_lt_of_le hxy hy) rw [Set.mem_Iic] at * simp only [Function.iterate_succ', Function.comp_apply] at ih hxy hy ⊢ by_cases hmax : IsMax (succ^[k] x) · rw [succ_eq_i...
[ " ∀ m ≤ n, m ≤ φ m", " StrictMonoOn φ (Iic n) → ∀ m ≤ n, m ≤ φ m", " ∀ (a : α),\n (fun n => StrictMonoOn φ (Iic n) → ∀ m ≤ n, m ≤ φ m) a →\n (fun n => StrictMonoOn φ (Iic n) → ∀ m ≤ n, m ≤ φ m) (succ a)", " m ≤ φ m", " succ k ≤ φ (succ k)", " k < succ k", " k = k ∨ k < k", " StrictMonoOn ψ (Ii...
[ " ∀ m ≤ n, m ≤ φ m", " StrictMonoOn φ (Iic n) → ∀ m ≤ n, m ≤ φ m", " ∀ (a : α),\n (fun n => StrictMonoOn φ (Iic n) → ∀ m ≤ n, m ≤ φ m) a →\n (fun n => StrictMonoOn φ (Iic n) → ∀ m ≤ n, m ≤ φ m) (succ a)", " m ≤ φ m", " succ k ≤ φ (succ k)", " k < succ k", " k = k ∨ k < k" ]
import Mathlib.CategoryTheory.LiftingProperties.Basic import Mathlib.CategoryTheory.Adjunction.Basic #align_import category_theory.lifting_properties.adjunction from "leanprover-community/mathlib"@"32253a1a1071173b33dc7d6a218cf722c6feb514" namespace CategoryTheory open Category variable {C D : Type*} [Category ...
Mathlib/CategoryTheory/LiftingProperties/Adjunction.lean
66
68
theorem right_adjoint_hasLift_iff : HasLift (sq.right_adjoint adj) ↔ HasLift sq := by
simp only [HasLift.iff] exact Equiv.nonempty_congr (sq.rightAdjointLiftStructEquiv adj).symm
[ " (adj.homEquiv A X) u ≫ F.map p = i ≫ (adj.homEquiv B Y) v", " adj.unit.app A ≫ F.map (G.map i ≫ v) = i ≫ adj.unit.app B ≫ F.map v", " i ≫ (adj.homEquiv B X) l.l = (adj.homEquiv A X) u", " (adj.homEquiv B X) l.l ≫ F.map p = (adj.homEquiv B Y) v", " G.map i ≫ (adj.homEquiv B X).symm l.l = u", " (adj.homEq...
[ " (adj.homEquiv A X) u ≫ F.map p = i ≫ (adj.homEquiv B Y) v", " adj.unit.app A ≫ F.map (G.map i ≫ v) = i ≫ adj.unit.app B ≫ F.map v", " i ≫ (adj.homEquiv B X) l.l = (adj.homEquiv A X) u", " (adj.homEquiv B X) l.l ≫ F.map p = (adj.homEquiv B Y) v", " G.map i ≫ (adj.homEquiv B X).symm l.l = u", " (adj.homEq...
import Mathlib.Data.Finset.Prod import Mathlib.Data.Sym.Basic import Mathlib.Data.Sym.Sym2.Init import Mathlib.Data.SetLike.Basic #align_import data.sym.sym2 from "leanprover-community/mathlib"@"8631e2d5ea77f6c13054d9151d82b83069680cb1" assert_not_exists MonoidWithZero open Finset Function Sym universe u variab...
Mathlib/Data/Sym/Sym2.lean
69
69
theorem Rel.symm {x y : α × α} : Rel α x y → Rel α y x := by
aesop (rule_sets := [Sym2])
[ " Rel α x y → Rel α y x" ]
[]
import Mathlib.Data.Setoid.Partition import Mathlib.GroupTheory.GroupAction.Basic import Mathlib.GroupTheory.GroupAction.Pointwise import Mathlib.GroupTheory.GroupAction.SubMulAction open scoped BigOperators Pointwise namespace MulAction section orbits variable {G : Type*} [Group G] {X : Type*} [MulAction G X] ...
Mathlib/GroupTheory/GroupAction/Blocks.lean
38
42
theorem orbit.eq_or_disjoint (a b : X) : orbit G a = orbit G b ∨ Disjoint (orbit G a) (orbit G b) := by
apply (em (Disjoint (orbit G a) (orbit G b))).symm.imp _ id simp (config := { contextual := true }) only [Set.not_disjoint_iff, ← orbit_eq_iff, forall_exists_index, and_imp, eq_comm, implies_true]
[ " orbit G a = orbit G b ∨ Disjoint (orbit G a) (orbit G b)", " ¬Disjoint (orbit G a) (orbit G b) → orbit G a = orbit G b" ]
[]
import Mathlib.Algebra.Order.Ring.Abs #align_import data.int.order.units from "leanprover-community/mathlib"@"d012cd09a9b256d870751284dd6a29882b0be105" namespace Int theorem isUnit_iff_abs_eq {x : ℤ} : IsUnit x ↔ abs x = 1 := by rw [isUnit_iff_natAbs_eq, abs_eq_natAbs, ← Int.ofNat_one, natCast_inj] #align int....
Mathlib/Data/Int/Order/Units.lean
40
41
theorem units_div_eq_mul (u₁ u₂ : ℤˣ) : u₁ / u₂ = u₁ * u₂ := by
rw [div_eq_mul_inv, units_inv_eq_self]
[ " IsUnit x ↔ |x| = 1", " a ^ 2 = 1", " u ^ 2 = 1", " u * u = 1", " u⁻¹ = u", " u₁ / u₂ = u₁ * u₂" ]
[ " IsUnit x ↔ |x| = 1", " a ^ 2 = 1", " u ^ 2 = 1", " u * u = 1", " u⁻¹ = u" ]
import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Matrix.RowCol import Mathlib.GroupTheory.GroupAction.Ring import Mathlib.GroupTheory.Perm.Fin import Mathlib.LinearAlgebra.Alternating.Basic #align_import linear_algebra.matrix.determinant from "leanprover-community/mathlib"@"c30...
Mathlib/LinearAlgebra/Matrix/Determinant/Basic.lean
91
91
theorem det_one : det (1 : Matrix n n R) = 1 := by
rw [← diagonal_one]; simp [-diagonal_one]
[ " M.det = ∑ σ : Perm n, ↑↑(sign σ) * ∏ i : n, M (σ i) i", " (diagonal d).det = ∏ i : n, d i", " ∑ σ : Perm n, ↑↑(sign σ) * ∏ i : n, diagonal d (σ i) i = ∏ i : n, d i", " ∀ b ∈ univ, b ≠ 1 → ↑↑(sign b) * ∏ i : n, diagonal d (b i) i = 0", " ↑↑(sign σ) * ∏ i : n, diagonal d (σ i) i = 0", " ∏ i : n, diagonal ...
[ " M.det = ∑ σ : Perm n, ↑↑(sign σ) * ∏ i : n, M (σ i) i", " (diagonal d).det = ∏ i : n, d i", " ∑ σ : Perm n, ↑↑(sign σ) * ∏ i : n, diagonal d (σ i) i = ∏ i : n, d i", " ∀ b ∈ univ, b ≠ 1 → ↑↑(sign b) * ∏ i : n, diagonal d (b i) i = 0", " ↑↑(sign σ) * ∏ i : n, diagonal d (σ i) i = 0", " ∏ i : n, diagonal ...
import Mathlib.Algebra.Order.ToIntervalMod import Mathlib.Algebra.Ring.AddAut import Mathlib.Data.Nat.Totient import Mathlib.GroupTheory.Divisible import Mathlib.Topology.Connected.PathConnected import Mathlib.Topology.IsLocalHomeomorph #align_import topology.instances.add_circle from "leanprover-community/mathlib"@"...
Mathlib/Topology/Instances/AddCircle.lean
156
164
theorem coe_eq_zero_of_pos_iff (hp : 0 < p) {x : 𝕜} (hx : 0 < x) : (x : AddCircle p) = 0 ↔ ∃ n : ℕ, n • p = x := by
rw [coe_eq_zero_iff] constructor <;> rintro ⟨n, rfl⟩ · replace hx : 0 < n := by contrapose! hx simpa only [← neg_nonneg, ← zsmul_neg, zsmul_neg'] using zsmul_nonneg hp.le (neg_nonneg.2 hx) exact ⟨n.toNat, by rw [← natCast_zsmul, Int.toNat_of_nonneg hx.le]⟩ · exact ⟨(n : ℤ), by simp⟩
[ " ↑x = 0 ↔ ∃ n, n • p = x", " (∃ n, n • p = x) ↔ ∃ n, n • p = x", " (∃ n, n • p = x) → ∃ n, n • p = x", " ∃ n_1, n_1 • p = n • p", " 0 < n", " n • p ≤ 0", " n.toNat • p = n • p", " ↑n • p = n • p" ]
[ " ↑x = 0 ↔ ∃ n, n • p = x" ]
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
330
338
theorem algHom_bijective [Algebra.IsAlgebraic K L] (f : L →ₐ[K] L) : Function.Bijective f := by
refine ⟨f.injective, fun b ↦ ?_⟩ obtain ⟨p, hp, he⟩ := Algebra.IsAlgebraic.isAlgebraic (R := K) b let f' : p.rootSet L → p.rootSet L := (rootSet_maps_to' (fun x ↦ x) f).restrict f _ _ have : f'.Surjective := Finite.injective_iff_surjective.1 fun _ _ h ↦ Subtype.eq <| f.injective <| Subtype.ext_iff.1 h ob...
[ " 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.MeasureTheory.Decomposition.RadonNikodym import Mathlib.Probability.Kernel.Disintegration.CdfToKernel #align_import probability.kernel.cond_cdf from "leanprover-community/mathlib"@"3b88f4005dc2e28d42f974cc1ce838f0dafb39b8" open MeasureTheory Set Filter TopologicalSpace open scoped NNReal ENNReal Me...
Mathlib/Probability/Kernel/Disintegration/CondCdf.lean
72
75
theorem IicSnd_le_fst (r : ℝ) : ρ.IicSnd r ≤ ρ.fst := by
refine Measure.le_iff.2 fun s hs ↦ ?_ simp_rw [fst_apply hs, IicSnd_apply ρ r hs] exact measure_mono (prod_subset_preimage_fst _ _)
[ " (ρ.IicSnd r) s = ρ (s ×ˢ Iic r)", " ρ.IicSnd r ≤ ρ.IicSnd r'", " (ρ.IicSnd r) s ≤ (ρ.IicSnd r') s", " ρ (s ×ˢ Iic r) ≤ ρ (s ×ˢ Iic r')", " r ≤ r'", " ρ.IicSnd r ≤ ρ.fst", " (ρ.IicSnd r) s ≤ ρ.fst s", " ρ (s ×ˢ Iic r) ≤ ρ (Prod.fst ⁻¹' s)" ]
[ " (ρ.IicSnd r) s = ρ (s ×ˢ Iic r)", " ρ.IicSnd r ≤ ρ.IicSnd r'", " (ρ.IicSnd r) s ≤ (ρ.IicSnd r') s", " ρ (s ×ˢ Iic r) ≤ ρ (s ×ˢ Iic r')", " r ≤ r'" ]
import Mathlib.Algebra.BigOperators.Finprod import Mathlib.Algebra.Group.ConjFinite import Mathlib.Algebra.Group.Subgroup.Finite import Mathlib.Data.Set.Card import Mathlib.GroupTheory.Subgroup.Center open MulAction ConjClasses variable (G : Type*) [Group G] theorem sum_conjClasses_card_eq_card [Fintype <| Conj...
Mathlib/GroupTheory/ClassEquation.lean
38
43
theorem Group.sum_card_conj_classes_eq_card [Finite G] : ∑ᶠ x : ConjClasses G, x.carrier.ncard = Nat.card G := by
classical cases nonempty_fintype G rw [Nat.card_eq_fintype_card, ← sum_conjClasses_card_eq_card, finsum_eq_sum_of_fintype] simp [Set.ncard_eq_toFinset_card']
[ " ∑ x : ConjClasses G, x.carrier.toFinset.card = Fintype.card G", " (x : ConjClasses G) × ↑x.carrier ≃ G", " ∑ᶠ (x : ConjClasses G), x.carrier.ncard = Nat.card G", " ∑ i : ConjClasses G, i.carrier.ncard = ∑ x : ConjClasses G, x.carrier.toFinset.card" ]
[ " ∑ x : ConjClasses G, x.carrier.toFinset.card = Fintype.card G", " (x : ConjClasses G) × ↑x.carrier ≃ G" ]
import Mathlib.Algebra.Group.Indicator import Mathlib.Algebra.Module.Defs import Mathlib.Algebra.Order.Field.Rat import Mathlib.GroupTheory.GroupAction.Group import Mathlib.GroupTheory.GroupAction.Pi #align_import algebra.module.basic from "leanprover-community/mathlib"@"30413fc89f202a090a54d78e540963ed3de0056e" o...
Mathlib/Algebra/Module/Basic.lean
28
43
theorem map_inv_natCast_smul [AddCommMonoid M] [AddCommMonoid M₂] {F : Type*} [FunLike F M M₂] [AddMonoidHomClass F M M₂] (f : F) (R S : Type*) [DivisionSemiring R] [DivisionSemiring S] [Module R M] [Module S M₂] (n : ℕ) (x : M) : f ((n⁻¹ : R) • x) = (n⁻¹ : S) • f x := by
by_cases hR : (n : R) = 0 <;> by_cases hS : (n : S) = 0 · simp [hR, hS, map_zero f] · suffices ∀ y, f y = 0 by rw [this, this, smul_zero] clear x intro x rw [← inv_smul_smul₀ hS (f x), ← map_natCast_smul f R S] simp [hR, map_zero f] · suffices ∀ y, f y = 0 by simp [this] clear x intro x...
[ " f ((↑n)⁻¹ • x) = (↑n)⁻¹ • f x", " ∀ (y : M), f y = 0", " f x = 0", " (↑n)⁻¹ • f (↑n • x) = 0" ]
[]
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
38
43
theorem Equiv.optionCongr_sign {α : Type*} [DecidableEq α] [Fintype α] (e : Perm α) : Perm.sign e.optionCongr = Perm.sign e := by
refine Perm.swap_induction_on e ?_ ?_ · simp [Perm.one_def] · intro f x y hne h simp [h, hne, Perm.mul_def, ← Equiv.optionCongr_trans]
[ " 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)" ]
import Mathlib.Data.Matrix.Basis import Mathlib.Data.Matrix.DMatrix import Mathlib.LinearAlgebra.Matrix.Determinant.Basic import Mathlib.LinearAlgebra.Matrix.Reindex import Mathlib.Tactic.FieldSimp #align_import linear_algebra.matrix.transvection from "leanprover-community/mathlib"@"0e2aab2b0d521f060f62a14d2cf2e2c54e...
Mathlib/LinearAlgebra/Matrix/Transvection.lean
141
142
theorem det_transvection_of_ne (h : i ≠ j) (c : R) : det (transvection i j c) = 1 := by
rw [← updateRow_eq_transvection i j, det_updateRow_add_smul_self _ h, det_one]
[ " transvection i j 0 = 1", " updateRow 1 i (1 i + c • 1 j) = transvection i j c", " updateRow 1 i (1 i + c • 1 j) a b = transvection i j c a b", " transvection i j c * transvection i j d = transvection i j (c + d)", " (transvection i j c * M) i b = M i b + c * M j b", " (M * transvection i j c) a j = M a ...
[ " transvection i j 0 = 1", " updateRow 1 i (1 i + c • 1 j) = transvection i j c", " updateRow 1 i (1 i + c • 1 j) a b = transvection i j c a b", " transvection i j c * transvection i j d = transvection i j (c + d)", " (transvection i j c * M) i b = M i b + c * M j b", " (M * transvection i j c) a j = M a ...
import Mathlib.MeasureTheory.Function.L1Space import Mathlib.Analysis.NormedSpace.IndicatorFunction #align_import measure_theory.integral.integrable_on from "leanprover-community/mathlib"@"8b8ba04e2f326f3f7cf24ad129beda58531ada61" noncomputable section open Set Filter TopologicalSpace MeasureTheory Function ope...
Mathlib/MeasureTheory/Integral/IntegrableOn.lean
572
583
theorem ContinuousOn.aemeasurable [TopologicalSpace α] [OpensMeasurableSpace α] [MeasurableSpace β] [TopologicalSpace β] [BorelSpace β] {f : α → β} {s : Set α} {μ : Measure α} (hf : ContinuousOn f s) (hs : MeasurableSet s) : AEMeasurable f (μ.restrict s) := by
nontriviality α; inhabit α have : (Set.piecewise s f fun _ => f default) =ᵐ[μ.restrict s] f := piecewise_ae_eq_restrict hs refine ⟨Set.piecewise s f fun _ => f default, ?_, this.symm⟩ apply measurable_of_isOpen intro t ht obtain ⟨u, u_open, hu⟩ : ∃ u : Set α, IsOpen u ∧ f ⁻¹' t ∩ s = u ∩ s := _root_.co...
[ " AEStronglyMeasurable f (μ.restrict ∅)", " AEStronglyMeasurable f (μ.restrict univ)", " AEMeasurable f (μ.restrict s)", " Measurable (s.piecewise f fun x => f default)", " ∀ (s_1 : Set β), IsOpen s_1 → MeasurableSet ((s.piecewise f fun x => f default) ⁻¹' s_1)", " MeasurableSet ((s.piecewise f fun x => f...
[ " AEStronglyMeasurable f (μ.restrict ∅)", " AEStronglyMeasurable f (μ.restrict univ)" ]
import Mathlib.Data.Int.Bitwise import Mathlib.LinearAlgebra.Matrix.NonsingularInverse import Mathlib.LinearAlgebra.Matrix.Symmetric #align_import linear_algebra.matrix.zpow from "leanprover-community/mathlib"@"03fda9112aa6708947da13944a19310684bfdfcb" open Matrix namespace Matrix variable {n' : Type*} [Decidab...
Mathlib/LinearAlgebra/Matrix/ZPow.lean
44
47
theorem inv_pow' (A : M) (n : ℕ) : A⁻¹ ^ n = (A ^ n)⁻¹ := by
induction' n with n ih · simp · rw [pow_succ A, mul_inv_rev, ← ih, ← pow_succ']
[ " Monoid M", " Inv M", " A⁻¹ ^ n = (A ^ n)⁻¹", " A⁻¹ ^ 0 = (A ^ 0)⁻¹", " A⁻¹ ^ (n + 1) = (A ^ (n + 1))⁻¹" ]
[ " Monoid M", " Inv M" ]
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285b...
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
313
314
theorem map_smul₂ (f : E →L[𝕜] F →L[𝕜] G) (c : 𝕜) (x : E) (y : F) : f (c • x) y = c • f x y := by
rw [f.map_smul, smul_apply]
[ " (p₁ + p₂).1.prod (p₁ + p₂).2 = p₁.1.prod p₁.2 + p₂.1.prod p₂.2", " ((p₁ + p₂).1.prod (p₁ + p₂).2) x✝ = (p₁.1.prod p₁.2 + p₂.1.prod p₂.2) x✝", " (c • p).1.prod (c • p).2 = c • p.1.prod p.2", " ((c • p).1.prod (c • p).2) x✝ = (c • p.1.prod p.2) x✝", " ∃ M, 0 < M ∧ ∀ (x : ContinuousMultilinearMap 𝕜 E F × Co...
[ " (p₁ + p₂).1.prod (p₁ + p₂).2 = p₁.1.prod p₁.2 + p₂.1.prod p₂.2", " ((p₁ + p₂).1.prod (p₁ + p₂).2) x✝ = (p₁.1.prod p₁.2 + p₂.1.prod p₂.2) x✝", " (c • p).1.prod (c • p).2 = c • p.1.prod p.2", " ((c • p).1.prod (c • p).2) x✝ = (c • p.1.prod p.2) x✝", " ∃ M, 0 < M ∧ ∀ (x : ContinuousMultilinearMap 𝕜 E F × Co...
import Mathlib.Algebra.BigOperators.Group.Finset import Mathlib.LinearAlgebra.Vandermonde import Mathlib.RingTheory.Polynomial.Basic #align_import linear_algebra.lagrange from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" open Polynomial section PolynomialDetermination namespace Poly...
Mathlib/LinearAlgebra/Lagrange.lean
74
83
theorem eq_of_degree_le_of_eval_finset_eq (h_deg_le : f.degree ≤ s.card) (h_deg_eq : f.degree = g.degree) (hlc : f.leadingCoeff = g.leadingCoeff) (h_eval : ∀ x ∈ s, f.eval x = g.eval x) : f = g := by
rcases eq_or_ne f 0 with rfl | hf · rwa [degree_zero, eq_comm, degree_eq_bot, eq_comm] at h_deg_eq · exact eq_of_degree_sub_lt_of_eval_finset_eq s (lt_of_lt_of_le (degree_sub_lt h_deg_eq hf hlc) h_deg_le) h_eval
[ " f = 0", " (degreeLTEquiv R s.card) ⟨f, degree_f_lt⟩ = 0", " f = g", " f - g = 0", " ∀ x ∈ s, eval x (f - g) = 0", " ∀ x ∈ s, eval x f = eval x g", " (f - g).degree < ↑s.card", " f - g ∈ degreeLT R s.card", " 0 = g" ]
[ " f = 0", " (degreeLTEquiv R s.card) ⟨f, degree_f_lt⟩ = 0", " f = g", " f - g = 0", " ∀ x ∈ s, eval x (f - g) = 0", " ∀ x ∈ s, eval x f = eval x g", " (f - g).degree < ↑s.card", " f - g ∈ degreeLT R s.card" ]
import Mathlib.Algebra.Group.Basic import Mathlib.Algebra.Order.Monoid.Canonical.Defs import Mathlib.Data.Set.Function import Mathlib.Order.Interval.Set.Basic #align_import data.set.intervals.monoid from "leanprover-community/mathlib"@"aba57d4d3dae35460225919dcd82fe91355162f9" namespace Set variable {M : Type*} ...
Mathlib/Algebra/Order/Interval/Set/Monoid.lean
128
129
theorem image_const_add_Ico : (fun x => a + x) '' Ico b c = Ico (a + b) (a + c) := by
simp only [add_comm a, image_add_const_Ico]
[ " BijOn (fun x => x + d) (Ici a) (Ici (a + d))", " x✝ ∈ (fun x => x + d) '' Ici a", " a + d + c ∈ (fun x => x + d) '' Ici a", " (fun x => x + d) (a + c) = a + d + c", " BijOn (fun x => x + d) (Ioi a) (Ioi (a + d))", " x✝ ∈ (fun x => x + d) '' Ioi a", " a + d + c ∈ (fun x => x + d) '' Ioi a", " BijOn (...
[ " BijOn (fun x => x + d) (Ici a) (Ici (a + d))", " x✝ ∈ (fun x => x + d) '' Ici a", " a + d + c ∈ (fun x => x + d) '' Ici a", " (fun x => x + d) (a + c) = a + d + c", " BijOn (fun x => x + d) (Ioi a) (Ioi (a + d))", " x✝ ∈ (fun x => x + d) '' Ioi a", " a + d + c ∈ (fun x => x + d) '' Ioi a", " BijOn (...
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
209
211
theorem compl_cylinder (s : Finset ι) (S : Set (∀ i : s, α i)) : (cylinder s S)ᶜ = cylinder s (Sᶜ) := by
ext1 f; simp only [mem_compl_iff, mem_cylinder]
[ " 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.SpecialFunctions.Integrals import Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar import Mathlib.MeasureTheory.Integral.Layercake #align_import analysis.special_functions.japanese_bracket from "leanprover-community/mathlib"@"fd5edc43dc4f10b85abfe544b88f82cf13c5f844" noncomputable section op...
Mathlib/Analysis/SpecialFunctions/JapaneseBracket.lean
36
38
theorem sqrt_one_add_norm_sq_le (x : E) : √((1 : ℝ) + ‖x‖ ^ 2) ≤ 1 + ‖x‖ := by
rw [sqrt_le_left (by positivity)] simp [add_sq]
[ " √(1 + ‖x‖ ^ 2) ≤ 1 + ‖x‖", " 0 ≤ 1 + ‖x‖", " 1 + ‖x‖ ^ 2 ≤ (1 + ‖x‖) ^ 2" ]
[]
import Mathlib.Algebra.Homology.Homotopy import Mathlib.AlgebraicTopology.DoldKan.Notations #align_import algebraic_topology.dold_kan.homotopies from "leanprover-community/mathlib"@"b12099d3b7febf4209824444dd836ef5ad96db55" open CategoryTheory CategoryTheory.Category CategoryTheory.Limits CategoryTheory.Preadditi...
Mathlib/AlgebraicTopology/DoldKan/Homotopies.lean
122
125
theorem hσ'_eq' {q n a : ℕ} (ha : n = a + q) : (hσ' q n (n + 1) rfl : X _[n] ⟶ X _[n + 1]) = (-1 : ℤ) ^ a • X.σ ⟨a, Nat.lt_succ_iff.mpr (Nat.le.intro (Eq.symm ha))⟩ := by
rw [hσ'_eq ha rfl, eqToHom_refl, comp_id]
[ " ¬c.Rel 0 j", " False", " j.succ ≤ 0", " X _[n + 1] = K[X].X m", " hσ' q n m hnm = 0", " (if n < q then 0 else (-1) ^ (n - q) • X.σ ⟨n - q, ⋯⟩) ≫ eqToHom ⋯ = 0", " 0 ≫ eqToHom ⋯ = 0", " hσ' q n m hnm = ((-1) ^ a • X.σ ⟨a, ⋯⟩) ≫ eqToHom ⋯", " (if n < q then 0 else (-1) ^ (n - q) • X.σ ⟨n - q, ⋯⟩) ≫ ...
[ " ¬c.Rel 0 j", " False", " j.succ ≤ 0", " X _[n + 1] = K[X].X m", " hσ' q n m hnm = 0", " (if n < q then 0 else (-1) ^ (n - q) • X.σ ⟨n - q, ⋯⟩) ≫ eqToHom ⋯ = 0", " 0 ≫ eqToHom ⋯ = 0", " hσ' q n m hnm = ((-1) ^ a • X.σ ⟨a, ⋯⟩) ≫ eqToHom ⋯", " (if n < q then 0 else (-1) ^ (n - q) • X.σ ⟨n - q, ⋯⟩) ≫ ...
import Mathlib.RingTheory.UniqueFactorizationDomain import Mathlib.RingTheory.Localization.Basic #align_import ring_theory.localization.away.basic from "leanprover-community/mathlib"@"a7c017d750512a352b623b1824d75da5998457d0" section CommSemiring variable {R : Type*} [CommSemiring R] (M : Submonoid R) {S : Type*...
Mathlib/RingTheory/Localization/Away/Basic.lean
58
61
theorem mul_invSelf : algebraMap R S x * invSelf x = 1 := by
convert IsLocalization.mk'_mul_mk'_eq_one (M := Submonoid.powers x) (S := S) _ 1 symm apply IsLocalization.mk'_one
[ " (algebraMap R S) x * invSelf x = 1", " (algebraMap R S) x = mk' S (↑⟨x, ⋯⟩) 1", " mk' S (↑⟨x, ⋯⟩) 1 = (algebraMap R S) x" ]
[]
import Mathlib.Dynamics.Ergodic.MeasurePreserving #align_import dynamics.ergodic.ergodic from "leanprover-community/mathlib"@"809e920edfa343283cea507aedff916ea0f1bd88" open Set Function Filter MeasureTheory MeasureTheory.Measure open ENNReal variable {α : Type*} {m : MeasurableSpace α} (f : α → α) {s : Set α} ...
Mathlib/Dynamics/Ergodic/Ergodic.lean
99
106
theorem preErgodic_conjugate_iff {e : α ≃ᵐ β} (h : MeasurePreserving e μ μ') : PreErgodic (e ∘ f ∘ e.symm) μ' ↔ PreErgodic f μ := by
refine ⟨fun hf => preErgodic_of_preErgodic_conjugate (h.symm e) hf ?_, fun hf => preErgodic_of_preErgodic_conjugate h hf ?_⟩ · change (e.symm ∘ e) ∘ f ∘ e.symm = f ∘ e.symm rw [MeasurableEquiv.symm_comp_self, id_comp] · change e ∘ f = e ∘ f ∘ e.symm ∘ e rw [MeasurableEquiv.symm_comp_self, comp_id]
[ " ∀ ⦃s : Set β⦄, MeasurableSet s → f' ⁻¹' s = s → s =ᶠ[ae μ'] ∅ ∨ s =ᶠ[ae μ'] univ", " s =ᶠ[ae μ'] ∅ ∨ s =ᶠ[ae μ'] univ", " f ⁻¹' (g ⁻¹' s) = g ⁻¹' s", " s =ᶠ[ae μ'] ∅", " s =ᶠ[ae μ'] univ", " PreErgodic (⇑e ∘ f ∘ ⇑e.symm) μ' ↔ PreErgodic f μ", " ⇑e.symm ∘ ⇑e ∘ f ∘ ⇑e.symm = f ∘ ⇑e.symm", " (⇑e.symm ∘...
[ " ∀ ⦃s : Set β⦄, MeasurableSet s → f' ⁻¹' s = s → s =ᶠ[ae μ'] ∅ ∨ s =ᶠ[ae μ'] univ", " s =ᶠ[ae μ'] ∅ ∨ s =ᶠ[ae μ'] univ", " f ⁻¹' (g ⁻¹' s) = g ⁻¹' s", " s =ᶠ[ae μ'] ∅", " s =ᶠ[ae μ'] univ" ]
import Mathlib.Topology.Sets.Closeds #align_import topology.noetherian_space from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988" variable (α β : Type*) [TopologicalSpace α] [TopologicalSpace β] namespace TopologicalSpace @[mk_iff] class NoetherianSpace : Prop where wellFounded_open...
Mathlib/Topology/NoetherianSpace.lean
150
155
theorem NoetherianSpace.iUnion {ι : Type*} (f : ι → Set α) [Finite ι] [hf : ∀ i, NoetherianSpace (f i)] : NoetherianSpace (⋃ i, f i) := by
simp_rw [noetherianSpace_set_iff] at hf ⊢ intro t ht rw [← Set.inter_eq_left.mpr ht, Set.inter_iUnion] exact isCompact_iUnion fun i => hf i _ Set.inter_subset_right
[ " NoetherianSpace α ↔ ∀ (s : Opens α), IsCompact ↑s", " (∀ (k : Opens α), CompleteLattice.IsCompactElement k) ↔ ∀ (s : Opens α), IsCompact ↑s", " IsCompact s", " ∃ t, s ⊆ ⋃ i ∈ t, U i", " [NoetherianSpace α, WellFounded fun s t => s < t, ∀ (s : Set α), IsCompact s, ∀ (s : Opens α), IsCompact ↑s].TFAE", " ...
[ " NoetherianSpace α ↔ ∀ (s : Opens α), IsCompact ↑s", " (∀ (k : Opens α), CompleteLattice.IsCompactElement k) ↔ ∀ (s : Opens α), IsCompact ↑s", " IsCompact s", " ∃ t, s ⊆ ⋃ i ∈ t, U i", " [NoetherianSpace α, WellFounded fun s t => s < t, ∀ (s : Set α), IsCompact s, ∀ (s : Opens α), IsCompact ↑s].TFAE", " ...
import Mathlib.Data.List.Defs import Mathlib.Data.Option.Basic import Mathlib.Data.Nat.Defs import Mathlib.Init.Data.List.Basic import Mathlib.Util.AssertExists -- Make sure we haven't imported `Data.Nat.Order.Basic` assert_not_exists OrderedSub namespace List universe u v variable {α : Type u} {β : Type v} (l :...
Mathlib/Data/List/GetD.lean
57
63
theorem getD_eq_default {n : ℕ} (hn : l.length ≤ n) : l.getD n d = d := by
induction l generalizing n with | nil => exact getD_nil | cons head tail ih => cases n · simp at hn · exact ih (Nat.le_of_succ_le_succ hn)
[ " l.getD n d = l.get ⟨n, hn⟩", " [].getD n d = [].get ⟨n, hn⟩", " (head :: tail).getD n d = (head :: tail).get ⟨n, hn⟩", " (head :: tail).getD 0 d = (head :: tail).get ⟨0, hn⟩", " (head :: tail).getD (n✝ + 1) d = (head :: tail).get ⟨n✝ + 1, hn⟩", " (map f l).getD n (f d) = f (l.getD n d)", " (map f [])....
[ " l.getD n d = l.get ⟨n, hn⟩", " [].getD n d = [].get ⟨n, hn⟩", " (head :: tail).getD n d = (head :: tail).get ⟨n, hn⟩", " (head :: tail).getD 0 d = (head :: tail).get ⟨0, hn⟩", " (head :: tail).getD (n✝ + 1) d = (head :: tail).get ⟨n✝ + 1, hn⟩", " (map f l).getD n (f d) = f (l.getD n d)", " (map f [])....
import Mathlib.NumberTheory.LegendreSymbol.QuadraticChar.Basic import Mathlib.NumberTheory.GaussSum #align_import number_theory.legendre_symbol.quadratic_char.gauss_sum from "leanprover-community/mathlib"@"5b2fe80501ff327b9109fb09b7cc8c325cd0d7d9" section SpecialValues open ZMod MulChar variable {F : Type*} ...
Mathlib/NumberTheory/LegendreSymbol/QuadraticChar/GaussSum.lean
42
61
theorem FiniteField.isSquare_two_iff : IsSquare (2 : F) ↔ Fintype.card F % 8 ≠ 3 ∧ Fintype.card F % 8 ≠ 5 := by
classical by_cases hF : ringChar F = 2 focus have h := FiniteField.even_card_of_char_two hF simp only [FiniteField.isSquare_of_char_two hF, true_iff_iff] rotate_left focus have h := FiniteField.odd_card_of_char_ne_two hF rw [← quadraticChar_one_iff_isSquare (Ring.two_ne_zero hF), quadraticCha...
[ " IsSquare 2 ↔ Fintype.card F % 8 ≠ 3 ∧ Fintype.card F % 8 ≠ 5", " Fintype.card F % 8 ≠ 3 ∧ Fintype.card F % 8 ≠ 5", " (if Fintype.card F % 2 = 0 then 0 else if Fintype.card F % 8 = 1 ∨ Fintype.card F % 8 = 7 then 1 else -1) = 1 ↔\n Fintype.card F % 8 ≠ 3 ∧ Fintype.card F % 8 ≠ 5", " -1 ≠ 1", " Fintype.c...
[]
import Mathlib.Analysis.LocallyConvex.Bounded import Mathlib.Topology.Algebra.Module.Multilinear.Basic open Bornology Filter Set Function open scoped Topology namespace Bornology.IsVonNBounded variable {ι 𝕜 F : Type*} {E : ι → Type*} [NormedField 𝕜] [∀ i, AddCommGroup (E i)] [∀ i, Module 𝕜 (E i)] [∀ i, Topol...
Mathlib/Topology/Algebra/Module/Multilinear/Bounded.lean
44
83
theorem image_multilinear' [Nonempty ι] {s : Set (∀ i, E i)} (hs : IsVonNBounded 𝕜 s) (f : ContinuousMultilinearMap 𝕜 E F) : IsVonNBounded 𝕜 (f '' s) := fun V hV ↦ by classical if h₁ : ∀ c : 𝕜, ‖c‖ ≤ 1 then exact absorbs_iff_norm.2 ⟨2, fun c hc ↦ by linarith [h₁ c]⟩ else let _ : NontriviallyNormed...
have hfV : f ⁻¹' V ∈ 𝓝 0 := (map_continuous f).tendsto' _ _ f.map_zero hV rwa [nhds_pi, Filter.mem_pi, exists_finite_iff_finset] at hfV have : ∀ i, ∃ c : 𝕜, c ≠ 0 ∧ ∀ c' : 𝕜, ‖c'‖ ≤ ‖c‖ → ∀ x ∈ s, c' • x i ∈ t i := fun i ↦ by rw [isVonNBounded_pi_iff] at hs have := (hs i).tendsto_smallSe...
[ " Absorbs 𝕜 V (⇑f '' s)", " ⇑f '' s ⊆ c • V", " ∃ x, 1 < ‖x‖", " ∃ I t, (∀ (i : ι), t i ∈ 𝓝 0) ∧ (↑I).pi t ⊆ ⇑f ⁻¹' V", " ∃ c, c ≠ 0 ∧ ∀ (c' : 𝕜), ‖c'‖ ≤ ‖c‖ → ∀ x ∈ s, c' • x i ∈ t i", " c' • x i ∈ t i", " ∃ i, 0 < i ∧ ∀ ⦃x : 𝕜⦄, x ∈ {y | ‖y‖ < i} → MapsTo (fun x_1 => x • x_1) (⇑f '' s) V", " ((f...
[]
import Mathlib.RingTheory.RingHomProperties #align_import ring_theory.ring_hom.finite from "leanprover-community/mathlib"@"b5aecf07a179c60b6b37c1ac9da952f3b565c785" namespace RingHom open scoped TensorProduct open TensorProduct Algebra.TensorProduct theorem finite_stableUnderComposition : StableUnderCompositio...
Mathlib/RingTheory/RingHom/Finite.lean
28
31
theorem finite_respectsIso : RespectsIso @Finite := by
apply finite_stableUnderComposition.respectsIso intros exact Finite.of_surjective _ (RingEquiv.toEquiv _).surjective
[ " StableUnderComposition @Finite", " (g.comp f).Finite", " RespectsIso @Finite", " ∀ {R S : Type u_1} [inst : CommRing R] [inst_1 : CommRing S] (e : R ≃+* S), e.toRingHom.Finite", " e✝.toRingHom.Finite" ]
[ " StableUnderComposition @Finite", " (g.comp f).Finite" ]
import Mathlib.CategoryTheory.Monoidal.Braided.Basic import Mathlib.Algebra.Category.ModuleCat.Monoidal.Basic #align_import algebra.category.Module.monoidal.symmetric from "leanprover-community/mathlib"@"74403a3b2551b0970855e14ef5e8fd0d6af1bfc2" suppress_compilation universe v w x u open CategoryTheory MonoidalC...
Mathlib/Algebra/Category/ModuleCat/Monoidal/Symmetric.lean
65
71
theorem hexagon_reverse (X Y Z : ModuleCat.{u} R) : (α_ X Y Z).inv ≫ (braiding _ Z).hom ≫ (α_ Z X Y).inv = X ◁ (Y.braiding Z).hom ≫ (α_ X Z Y).inv ≫ (X.braiding Z).hom ▷ Y := by
apply (cancel_epi (α_ X Y Z).hom).1 apply TensorProduct.ext_threefold intro x y z rfl
[ " (f ⊗ g) ≫ (Y₁.braiding Y₂).hom = (X₁.braiding X₂).hom ≫ (g ⊗ f)", " ∀ (x : ↑X₁) (y : ↑X₂), ((f ⊗ g) ≫ (Y₁.braiding Y₂).hom) (x ⊗ₜ[R] y) = ((X₁.braiding X₂).hom ≫ (g ⊗ f)) (x ⊗ₜ[R] y)", " ((f ⊗ g) ≫ (Y₁.braiding Y₂).hom) (x ⊗ₜ[R] y) = ((X₁.braiding X₂).hom ≫ (g ⊗ f)) (x ⊗ₜ[R] y)", " f ▷ Z ≫ (Y.braiding Z).ho...
[ " (f ⊗ g) ≫ (Y₁.braiding Y₂).hom = (X₁.braiding X₂).hom ≫ (g ⊗ f)", " ∀ (x : ↑X₁) (y : ↑X₂), ((f ⊗ g) ≫ (Y₁.braiding Y₂).hom) (x ⊗ₜ[R] y) = ((X₁.braiding X₂).hom ≫ (g ⊗ f)) (x ⊗ₜ[R] y)", " ((f ⊗ g) ≫ (Y₁.braiding Y₂).hom) (x ⊗ₜ[R] y) = ((X₁.braiding X₂).hom ≫ (g ⊗ f)) (x ⊗ₜ[R] y)", " f ▷ Z ≫ (Y.braiding Z).ho...
import Mathlib.Logic.UnivLE import Mathlib.SetTheory.Ordinal.Basic set_option autoImplicit true noncomputable section open Cardinal theorem univLE_iff_cardinal_le : UnivLE.{u, v} ↔ univ.{u, v+1} ≤ univ.{v, u+1} := by rw [← not_iff_not, UnivLE]; simp_rw [small_iff_lift_mk_lt_univ]; push_neg -- strange: simp_r...
Mathlib/SetTheory/Cardinal/UnivLE.lean
30
31
theorem univLE_total : UnivLE.{u, v} ∨ UnivLE.{v, u} := by
simp_rw [univLE_iff_cardinal_le]; apply le_total
[ " UnivLE.{u, v} ↔ univ.{u, v + 1} ≤ univ.{v, u + 1}", " (¬∀ (α : Type u), Small.{v, u} α) ↔ ¬univ.{u, v + 1} ≤ univ.{v, u + 1}", " (¬∀ (α : Type u), lift.{v + 1, u} #α < univ.{v, max u (v + 1)}) ↔ ¬univ.{u, v + 1} ≤ univ.{v, u + 1}", " (∃ α, univ.{v, max u (v + 1)} ≤ lift.{v + 1, u} #α) ↔ univ.{v, u + 1} < un...
[ " UnivLE.{u, v} ↔ univ.{u, v + 1} ≤ univ.{v, u + 1}", " (¬∀ (α : Type u), Small.{v, u} α) ↔ ¬univ.{u, v + 1} ≤ univ.{v, u + 1}", " (¬∀ (α : Type u), lift.{v + 1, u} #α < univ.{v, max u (v + 1)}) ↔ ¬univ.{u, v + 1} ≤ univ.{v, u + 1}", " (∃ α, univ.{v, max u (v + 1)} ≤ lift.{v + 1, u} #α) ↔ univ.{v, u + 1} < un...
import Mathlib.MeasureTheory.Constructions.Prod.Basic import Mathlib.MeasureTheory.Measure.MeasureSpace namespace MeasureTheory namespace Measure variable {M : Type*} [Monoid M] [MeasurableSpace M] @[to_additive conv "Additive convolution of measures."] noncomputable def mconv (μ : Measure M) (ν : Measure M) : ...
Mathlib/MeasureTheory/Group/Convolution.lean
41
46
theorem dirac_one_mconv [MeasurableMul₂ M] (μ : Measure M) [SFinite μ] : (Measure.dirac 1) ∗ μ = μ := by
unfold mconv rw [MeasureTheory.Measure.dirac_prod, map_map] · simp only [Function.comp_def, one_mul, map_id'] all_goals { measurability }
[ " dirac 1 ∗ μ = μ", " map (fun x => x.1 * x.2) ((dirac 1).prod μ) = μ", " map ((fun x => x.1 * x.2) ∘ Prod.mk 1) μ = μ", " Measurable (Prod.mk 1)", " Measurable fun x => x.1 * x.2" ]
[]
import Mathlib.Analysis.SpecialFunctions.JapaneseBracket import Mathlib.Analysis.SpecialFunctions.Integrals import Mathlib.MeasureTheory.Group.Integral import Mathlib.MeasureTheory.Integral.IntegralEqImproper import Mathlib.MeasureTheory.Measure.Lebesgue.Integral #align_import analysis.special_functions.improper_inte...
Mathlib/Analysis/SpecialFunctions/ImproperIntegrals.lean
106
116
theorem integral_Ioi_rpow_of_lt {a : ℝ} (ha : a < -1) {c : ℝ} (hc : 0 < c) : ∫ t : ℝ in Ioi c, t ^ a = -c ^ (a + 1) / (a + 1) := by
have hd : ∀ x ∈ Ici c, HasDerivAt (fun t => t ^ (a + 1) / (a + 1)) (x ^ a) x := by intro x hx convert (hasDerivAt_rpow_const (p := a + 1) (Or.inl (hc.trans_le hx).ne')).div_const _ using 1 field_simp [show a + 1 ≠ 0 from ne_of_lt (by linarith), mul_comm] have ht : Tendsto (fun t => t ^ (a + 1) / (a + 1...
[ " IntegrableOn rexp (Iic c) volume", " ∫ (x : ℝ) in id y..c, ‖rexp x‖ ≤ rexp c", " 0 ≤ rexp (id y)", " ∫ (x : ℝ) in Iic c, rexp x = rexp c", " Tendsto (fun i => ∫ (x : ℝ) in id i..c, rexp x) atBot (𝓝 (rexp c))", " 𝓝 (rexp c) = 𝓝 (rexp c - 0)", " Tendsto (fun i => rexp c - rexp (id i)) atBot (𝓝 (rexp...
[ " IntegrableOn rexp (Iic c) volume", " ∫ (x : ℝ) in id y..c, ‖rexp x‖ ≤ rexp c", " 0 ≤ rexp (id y)", " ∫ (x : ℝ) in Iic c, rexp x = rexp c", " Tendsto (fun i => ∫ (x : ℝ) in id i..c, rexp x) atBot (𝓝 (rexp c))", " 𝓝 (rexp c) = 𝓝 (rexp c - 0)", " Tendsto (fun i => rexp c - rexp (id i)) atBot (𝓝 (rexp...
import Mathlib.Order.Interval.Set.Basic import Mathlib.Order.Hom.Set #align_import data.set.intervals.order_iso from "leanprover-community/mathlib"@"d012cd09a9b256d870751284dd6a29882b0be105" open Set namespace OrderIso section Preorder variable {α β : Type*} [Preorder α] [Preorder β] @[simp]
Mathlib/Order/Interval/Set/OrderIso.lean
24
26
theorem preimage_Iic (e : α ≃o β) (b : β) : e ⁻¹' Iic b = Iic (e.symm b) := by
ext x simp [← e.le_iff_le]
[ " ⇑e ⁻¹' Iic b = Iic (e.symm b)", " x ∈ ⇑e ⁻¹' Iic b ↔ x ∈ Iic (e.symm b)" ]
[]
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
459
466
theorem rootMultiplicity_eq_rootMultiplicity {p : R[X]} {t : R} : p.rootMultiplicity t = (p.comp (X + C t)).rootMultiplicity 0 := by
classical simp_rw [rootMultiplicity_eq_multiplicity, comp_X_add_C_eq_zero_iff] congr; ext; congr 1 rw [C_0, sub_zero] convert (multiplicity.multiplicity_map_eq <| algEquivAevalXAddC t).symm using 2 simp [C_eq_algebraMap]
[ " n ≤ rootMultiplicity a p ↔ (X - C a) ^ n ∣ p", " (∀ m < n, ¬¬(X - C a) ^ (m + 1) ∣ p) ↔ (X - C a) ^ n ∣ p", " (∀ m < n, (X - C a) ^ (m + 1) ∣ p) ↔ (X - C a) ^ n ∣ p", " (X - C a) ^ n ∣ p", " (X - C a) ^ 0 ∣ p", " 1 ∣ p", " (X - C a) ^ (n + 1) ∣ p", " rootMultiplicity a p ≤ n ↔ ¬(X - C a) ^ (n + 1) ∣...
[ " n ≤ rootMultiplicity a p ↔ (X - C a) ^ n ∣ p", " (∀ m < n, ¬¬(X - C a) ^ (m + 1) ∣ p) ↔ (X - C a) ^ n ∣ p", " (∀ m < n, (X - C a) ^ (m + 1) ∣ p) ↔ (X - C a) ^ n ∣ p", " (X - C a) ^ n ∣ p", " (X - C a) ^ 0 ∣ p", " 1 ∣ p", " (X - C a) ^ (n + 1) ∣ p", " rootMultiplicity a p ≤ n ↔ ¬(X - C a) ^ (n + 1) ∣...
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
82
87
theorem inv_mem_iff {c d : C} (f : c ⟶ d) : Groupoid.inv f ∈ S.arrows d c ↔ f ∈ S.arrows c d := by
constructor · intro h simpa only [inv_eq_inv, IsIso.inv_inv] using S.inv h · apply S.inv
[ " 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" ]
[]
import Mathlib.Topology.MetricSpace.Isometry #align_import topology.metric_space.gluing from "leanprover-community/mathlib"@"e1a7bdeb4fd826b7e71d130d34988f0a2d26a177" noncomputable section universe u v w open Function Set Uniformity Topology namespace Metric section ApproxGluing variable {X : Type u} {Y : Typ...
Mathlib/Topology/MetricSpace/Gluing.lean
106
108
theorem le_glueDist_inr_inl (Φ : Z → X) (Ψ : Z → Y) (ε : ℝ) (x y) : ε ≤ glueDist Φ Ψ ε (.inr x) (.inl y) := by
rw [glueDist_comm]; apply le_glueDist_inl_inr
[ " glueDist Φ Ψ ε (Sum.inl (Φ p)) (Sum.inr (Ψ p)) = ε", " ⨅ q, dist (Φ p) (Φ q) + dist (Ψ p) (Ψ q) = 0", " ⨅ q, dist (Φ p) (Φ q) + dist (Ψ p) (Ψ q) ≤ 0", " 0 = dist (Φ p) (Φ p) + dist (Ψ p) (Ψ p)", " ⨅ q, dist (Φ p) (Φ q) + dist (Ψ p) (Ψ q) ≤ dist (Φ p) (Φ p) + dist (Ψ p) (Ψ p)", " glueDist Ψ Φ ε (Sum.inl ...
[ " glueDist Φ Ψ ε (Sum.inl (Φ p)) (Sum.inr (Ψ p)) = ε", " ⨅ q, dist (Φ p) (Φ q) + dist (Ψ p) (Ψ q) = 0", " ⨅ q, dist (Φ p) (Φ q) + dist (Ψ p) (Ψ q) ≤ 0", " 0 = dist (Φ p) (Φ p) + dist (Ψ p) (Ψ p)", " ⨅ q, dist (Φ p) (Φ q) + dist (Ψ p) (Ψ q) ≤ dist (Φ p) (Φ p) + dist (Ψ p) (Ψ p)", " glueDist Ψ Φ ε (Sum.inl ...
import Mathlib.LinearAlgebra.CliffordAlgebra.Fold import Mathlib.LinearAlgebra.CliffordAlgebra.Grading #align_import linear_algebra.clifford_algebra.even from "leanprover-community/mathlib"@"9264b15ee696b7ca83f13c8ad67c83d6eb70b730" namespace CliffordAlgebra -- Porting note: explicit universes universe uR uM uA ...
Mathlib/LinearAlgebra/CliffordAlgebra/Even.lean
116
128
theorem even.algHom_ext ⦃f g : even Q →ₐ[R] A⦄ (h : (even.ι Q).compr₂ f = (even.ι Q).compr₂ g) : f = g := by
rw [EvenHom.ext_iff] at h ext ⟨x, hx⟩ induction x, hx using even_induction with | algebraMap r => exact (f.commutes r).trans (g.commutes r).symm | add x y hx hy ihx ihy => have := congr_arg₂ (· + ·) ihx ihy exact (f.map_add _ _).trans (this.trans <| (g.map_add _ _).symm) | ι_mul_ι_mul m₁ m₂ x h...
[ " (fun m₁ m₂ => ⟨(CliffordAlgebra.ι Q) m₁ * (CliffordAlgebra.ι Q) m₂, ⋯⟩) (x✝² + x✝¹) x✝ =\n (fun m₁ m₂ => ⟨(CliffordAlgebra.ι Q) m₁ * (CliffordAlgebra.ι Q) m₂, ⋯⟩) x✝² x✝ +\n (fun m₁ m₂ => ⟨(CliffordAlgebra.ι Q) m₁ * (CliffordAlgebra.ι Q) m₂, ⋯⟩) x✝¹ x✝", " ⟨(CliffordAlgebra.ι Q) x✝² * (CliffordAlgebra.ι...
[ " (fun m₁ m₂ => ⟨(CliffordAlgebra.ι Q) m₁ * (CliffordAlgebra.ι Q) m₂, ⋯⟩) (x✝² + x✝¹) x✝ =\n (fun m₁ m₂ => ⟨(CliffordAlgebra.ι Q) m₁ * (CliffordAlgebra.ι Q) m₂, ⋯⟩) x✝² x✝ +\n (fun m₁ m₂ => ⟨(CliffordAlgebra.ι Q) m₁ * (CliffordAlgebra.ι Q) m₂, ⋯⟩) x✝¹ x✝", " ⟨(CliffordAlgebra.ι Q) x✝² * (CliffordAlgebra.ι...
import Mathlib.Algebra.Algebra.Subalgebra.Operations import Mathlib.Algebra.Ring.Fin import Mathlib.RingTheory.Ideal.Quotient #align_import ring_theory.ideal.quotient_operations from "leanprover-community/mathlib"@"b88d81c84530450a8989e918608e5960f015e6c8" universe u v w namespace Ideal open Function RingHom var...
Mathlib/RingTheory/Ideal/QuotientOperations.lean
141
156
theorem ker_quotient_lift {I : Ideal R} (f : R →+* S) (H : I ≤ ker f) : ker (Ideal.Quotient.lift I f H) = f.ker.map (Quotient.mk I) := by
apply Ideal.ext intro x constructor · intro hx obtain ⟨y, hy⟩ := Quotient.mk_surjective x rw [mem_ker, ← hy, Ideal.Quotient.lift_mk, ← mem_ker] at hx rw [← hy, mem_map_iff_of_surjective (Quotient.mk I) Quotient.mk_surjective] exact ⟨y, hx, rfl⟩ · intro hx rw [mem_map_iff_of_surjective (Qu...
[ " ker (Quotient.mk I) = I", " x✝ ∈ ker (Quotient.mk I) ↔ x✝ ∈ I", " map (Quotient.mk J) I = ⊥", " I ≤ J", " ker (Quotient.lift I f H) = map (Quotient.mk I) (ker f)", " ∀ (x : R ⧸ I), x ∈ ker (Quotient.lift I f H) ↔ x ∈ map (Quotient.mk I) (ker f)", " x ∈ ker (Quotient.lift I f H) ↔ x ∈ map (Quotient.mk ...
[ " ker (Quotient.mk I) = I", " x✝ ∈ ker (Quotient.mk I) ↔ x✝ ∈ I", " map (Quotient.mk J) I = ⊥", " I ≤ J" ]
import Mathlib.Data.Fintype.Basic import Mathlib.GroupTheory.Perm.Sign import Mathlib.Logic.Equiv.Defs #align_import logic.equiv.fintype from "leanprover-community/mathlib"@"9407b03373c8cd201df99d6bc5514fc2db44054f" section Fintype variable {α β : Type*} [Fintype α] [DecidableEq β] (e : Equiv.Perm α) (f : α ↪ β) ...
Mathlib/Logic/Equiv/Fintype.lean
85
87
theorem Equiv.Perm.viaFintypeEmbedding_apply_not_mem_range {b : β} (h : b ∉ Set.range f) : e.viaFintypeEmbedding f b = b := by
rwa [Equiv.Perm.viaFintypeEmbedding, Equiv.Perm.extendDomain_apply_not_subtype]
[ " f.invOfMemRange ((fun a => ⟨f a, ⋯⟩) x✝) = x✝", " (fun a => ⟨f a, ⋯⟩) (f.invOfMemRange x✝) = x✝", " f.toEquivRange.symm ⟨f a, ⋯⟩ = a", " f.toEquivRange = Equiv.ofInjective ⇑f ⋯", " ↑(f.toEquivRange x✝) = ↑((Equiv.ofInjective ⇑f ⋯) x✝)", " (e.viaFintypeEmbedding f) (f a) = f (e a)", " (e.extendDomain f...
[ " f.invOfMemRange ((fun a => ⟨f a, ⋯⟩) x✝) = x✝", " (fun a => ⟨f a, ⋯⟩) (f.invOfMemRange x✝) = x✝", " f.toEquivRange.symm ⟨f a, ⋯⟩ = a", " f.toEquivRange = Equiv.ofInjective ⇑f ⋯", " ↑(f.toEquivRange x✝) = ↑((Equiv.ofInjective ⇑f ⋯) x✝)", " (e.viaFintypeEmbedding f) (f a) = f (e a)", " (e.extendDomain f...
import Mathlib.Algebra.QuadraticDiscriminant import Mathlib.Analysis.Convex.SpecificFunctions.Deriv import Mathlib.Analysis.SpecialFunctions.Pow.Complex #align_import analysis.special_functions.trigonometric.complex from "leanprover-community/mathlib"@"8f9fea08977f7e450770933ee6abb20733b47c92" noncomputable secti...
Mathlib/Analysis/SpecialFunctions/Trigonometric/Complex.lean
104
107
theorem sin_eq_sin_iff {x y : ℂ} : sin x = sin y ↔ ∃ k : ℤ, y = 2 * k * π + x ∨ y = (2 * k + 1) * π - x := by
simp only [← Complex.cos_sub_pi_div_two, cos_eq_cos_iff, sub_eq_iff_eq_add] refine exists_congr fun k => or_congr ?_ ?_ <;> refine Eq.congr rfl ?_ <;> field_simp <;> ring
[ " θ.cos = 0 ↔ ∃ k, θ = (2 * ↑k + 1) * ↑π / 2", " (cexp (θ * I) + cexp (-θ * I)) / 2 = 0 ↔ cexp (2 * θ * I) = -1", " cexp (θ * I - -θ * I) = -1 ↔ cexp (2 * θ * I) = -1", " (∃ n, 2 * I * θ = ↑π * I + ↑n * (2 * ↑π * I)) ↔ ∃ k, θ = (2 * ↑k + 1) * ↑π / 2", " 2 * I * θ = ↑π * I + ↑x * (2 * ↑π * I) ↔ θ = (2 * ↑x +...
[ " θ.cos = 0 ↔ ∃ k, θ = (2 * ↑k + 1) * ↑π / 2", " (cexp (θ * I) + cexp (-θ * I)) / 2 = 0 ↔ cexp (2 * θ * I) = -1", " cexp (θ * I - -θ * I) = -1 ↔ cexp (2 * θ * I) = -1", " (∃ n, 2 * I * θ = ↑π * I + ↑n * (2 * ↑π * I)) ↔ ∃ k, θ = (2 * ↑k + 1) * ↑π / 2", " 2 * I * θ = ↑π * I + ↑x * (2 * ↑π * I) ↔ θ = (2 * ↑x +...
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
80
86
theorem isCompact_open_iff_eq_finset_affine_union {X : Scheme} (U : Set X.carrier) : IsCompact U ∧ IsOpen U ↔ ∃ s : Set X.affineOpens, s.Finite ∧ U = ⋃ (i : X.affineOpens) (_ : i ∈ s), i := by
apply Opens.IsBasis.isCompact_open_iff_eq_finite_iUnion (fun (U : X.affineOpens) => (U : Opens X.carrier)) · rw [Subtype.range_coe]; exact isBasis_affine_open X · exact fun i => i.2.isCompact
[ " 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.Analysis.Normed.Group.Basic import Mathlib.LinearAlgebra.AffineSpace.AffineSubspace import Mathlib.LinearAlgebra.AffineSpace.Midpoint #align_import analysis.normed.group.add_torsor from "leanprover-community/mathlib"@"837f72de63ad6cd96519cde5f1ffd5ed8d280ad0" noncomputable section open NNReal Topo...
Mathlib/Analysis/Normed/Group/AddTorsor.lean
104
105
theorem dist_vadd_cancel_right (v₁ v₂ : V) (x : P) : dist (v₁ +ᵥ x) (v₂ +ᵥ x) = dist v₁ v₂ := by
rw [dist_eq_norm_vsub V, dist_eq_norm, vadd_vsub_vadd_cancel_right]
[ " dist (c +ᵥ x) (c +ᵥ y) = dist x y", " dist (v₁ +ᵥ x) (v₂ +ᵥ x) = dist v₁ v₂" ]
[ " dist (c +ᵥ x) (c +ᵥ y) = dist x y" ]
import Mathlib.Data.Real.Irrational import Mathlib.Data.Nat.Fib.Basic import Mathlib.Data.Fin.VecNotation import Mathlib.Algebra.LinearRecurrence import Mathlib.Tactic.NormNum.NatFib import Mathlib.Tactic.NormNum.Prime #align_import data.real.golden_ratio from "leanprover-community/mathlib"@"2196ab363eb097c008d449712...
Mathlib/Data/Real/GoldenRatio.lean
75
76
theorem one_sub_goldConj : 1 - φ = ψ := by
linarith [gold_add_goldConj]
[ " φ⁻¹ = -ψ", " 0 < 1", " 0 < 5", " 2 * 2 = 5 - 1", " ψ⁻¹ = -φ", " -ψ = φ⁻¹", " φ * ψ = -1", " (1 + √5) * (1 - √5) = -(2 * 2)", " 1 ^ 2 - √5 ^ 2 = -(2 * 2)", " ψ * φ = -1", " φ + ψ = 1", " (1 + √5) / 2 + (1 - √5) / 2 = 1", " 1 - φ = ψ" ]
[ " φ⁻¹ = -ψ", " 0 < 1", " 0 < 5", " 2 * 2 = 5 - 1", " ψ⁻¹ = -φ", " -ψ = φ⁻¹", " φ * ψ = -1", " (1 + √5) * (1 - √5) = -(2 * 2)", " 1 ^ 2 - √5 ^ 2 = -(2 * 2)", " ψ * φ = -1", " φ + ψ = 1", " (1 + √5) / 2 + (1 - √5) / 2 = 1" ]
import Mathlib.Data.Finsupp.Multiset import Mathlib.Data.Nat.GCD.BigOperators import Mathlib.Data.Nat.PrimeFin import Mathlib.NumberTheory.Padics.PadicVal import Mathlib.Order.Interval.Finset.Nat #align_import data.nat.factorization.basic from "leanprover-community/mathlib"@"f694c7dead66f5d4c80f446c796a5aad14707f0e" ...
Mathlib/Data/Nat/Factorization/Basic.lean
84
87
theorem factorization_eq_factors_multiset (n : ℕ) : n.factorization = Multiset.toFinsupp (n.factors : Multiset ℕ) := by
ext p simp
[ " ∀ (a : ℕ), a ∈ n.primeFactors ↔ (fun p => if p.Prime then padicValNat p n else 0) a ≠ 0", " ∀ (a : ℕ), a.Prime → (a ∣ n ∧ ¬n = 0 ↔ ¬a = 1 ∧ ¬n = 0 ∧ a ∣ n)", " n.factorization p = padicValNat p n", " count p n.factors = n.factorization p", " count p (factors 0) = (factorization 0) p", " 0 = n.factorizat...
[ " ∀ (a : ℕ), a ∈ n.primeFactors ↔ (fun p => if p.Prime then padicValNat p n else 0) a ≠ 0", " ∀ (a : ℕ), a.Prime → (a ∣ n ∧ ¬n = 0 ↔ ¬a = 1 ∧ ¬n = 0 ∧ a ∣ n)", " n.factorization p = padicValNat p n", " count p n.factors = n.factorization p", " count p (factors 0) = (factorization 0) p", " 0 = n.factorizat...
import Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar import Mathlib.MeasureTheory.Measure.Haar.Quotient import Mathlib.MeasureTheory.Constructions.Polish import Mathlib.MeasureTheory.Integral.IntervalIntegral import Mathlib.Topology.Algebra.Order.Floor #align_import measure_theory.integral.periodic from "leanprover-c...
Mathlib/MeasureTheory/Integral/Periodic.lean
279
282
theorem intervalIntegral_add_eq_add (hf : Periodic f T) (t s : ℝ) (h_int : ∀ t₁ t₂, IntervalIntegrable f MeasureSpace.volume t₁ t₂) : ∫ x in t..s + T, f x = (∫ x in t..s, f x) + ∫ x in t..t + T, f x := by
rw [hf.intervalIntegral_add_eq t s, integral_add_adjacent_intervals (h_int t s) (h_int s _)]
[ " IsAddFundamentalDomain (↥(zmultiples T)) (Ioc t (t + T)) μ", " ∃! g, g +ᵥ x ∈ Ioc t (t + T)", " ∃! x_1, codRestrict (fun n => n • T) ↑(zmultiples T) ⋯ x_1 +ᵥ x ∈ Ioc t (t + T)", " IsAddFundamentalDomain (↥(zmultiples T).op) (Ioc t (t + T)) μ", " ∃! x_1, (⇑(zmultiples T).equivOp ∘ codRestrict (fun n => n •...
[ " IsAddFundamentalDomain (↥(zmultiples T)) (Ioc t (t + T)) μ", " ∃! g, g +ᵥ x ∈ Ioc t (t + T)", " ∃! x_1, codRestrict (fun n => n • T) ↑(zmultiples T) ⋯ x_1 +ᵥ x ∈ Ioc t (t + T)", " IsAddFundamentalDomain (↥(zmultiples T).op) (Ioc t (t + T)) μ", " ∃! x_1, (⇑(zmultiples T).equivOp ∘ codRestrict (fun n => n •...
import Mathlib.Data.Set.Basic open Function universe u v namespace Set section Subsingleton variable {α : Type u} {a : α} {s t : Set α} protected def Subsingleton (s : Set α) : Prop := ∀ ⦃x⦄ (_ : x ∈ s) ⦃y⦄ (_ : y ∈ s), x = y #align set.subsingleton Set.Subsingleton theorem Subsingleton.anti (ht : t.Subs...
Mathlib/Data/Set/Subsingleton.lean
68
71
theorem Subsingleton.induction_on {p : Set α → Prop} (hs : s.Subsingleton) (he : p ∅) (h₁ : ∀ x, p {x}) : p s := by
rcases hs.eq_empty_or_singleton with (rfl | ⟨x, rfl⟩) exacts [he, h₁ _]
[ " p s", " p {x}" ]
[]
import Mathlib.Analysis.NormedSpace.AddTorsor import Mathlib.LinearAlgebra.AffineSpace.Ordered import Mathlib.Topology.ContinuousFunction.Basic import Mathlib.Topology.GDelta import Mathlib.Analysis.NormedSpace.FunctionSeries import Mathlib.Analysis.SpecificLimits.Basic #align_import topology.urysohns_lemma from "lea...
Mathlib/Topology/UrysohnsLemma.lean
161
166
theorem approx_of_mem_C (c : CU P) (n : ℕ) {x : X} (hx : x ∈ c.C) : c.approx n x = 0 := by
induction' n with n ihn generalizing c · exact indicator_of_not_mem (fun (hU : x ∈ c.Uᶜ) => hU <| c.subset hx) _ · simp only [approx] rw [ihn, ihn, midpoint_self] exacts [c.subset_right_C hx, hx]
[ " approx n c x = 0", " approx 0 c x = 0", " approx (n + 1) c x = 0", " midpoint ℝ (approx n c.left x) (approx n c.right x) = 0", " x ∈ c.left.C" ]
[]
import Mathlib.Data.Complex.Exponential import Mathlib.Analysis.SpecialFunctions.Log.Deriv #align_import data.complex.exponential_bounds from "leanprover-community/mathlib"@"402f8982dddc1864bd703da2d6e2ee304a866973" namespace Real open IsAbsoluteValue Finset CauSeq Complex theorem exp_one_near_10 : |exp 1 - 224...
Mathlib/Data/Complex/ExponentialBounds.lean
28
33
theorem exp_one_near_20 : |exp 1 - 363916618873 / 133877442384| ≤ 1 / 10 ^ 20 := by
apply exp_approx_start iterate 21 refine exp_1_approx_succ_eq (by norm_num1; rfl) (by norm_cast) ?_ norm_num1 refine exp_approx_end' _ (by norm_num1; rfl) _ (by norm_cast) (by simp) ?_ rw [_root_.abs_one, abs_of_pos] <;> norm_num1
[ " |rexp 1 - 2244083 / 825552| ≤ 1 / 10 ^ 10", " |rexp 1 - expNear 0 1 (2244083 / 825552)| ≤ |1| ^ 0 / ↑(Nat.factorial 0) * (1 / 10 ^ 10)", " 0 + 1 = ?m.532", " 1 = ?m.532", " ↑1 = ?m.543", " |rexp 1 - expNear 1 1 ((2244083 / 825552 - 1) * 1)| ≤ |1| ^ 1 / ↑(Nat.factorial 1) * (1 / 10 ^ 10 * 1)", " 1 + 1 ...
[ " |rexp 1 - 2244083 / 825552| ≤ 1 / 10 ^ 10", " |rexp 1 - expNear 0 1 (2244083 / 825552)| ≤ |1| ^ 0 / ↑(Nat.factorial 0) * (1 / 10 ^ 10)", " 0 + 1 = ?m.532", " 1 = ?m.532", " ↑1 = ?m.543", " |rexp 1 - expNear 1 1 ((2244083 / 825552 - 1) * 1)| ≤ |1| ^ 1 / ↑(Nat.factorial 1) * (1 / 10 ^ 10 * 1)", " 1 + 1 ...
import Mathlib.Algebra.Polynomial.Degree.Definitions import Mathlib.Algebra.Polynomial.Induction #align_import data.polynomial.eval from "leanprover-community/mathlib"@"728baa2f54e6062c5879a3e397ac6bac323e506f" set_option linter.uppercaseLean3 false noncomputable section open Finset AddMonoidAlgebra open Polyn...
Mathlib/Algebra/Polynomial/Eval.lean
69
69
theorem eval₂_C : (C a).eval₂ f x = f a := by
simp [eval₂_eq_sum]
[ " eval₂ f x p = p.sum fun e a => f a * x ^ e", " f = g → s = t → φ = ψ → eval₂ f s φ = eval₂ g t ψ", " eval₂ f s φ = eval₂ f s φ", " eval₂ f 0 p = f (p.coeff 0)", " eval₂ f x 0 = 0", " eval₂ f x (C a) = f a" ]
[ " eval₂ f x p = p.sum fun e a => f a * x ^ e", " f = g → s = t → φ = ψ → eval₂ f s φ = eval₂ g t ψ", " eval₂ f s φ = eval₂ f s φ", " eval₂ f 0 p = f (p.coeff 0)", " eval₂ f x 0 = 0" ]
import Mathlib.Dynamics.PeriodicPts import Mathlib.GroupTheory.Exponent import Mathlib.GroupTheory.GroupAction.Basic namespace MulAction universe u v variable {α : Type v} variable {G : Type u} [Group G] [MulAction G α] variable {M : Type u} [Monoid M] [MulAction M α] @[to_additive "If the action is periodic, t...
Mathlib/GroupTheory/GroupAction/Period.lean
101
102
theorem period_dvd_exponent (m : M) (a : α) : period m a ∣ Monoid.exponent M := by
rw [← pow_smul_eq_iff_period_dvd, Monoid.pow_exponent_eq_one, one_smul]
[ " m ^ 1 • a = a", " period m a ∣ orderOf m", " period m a ∣ Monoid.exponent M" ]
[ " m ^ 1 • a = a", " period m a ∣ orderOf m" ]
import Mathlib.Algebra.Polynomial.Taylor import Mathlib.RingTheory.Ideal.LocalRing import Mathlib.RingTheory.AdicCompletion.Basic #align_import ring_theory.henselian from "leanprover-community/mathlib"@"d1accf4f9cddb3666c6e8e4da0ac2d19c4ed73f0" noncomputable section universe u v open Polynomial LocalRing Polyno...
Mathlib/RingTheory/Henselian.lean
65
82
theorem isLocalRingHom_of_le_jacobson_bot {R : Type*} [CommRing R] (I : Ideal R) (h : I ≤ Ideal.jacobson ⊥) : IsLocalRingHom (Ideal.Quotient.mk I) := by
constructor intro a h have : IsUnit (Ideal.Quotient.mk (Ideal.jacobson ⊥) a) := by rw [isUnit_iff_exists_inv] at * obtain ⟨b, hb⟩ := h obtain ⟨b, rfl⟩ := Ideal.Quotient.mk_surjective b use Ideal.Quotient.mk _ b rw [← (Ideal.Quotient.mk _).map_one, ← (Ideal.Quotient.mk _).map_mul, Ideal.Quotie...
[ " IsLocalRingHom (Ideal.Quotient.mk I)", " ∀ (a : R), IsUnit ((Ideal.Quotient.mk I) a) → IsUnit a", " IsUnit a", " IsUnit ((Ideal.Quotient.mk ⊥.jacobson) a)", " ∃ b, (Ideal.Quotient.mk ⊥.jacobson) a * b = 1", " (Ideal.Quotient.mk ⊥.jacobson) a * (Ideal.Quotient.mk ⊥.jacobson) b = 1", " a * b - 1 ∈ ⊥.jac...
[]
import Mathlib.Analysis.Calculus.ContDiff.Basic import Mathlib.Analysis.Calculus.ContDiff.RCLike import Mathlib.Analysis.Calculus.InverseFunctionTheorem.FDeriv noncomputable section namespace ContDiffAt variable {𝕂 : Type*} [RCLike 𝕂] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace 𝕂 E] variable {F : ...
Mathlib/Analysis/Calculus/InverseFunctionTheorem/ContDiff.lean
68
75
theorem to_localInverse {n : ℕ∞} (hf : ContDiffAt 𝕂 n f a) (hf' : HasFDerivAt f (f' : E →L[𝕂] F) a) (hn : 1 ≤ n) : ContDiffAt 𝕂 n (hf.localInverse hf' hn) (f a) := by
have := hf.localInverse_apply_image hf' hn apply (hf.toPartialHomeomorph f hf' hn).contDiffAt_symm (image_mem_toPartialHomeomorph_target hf hf' hn) · convert hf' · convert hf
[ " ContDiffAt 𝕂 n (hf.localInverse hf' hn) (f a)", " HasFDerivAt (↑(toPartialHomeomorph f hf hf' hn)) (↑?m.39358) (↑(toPartialHomeomorph f hf hf' hn).symm (f a))", " ContDiffAt 𝕂 n (↑(toPartialHomeomorph f hf hf' hn)) (↑(toPartialHomeomorph f hf hf' hn).symm (f a))" ]
[]
import Mathlib.CategoryTheory.ConcreteCategory.Basic import Mathlib.Util.AddRelatedDecl import Batteries.Tactic.Lint set_option autoImplicit true open Lean Meta Elab Tactic open Mathlib.Tactic namespace Tactic.Elementwise open CategoryTheory section theorems theorem forall_congr_forget_Type (α : Type u) (p : α...
Mathlib/Tactic/CategoryTheory/Elementwise.lean
52
53
theorem hom_elementwise [Category C] [ConcreteCategory C] {X Y : C} {f g : X ⟶ Y} (h : f = g) (x : X) : f x = g x := by
rw [h]
[ " f x = g x" ]
[]
import Mathlib.Data.Int.Interval import Mathlib.Data.Int.SuccPred import Mathlib.Data.Int.ConditionallyCompleteOrder import Mathlib.Topology.Instances.Discrete import Mathlib.Topology.MetricSpace.Bounded import Mathlib.Order.Filter.Archimedean #align_import topology.instances.int from "leanprover-community/mathlib"@"...
Mathlib/Topology/Instances/Int.lean
34
34
theorem dist_eq' (m n : ℤ) : dist m n = |m - n| := by
rw [dist_eq]; norm_cast
[ " dist m n = ↑|m - n|", " |↑m - ↑n| = ↑|m - n|" ]
[]
import Mathlib.CategoryTheory.Category.Cat import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Preserves.Basic #align_import category_theory.category.Cat.limit from "leanprover-community/mathlib"@"1995c7bbdbb0adb1b6d5acdc654f6cf46ed96cfa" noncomputable section universe v u open Categ...
Mathlib/CategoryTheory/Category/Cat/Limit.lean
127
132
theorem limit_π_homDiagram_eqToHom {F : J ⥤ Cat.{v, v}} (X Y : limit (F ⋙ Cat.objects.{v, v})) (j : J) (h : X = Y) : limit.π (homDiagram X Y) j (eqToHom h) = eqToHom (congr_arg (limit.π (F ⋙ Cat.objects.{v, v}) j) h) := by
subst h simp
[ " (fun j => limit.π (F ⋙ objects) j X ⟶ limit.π (F ⋙ objects) j Y) Y✝", " limit.π (F ⋙ objects) Y✝ X = (F.map f).obj (limit.π (F ⋙ objects) X✝ X)", " (F.map f).obj (limit.π (F ⋙ objects) X✝ Y) = limit.π (F ⋙ objects) Y✝ Y", " { obj := fun j => limit.π (F ⋙ objects) j X✝ ⟶ limit.π (F ⋙ objects) j Y,\n ...
[ " (fun j => limit.π (F ⋙ objects) j X ⟶ limit.π (F ⋙ objects) j Y) Y✝", " limit.π (F ⋙ objects) Y✝ X = (F.map f).obj (limit.π (F ⋙ objects) X✝ X)", " (F.map f).obj (limit.π (F ⋙ objects) X✝ Y) = limit.π (F ⋙ objects) Y✝ Y", " { obj := fun j => limit.π (F ⋙ objects) j X✝ ⟶ limit.π (F ⋙ objects) j Y,\n ...
import Mathlib.Algebra.MonoidAlgebra.Ideal import Mathlib.Algebra.MvPolynomial.Division #align_import ring_theory.mv_polynomial.ideal from "leanprover-community/mathlib"@"72c366d0475675f1309d3027d3d7d47ee4423951" variable {σ R : Type*} namespace MvPolynomial variable [CommSemiring R]
Mathlib/RingTheory/MvPolynomial/Ideal.lean
32
36
theorem mem_ideal_span_monomial_image {x : MvPolynomial σ R} {s : Set (σ →₀ ℕ)} : x ∈ Ideal.span ((fun s => monomial s (1 : R)) '' s) ↔ ∀ xi ∈ x.support, ∃ si ∈ s, si ≤ xi := by
refine AddMonoidAlgebra.mem_ideal_span_of'_image.trans ?_ simp_rw [le_iff_exists_add, add_comm] rfl
[ " x ∈ Ideal.span ((fun s => (monomial s) 1) '' s) ↔ ∀ xi ∈ x.support, ∃ si ∈ s, si ≤ xi", " (∀ m ∈ x.support, ∃ m' ∈ s, ∃ d, m = d + m') ↔ ∀ xi ∈ x.support, ∃ si ∈ s, si ≤ xi", " (∀ m ∈ x.support, ∃ m' ∈ s, ∃ d, m = m' + d) ↔ ∀ xi ∈ x.support, ∃ si ∈ s, ∃ c, xi = si + c" ]
[]
import Mathlib.Order.Interval.Finset.Nat #align_import data.fin.interval from "leanprover-community/mathlib"@"1d29de43a5ba4662dd33b5cfeecfc2a27a5a8a29" assert_not_exists MonoidWithZero open Finset Fin Function namespace Fin variable (n : ℕ) instance instLocallyFiniteOrder : LocallyFiniteOrder (Fin n) := Orde...
Mathlib/Order/Interval/Finset/Fin.lean
94
95
theorem map_valEmbedding_Ioo : (Ioo a b).map Fin.valEmbedding = Ioo ↑a ↑b := by
simp [Ioo_eq_finset_subtype, Finset.fin, Finset.map_map]
[ " map valEmbedding (Icc a b) = Icc ↑a ↑b", " map valEmbedding (Ico a b) = Ico ↑a ↑b", " map valEmbedding (Ioc a b) = Ioc ↑a ↑b", " map valEmbedding (Ioo a b) = Ioo ↑a ↑b" ]
[ " map valEmbedding (Icc a b) = Icc ↑a ↑b", " map valEmbedding (Ico a b) = Ico ↑a ↑b", " map valEmbedding (Ioc a b) = Ioc ↑a ↑b" ]
import Mathlib.Algebra.Group.Int import Mathlib.GroupTheory.GroupAction.Opposite import Mathlib.Logic.Function.Iterate #align_import algebra.hom.iterate from "leanprover-community/mathlib"@"792a2a264169d64986541c6f8f7e3bbb6acb6295" assert_not_exists DenselyOrdered assert_not_exists Ring open Function variable {M...
Mathlib/Algebra/GroupPower/IterateHom.lean
111
111
theorem mul_right_iterate_apply_one : (· * a)^[n] 1 = a ^ n := by
simp [mul_right_iterate]
[ " c (f ^ 0) = (c f)^[0]", " id = (c f)^[0]", " c (f ^ (n + 1)) = (c f)^[n + 1]", " (fun x => a • x)^[Nat.zero] b = a ^ Nat.zero • b", " (fun x => a • x)^[n.succ] b = a ^ n.succ • b", " (fun x => a • x)^[n] b = a ^ n • b", " (fun x => x * a)^[n] 1 = a ^ n" ]
[ " c (f ^ 0) = (c f)^[0]", " id = (c f)^[0]", " c (f ^ (n + 1)) = (c f)^[n + 1]", " (fun x => a • x)^[Nat.zero] b = a ^ Nat.zero • b", " (fun x => a • x)^[n.succ] b = a ^ n.succ • b", " (fun x => a • x)^[n] b = a ^ n • b" ]
import Mathlib.Algebra.GroupWithZero.Divisibility import Mathlib.Algebra.Order.Ring.Nat import Mathlib.Tactic.NthRewrite #align_import data.nat.gcd.basic from "leanprover-community/mathlib"@"e8638a0fcaf73e4500469f368ef9494e495099b3" namespace Nat theorem gcd_greatest {a b d : ℕ} (hda : d ∣ a) (hdb : d ∣ b) (hd ...
Mathlib/Data/Nat/GCD/Basic.lean
102
103
theorem gcd_sub_self_right {m n : ℕ} (h : m ≤ n) : gcd m (n - m) = gcd m n := by
rw [gcd_comm, gcd_sub_self_left h, gcd_comm]
[ " m.gcd (n + k * m) = m.gcd n", " m.gcd (n + m * k) = m.gcd n", " m.gcd (k * m + n) = m.gcd n", " m.gcd (m * k + n) = m.gcd n", " (m + k * n).gcd n = m.gcd n", " (m + n * k).gcd n = m.gcd n", " (k * n + m).gcd n = m.gcd n", " (n * k + m).gcd n = m.gcd n", " m.gcd (n + m) = m.gcd (n + 1 * m)", " (m...
[ " m.gcd (n + k * m) = m.gcd n", " m.gcd (n + m * k) = m.gcd n", " m.gcd (k * m + n) = m.gcd n", " m.gcd (m * k + n) = m.gcd n", " (m + k * n).gcd n = m.gcd n", " (m + n * k).gcd n = m.gcd n", " (k * n + m).gcd n = m.gcd n", " (n * k + m).gcd n = m.gcd n", " m.gcd (n + m) = m.gcd (n + 1 * m)", " (m...