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
1
224
goals_before
listlengths
0
221
new_goals
listlengths
0
92
import Mathlib.SetTheory.Cardinal.Finite #align_import data.set.ncard from "leanprover-community/mathlib"@"74c2af38a828107941029b03839882c5c6f87a04" namespace Set variable {ฮฑ ฮฒ : Type*} {s t : Set ฮฑ} noncomputable def encard (s : Set ฮฑ) : โ„•โˆž := PartENat.withTopEquiv (PartENat.card s) @[simp] theorem encard_uni...
Mathlib/Data/Set/Card.lean
116
117
theorem encard_insert_of_not_mem {a : ฮฑ} (has : a โˆ‰ s) : (insert a s).encard = s.encard + 1 := by
rw [โ† union_singleton, encard_union_eq (by simpa), encard_singleton]
[ " univ.encard = s.encard", " univ.encard = PartENat.withTopEquiv (PartENat.card ฮฑ)", " s.encard = โ†‘h.toFinset.card", " s.encard = โ†‘s.toFinset.card", " (โ†‘s).encard = โ†‘s.card", " โ†‘โ‹ฏ.toFinset.card = โ†‘s.card", " s.encard = โŠค", " s.encard = 0 โ†” s = โˆ…", " โˆ….encard = 0", " s.Nonempty", " s.encard โ‰  0 โ†”...
[ " univ.encard = s.encard", " univ.encard = PartENat.withTopEquiv (PartENat.card ฮฑ)", " s.encard = โ†‘h.toFinset.card", " s.encard = โ†‘s.toFinset.card", " (โ†‘s).encard = โ†‘s.card", " โ†‘โ‹ฏ.toFinset.card = โ†‘s.card", " s.encard = โŠค", " s.encard = 0 โ†” s = โˆ…", " โˆ….encard = 0", " s.Nonempty", " s.encard โ‰  0 โ†”...
[ " Disjoint s {a}" ]
import Mathlib.Algebra.Order.Group.Abs import Mathlib.Algebra.Order.Group.Basic import Mathlib.Algebra.Order.Group.OrderIso import Mathlib.Algebra.Order.Ring.Defs import Mathlib.Data.Int.Cast.Lemmas import Mathlib.Order.Interval.Set.Basic import Mathlib.Logic.Pairwise #align_import data.set.intervals.group from "lean...
Mathlib/Algebra/Order/Interval/Set/Group.lean
219
221
theorem pairwise_disjoint_Ico_zpow : Pairwise (Disjoint on fun n : โ„ค => Ico (b ^ n) (b ^ (n + 1))) := by
simpa only [one_mul] using pairwise_disjoint_Ico_mul_zpow 1 b
[ " Pairwise (Disjoint on fun n => Ioc (a * b ^ n) (a * b ^ (n + 1)))", " Pairwise fun x y => Disjoint (Ioc (a * b ^ x) (a * b ^ (x + 1))) (Ioc (a * b ^ y) (a * b ^ (y + 1)))", " Pairwise fun x y => Ioc (a * b ^ x) (a * b ^ (x + 1)) โˆฉ Ioc (a * b ^ y) (a * b ^ (y + 1)) โІ โˆ…", " x โˆˆ โˆ…", " m = n", " 1 < b", "...
[ " Pairwise (Disjoint on fun n => Ioc (a * b ^ n) (a * b ^ (n + 1)))", " Pairwise fun x y => Disjoint (Ioc (a * b ^ x) (a * b ^ (x + 1))) (Ioc (a * b ^ y) (a * b ^ (y + 1)))", " Pairwise fun x y => Ioc (a * b ^ x) (a * b ^ (x + 1)) โˆฉ Ioc (a * b ^ y) (a * b ^ (y + 1)) โІ โˆ…", " x โˆˆ โˆ…", " m = n", " 1 < b", "...
[]
import Mathlib.Algebra.Algebra.Subalgebra.Unitization import Mathlib.Analysis.RCLike.Basic import Mathlib.Topology.Algebra.StarSubalgebra import Mathlib.Topology.ContinuousFunction.ContinuousMapZero import Mathlib.Topology.ContinuousFunction.Weierstrass #align_import topology.continuous_function.stone_weierstrass fro...
Mathlib/Topology/ContinuousFunction/StoneWeierstrass.lean
137
143
theorem inf_mem_closed_subalgebra (A : Subalgebra โ„ C(X, โ„)) (h : IsClosed (A : Set C(X, โ„))) (f g : A) : (f : C(X, โ„)) โŠ“ (g : C(X, โ„)) โˆˆ A := by
convert inf_mem_subalgebra_closure A f g apply SetLike.ext' symm erw [closure_eq_iff_isClosed] exact h
[ " (g.toContinuousMapOn (Set.Icc (-โ€–fโ€–) โ€–fโ€–)).comp (โ†‘f).attachBound = โ†‘((Polynomial.aeval f) g)", " ((g.toContinuousMapOn (Set.Icc (-โ€–fโ€–) โ€–fโ€–)).comp (โ†‘f).attachBound) aโœ = โ†‘((Polynomial.aeval f) g) aโœ", " Polynomial.eval (โ†‘((โ†‘f).attachBound aโœ)) g = Polynomial.eval (โ†‘f aโœ) g", " (g.toContinuousMapOn (Set.Icc (...
[ " (g.toContinuousMapOn (Set.Icc (-โ€–fโ€–) โ€–fโ€–)).comp (โ†‘f).attachBound = โ†‘((Polynomial.aeval f) g)", " ((g.toContinuousMapOn (Set.Icc (-โ€–fโ€–) โ€–fโ€–)).comp (โ†‘f).attachBound) aโœ = โ†‘((Polynomial.aeval f) g) aโœ", " Polynomial.eval (โ†‘((โ†‘f).attachBound aโœ)) g = Polynomial.eval (โ†‘f aโœ) g", " (g.toContinuousMapOn (Set.Icc (...
[ " A = A.topologicalClosure", " โ†‘A = โ†‘A.topologicalClosure", " โ†‘A.topologicalClosure = โ†‘A", " IsClosed โ†‘A" ]
import Mathlib.NumberTheory.Zsqrtd.Basic import Mathlib.RingTheory.PrincipalIdealDomain import Mathlib.Data.Complex.Basic import Mathlib.Data.Real.Archimedean #align_import number_theory.zsqrtd.gaussian_int from "leanprover-community/mathlib"@"5b2fe80501ff327b9109fb09b7cc8c325cd0d7d9" open Zsqrtd Complex open sc...
Mathlib/NumberTheory/Zsqrtd/GaussianInt.lean
81
81
theorem toComplex_def' (x y : โ„ค) : ((โŸจx, yโŸฉ : โ„ค[i]) : โ„‚) = x + y * I := by
simp [toComplex_def]
[ " I * I = โ†‘(-1)", " toComplex { re := x, im := y } = โ†‘x + โ†‘y * I" ]
[ " I * I = โ†‘(-1)", " toComplex { re := x, im := y } = โ†‘x + โ†‘y * I" ]
[]
import Mathlib.Analysis.Calculus.Deriv.Inv import Mathlib.Analysis.NormedSpace.BallAction import Mathlib.Analysis.SpecialFunctions.ExpDeriv import Mathlib.Analysis.InnerProductSpace.Calculus import Mathlib.Analysis.InnerProductSpace.PiL2 import Mathlib.Geometry.Manifold.Algebra.LieGroup import Mathlib.Geometry.Manifol...
Mathlib/Geometry/Manifold/Instances/Sphere.lean
163
167
theorem hasFDerivAt_stereoInvFunAux_comp_coe (v : E) : HasFDerivAt (stereoInvFunAux v โˆ˜ ((โ†‘) : (โ„ โˆ™ v)แ—ฎ โ†’ E)) (โ„ โˆ™ v)แ—ฎ.subtypeL 0 := by
have : HasFDerivAt (stereoInvFunAux v) (ContinuousLinearMap.id โ„ E) ((โ„ โˆ™ v)แ—ฎ.subtypeL 0) := hasFDerivAt_stereoInvFunAux v convert this.comp (0 : (โ„ โˆ™ v)แ—ฎ) (by apply ContinuousLinearMap.hasFDerivAt)
[ " ContDiffOn โ„ โŠค (stereoToFun v) {x | ((innerSL โ„) v) x โ‰  1}", " ContDiffOn โ„ โŠค (fun x => 2 / (1 - ((innerSL โ„) v) x)) {x | ((innerSL โ„) v) x โ‰  1}", " ContDiffOn โ„ โŠค (fun x => 1 - ((innerSL โ„) v) x) {x | ((innerSL โ„) v) x โ‰  1}", " โˆ€ x โˆˆ {x | ((innerSL โ„) v) x โ‰  1}, 1 - ((innerSL โ„) v) x โ‰  0", " False", " ...
[ " ContDiffOn โ„ โŠค (stereoToFun v) {x | ((innerSL โ„) v) x โ‰  1}", " ContDiffOn โ„ โŠค (fun x => 2 / (1 - ((innerSL โ„) v) x)) {x | ((innerSL โ„) v) x โ‰  1}", " ContDiffOn โ„ โŠค (fun x => 1 - ((innerSL โ„) v) x) {x | ((innerSL โ„) v) x โ‰  1}", " โˆ€ x โˆˆ {x | ((innerSL โ„) v) x โ‰  1}, 1 - ((innerSL โ„) v) x โ‰  0", " False", " ...
[ " HasFDerivAt โ‡‘(Submodule.span โ„ {v})แ—ฎ.subtypeL ?m.122574 0" ]
import Mathlib.SetTheory.Ordinal.Arithmetic import Mathlib.Tactic.TFAE import Mathlib.Topology.Order.Monotone #align_import set_theory.ordinal.topology from "leanprover-community/mathlib"@"740acc0e6f9adf4423f92a485d0456fc271482da" noncomputable section universe u v open Cardinal Order Topology namespace Ordina...
Mathlib/SetTheory/Ordinal/Topology.lean
64
65
theorem nhds_left_eq_nhds (a : Ordinal) : ๐“[โ‰ค] a = ๐“ a := by
rw [โ† nhds_left_sup_nhds_right', nhds_right', sup_bot_eq]
[ " IsOpen {a} โ†” ยฌa.IsLimit", " False", " IsOpen {a}", " IsOpen {0}", " IsOpen (Set.Iio (succ โŠฅ))", " IsOpen {succ b}", " IsOpen (Set.Ioo b (succ (succ b)))", " ๐“[<] a = ๐“[โ‰ ] a", " ๐“[โ‰ค] a = ๐“ a" ]
[ " IsOpen {a} โ†” ยฌa.IsLimit", " False", " IsOpen {a}", " IsOpen {0}", " IsOpen (Set.Iio (succ โŠฅ))", " IsOpen {succ b}", " IsOpen (Set.Ioo b (succ (succ b)))", " ๐“[<] a = ๐“[โ‰ ] a", " ๐“[โ‰ค] a = ๐“ a" ]
[]
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
100
139
theorem finite_integral_one_add_norm {r : โ„} (hnr : (finrank โ„ E : โ„) < r) : (โˆซโป x : E, ENNReal.ofReal ((1 + โ€–xโ€–) ^ (-r)) โˆ‚ฮผ) < โˆž := by
have hr : 0 < r := lt_of_le_of_lt (finrank โ„ E).cast_nonneg hnr -- We start by applying the layer cake formula have h_meas : Measurable fun ฯ‰ : E => (1 + โ€–ฯ‰โ€–) ^ (-r) := -- Porting note: was `by measurability` (measurable_norm.const_add _).pow_const _ have h_pos : โˆ€ x : E, 0 โ‰ค (1 + โ€–xโ€–) ^ (-r) := fun x ...
[ " โˆš(1 + โ€–xโ€– ^ 2) โ‰ค 1 + โ€–xโ€–", " 0 โ‰ค 1 + โ€–xโ€–", " 1 + โ€–xโ€– ^ 2 โ‰ค (1 + โ€–xโ€–) ^ 2", " 1 + โ€–xโ€– โ‰ค โˆš2 * โˆš(1 + โ€–xโ€– ^ 2)", " 1 + โ€–xโ€– โ‰ค โˆš(2 * (1 + โ€–xโ€– ^ 2))", " (1 + โ€–xโ€–) ^ 2 โ‰ค 2 * (1 + โ€–xโ€– ^ 2)", " (1 + โ€–xโ€– ^ 2) ^ (-r / 2) = 2 ^ (r / 2) * ((โˆš2 * โˆš(1 + โ€–xโ€– ^ 2)) ^ r)โปยน", " โˆš2 ^ r โ‰  0", " 0 โ‰ค โˆš(1 + โ€–xโ€– ^ 2)", "...
[ " โˆš(1 + โ€–xโ€– ^ 2) โ‰ค 1 + โ€–xโ€–", " 0 โ‰ค 1 + โ€–xโ€–", " 1 + โ€–xโ€– ^ 2 โ‰ค (1 + โ€–xโ€–) ^ 2", " 1 + โ€–xโ€– โ‰ค โˆš2 * โˆš(1 + โ€–xโ€– ^ 2)", " 1 + โ€–xโ€– โ‰ค โˆš(2 * (1 + โ€–xโ€– ^ 2))", " (1 + โ€–xโ€–) ^ 2 โ‰ค 2 * (1 + โ€–xโ€– ^ 2)", " (1 + โ€–xโ€– ^ 2) ^ (-r / 2) = 2 ^ (r / 2) * ((โˆš2 * โˆš(1 + โ€–xโ€– ^ 2)) ^ r)โปยน", " โˆš2 ^ r โ‰  0", " 0 โ‰ค โˆš(1 + โ€–xโ€– ^ 2)", "...
[ " 0 โ‰ค (1 + โ€–xโ€–) ^ (-r)", " โˆซโป (t : โ„) in Ioi 0, ฮผ {a | t โ‰ค (1 + โ€–aโ€–) ^ (-r)} < โŠค", " ฮผ {a | t โ‰ค (1 + โ€–aโ€–) ^ (-r)} = ฮผ (Metric.closedBall 0 (t ^ (-rโปยน) - 1))", " {a | t โ‰ค (1 + โ€–aโ€–) ^ (-r)} = Metric.closedBall 0 (t ^ (-rโปยน) - 1)", " x โˆˆ {a | t โ‰ค (1 + โ€–aโ€–) ^ (-r)} โ†” x โˆˆ Metric.closedBall 0 (t ^ (-rโปยน) - 1)", ...
import Mathlib.CategoryTheory.Limits.Shapes.ZeroMorphisms import Mathlib.CategoryTheory.Limits.Shapes.Kernels import Mathlib.CategoryTheory.Abelian.Basic import Mathlib.CategoryTheory.Subobject.Lattice import Mathlib.Order.Atoms #align_import category_theory.simple from "leanprover-community/mathlib"@"4ed0bcaef698011...
Mathlib/CategoryTheory/Simple.lean
103
107
theorem mono_to_simple_zero_of_not_iso {X Y : C} [Simple Y] {f : X โŸถ Y} [Mono f] (w : IsIso f โ†’ False) : f = 0 := by
classical by_contra h exact w (isIso_of_mono_of_nonzero h)
[ " IsIso f โ†” f โ‰  0", " IsIso f โ†’ f โ‰  0", " False", " IsIso (f โ‰ซ i.hom)", " f โ‰  0 โ†’ IsIso f", " IsIso f", " f โ‰ซ i.hom โ‰  0", " f = 0", " IsIso ((f โ‰ซ i.hom) โ‰ซ i.inv)", " kernel.ฮน f = 0", " Epi f", " Epi (factorThruImage f โ‰ซ image.ฮน f)" ]
[ " IsIso f โ†” f โ‰  0", " IsIso f โ†’ f โ‰  0", " False", " IsIso (f โ‰ซ i.hom)", " f โ‰  0 โ†’ IsIso f", " IsIso f", " f โ‰ซ i.hom โ‰  0", " f = 0", " IsIso ((f โ‰ซ i.hom) โ‰ซ i.inv)", " kernel.ฮน f = 0", " Epi f", " Epi (factorThruImage f โ‰ซ image.ฮน f)" ]
[]
import Mathlib.Analysis.SpecialFunctions.PolarCoord import Mathlib.Analysis.SpecialFunctions.Gamma.Basic open Real Set MeasureTheory MeasureTheory.Measure section real theorem integral_rpow_mul_exp_neg_rpow {p q : โ„} (hp : 0 < p) (hq : - 1 < q) : โˆซ x in Ioi (0:โ„), x ^ q * exp (- x ^ p) = (1 / p) * Gamma ((q +...
Mathlib/MeasureTheory/Integral/Gamma.lean
59
63
theorem integral_exp_neg_rpow {p : โ„} (hp : 0 < p) : โˆซ x in Ioi (0:โ„), exp (- x ^ p) = Gamma (1 / p + 1) := by
convert (integral_rpow_mul_exp_neg_rpow hp neg_one_lt_zero) using 1 ยท simp_rw [rpow_zero, one_mul] ยท rw [zero_add, Gamma_add_one (one_div_ne_zero (ne_of_gt hp))]
[ " โˆซ (x : โ„) in Ioi 0, x ^ q * rexp (-x ^ p) = 1 / p * ((q + 1) / p).Gamma", " โˆซ (x : โ„) in Ioi 0, x ^ q * rexp (-x ^ p) =\n โˆซ (x : โ„) in Ioi 0, (1 / p * x ^ (1 / p - 1)) โ€ข ((x ^ (1 / p)) ^ q * rexp (-x))", " โˆซ (x : โ„) in Ioi 0, (1 / p * x ^ (1 / p - 1)) โ€ข ((x ^ (1 / p)) ^ q * rexp (-(x ^ (1 / p)) ^ p)) =\n ...
[ " โˆซ (x : โ„) in Ioi 0, x ^ q * rexp (-x ^ p) = 1 / p * ((q + 1) / p).Gamma", " โˆซ (x : โ„) in Ioi 0, x ^ q * rexp (-x ^ p) =\n โˆซ (x : โ„) in Ioi 0, (1 / p * x ^ (1 / p - 1)) โ€ข ((x ^ (1 / p)) ^ q * rexp (-x))", " โˆซ (x : โ„) in Ioi 0, (1 / p * x ^ (1 / p - 1)) โ€ข ((x ^ (1 / p)) ^ q * rexp (-(x ^ (1 / p)) ^ p)) =\n ...
[ " โˆซ (x : โ„) in Ioi 0, rexp (-x ^ p) = โˆซ (x : โ„) in Ioi 0, x ^ 0 * rexp (-x ^ p)", " (1 / p + 1).Gamma = 1 / p * ((0 + 1) / p).Gamma" ]
import Mathlib.MeasureTheory.Measure.Dirac set_option autoImplicit true open Set open scoped ENNReal Classical variable [MeasurableSpace ฮฑ] [MeasurableSpace ฮฒ] {s : Set ฮฑ} noncomputable section namespace MeasureTheory.Measure def count : Measure ฮฑ := sum dirac #align measure_theory.measure.count MeasureTheo...
Mathlib/MeasureTheory/Measure/Count.lean
44
44
theorem count_empty : count (โˆ… : Set ฮฑ) = 0 := by
rw [count_apply MeasurableSet.empty, tsum_empty]
[ " count s = โˆ‘' (i : โ†‘s), 1", " count โˆ… = 0" ]
[ " count s = โˆ‘' (i : โ†‘s), 1", " count โˆ… = 0" ]
[]
import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor import Mathlib.CategoryTheory.Monoidal.Functor #align_import category_theory.monoidal.preadditive from "leanprover-community/mathlib"@"986c4d5761f938b2e1c43c01f001b6d9d88c2055" noncomputable section open scoped Classical namespace CategoryTheory open Cat...
Mathlib/CategoryTheory/Monoidal/Preadditive.lean
57
58
theorem zero_tensor {W X Y Z : C} (f : Y โŸถ Z) : (0 : W โŸถ X) โŠ— f = 0 := by
simp [tensorHom_def]
[ " f โŠ— 0 = 0", " 0 โŠ— f = 0" ]
[ " f โŠ— 0 = 0", " 0 โŠ— f = 0" ]
[]
import Mathlib.Topology.Order.ProjIcc import Mathlib.Topology.CompactOpen import Mathlib.Topology.UnitInterval #align_import topology.path_connected from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" noncomputable section open scoped Classical open Topology Filter unitInterval Set Fun...
Mathlib/Topology/Connected/PathConnected.lean
194
200
theorem symm_range {a b : X} (ฮณ : Path a b) : range ฮณ.symm = range ฮณ := by
ext x simp only [mem_range, Path.symm, DFunLike.coe, unitInterval.symm, SetCoe.exists, comp_apply, Subtype.coe_mk] constructor <;> rintro โŸจy, hy, hxyโŸฉ <;> refine โŸจ1 - y, mem_iff_one_sub_mem.mp hy, ?_โŸฉ <;> convert hxy simp
[ " ฮณโ‚ = ฮณโ‚‚", " { toContinuousMap := toContinuousMapโœ, source' := source'โœ, target' := target'โœ } = ฮณโ‚‚", " { toContinuousMap := toContinuousMapโœยน, source' := source'โœยน, target' := target'โœยน } =\n { toContinuousMap := toContinuousMapโœ, source' := source'โœ, target' := target'โœ }", " Continuous โ‡‘ฮณ.toContinuousM...
[ " ฮณโ‚ = ฮณโ‚‚", " { toContinuousMap := toContinuousMapโœ, source' := source'โœ, target' := target'โœ } = ฮณโ‚‚", " { toContinuousMap := toContinuousMapโœยน, source' := source'โœยน, target' := target'โœยน } =\n { toContinuousMap := toContinuousMapโœ, source' := source'โœ, target' := target'โœ }", " Continuous โ‡‘ฮณ.toContinuousM...
[ " x โˆˆ range โ‡‘ฮณ.symm โ†” x โˆˆ range โ‡‘ฮณ", " (โˆƒ x_1, โˆƒ (h : x_1 โˆˆ I), ฮณ.toFun โŸจ1 - x_1, โ‹ฏโŸฉ = x) โ†” โˆƒ x_1, โˆƒ (h : x_1 โˆˆ I), ฮณ.toFun โŸจx_1, hโŸฉ = x", " (โˆƒ x_1, โˆƒ (h : x_1 โˆˆ I), ฮณ.toFun โŸจ1 - x_1, โ‹ฏโŸฉ = x) โ†’ โˆƒ x_1, โˆƒ (h : x_1 โˆˆ I), ฮณ.toFun โŸจx_1, hโŸฉ = x", " (โˆƒ x_1, โˆƒ (h : x_1 โˆˆ I), ฮณ.toFun โŸจx_1, hโŸฉ = x) โ†’ โˆƒ x_1, โˆƒ (h : x_1 ...
import Mathlib.Data.List.OfFn import Mathlib.Data.List.Range #align_import data.list.fin_range from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" universe u namespace List variable {ฮฑ : Type u} @[simp] theorem map_coe_finRange (n : โ„•) : ((finRange n) : List (Fin n)).map (Fin.val) = ...
Mathlib/Data/List/FinRange.lean
44
47
theorem ofFn_eq_pmap {n} {f : Fin n โ†’ ฮฑ} : ofFn f = pmap (fun i hi => f โŸจi, hiโŸฉ) (range n) fun _ => mem_range.1 := by
rw [pmap_eq_map_attach] exact ext_get (by simp) fun i hi1 hi2 => by simp [get_ofFn f โŸจi, hi1โŸฉ]
[ " map Fin.val (finRange n) = range n", " map (fun a => a) (range n) = range n", " finRange n.succ = 0 :: map Fin.succ (finRange n)", " map Fin.val (finRange n.succ) = map Fin.val (0 :: map Fin.succ (finRange n))", " 0 :: map (Nat.succ โˆ˜ Fin.val) (finRange n) = 0 :: map (Fin.val โˆ˜ Fin.succ) (finRange n)", ...
[ " map Fin.val (finRange n) = range n", " map (fun a => a) (range n) = range n", " finRange n.succ = 0 :: map Fin.succ (finRange n)", " map Fin.val (finRange n.succ) = map Fin.val (0 :: map Fin.succ (finRange n))", " 0 :: map (Nat.succ โˆ˜ Fin.val) (finRange n) = 0 :: map (Fin.val โˆ˜ Fin.succ) (finRange n)", ...
[ " ofFn f = map (fun x => f โŸจโ†‘x, โ‹ฏโŸฉ) (range n).attach", " (ofFn f).length = (map (fun x => f โŸจโ†‘x, โ‹ฏโŸฉ) (range n).attach).length", " (ofFn f).get โŸจi, hi1โŸฉ = (map (fun x => f โŸจโ†‘x, โ‹ฏโŸฉ) (range n).attach).get โŸจi, hi2โŸฉ" ]
import Mathlib.Algebra.Group.Fin import Mathlib.LinearAlgebra.Matrix.Symmetric #align_import linear_algebra.matrix.circulant from "leanprover-community/mathlib"@"3e068ece210655b7b9a9477c3aff38a492400aa1" variable {ฮฑ ฮฒ m n R : Type*} namespace Matrix open Function open Matrix def circulant [Sub n] (v : n โ†’ ฮฑ)...
Mathlib/LinearAlgebra/Matrix/Circulant.lean
142
151
theorem circulant_mul_comm [CommSemigroup ฮฑ] [AddCommMonoid ฮฑ] [Fintype n] [AddCommGroup n] (v w : n โ†’ ฮฑ) : circulant v * circulant w = circulant w * circulant v := by
ext i j simp only [mul_apply, circulant_apply, mul_comm] refine Fintype.sum_equiv ((Equiv.subLeft i).trans (Equiv.addRight j)) _ _ ?_ intro x simp only [Equiv.trans_apply, Equiv.subLeft_apply, Equiv.coe_addRight, add_sub_cancel_right, mul_comm] congr 2 abel
[ " Injective circulant", " v = w", " v k = w k", " Injective fun v => circulant v", " (circulant v)แต€ = circulant fun i => v (-i)", " (circulant v)แต€ iโœ jโœ = circulant (fun i => v (-i)) iโœ jโœ", " (circulant v)แดด = circulant (star fun i => v (-i))", " (circulant v)แดด iโœ jโœ = circulant (star fun i => v (-i))...
[ " Injective circulant", " v = w", " v k = w k", " Injective fun v => circulant v", " (circulant v)แต€ = circulant fun i => v (-i)", " (circulant v)แต€ iโœ jโœ = circulant (fun i => v (-i)) iโœ jโœ", " (circulant v)แดด = circulant (star fun i => v (-i))", " (circulant v)แดด iโœ jโœ = circulant (star fun i => v (-i))...
[ " (circulant v * circulant w) i j = (circulant w * circulant v) i j", " โˆ‘ x : n, v (i - x) * w (x - j) = โˆ‘ x : n, w (i - x) * v (x - j)", " โˆ€ (x : n),\n v (i - x) * w (x - j) =\n w (i - ((Equiv.subLeft i).trans (Equiv.addRight j)) x) * v (((Equiv.subLeft i).trans (Equiv.addRight j)) x - j)", " v (i - ...
import Mathlib.Analysis.Complex.UpperHalfPlane.Topology import Mathlib.Analysis.SpecialFunctions.Arsinh import Mathlib.Geometry.Euclidean.Inversion.Basic #align_import analysis.complex.upper_half_plane.metric from "leanprover-community/mathlib"@"caa58cbf5bfb7f81ccbaca4e8b8ac4bc2b39cc1c" noncomputable section ope...
Mathlib/Analysis/Complex/UpperHalfPlane/Metric.lean
45
47
theorem sinh_half_dist (z w : โ„) : sinh (dist z w / 2) = dist (z : โ„‚) w / (2 * โˆš(z.im * w.im)) := by
rw [dist_eq, mul_div_cancel_leftโ‚€ (arsinh _) two_ne_zero, sinh_arsinh]
[ " (dist z w / 2).sinh = dist โ†‘z โ†‘w / (2 * โˆš(z.im * w.im))" ]
[ " (dist z w / 2).sinh = dist โ†‘z โ†‘w / (2 * โˆš(z.im * w.im))" ]
[]
import Mathlib.Algebra.ContinuedFractions.ContinuantsRecurrence import Mathlib.Algebra.ContinuedFractions.TerminatedStable import Mathlib.Tactic.FieldSimp import Mathlib.Tactic.Ring #align_import algebra.continued_fractions.convergents_equiv from "leanprover-community/mathlib"@"a7e36e48519ab281320c4d192da6a7b348ce40a...
Mathlib/Algebra/ContinuedFractions/ConvergentsEquiv.lean
114
117
theorem squashSeq_nth_of_not_terminated {gp_n gp_succ_n : Pair K} (s_nth_eq : s.get? n = some gp_n) (s_succ_nth_eq : s.get? (n + 1) = some gp_succ_n) : (squashSeq s n).get? n = some โŸจgp_n.a, gp_n.b + gp_succ_n.a / gp_succ_n.bโŸฉ := by
simp [*, squashSeq]
[ " squashSeq s n = s", " (squashSeq s n).get? n = some { a := gp_n.a, b := gp_n.b + gp_succ_n.a / gp_succ_n.b }" ]
[ " squashSeq s n = s", " (squashSeq s n).get? n = some { a := gp_n.a, b := gp_n.b + gp_succ_n.a / gp_succ_n.b }" ]
[]
import Mathlib.Data.Nat.Defs import Mathlib.Data.Option.Basic import Mathlib.Data.List.Defs import Mathlib.Init.Data.List.Basic import Mathlib.Init.Data.List.Instances import Mathlib.Init.Data.List.Lemmas import Mathlib.Logic.Unique import Mathlib.Order.Basic import Mathlib.Tactic.Common #align_import data.list.basic...
Mathlib/Data/List/Basic.lean
87
91
theorem _root_.Decidable.List.eq_or_ne_mem_of_mem [DecidableEq ฮฑ] {a b : ฮฑ} {l : List ฮฑ} (h : a โˆˆ b :: l) : a = b โˆจ a โ‰  b โˆง a โˆˆ l := by
by_cases hab : a = b ยท exact Or.inl hab ยท exact ((List.mem_cons.1 h).elim Or.inl (fun h => Or.inr โŸจhab, hโŸฉ))
[ " a = b โˆจ a โ‰  b โˆง a โˆˆ l" ]
[ " a = b โˆจ a โ‰  b โˆง a โˆˆ l" ]
[]
import Aesop import Mathlib.Algebra.Group.Defs import Mathlib.Data.Nat.Defs import Mathlib.Data.Int.Defs import Mathlib.Logic.Function.Basic import Mathlib.Tactic.Cases import Mathlib.Tactic.SimpRw import Mathlib.Tactic.SplitIfs #align_import algebra.group.basic from "leanprover-community/mathlib"@"a07d750983b94c530a...
Mathlib/Algebra/Group/Basic.lean
323
325
theorem mul_right_eq_self : a * b = a โ†” b = 1 := calc a * b = a โ†” a * b = a * 1 := by
rw [mul_one] _ โ†” b = 1 := mul_left_cancel_iff
[ " a * b = a โ†” a * b = a * 1" ]
[ " a * b = a โ†” a * b = a * 1" ]
[]
import Mathlib.LinearAlgebra.LinearPMap import Mathlib.Topology.Algebra.Module.Basic #align_import topology.algebra.module.linear_pmap from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open Topology variable {R E F : Type*} variable [CommRing R] [AddCommGroup E] [AddCommGroup F] vari...
Mathlib/Topology/Algebra/Module/LinearPMap.lean
89
92
theorem IsClosable.existsUnique {f : E โ†’โ‚—.[R] F} (hf : f.IsClosable) : โˆƒ! f' : E โ†’โ‚—.[R] F, f.graph.topologicalClosure = f'.graph := by
refine exists_unique_of_exists_of_unique hf fun _ _ hyโ‚ hyโ‚‚ => eq_of_eq_graph ?_ rw [โ† hyโ‚, โ† hyโ‚‚]
[ " g.IsClosable", " g.graph.topologicalClosure โ‰ค f'.graph", " g.graph.topologicalClosure โ‰ค f.graph.topologicalClosure", " g.graph.topologicalClosure = g.graph.topologicalClosure.toLinearPMap.graph", " โˆ€ x โˆˆ g.graph.topologicalClosure, x.1 = 0 โ†’ x.2 = 0", " โˆƒ! f', f.graph.topologicalClosure = f'.graph", "...
[ " g.IsClosable", " g.graph.topologicalClosure โ‰ค f'.graph", " g.graph.topologicalClosure โ‰ค f.graph.topologicalClosure", " g.graph.topologicalClosure = g.graph.topologicalClosure.toLinearPMap.graph", " โˆ€ x โˆˆ g.graph.topologicalClosure, x.1 = 0 โ†’ x.2 = 0", " โˆƒ! f', f.graph.topologicalClosure = f'.graph" ]
[ " xโœยน.graph = xโœ.graph" ]
import Mathlib.Algebra.Algebra.Defs import Mathlib.Algebra.Order.Group.Basic import Mathlib.Algebra.Order.Ring.Basic import Mathlib.RingTheory.Localization.Basic import Mathlib.SetTheory.Game.Birthday import Mathlib.SetTheory.Surreal.Basic #align_import set_theory.surreal.dyadic from "leanprover-community/mathlib"@"9...
Mathlib/SetTheory/Surreal/Dyadic.lean
85
86
theorem birthday_half : birthday (powHalf 1) = 2 := by
rw [birthday_def]; simp
[ " (powHalf n).LeftMoves = PUnit.{u_1 + 1}", " (powHalf 0).LeftMoves = PUnit.{u_1 + 1}", " (powHalf (nโœ + 1)).LeftMoves = PUnit.{u_1 + 1}", " (powHalf n).moveLeft i = 0", " (powHalf 0).moveLeft i = 0", " (powHalf (nโœ + 1)).moveLeft i = 0", " (powHalf 0).moveLeft PUnit.unit = 0", " (powHalf (nโœ + 1)).mo...
[ " (powHalf n).LeftMoves = PUnit.{u_1 + 1}", " (powHalf 0).LeftMoves = PUnit.{u_1 + 1}", " (powHalf (nโœ + 1)).LeftMoves = PUnit.{u_1 + 1}", " (powHalf n).moveLeft i = 0", " (powHalf 0).moveLeft i = 0", " (powHalf (nโœ + 1)).moveLeft i = 0", " (powHalf 0).moveLeft PUnit.unit = 0", " (powHalf (nโœ + 1)).mo...
[ " max (Ordinal.lsub fun i => ((powHalf 1).moveLeft i).birthday)\n (Ordinal.lsub fun i => ((powHalf 1).moveRight i).birthday) =\n 2" ]
import Mathlib.Topology.Sheaves.Sheaf import Mathlib.CategoryTheory.Sites.Limits import Mathlib.CategoryTheory.Limits.FunctorCategory #align_import topology.sheaves.limits from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" noncomputable section universe v u open CategoryTheory open ...
Mathlib/Topology/Sheaves/Limits.lean
41
49
theorem isSheaf_of_isLimit [HasLimits C] {X : TopCat} (F : J โฅค Presheaf.{v} C X) (H : โˆ€ j, (F.obj j).IsSheaf) {c : Cone F} (hc : IsLimit c) : c.pt.IsSheaf := by
let F' : J โฅค Sheaf C X := { obj := fun j => โŸจF.obj j, H jโŸฉ map := fun f => โŸจF.map fโŸฉ } let e : F' โ‹™ Sheaf.forget C X โ‰… F := NatIso.ofComponents fun _ => Iso.refl _ exact Presheaf.isSheaf_of_iso ((isLimitOfPreserves (Sheaf.forget C X) (limit.isLimit F')).conePointsIsoOfNatIso hc e) (limit F').2
[ " c.pt.IsSheaf" ]
[ " c.pt.IsSheaf" ]
[]
import Mathlib.Data.ENNReal.Inv #align_import data.real.ennreal from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520" open Set NNReal ENNReal namespace ENNReal section iInf variable {ฮน : Sort*} {f g : ฮน โ†’ โ„โ‰ฅ0โˆž} variable {a b c d : โ„โ‰ฅ0โˆž} {r p q : โ„โ‰ฅ0} theorem toNNReal_iInf (hf : โˆ€ i, f ...
Mathlib/Data/ENNReal/Real.lean
564
569
theorem toNNReal_sSup (s : Set โ„โ‰ฅ0โˆž) (hs : โˆ€ r โˆˆ s, r โ‰  โˆž) : (sSup s).toNNReal = sSup (ENNReal.toNNReal '' s) := by
have hf : โˆ€ i, ((โ†‘) : s โ†’ โ„โ‰ฅ0โˆž) i โ‰  โˆž := fun โŸจr, rsโŸฉ => hs r rs -- Porting note: `โ† sSup_image'` had to be replaced by `โ† image_eq_range` as the lemmas are used -- in a different order. simpa only [โ† sSup_range, โ† image_eq_range, Subtype.range_coe_subtype] using (toNNReal_iSup hf)
[ " (iInf f).toNNReal = โจ… i, (f i).toNNReal", " (โจ… i, โ†‘(f i)).toNNReal = โจ… i, ((fun i => โ†‘(f i)) i).toNNReal", " (sInf s).toNNReal = sInf (ENNReal.toNNReal '' s)", " (iSup f).toNNReal = โจ† i, (f i).toNNReal", " (โจ† i, โ†‘(f i)).toNNReal = โจ† i, ((fun i => โ†‘(f i)) i).toNNReal", " (โจ† i, โ†‘(f i)).toNNReal = โจ† i, f i...
[ " (iInf f).toNNReal = โจ… i, (f i).toNNReal", " (โจ… i, โ†‘(f i)).toNNReal = โจ… i, ((fun i => โ†‘(f i)) i).toNNReal", " (sInf s).toNNReal = sInf (ENNReal.toNNReal '' s)", " (iSup f).toNNReal = โจ† i, (f i).toNNReal", " (โจ† i, โ†‘(f i)).toNNReal = โจ† i, ((fun i => โ†‘(f i)) i).toNNReal", " (โจ† i, โ†‘(f i)).toNNReal = โจ† i, f i...
[]
import Mathlib.Algebra.GCDMonoid.Basic import Mathlib.Algebra.EuclideanDomain.Basic import Mathlib.RingTheory.Ideal.Basic import Mathlib.RingTheory.PrincipalIdealDomain #align_import ring_theory.euclidean_domain from "leanprover-community/mathlib"@"bf9bbbcf0c1c1ead18280b0d010e417b10abb1b6" section open Euclidean...
Mathlib/RingTheory/EuclideanDomain.lean
50
55
theorem right_div_gcd_ne_zero {p q : R} (hq : q โ‰  0) : q / GCDMonoid.gcd p q โ‰  0 := by
obtain โŸจr, hrโŸฉ := GCDMonoid.gcd_dvd_right p q obtain โŸจpq0, r0โŸฉ : GCDMonoid.gcd p q โ‰  0 โˆง r โ‰  0 := mul_ne_zero_iff.mp (hr โ–ธ hq) nth_rw 1 [hr] rw [mul_comm, mul_div_cancel_rightโ‚€ _ pq0] exact r0
[ " p / GCDMonoid.gcd p q โ‰  0", " GCDMonoid.gcd p q * r / GCDMonoid.gcd p q โ‰  0", " r โ‰  0", " q / GCDMonoid.gcd p q โ‰  0" ]
[ " p / GCDMonoid.gcd p q โ‰  0", " GCDMonoid.gcd p q * r / GCDMonoid.gcd p q โ‰  0", " r โ‰  0", " q / GCDMonoid.gcd p q โ‰  0" ]
[]
import Mathlib.Algebra.Algebra.Defs import Mathlib.Algebra.CharP.ExpChar import Mathlib.FieldTheory.Separable #align_import field_theory.separable_degree from "leanprover-community/mathlib"@"d11893b411025250c8e61ff2f12ccbd7ee35ab15" noncomputable section namespace Polynomial open scoped Classical open Polynomial...
Mathlib/RingTheory/Polynomial/SeparableDegree.lean
78
82
theorem IsSeparableContraction.dvd_degree' {g} (hf : IsSeparableContraction q f g) : โˆƒ m : โ„•, g.natDegree * q ^ m = f.natDegree := by
obtain โŸจm, rflโŸฉ := hf.2 use m rw [natDegree_expand]
[ " โˆƒ m, g.natDegree * q ^ m = f.natDegree", " โˆƒ m_1, g.natDegree * q ^ m_1 = ((expand F (q ^ m)) g).natDegree", " g.natDegree * q ^ m = ((expand F (q ^ m)) g).natDegree" ]
[ " โˆƒ m, g.natDegree * q ^ m = f.natDegree" ]
[ " โˆƒ m_1, g.natDegree * q ^ m_1 = ((expand F (q ^ m)) g).natDegree", " g.natDegree * q ^ m = ((expand F (q ^ m)) g).natDegree" ]
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
468
477
theorem rootMultiplicity_eq_natTrailingDegree' {p : R[X]} : p.rootMultiplicity 0 = p.natTrailingDegree := by
by_cases h : p = 0 ยท simp only [h, rootMultiplicity_zero, natTrailingDegree_zero] refine le_antisymm ?_ ?_ ยท rw [rootMultiplicity_le_iff h, map_zero, sub_zero, X_pow_dvd_iff, not_forall] exact โŸจp.natTrailingDegree, fun h' โ†ฆ trailingCoeff_nonzero_iff_nonzero.2 h <| h' <| Nat.lt.base _โŸฉ ยท rw [le_root...
[ " 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) โˆฃ...
[ " rootMultiplicity 0 p โ‰ค p.natTrailingDegree", " โˆƒ x, ยฌ(x < p.natTrailingDegree + 1 โ†’ p.coeff x = 0)", " p.natTrailingDegree โ‰ค rootMultiplicity 0 p", " โˆ€ d < p.natTrailingDegree, p.coeff d = 0" ]
import Mathlib.Algebra.Order.Ring.Abs #align_import data.int.order.lemmas from "leanprover-community/mathlib"@"fc2ed6f838ce7c9b7c7171e58d78eaf7b438fb0e" open Function Nat namespace Int variable {a b : โ„ค} {n : โ„•} theorem natAbs_eq_iff_mul_self_eq {a b : โ„ค} : a.natAbs = b.natAbs โ†” a * a = b * b := by rw [โ† a...
Mathlib/Data/Int/Order/Lemmas.lean
35
37
theorem natAbs_lt_iff_mul_self_lt {a b : โ„ค} : a.natAbs < b.natAbs โ†” a * a < b * b := by
rw [โ† abs_lt_iff_mul_self_lt, abs_eq_natAbs, abs_eq_natAbs] exact Int.ofNat_lt.symm
[ " a.natAbs = b.natAbs โ†” a * a = b * b", " a.natAbs = b.natAbs โ†” โ†‘a.natAbs = โ†‘b.natAbs", " a.natAbs < b.natAbs โ†” a * a < b * b", " a.natAbs < b.natAbs โ†” โ†‘a.natAbs < โ†‘b.natAbs" ]
[ " a.natAbs = b.natAbs โ†” a * a = b * b", " a.natAbs = b.natAbs โ†” โ†‘a.natAbs = โ†‘b.natAbs", " a.natAbs < b.natAbs โ†” a * a < b * b" ]
[ " a.natAbs < b.natAbs โ†” โ†‘a.natAbs < โ†‘b.natAbs" ]
import Mathlib.Data.Finsupp.Lex import Mathlib.Data.Finsupp.Multiset import Mathlib.Order.GameAdd #align_import logic.hydra from "leanprover-community/mathlib"@"48085f140e684306f9e7da907cd5932056d1aded" namespace Relation open Multiset Prod variable {ฮฑ : Type*} def CutExpand (r : ฮฑ โ†’ ฮฑ โ†’ Prop) (s' s : Multise...
Mathlib/Logic/Hydra.lean
109
121
theorem cutExpand_fibration (r : ฮฑ โ†’ ฮฑ โ†’ Prop) : Fibration (GameAdd (CutExpand r) (CutExpand r)) (CutExpand r) fun s โ†ฆ s.1 + s.2 := by
rintro โŸจsโ‚, sโ‚‚โŸฉ s โŸจt, a, hr, heโŸฉ; dsimp at he โŠข classical obtain โŸจha, rflโŸฉ := add_singleton_eq_iff.1 he rw [add_assoc, mem_add] at ha obtain h | h := ha ยท refine โŸจ(sโ‚.erase a + t, sโ‚‚), GameAdd.fst โŸจt, a, hr, ?_โŸฉ, ?_โŸฉ ยท rw [add_comm, โ† add_assoc, singleton_add, cons_erase h] ยท rw [add_assoc sโ‚, eras...
[ " CutExpand r โ‰ค InvImage (Finsupp.Lex (rแถœ โŠ“ fun x x_1 => x โ‰  x_1) fun x x_1 => x < x_1) โ‡‘toFinsupp", " InvImage (Finsupp.Lex (rแถœ โŠ“ fun x x_1 => x โ‰  x_1) fun x x_1 => x < x_1) (โ‡‘toFinsupp) s t", " (toFinsupp s) b = (toFinsupp t) b", " (fun {i} x x_1 => x < x_1) ((toFinsupp s) a) ((toFinsupp t) a)", " count b...
[ " CutExpand r โ‰ค InvImage (Finsupp.Lex (rแถœ โŠ“ fun x x_1 => x โ‰  x_1) fun x x_1 => x < x_1) โ‡‘toFinsupp", " InvImage (Finsupp.Lex (rแถœ โŠ“ fun x x_1 => x โ‰  x_1) fun x x_1 => x < x_1) (โ‡‘toFinsupp) s t", " (toFinsupp s) b = (toFinsupp t) b", " (fun {i} x x_1 => x < x_1) ((toFinsupp s) a) ((toFinsupp t) a)", " count b...
[ " โˆƒ a', GameAdd (CutExpand r) (CutExpand r) a' (sโ‚, sโ‚‚) โˆง (fun s => s.1 + s.2) a' = s", " โˆƒ a', GameAdd (CutExpand r) (CutExpand r) a' (sโ‚, sโ‚‚) โˆง a'.1 + a'.2 = s", " โˆƒ a', GameAdd (CutExpand r) (CutExpand r) a' (sโ‚, sโ‚‚) โˆง a'.1 + a'.2 = (sโ‚ + sโ‚‚ + t).erase a", " sโ‚.erase a + t + {a} = sโ‚ + t", " (sโ‚.erase a ...
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.BigOperators.NatAntidiagonal import Mathlib.Algebra.CharZero.Lemmas import Mathlib.Data.Finset.NatAntidiagonal import Mathlib.Data.Nat.Choose.Central import Mathlib.Data.Tree.Basic import Mathlib.Tactic.FieldSimp import Mathlib.Tactic.GCongr import Mathlib...
Mathlib/Combinatorics/Enumerative/Catalan.lean
79
79
theorem catalan_one : catalan 1 = 1 := by
simp [catalan_succ]
[ " catalan 0 = 1", " catalan (n + 1) = โˆ‘ i : Fin n.succ, catalan โ†‘i * catalan (n - โ†‘i)", " catalan (n + 1) = โˆ‘ ij โˆˆ antidiagonal n, catalan ij.1 * catalan ij.2", " catalan 1 = 1" ]
[ " catalan 0 = 1", " catalan (n + 1) = โˆ‘ i : Fin n.succ, catalan โ†‘i * catalan (n - โ†‘i)", " catalan (n + 1) = โˆ‘ ij โˆˆ antidiagonal n, catalan ij.1 * catalan ij.2", " catalan 1 = 1" ]
[]
import Mathlib.Data.Set.Image import Mathlib.Data.List.InsertNth import Mathlib.Init.Data.List.Lemmas #align_import data.list.lemmas from "leanprover-community/mathlib"@"2ec920d35348cb2d13ac0e1a2ad9df0fdf1a76b4" open List variable {ฮฑ ฮฒ ฮณ : Type*} namespace List theorem injOn_insertNth_index_of_not_mem (l : List...
Mathlib/Data/List/Lemmas.lean
44
52
theorem foldr_range_subset_of_range_subset {f : ฮฒ โ†’ ฮฑ โ†’ ฮฑ} {g : ฮณ โ†’ ฮฑ โ†’ ฮฑ} (hfg : Set.range f โІ Set.range g) (a : ฮฑ) : Set.range (foldr f a) โІ Set.range (foldr g a) := by
rintro _ โŸจl, rflโŸฉ induction' l with b l H ยท exact โŸจ[], rflโŸฉ ยท cases' hfg (Set.mem_range_self b) with c hgf cases' H with m hgf' rw [foldr_cons, โ† hgf, โ† hgf'] exact โŸจc :: m, rflโŸฉ
[ " Set.InjOn (fun k => insertNth k x l) {n | n โ‰ค l.length}", " Set.InjOn (fun k => insertNth k x []) {n | n โ‰ค [].length}", " n = m", " Set.InjOn (fun k => insertNth k x (hd :: tl)) {n | n โ‰ค (hd :: tl).length}", " 0 = m", " nโœ + 1 = m", " 0 = 0", " 0 = nโœ + 1", " nโœ + 1 = 0", " nโœยน + 1 = nโœ + 1", ...
[ " Set.InjOn (fun k => insertNth k x l) {n | n โ‰ค l.length}", " Set.InjOn (fun k => insertNth k x []) {n | n โ‰ค [].length}", " n = m", " Set.InjOn (fun k => insertNth k x (hd :: tl)) {n | n โ‰ค (hd :: tl).length}", " 0 = m", " nโœ + 1 = m", " 0 = 0", " 0 = nโœ + 1", " nโœ + 1 = 0", " nโœยน + 1 = nโœ + 1", ...
[ " foldr f a l โˆˆ Set.range (foldr g a)", " foldr f a [] โˆˆ Set.range (foldr g a)", " foldr f a (b :: l) โˆˆ Set.range (foldr g a)", " g c (foldr g a m) โˆˆ Set.range (foldr g a)" ]
import Mathlib.CategoryTheory.Monoidal.Category import Mathlib.CategoryTheory.Adjunction.FullyFaithful import Mathlib.CategoryTheory.Products.Basic #align_import category_theory.monoidal.functor from "leanprover-community/mathlib"@"3d7987cda72abc473c7cdbbb075170e9ac620042" open CategoryTheory universe vโ‚ vโ‚‚ vโ‚ƒ u...
Mathlib/CategoryTheory/Monoidal/Functor.lean
164
167
theorem LaxMonoidalFunctor.left_unitality_inv (F : LaxMonoidalFunctor C D) (X : C) : (ฮป_ (F.obj X)).inv โ‰ซ F.ฮต โ–ท F.obj X โ‰ซ F.ฮผ (๐Ÿ™_ C) X = F.map (ฮป_ X).inv := by
rw [Iso.inv_comp_eq, F.left_unitality, Category.assoc, Category.assoc, โ† F.toFunctor.map_comp, Iso.hom_inv_id, F.toFunctor.map_id, comp_id]
[ " (F.map f โŠ— F.map g) โ‰ซ F.ฮผ Y Y' = F.ฮผ X X' โ‰ซ F.map (f โŠ— g)", " { obj := F.obj, map := fun {X Y} => F.map, map_id := โ‹ฏ, map_comp := โ‹ฏ }.map f โ–ท\n { obj := F.obj, map := fun {X Y} => F.map, map_id := โ‹ฏ, map_comp := โ‹ฏ }.obj X' โ‰ซ\n ฮผ Yโœ X' =\n ฮผ Xโœ X' โ‰ซ { obj := F.obj, map := fun {X Y} => F.map, map_i...
[ " (F.map f โŠ— F.map g) โ‰ซ F.ฮผ Y Y' = F.ฮผ X X' โ‰ซ F.map (f โŠ— g)", " { obj := F.obj, map := fun {X Y} => F.map, map_id := โ‹ฏ, map_comp := โ‹ฏ }.map f โ–ท\n { obj := F.obj, map := fun {X Y} => F.map, map_id := โ‹ฏ, map_comp := โ‹ฏ }.obj X' โ‰ซ\n ฮผ Yโœ X' =\n ฮผ Xโœ X' โ‰ซ { obj := F.obj, map := fun {X Y} => F.map, map_i...
[]
import Mathlib.Data.Num.Lemmas import Mathlib.Data.Nat.Prime import Mathlib.Tactic.Ring #align_import data.num.prime from "leanprover-community/mathlib"@"58581d0fe523063f5651df0619be2bf65012a94a" namespace PosNum def minFacAux (n : PosNum) : โ„• โ†’ PosNum โ†’ PosNum | 0, _ => n | fuel + 1, k => if n < k.bit1...
Mathlib/Data/Num/Prime.lean
44
54
theorem minFacAux_to_nat {fuel : โ„•} {n k : PosNum} (h : Nat.sqrt n < fuel + k.bit1) : (minFacAux n fuel k : โ„•) = Nat.minFacAux n k.bit1 := by
induction' fuel with fuel ih generalizing k <;> rw [minFacAux, Nat.minFacAux] ยท rw [Nat.zero_add, Nat.sqrt_lt] at h simp only [h, ite_true] simp_rw [โ† mul_to_nat] simp only [cast_lt, dvd_to_nat] split_ifs <;> try rfl rw [ih] <;> [congr; convert Nat.lt_succ_of_lt h using 1] <;> simp only [_root_.bit...
[ " โ†‘(n.minFacAux fuel k) = (โ†‘n).minFacAux โ†‘k.bit1", " โ†‘(n.minFacAux 0 k) = (โ†‘n).minFacAux โ†‘k.bit1", " โ†‘(n.minFacAux (fuel + 1) k) = (โ†‘n).minFacAux โ†‘k.bit1", " โ†‘n = if โ†‘n < โ†‘k.bit1 * โ†‘k.bit1 then โ†‘n else if โ†‘k.bit1 โˆฃ โ†‘n then โ†‘k.bit1 else (โ†‘n).minFacAux (โ†‘k.bit1 + 2)", " โ†‘(if n < k.bit1 * k.bit1 then n else if...
[ " โ†‘(n.minFacAux fuel k) = (โ†‘n).minFacAux โ†‘k.bit1" ]
[ " โ†‘(n.minFacAux 0 k) = (โ†‘n).minFacAux โ†‘k.bit1", " โ†‘(n.minFacAux (fuel + 1) k) = (โ†‘n).minFacAux โ†‘k.bit1", " โ†‘n = if โ†‘n < โ†‘k.bit1 * โ†‘k.bit1 then โ†‘n else if โ†‘k.bit1 โˆฃ โ†‘n then โ†‘k.bit1 else (โ†‘n).minFacAux (โ†‘k.bit1 + 2)", " โ†‘(if n < k.bit1 * k.bit1 then n else if k.bit1 โˆฃ n then k.bit1 else n.minFacAux fuel k.succ)...
import Mathlib.Analysis.Convex.Side import Mathlib.Geometry.Euclidean.Angle.Oriented.Rotation import Mathlib.Geometry.Euclidean.Angle.Unoriented.Affine #align_import geometry.euclidean.angle.oriented.affine from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f6dddd2b4f5" noncomputable section open ...
Mathlib/Geometry/Euclidean/Angle/Oriented/Affine.lean
85
86
theorem left_ne_right_of_oangle_ne_zero {pโ‚ pโ‚‚ pโ‚ƒ : P} (h : โˆก pโ‚ pโ‚‚ pโ‚ƒ โ‰  0) : pโ‚ โ‰  pโ‚ƒ := by
rw [โ† (vsub_left_injective pโ‚‚).ne_iff]; exact o.ne_of_oangle_ne_zero h
[ " ContinuousAt (fun y => โˆก y.1 y.2.1 y.2.2) x", " (f x).1 โ‰  0", " (f x).2 โ‰  0", " โˆก pโ‚ pโ‚ pโ‚‚ = 0", " โˆก pโ‚ pโ‚‚ pโ‚‚ = 0", " pโ‚ โ‰  pโ‚‚", " pโ‚ -แตฅ pโ‚‚ โ‰  0", " pโ‚ƒ โ‰  pโ‚‚", " pโ‚ƒ -แตฅ pโ‚‚ โ‰  0", " pโ‚ โ‰  pโ‚ƒ", " pโ‚ -แตฅ pโ‚‚ โ‰  pโ‚ƒ -แตฅ pโ‚‚" ]
[ " ContinuousAt (fun y => โˆก y.1 y.2.1 y.2.2) x", " (f x).1 โ‰  0", " (f x).2 โ‰  0", " โˆก pโ‚ pโ‚ pโ‚‚ = 0", " โˆก pโ‚ pโ‚‚ pโ‚‚ = 0", " pโ‚ โ‰  pโ‚‚", " pโ‚ -แตฅ pโ‚‚ โ‰  0", " pโ‚ƒ โ‰  pโ‚‚", " pโ‚ƒ -แตฅ pโ‚‚ โ‰  0", " pโ‚ โ‰  pโ‚ƒ" ]
[ " pโ‚ -แตฅ pโ‚‚ โ‰  pโ‚ƒ -แตฅ pโ‚‚" ]
import Mathlib.Topology.Algebra.Module.WeakDual import Mathlib.MeasureTheory.Integral.BoundedContinuousFunction import Mathlib.MeasureTheory.Measure.HasOuterApproxClosed #align_import measure_theory.measure.finite_measure from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" noncomputable...
Mathlib/MeasureTheory/Measure/FiniteMeasure.lean
207
209
theorem mass_nonzero_iff (ฮผ : FiniteMeasure ฮฉ) : ฮผ.mass โ‰  0 โ†” ฮผ โ‰  0 := by
rw [not_iff_not] exact FiniteMeasure.mass_zero_iff ฮผ
[ " โ†‘ฮผ s = โ†‘ฮฝ s", " ฮผ sโ‚ โ‰ค ฮผ sโ‚‚", " (โ†‘ฮผ sโ‚).toNNReal โ‰ค (โ†‘ฮผ sโ‚‚).toNNReal", " ฮผ s โ‰ค ฮผ.mass", " ฮผ.mass = 0 โ†” ฮผ = 0", " ฮผ.mass = 0", " ฮผ = 0", " โ†‘ฮผ = โ†‘0", " โ†‘ฮผ univ = 0", " ฮผ.mass โ‰  0 โ†” ฮผ โ‰  0" ]
[ " โ†‘ฮผ s = โ†‘ฮฝ s", " ฮผ sโ‚ โ‰ค ฮผ sโ‚‚", " (โ†‘ฮผ sโ‚).toNNReal โ‰ค (โ†‘ฮผ sโ‚‚).toNNReal", " ฮผ s โ‰ค ฮผ.mass", " ฮผ.mass = 0 โ†” ฮผ = 0", " ฮผ.mass = 0", " ฮผ = 0", " โ†‘ฮผ = โ†‘0", " โ†‘ฮผ univ = 0", " ฮผ.mass โ‰  0 โ†” ฮผ โ‰  0" ]
[]
import Batteries.Classes.Order namespace Batteries.PairingHeapImp inductive Heap (ฮฑ : Type u) where | nil : Heap ฮฑ | node (a : ฮฑ) (child sibling : Heap ฮฑ) : Heap ฮฑ deriving Repr def Heap.size : Heap ฮฑ โ†’ Nat | .nil => 0 | .node _ c s => c.size + 1 + s.size def Heap.singleton (a : ฮฑ) : Heap ฮฑ := ....
.lake/packages/batteries/Batteries/Data/PairingHeap.lean
95
101
theorem Heap.noSibling_combine (le) (s : Heap ฮฑ) : (s.combine le).NoSibling := by
unfold combine; split ยท exact noSibling_merge _ _ _ ยท match s with | nil | node _ _ nil => constructor | node _ _ (node _ _ s) => rename_i h; exact (h _ _ _ _ _ rfl).elim
[ " (merge le sโ‚ sโ‚‚).NoSibling", " (match sโ‚, sโ‚‚ with\n | nil, nil => nil\n | nil, node aโ‚‚ cโ‚‚ sibling => node aโ‚‚ cโ‚‚ nil\n | node aโ‚ cโ‚ sibling, nil => node aโ‚ cโ‚ nil\n | node aโ‚ cโ‚ sibling, node aโ‚‚ cโ‚‚ sibling_1 =>\n if le aโ‚ aโ‚‚ = true then node aโ‚ (node aโ‚‚ cโ‚‚ cโ‚) nil else node aโ‚‚ (node aโ‚ cโ‚ cโ‚‚) ni...
[ " (merge le sโ‚ sโ‚‚).NoSibling", " (match sโ‚, sโ‚‚ with\n | nil, nil => nil\n | nil, node aโ‚‚ cโ‚‚ sibling => node aโ‚‚ cโ‚‚ nil\n | node aโ‚ cโ‚ sibling, nil => node aโ‚ cโ‚ nil\n | node aโ‚ cโ‚ sibling, node aโ‚‚ cโ‚‚ sibling_1 =>\n if le aโ‚ aโ‚‚ = true then node aโ‚ (node aโ‚‚ cโ‚‚ cโ‚) nil else node aโ‚‚ (node aโ‚ cโ‚ cโ‚‚) ni...
[ " (match s with\n | hโ‚@h_1:(node a child hโ‚‚@h:(node a_1 child_1 s)) => merge le (merge le hโ‚ hโ‚‚) (combine le s)\n | h => h).NoSibling", " (merge le (merge le (node aโœยน childโœยน (node aโœ childโœ sโœ)) (node aโœ childโœ sโœ)) (combine le sโœ)).NoSibling", " s.NoSibling", " (node aโœ childโœ nil).NoSibling", " (n...
import Mathlib.MeasureTheory.Constructions.Pi import Mathlib.MeasureTheory.Integral.Lebesgue open scoped Classical ENNReal open Set Function Equiv Finset noncomputable section namespace MeasureTheory section LMarginal variable {ฮด ฮด' : Type*} {ฯ€ : ฮด โ†’ Type*} [โˆ€ x, MeasurableSpace (ฯ€ x)] variable {ฮผ : โˆ€ i, Measu...
Mathlib/MeasureTheory/Integral/Marginal.lean
137
139
theorem lmarginal_union' (f : (โˆ€ i, ฯ€ i) โ†’ โ„โ‰ฅ0โˆž) (hf : Measurable f) {s t : Finset ฮด} (hst : Disjoint s t) : โˆซโ‹ฏโˆซโป_s โˆช t, f โˆ‚ฮผ = โˆซโ‹ฏโˆซโป_t, โˆซโ‹ฏโˆซโป_s, f โˆ‚ฮผ โˆ‚ฮผ := by
rw [Finset.union_comm, lmarginal_union ฮผ f hf hst.symm]
[ " Measurable (โˆซโ‹ฏโˆซโป_s, f โˆ‚ฮผ)", " Measurable (uncurry fun x y => f (updateFinset x s y))", " Measurable fun a => updateFinset a.1 s a.2", " โˆ€ (a : ฮด), Measurable fun x => updateFinset x.1 s x.2 a", " Measurable fun x => updateFinset x.1 s x.2 i", " Measurable fun x => x.2 โŸจi, โ‹ฏโŸฉ", " Measurable fun x => x....
[ " Measurable (โˆซโ‹ฏโˆซโป_s, f โˆ‚ฮผ)", " Measurable (uncurry fun x y => f (updateFinset x s y))", " Measurable fun a => updateFinset a.1 s a.2", " โˆ€ (a : ฮด), Measurable fun x => updateFinset x.1 s x.2 a", " Measurable fun x => updateFinset x.1 s x.2 i", " Measurable fun x => x.2 โŸจi, โ‹ฏโŸฉ", " Measurable fun x => x....
[]
import Mathlib.Topology.Separation open Topology Filter Set TopologicalSpace section Basic variable {ฮฑ : Type*} [TopologicalSpace ฮฑ] {C : Set ฮฑ}
Mathlib/Topology/Perfect.lean
62
68
theorem AccPt.nhds_inter {x : ฮฑ} {U : Set ฮฑ} (h_acc : AccPt x (๐“Ÿ C)) (hU : U โˆˆ ๐“ x) : AccPt x (๐“Ÿ (U โˆฉ C)) := by
have : ๐“[โ‰ ] x โ‰ค ๐“Ÿ U := by rw [le_principal_iff] exact mem_nhdsWithin_of_mem_nhds hU rw [AccPt, โ† inf_principal, โ† inf_assoc, inf_of_le_left this] exact h_acc
[ " AccPt x (๐“Ÿ (U โˆฉ C))", " ๐“[โ‰ ] x โ‰ค ๐“Ÿ U", " U โˆˆ ๐“[โ‰ ] x", " (๐“[โ‰ ] x โŠ“ ๐“Ÿ C).NeBot" ]
[ " AccPt x (๐“Ÿ (U โˆฉ C))" ]
[ " ๐“[โ‰ ] x โ‰ค ๐“Ÿ U", " U โˆˆ ๐“[โ‰ ] x", " (๐“[โ‰ ] x โŠ“ ๐“Ÿ C).NeBot" ]
import Mathlib.FieldTheory.Galois #align_import field_theory.polynomial_galois_group from "leanprover-community/mathlib"@"e3f4be1fcb5376c4948d7f095bec45350bfb9d1a" noncomputable section open scoped Polynomial open FiniteDimensional namespace Polynomial variable {F : Type*} [Field F] (p q : F[X]) (E : Type*) [...
Mathlib/FieldTheory/PolynomialGaloisGroup.lean
155
168
theorem mapRoots_bijective [h : Fact (p.Splits (algebraMap F E))] : Function.Bijective (mapRoots p E) := by
constructor ยท exact fun _ _ h => Subtype.ext (RingHom.injective _ (Subtype.ext_iff.mp h)) ยท intro y -- this is just an equality of two different ways to write the roots of `p` as an `E`-polynomial have key := roots_map (IsScalarTower.toAlgHom F p.SplittingField E : p.SplittingField โ†’+* E) (...
[ " ฯƒ = ฯ„", " (โ†‘ฯƒ).equalizer โ†‘ฯ„ = โŠค", " f x = default x", " f ((algebraMap F p.SplittingField) y) = default ((algebraMap F p.SplittingField) y)", " Function.Bijective (mapRoots p E)", " Function.Injective (mapRoots p E)", " Function.Surjective (mapRoots p E)", " โˆƒ a, mapRoots p E a = y" ]
[ " ฯƒ = ฯ„", " (โ†‘ฯƒ).equalizer โ†‘ฯ„ = โŠค", " f x = default x", " f ((algebraMap F p.SplittingField) y) = default ((algebraMap F p.SplittingField) y)", " Function.Bijective (mapRoots p E)" ]
[ " Function.Injective (mapRoots p E)", " Function.Surjective (mapRoots p E)", " โˆƒ a, mapRoots p E a = y" ]
import Mathlib.NumberTheory.Cyclotomic.PrimitiveRoots import Mathlib.NumberTheory.NumberField.Discriminant #align_import number_theory.cyclotomic.discriminant from "leanprover-community/mathlib"@"3e068ece210655b7b9a9477c3aff38a492400aa1" universe u v open Algebra Polynomial Nat IsPrimitiveRoot PowerBasis open s...
Mathlib/NumberTheory/Cyclotomic/Discriminant.lean
37
48
theorem discr_zeta_eq_discr_zeta_sub_one (hฮถ : IsPrimitiveRoot ฮถ n) : discr โ„š (hฮถ.powerBasis โ„š).basis = discr โ„š (hฮถ.subOnePowerBasis โ„š).basis := by
haveI : NumberField K := @NumberField.mk _ _ _ (IsCyclotomicExtension.finiteDimensional {n} โ„š K) have Hโ‚ : (aeval (hฮถ.powerBasis โ„š).gen) (X - 1 : โ„ค[X]) = (hฮถ.subOnePowerBasis โ„š).gen := by simp have Hโ‚‚ : (aeval (hฮถ.subOnePowerBasis โ„š).gen) (X + 1 : โ„ค[X]) = (hฮถ.powerBasis โ„š).gen := by simp refine discr_eq_discr_...
[ " discr โ„š โ‡‘(IsPrimitiveRoot.powerBasis โ„š hฮถ).basis = discr โ„š โ‡‘(subOnePowerBasis โ„š hฮถ).basis", " (aeval (IsPrimitiveRoot.powerBasis โ„š hฮถ).gen) (X - 1) = (subOnePowerBasis โ„š hฮถ).gen", " (aeval (subOnePowerBasis โ„š hฮถ).gen) (X + 1) = (IsPrimitiveRoot.powerBasis โ„š hฮถ).gen", " IsIntegral โ„ค (IsPrimitiveRoot.powerBas...
[ " discr โ„š โ‡‘(IsPrimitiveRoot.powerBasis โ„š hฮถ).basis = discr โ„š โ‡‘(subOnePowerBasis โ„š hฮถ).basis" ]
[ " (aeval (IsPrimitiveRoot.powerBasis โ„š hฮถ).gen) (X - 1) = (subOnePowerBasis โ„š hฮถ).gen", " (aeval (subOnePowerBasis โ„š hฮถ).gen) (X + 1) = (IsPrimitiveRoot.powerBasis โ„š hฮถ).gen", " IsIntegral โ„ค (IsPrimitiveRoot.powerBasis โ„š hฮถ).gen", " minpoly โ„š (IsPrimitiveRoot.powerBasis โ„š hฮถ).gen =\n Polynomial.map (algebr...
import Mathlib.Analysis.InnerProductSpace.Projection import Mathlib.Analysis.NormedSpace.PiLp import Mathlib.LinearAlgebra.FiniteDimensional import Mathlib.LinearAlgebra.UnitaryGroup #align_import analysis.inner_product_space.pi_L2 from "leanprover-community/mathlib"@"13bce9a6b6c44f6b4c91ac1c1d2a816e2533d395" set_...
Mathlib/Analysis/InnerProductSpace/PiL2.lean
145
150
theorem EuclideanSpace.sphere_zero_eq {n : Type*} [Fintype n] (r : โ„) (hr : 0 โ‰ค r) : Metric.sphere (0 : EuclideanSpace โ„ n) r = {x | โˆ‘ i, x i ^ 2 = r ^ 2} := by
ext x have : (0 : โ„) โ‰ค โˆ‘ i, x i ^ 2 := Finset.sum_nonneg fun _ _ => sq_nonneg _ simp_rw [mem_setOf, mem_sphere_zero_iff_norm, norm_eq, norm_eq_abs, sq_abs, Real.sqrt_eq_iff_sq_eq this hr, eq_comm]
[ " โ€–xโ€– ^ 2 = re โŸชx, xโŸซ_๐•œ", " โˆ€ (x y : PiLp 2 f), (starRingEnd ๐•œ) โŸชy, xโŸซ_๐•œ = โŸชx, yโŸซ_๐•œ", " (starRingEnd ๐•œ) โŸชy, xโŸซ_๐•œ = โŸชx, yโŸซ_๐•œ", " (starRingEnd ๐•œ) ({ inner := fun x y => โˆ‘ i : ฮน, InnerProductSpace.toInner.1 (x i) (y i) }.1 y x) =\n { inner := fun x y => โˆ‘ i : ฮน, InnerProductSpace.toInner.1 (x i) (y i)...
[ " โ€–xโ€– ^ 2 = re โŸชx, xโŸซ_๐•œ", " โˆ€ (x y : PiLp 2 f), (starRingEnd ๐•œ) โŸชy, xโŸซ_๐•œ = โŸชx, yโŸซ_๐•œ", " (starRingEnd ๐•œ) โŸชy, xโŸซ_๐•œ = โŸชx, yโŸซ_๐•œ", " (starRingEnd ๐•œ) ({ inner := fun x y => โˆ‘ i : ฮน, InnerProductSpace.toInner.1 (x i) (y i) }.1 y x) =\n { inner := fun x y => โˆ‘ i : ฮน, InnerProductSpace.toInner.1 (x i) (y i)...
[ " x โˆˆ Metric.sphere 0 r โ†” x โˆˆ {x | โˆ‘ i : n, x i ^ 2 = r ^ 2}" ]
import Mathlib.Probability.ProbabilityMassFunction.Basic import Mathlib.Probability.ProbabilityMassFunction.Constructions import Mathlib.MeasureTheory.Integral.Bochner namespace PMF open MeasureTheory ENNReal TopologicalSpace section General variable {ฮฑ : Type*} [MeasurableSpace ฮฑ] [MeasurableSingletonClass ฮฑ] v...
Mathlib/Probability/ProbabilityMassFunction/Integrals.lean
28
41
theorem integral_eq_tsum (p : PMF ฮฑ) (f : ฮฑ โ†’ E) (hf : Integrable f p.toMeasure) : โˆซ a, f a โˆ‚(p.toMeasure) = โˆ‘' a, (p a).toReal โ€ข f a := calc _ = โˆซ a in p.support, f a โˆ‚(p.toMeasure) := by
rw [restrict_toMeasure_support p] _ = โˆ‘' (a : support p), (p.toMeasure {a.val}).toReal โ€ข f a := by apply integral_countable f p.support_countable rwa [restrict_toMeasure_support p] _ = โˆ‘' (a : support p), (p a).toReal โ€ข f a := by congr with x; congr 2 apply PMF.toMeasure_apply_singleton p x (Measur...
[ " โˆซ (a : ฮฑ), f a โˆ‚p.toMeasure = โˆซ (a : ฮฑ) in p.support, f a โˆ‚p.toMeasure", " โˆซ (a : ฮฑ) in p.support, f a โˆ‚p.toMeasure = โˆ‘' (a : โ†‘p.support), (p.toMeasure {โ†‘a}).toReal โ€ข f โ†‘a", " Integrable f (p.toMeasure.restrict p.support)", " โˆ‘' (a : โ†‘p.support), (p.toMeasure {โ†‘a}).toReal โ€ข f โ†‘a = โˆ‘' (a : โ†‘p.support), (p โ†‘a...
[ " โˆซ (a : ฮฑ), f a โˆ‚p.toMeasure = โˆซ (a : ฮฑ) in p.support, f a โˆ‚p.toMeasure" ]
[ " โˆซ (a : ฮฑ) in p.support, f a โˆ‚p.toMeasure = โˆ‘' (a : โ†‘p.support), (p.toMeasure {โ†‘a}).toReal โ€ข f โ†‘a", " Integrable f (p.toMeasure.restrict p.support)", " โˆ‘' (a : โ†‘p.support), (p.toMeasure {โ†‘a}).toReal โ€ข f โ†‘a = โˆ‘' (a : โ†‘p.support), (p โ†‘a).toReal โ€ข f โ†‘a", " (p.toMeasure {โ†‘x}).toReal โ€ข f โ†‘x = (p โ†‘x).toReal โ€ข f โ†‘x...
import Mathlib.Data.List.Lattice import Mathlib.Data.List.Range import Mathlib.Data.Bool.Basic #align_import data.list.intervals from "leanprover-community/mathlib"@"7b78d1776212a91ecc94cf601f83bdcc46b04213" open Nat namespace List def Ico (n m : โ„•) : List โ„• := range' n (m - n) #align list.Ico List.Ico names...
Mathlib/Data/List/Intervals.lean
95
100
theorem append_consecutive {n m l : โ„•} (hnm : n โ‰ค m) (hml : m โ‰ค l) : Ico n m ++ Ico m l = Ico n l := by
dsimp only [Ico] convert range'_append n (m-n) (l-m) 1 using 2 ยท rw [Nat.one_mul, Nat.add_sub_cancel' hnm] ยท rw [Nat.sub_add_sub_cancel hml hnm]
[ " Ico 0 n = range n", " (Ico n m).length = m - n", " (range' n (m - n)).length = m - n", " Pairwise (fun x x_1 => x < x_1) (Ico n m)", " Pairwise (fun x x_1 => x < x_1) (range' n (m - n))", " (Ico n m).Nodup", " (range' n (m - n)).Nodup", " l โˆˆ Ico n m โ†” n โ‰ค l โˆง l < m", " n โ‰ค l โˆง l < n + (m - n) โ†” n...
[ " Ico 0 n = range n", " (Ico n m).length = m - n", " (range' n (m - n)).length = m - n", " Pairwise (fun x x_1 => x < x_1) (Ico n m)", " Pairwise (fun x x_1 => x < x_1) (range' n (m - n))", " (Ico n m).Nodup", " (range' n (m - n)).Nodup", " l โˆˆ Ico n m โ†” n โ‰ค l โˆง l < m", " n โ‰ค l โˆง l < n + (m - n) โ†” n...
[ " range' n (m - n) ++ range' m (l - m) = range' n (l - n)", " range' m (l - m) = range' (n + 1 * (m - n)) (l - m)", " l - n = l - m + (m - n)" ]
import Mathlib.Algebra.Polynomial.BigOperators import Mathlib.Algebra.Polynomial.Derivative import Mathlib.Data.Nat.Choose.Cast import Mathlib.Data.Nat.Choose.Vandermonde import Mathlib.Tactic.FieldSimp #align_import data.polynomial.hasse_deriv from "leanprover-community/mathlib"@"a148d797a1094ab554ad4183a4ad6f130358...
Mathlib/Algebra/Polynomial/HasseDeriv.lean
93
97
theorem hasseDeriv_eq_zero_of_lt_natDegree (p : R[X]) (n : โ„•) (h : p.natDegree < n) : hasseDeriv n p = 0 := by
rw [hasseDeriv_apply, sum_def] refine Finset.sum_eq_zero fun x hx => ?_ simp [Nat.choose_eq_zero_of_lt ((le_natDegree_of_mem_supp _ hx).trans_lt h)]
[ " (hasseDeriv k) f = f.sum fun i r => (monomial (i - k)) (โ†‘(i.choose k) * r)", " (f.sum fun x x_1 => (monomial (x - k)) (x.choose k โ€ข x_1)) = f.sum fun i r => (monomial (i - k)) (โ†‘(i.choose k) * r)", " (fun x x_1 => (monomial (x - k)) (x.choose k โ€ข x_1)) = fun i r => (monomial (i - k)) (โ†‘(i.choose k) * r)", "...
[ " (hasseDeriv k) f = f.sum fun i r => (monomial (i - k)) (โ†‘(i.choose k) * r)", " (f.sum fun x x_1 => (monomial (x - k)) (x.choose k โ€ข x_1)) = f.sum fun i r => (monomial (i - k)) (โ†‘(i.choose k) * r)", " (fun x x_1 => (monomial (x - k)) (x.choose k โ€ข x_1)) = fun i r => (monomial (i - k)) (โ†‘(i.choose k) * r)", "...
[ " โˆ‘ n_1 โˆˆ p.support, (monomial (n_1 - n)) (โ†‘(n_1.choose n) * p.coeff n_1) = 0", " (monomial (x - n)) (โ†‘(x.choose n) * p.coeff x) = 0" ]
import Mathlib.Algebra.BigOperators.Ring import Mathlib.Data.Fintype.Basic import Mathlib.Data.Int.GCD import Mathlib.RingTheory.Coprime.Basic #align_import ring_theory.coprime.lemmas from "leanprover-community/mathlib"@"509de852e1de55e1efa8eacfa11df0823f26f226" universe u v section IsCoprime variable {R : Type ...
Mathlib/RingTheory/Coprime/Lemmas.lean
69
70
theorem IsCoprime.prod_right : (โˆ€ i โˆˆ t, IsCoprime x (s i)) โ†’ IsCoprime x (โˆ i โˆˆ t, s i) := by
simpa only [isCoprime_comm] using IsCoprime.prod_left (R := R)
[ " IsCoprime m n โ†” m.gcd n = 1", " IsCoprime m n โ†’ m.gcd n = 1", " m.gcd n = 1", " 1 = m * a + n * b", " m.gcd n = 1 โ†’ IsCoprime m n", " m.gcdA n * m + m.gcdB n * n = 1 โ†’ โˆƒ a b, a * m + b * n = 1", " โˆƒ a b, a * m + b * n = 1", " IsCoprime โ†‘m โ†‘n โ†” m.Coprime n", " IsCoprime โ†‘a โ†‘b", " IsCoprime โ†‘โ†‘a โ†‘โ†‘...
[ " IsCoprime m n โ†” m.gcd n = 1", " IsCoprime m n โ†’ m.gcd n = 1", " m.gcd n = 1", " 1 = m * a + n * b", " m.gcd n = 1 โ†’ IsCoprime m n", " m.gcdA n * m + m.gcdB n * n = 1 โ†’ โˆƒ a b, a * m + b * n = 1", " โˆƒ a b, a * m + b * n = 1", " IsCoprime โ†‘m โ†‘n โ†” m.Coprime n", " IsCoprime โ†‘a โ†‘b", " IsCoprime โ†‘โ†‘a โ†‘โ†‘...
[]
import Mathlib.Algebra.GroupPower.IterateHom import Mathlib.Algebra.Ring.Divisibility.Basic import Mathlib.Data.List.Cycle import Mathlib.Data.Nat.Prime import Mathlib.Data.PNat.Basic import Mathlib.Dynamics.FixedPoints.Basic import Mathlib.GroupTheory.GroupAction.Group #align_import dynamics.periodic_pts from "leanp...
Mathlib/Dynamics/PeriodicPts.lean
156
159
theorem left_of_comp {g : ฮฑ โ†’ ฮฑ} (hco : Commute f g) (hfg : IsPeriodicPt (f โˆ˜ g) n x) (hg : IsPeriodicPt g n x) : IsPeriodicPt f n x := by
rw [IsPeriodicPt, hco.comp_iterate] at hfg exact hfg.left_of_comp hg
[ " IsPeriodicPt f (n + m) x", " IsFixedPt (f^[n] โˆ˜ f^[m]) x", " IsPeriodicPt f n x", " IsPeriodicPt f m x", " IsPeriodicPt f (m - n) x", " IsPeriodicPt f (m - n + n) x", " IsPeriodicPt f 0 x", " IsPeriodicPt f (m * n) x", " IsPeriodicPt f (n * m) x", " IsPeriodicPt f^[m] n x", " IsFixedPt f^[n]^[...
[ " IsPeriodicPt f (n + m) x", " IsFixedPt (f^[n] โˆ˜ f^[m]) x", " IsPeriodicPt f n x", " IsPeriodicPt f m x", " IsPeriodicPt f (m - n) x", " IsPeriodicPt f (m - n + n) x", " IsPeriodicPt f 0 x", " IsPeriodicPt f (m * n) x", " IsPeriodicPt f (n * m) x", " IsPeriodicPt f^[m] n x", " IsFixedPt f^[n]^[...
[]
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
82
89
theorem continuous_left_toIocMod : ContinuousWithinAt (toIocMod hp a) (Iic x) x := by
rw [(funext fun y => Eq.trans (by rw [neg_neg]) <| toIocMod_neg _ _ _ : toIocMod hp a = (fun x => p - x) โˆ˜ toIcoMod hp (-a) โˆ˜ Neg.neg)] -- Porting note: added have : ContinuousNeg ๐•œ := TopologicalAddGroup.toContinuousNeg exact (continuous_sub_left _).continuousAt.comp_continuousWithinAt <| (co...
[ " ContinuousWithinAt (toIcoMod hp a) (Ici x) x", " s โˆˆ Filter.map (toIcoMod hp a) (๐“[โ‰ฅ] x)", " โˆƒ u โˆˆ ๐“ x, u โˆฉ Ici x โІ toIcoMod hp a โปยน' s", " โˆƒ u, (โˆƒ l u_1, x โˆˆ Ioo l u_1 โˆง Ioo l u_1 โІ u) โˆง u โˆฉ Ici x โІ toIcoMod hp a โปยน' s", " โˆƒ u,\n (โˆƒ l u_1, x โˆˆ Ioo l u_1 โˆง โˆ€ x โˆˆ Ioo l u_1, x โˆˆ u) โˆง โˆ€ (x_1 : ๐•œ), x_1 ...
[ " ContinuousWithinAt (toIcoMod hp a) (Ici x) x", " s โˆˆ Filter.map (toIcoMod hp a) (๐“[โ‰ฅ] x)", " โˆƒ u โˆˆ ๐“ x, u โˆฉ Ici x โІ toIcoMod hp a โปยน' s", " โˆƒ u, (โˆƒ l u_1, x โˆˆ Ioo l u_1 โˆง Ioo l u_1 โІ u) โˆง u โˆฉ Ici x โІ toIcoMod hp a โปยน' s", " โˆƒ u,\n (โˆƒ l u_1, x โˆˆ Ioo l u_1 โˆง โˆ€ x โˆˆ Ioo l u_1, x โˆˆ u) โˆง โˆ€ (x_1 : ๐•œ), x_1 ...
[ " toIocMod hp a y = toIocMod hp a (- -y)", " ContinuousWithinAt ((fun x => p - x) โˆ˜ toIcoMod hp (-a) โˆ˜ Neg.neg) (Iic x) x" ]
import Mathlib.Analysis.Calculus.Deriv.AffineMap import Mathlib.Analysis.Calculus.Deriv.Slope import Mathlib.Analysis.Calculus.Deriv.Mul import Mathlib.Analysis.Calculus.Deriv.Comp import Mathlib.Analysis.Calculus.LocalExtr.Rolle import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.RCLike.Basic #align_import...
Mathlib/Analysis/Calculus/MeanValue.lean
92
124
theorem image_le_of_liminf_slope_right_lt_deriv_boundary' {f f' : โ„ โ†’ โ„} {a b : โ„} (hf : ContinuousOn f (Icc a b)) -- `hf'` actually says `liminf (f z - f x) / (z - x) โ‰ค f' x` (hf' : โˆ€ x โˆˆ Ico a b, โˆ€ r, f' x < r โ†’ โˆƒแถ  z in ๐“[>] x, slope f x z < r) {B B' : โ„ โ†’ โ„} (ha : f a โ‰ค B a) (hB : ContinuousOn B (Ic...
change Icc a b โІ { x | f x โ‰ค B x } set s := { x | f x โ‰ค B x } โˆฉ Icc a b have A : ContinuousOn (fun x => (f x, B x)) (Icc a b) := hf.prod hB have : IsClosed s := by simp only [s, inter_comm] exact A.preimage_isClosed_of_isClosed isClosed_Icc OrderClosedTopology.isClosed_le' apply this.Icc_subset_of_fo...
[ " โˆ€ โฆƒx : โ„โฆ„, x โˆˆ Icc a b โ†’ f x โ‰ค B x", " Icc a b โІ {x | f x โ‰ค B x}", " IsClosed s", " IsClosed (Icc a b โˆฉ {x | f x โ‰ค B x})", " โˆ€ x โˆˆ {x | f x โ‰ค B x} โˆฉ Ico a b, โˆ€ y โˆˆ Ioi x, ({x | f x โ‰ค B x} โˆฉ Ioc x y).Nonempty", " ({x | f x โ‰ค B x} โˆฉ Ioc x y).Nonempty", " {x | f x โ‰ค B x} โˆˆ ๐“[>] x", " z โˆˆ {x | f x โ‰ค B ...
[ " โˆ€ โฆƒx : โ„โฆ„, x โˆˆ Icc a b โ†’ f x โ‰ค B x" ]
[ " Icc a b โІ {x | f x โ‰ค B x}", " IsClosed s", " IsClosed (Icc a b โˆฉ {x | f x โ‰ค B x})", " โˆ€ x โˆˆ {x | f x โ‰ค B x} โˆฉ Ico a b, โˆ€ y โˆˆ Ioi x, ({x | f x โ‰ค B x} โˆฉ Ioc x y).Nonempty", " ({x | f x โ‰ค B x} โˆฉ Ioc x y).Nonempty", " {x | f x โ‰ค B x} โˆˆ ๐“[>] x", " z โˆˆ {x | f x โ‰ค B x}" ]
import Mathlib.Topology.Separation import Mathlib.Algebra.Group.Defs #align_import topology.algebra.semigroup from "leanprover-community/mathlib"@"4c19a16e4b705bf135cf9a80ac18fcc99c438514" @[to_additive "Any nonempty compact Hausdorff additive semigroup where right-addition is continuous contains an ...
Mathlib/Topology/Algebra/Semigroup.lean
27
72
theorem exists_idempotent_of_compact_t2_of_continuous_mul_left {M} [Nonempty M] [Semigroup M] [TopologicalSpace M] [CompactSpace M] [T2Space M] (continuous_mul_left : โˆ€ r : M, Continuous (ยท * r)) : โˆƒ m : M, m * m = m := by
/- We apply Zorn's lemma to the poset of nonempty closed subsemigroups of `M`. It will turn out that any minimal element is `{m}` for an idempotent `m : M`. -/ let S : Set (Set M) := { N | IsClosed N โˆง N.Nonempty โˆง โˆ€ (m) (_ : m โˆˆ N) (m') (_ : m' โˆˆ N), m * m' โˆˆ N } rsuffices โŸจN, โŸจN_closed, โŸจm, hmโŸฉ, N_mul...
[ " โˆƒ m, m * m = m", " m * m = m", " (fun x => x * m) '' N = N", " (fun x => x * m) '' N โˆˆ S", " โˆ€ m_1 โˆˆ (fun x => x * m) '' N, โˆ€ m' โˆˆ (fun x => x * m) '' N, m_1 * m' โˆˆ (fun x => x * m) '' N", " (fun x => x * m) m'' * (fun x => x * m) m' โˆˆ (fun x => x * m) '' N", " (fun x => x * m) '' N โІ N", " (fun x =...
[ " โˆƒ m, m * m = m" ]
[ " m * m = m", " (fun x => x * m) '' N = N", " (fun x => x * m) '' N โˆˆ S", " โˆ€ m_1 โˆˆ (fun x => x * m) '' N, โˆ€ m' โˆˆ (fun x => x * m) '' N, m_1 * m' โˆˆ (fun x => x * m) '' N", " (fun x => x * m) m'' * (fun x => x * m) m' โˆˆ (fun x => x * m) '' N", " (fun x => x * m) '' N โІ N", " (fun x => x * m) m' โˆˆ N", "...
import Mathlib.MeasureTheory.Measure.Dirac set_option autoImplicit true open Set open scoped ENNReal Classical variable [MeasurableSpace ฮฑ] [MeasurableSpace ฮฒ] {s : Set ฮฑ} noncomputable section namespace MeasureTheory.Measure def count : Measure ฮฑ := sum dirac #align measure_theory.measure.count MeasureTheo...
Mathlib/MeasureTheory/Measure/Count.lean
39
40
theorem count_apply (hs : MeasurableSet s) : count s = โˆ‘' i : s, 1 := by
simp only [count, sum_apply, hs, dirac_apply', โ† tsum_subtype s (1 : ฮฑ โ†’ โ„โ‰ฅ0โˆž), Pi.one_apply]
[ " count s = โˆ‘' (i : โ†‘s), 1" ]
[ " count s = โˆ‘' (i : โ†‘s), 1" ]
[]
import Mathlib.SetTheory.Game.State #align_import set_theory.game.domineering from "leanprover-community/mathlib"@"b134b2f5cf6dd25d4bbfd3c498b6e36c11a17225" namespace SetTheory namespace PGame namespace Domineering open Function @[simps!] def shiftUp : โ„ค ร— โ„ค โ‰ƒ โ„ค ร— โ„ค := (Equiv.refl โ„ค).prodCongr (Equiv.addRig...
Mathlib/SetTheory/Game/Domineering.lean
117
122
theorem moveRight_card {b : Board} {m : โ„ค ร— โ„ค} (h : m โˆˆ right b) : Finset.card (moveRight b m) + 2 = Finset.card b := by
dsimp [moveRight] rw [Finset.card_erase_of_mem (fst_pred_mem_erase_of_mem_right h)] rw [Finset.card_erase_of_mem (Finset.mem_of_mem_inter_left h)] exact tsub_add_cancel_of_le (card_of_mem_right h)
[ " (m.1 - 1, m.2) โˆˆ Finset.erase b m", " (m.1 - 1, m.2) โ‰  m", " (m.1, m.2 - 1) โˆˆ Finset.erase b m", " (m.1, m.2 - 1) โ‰  m", " 2 โ‰ค Finset.card b", " Finset.card (moveLeft b m) + 2 = Finset.card b", " ((Finset.erase b m).erase (m.1, m.2 - 1)).card + 2 = Finset.card b", " (Finset.erase b m).card - 1 + 2 = ...
[ " (m.1 - 1, m.2) โˆˆ Finset.erase b m", " (m.1 - 1, m.2) โ‰  m", " (m.1, m.2 - 1) โˆˆ Finset.erase b m", " (m.1, m.2 - 1) โ‰  m", " 2 โ‰ค Finset.card b", " Finset.card (moveLeft b m) + 2 = Finset.card b", " ((Finset.erase b m).erase (m.1, m.2 - 1)).card + 2 = Finset.card b", " (Finset.erase b m).card - 1 + 2 = ...
[ " ((Finset.erase b m).erase (m.1 - 1, m.2)).card + 2 = Finset.card b" ]
import Mathlib.Data.Complex.Basic import Mathlib.MeasureTheory.Integral.CircleIntegral #align_import measure_theory.integral.circle_transform from "leanprover-community/mathlib"@"d11893b411025250c8e61ff2f12ccbd7ee35ab15" open Set MeasureTheory Metric Filter Function open scoped Interval Real noncomputable secti...
Mathlib/MeasureTheory/Integral/CircleTransform.lean
133
152
theorem circleTransformDeriv_bound {R : โ„} (hR : 0 < R) {z x : โ„‚} {f : โ„‚ โ†’ โ„‚} (hx : x โˆˆ ball z R) (hf : ContinuousOn f (sphere z R)) : โˆƒ B ฮต : โ„, 0 < ฮต โˆง ball x ฮต โІ ball z R โˆง โˆ€ (t : โ„), โˆ€ y โˆˆ ball x ฮต, โ€–circleTransformDeriv R z y f tโ€– โ‰ค B := by
obtain โŸจr, hr, hrxโŸฉ := exists_lt_mem_ball_of_mem_ball hx obtain โŸจฮต', hฮต', HโŸฉ := exists_ball_subset_ball hrx obtain โŸจโŸจโŸจa, bโŸฉ, โŸจha, hbโŸฉโŸฉ, habโŸฉ := abs_circleTransformBoundingFunction_le hr (pos_of_mem_ball hrx).le z let V : โ„ โ†’ โ„‚ โ†’ โ„‚ := fun ฮธ w => circleTransformDeriv R z w (fun _ => 1) ฮธ obtain โŸจX, -, HX2โŸฉ...
[ " Periodic (circleTransformDeriv R z w f) (2 * ฯ€)", " โˆ€ (x : โ„), circleTransformDeriv R z w f (x + 2 * ฯ€) = circleTransformDeriv R z w f x", " circleTransformDeriv R z w f (x + 2 * ฯ€) = circleTransformDeriv R z w f x", " (2 * โ†‘ฯ€ * I)โปยน โ€ข deriv (circleMap z R) (x + 2 * ฯ€) โ€ข ((circleMap z R x - w) ^ 2)โปยน โ€ข f (c...
[ " Periodic (circleTransformDeriv R z w f) (2 * ฯ€)", " โˆ€ (x : โ„), circleTransformDeriv R z w f (x + 2 * ฯ€) = circleTransformDeriv R z w f x", " circleTransformDeriv R z w f (x + 2 * ฯ€) = circleTransformDeriv R z w f x", " (2 * โ†‘ฯ€ * I)โปยน โ€ข deriv (circleMap z R) (x + 2 * ฯ€) โ€ข ((circleMap z R x - w) ^ 2)โปยน โ€ข f (c...
[ " โ€–circleTransformDeriv R z v f yโ€– โ‰ค abs (V b a) * abs (f X)", " โ€–circleTransformDeriv R z v f y1โ€– โ‰ค abs (V b a) * abs (f X)" ]
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
70
72
theorem gold_add_goldConj : ฯ† + ฯˆ = 1 := by
rw [goldenRatio, goldenConj] ring
[ " ฯ†โปยน = -ฯˆ", " 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" ]
[ " ฯ†โปยน = -ฯˆ", " 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.Algebra.Polynomial.Mirror import Mathlib.Analysis.Complex.Polynomial #align_import data.polynomial.unit_trinomial from "leanprover-community/mathlib"@"302eab4f46abb63de520828de78c04cb0f9b5836" namespace Polynomial open scoped Polynomial open Finset section Semiring variable {R : Type*} [Semirin...
Mathlib/Algebra/Polynomial/UnitTrinomial.lean
49
52
theorem trinomial_leading_coeff' (hkm : k < m) (hmn : m < n) : (trinomial k m n u v w).coeff n = w := by
rw [trinomial_def, coeff_add, coeff_add, coeff_C_mul_X_pow, coeff_C_mul_X_pow, coeff_C_mul_X_pow, if_neg (hkm.trans hmn).ne', if_neg hmn.ne', if_pos rfl, zero_add, zero_add]
[ " (trinomial k m n u v w).coeff n = w" ]
[ " (trinomial k m n u v w).coeff n = w" ]
[]
import Mathlib.Order.Lattice import Mathlib.Data.List.Sort import Mathlib.Logic.Equiv.Fin import Mathlib.Logic.Equiv.Functor import Mathlib.Data.Fintype.Card import Mathlib.Order.RelSeries #align_import order.jordan_holder from "leanprover-community/mathlib"@"91288e351d51b3f0748f0a38faa7613fb0ae2ada" universe u ...
Mathlib/Order/JordanHolder.lean
116
117
theorem second_iso_of_eq {x y a b : X} (hm : IsMaximal x a) (ha : x โŠ” y = a) (hb : x โŠ“ y = b) : Iso (x, a) (b, y) := by
substs a b; exact second_iso hm
[ " IsMaximal (x โŠ“ y) y", " IsMaximal (y โŠ“ x) y", " IsMaximal a y", " Iso (x, a) (b, y)", " Iso (x, x โŠ” y) (x โŠ“ y, y)" ]
[ " IsMaximal (x โŠ“ y) y", " IsMaximal (y โŠ“ x) y", " IsMaximal a y", " Iso (x, a) (b, y)" ]
[ " Iso (x, x โŠ” y) (x โŠ“ y, y)" ]
import Mathlib.RepresentationTheory.Rep import Mathlib.Algebra.Category.FGModuleCat.Limits import Mathlib.CategoryTheory.Preadditive.Schur import Mathlib.RepresentationTheory.Basic #align_import representation_theory.fdRep from "leanprover-community/mathlib"@"19a70dceb9dff0994b92d2dd049de7d84d28112b" suppress_comp...
Mathlib/RepresentationTheory/FdRep.lean
95
100
theorem Iso.conj_ฯ {V W : FdRep k G} (i : V โ‰… W) (g : G) : W.ฯ g = (FdRep.isoToLinearEquiv i).conj (V.ฯ g) := by
-- Porting note: Changed `rw` to `erw` erw [FdRep.isoToLinearEquiv, โ† FGModuleCat.Iso.conj_eq_conj, Iso.conj_apply] rw [Iso.eq_inv_comp ((Action.forget (FGModuleCat k) (MonCat.of G)).mapIso i)] exact (i.hom.comm g).symm
[ " Linear k (FdRep k G)", " AddCommGroup (CoeSort.coe V)", " AddCommGroup โ†‘((forgetโ‚‚ (FdRep k G) (FGModuleCat k)).obj V).obj", " Module k (CoeSort.coe V)", " Module k โ†‘((forgetโ‚‚ (FdRep k G) (FGModuleCat k)).obj V).obj", " FiniteDimensional k (CoeSort.coe V)", " FiniteDimensional k โ†‘((forgetโ‚‚ (FdRep k G) ...
[ " Linear k (FdRep k G)", " AddCommGroup (CoeSort.coe V)", " AddCommGroup โ†‘((forgetโ‚‚ (FdRep k G) (FGModuleCat k)).obj V).obj", " Module k (CoeSort.coe V)", " Module k โ†‘((forgetโ‚‚ (FdRep k G) (FGModuleCat k)).obj V).obj", " FiniteDimensional k (CoeSort.coe V)", " FiniteDimensional k โ†‘((forgetโ‚‚ (FdRep k G) ...
[ " W.ฯ g =\n ((Action.forget (FGModuleCat k) (MonCat.of G)).mapIso i).inv โ‰ซ\n V.ฯ g โ‰ซ ((Action.forget (FGModuleCat k) (MonCat.of G)).mapIso i).hom", " ((Action.forget (FGModuleCat k) (MonCat.of G)).mapIso i).hom โ‰ซ W.ฯ g =\n V.ฯ g โ‰ซ ((Action.forget (FGModuleCat k) (MonCat.of G)).mapIso i).hom" ]
import Mathlib.Algebra.CharP.Basic import Mathlib.Algebra.CharP.Algebra import Mathlib.Data.Nat.Prime #align_import algebra.char_p.exp_char from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" universe u variable (R : Type u) section Semiring variable [Semiring R] class inductive Ex...
Mathlib/Algebra/CharP/ExpChar.lean
120
125
theorem expChar_one_iff_char_zero (p q : โ„•) [CharP R p] [ExpChar R q] : q = 1 โ†” p = 0 := by
constructor ยท rintro rfl exact char_zero_of_expChar_one R p ยท rintro rfl exact expChar_one_of_char_zero R q
[ " ExpChar (R ร— S) p", " ExpChar (R ร— S) 1", " p = q", " 1 = q", " ringExpChar R = q", " ringExpChar R = 1", " max 0 1 = 1", " max q 1 = q", " q = 1", " 1 = 1", " p = q โ†” p.Prime", " p = 1 โ†” p.Prime", " 0 = 1 โ†” Nat.Prime 0", " p = 0", " CharZero R", " q = 1 โ†” p = 0", " q = 1 โ†’ p = 0",...
[ " ExpChar (R ร— S) p", " ExpChar (R ร— S) 1", " p = q", " 1 = q", " ringExpChar R = q", " ringExpChar R = 1", " max 0 1 = 1", " max q 1 = q", " q = 1", " 1 = 1", " p = q โ†” p.Prime", " p = 1 โ†” p.Prime", " 0 = 1 โ†” Nat.Prime 0", " p = 0", " CharZero R", " q = 1 โ†” p = 0" ]
[ " q = 1 โ†’ p = 0", " p = 0 โ†’ q = 1" ]
import Mathlib.MeasureTheory.Group.Measure import Mathlib.MeasureTheory.Integral.IntegrableOn import Mathlib.MeasureTheory.Function.LocallyIntegrable open Asymptotics MeasureTheory Set Filter variable {ฮฑ E F : Type*} [MeasurableSpace ฮฑ] [NormedAddCommGroup E] [NormedAddCommGroup F] {f : ฮฑ โ†’ E} {g : ฮฑ โ†’ F} {a b :...
Mathlib/MeasureTheory/Integral/Asymptotics.lean
81
85
theorem LocallyIntegrableOn.integrableOn_of_isBigO_atBot [IsMeasurablyGenerated (atBot (ฮฑ := ฮฑ))] (hf : LocallyIntegrableOn f (Iic a) ฮผ) (ho : f =O[atBot] g) (hg : IntegrableAtFilter g atBot ฮผ) : IntegrableOn f (Iic a) ฮผ := by
refine integrableOn_Iic_iff_integrableAtFilter_atBot.mpr โŸจho.integrableAtFilter ?_ hg, hfโŸฉ exact โŸจIic a, Iic_mem_atBot a, hf.aestronglyMeasurableโŸฉ
[ " IntegrableAtFilter f l ฮผ", " โˆ€แต (a : ฮฑ) โˆ‚ฮผ.restrict s, โ€–f aโ€– โ‰ค โ€–C * โ€–g aโ€–โ€–", " โ€–f xโ€– โ‰ค โ€–C * โ€–g xโ€–โ€–", " Integrable f ฮผ", " IntegrableAtFilter f โŠค ฮผ", " StronglyMeasurableAtFilter f (cocompact ฮฑ) ฮผ", " StronglyMeasurableAtFilter f atTop ฮผ", " StronglyMeasurableAtFilter f atBot ฮผ", " IntegrableOn f (...
[ " IntegrableAtFilter f l ฮผ", " โˆ€แต (a : ฮฑ) โˆ‚ฮผ.restrict s, โ€–f aโ€– โ‰ค โ€–C * โ€–g aโ€–โ€–", " โ€–f xโ€– โ‰ค โ€–C * โ€–g xโ€–โ€–", " Integrable f ฮผ", " IntegrableAtFilter f โŠค ฮผ", " StronglyMeasurableAtFilter f (cocompact ฮฑ) ฮผ", " StronglyMeasurableAtFilter f atTop ฮผ", " StronglyMeasurableAtFilter f atBot ฮผ", " IntegrableOn f (...
[]
import Mathlib.Analysis.SpecialFunctions.Pow.Real #align_import analysis.special_functions.pow.nnreal from "leanprover-community/mathlib"@"4fa54b337f7d52805480306db1b1439c741848c8" noncomputable section open scoped Classical open Real NNReal ENNReal ComplexConjugate open Finset Function Set namespace NNReal var...
Mathlib/Analysis/SpecialFunctions/Pow/NNReal.lean
57
59
theorem rpow_eq_zero_iff {x : โ„โ‰ฅ0} {y : โ„} : x ^ y = 0 โ†” x = 0 โˆง y โ‰  0 := by
rw [โ† NNReal.coe_inj, coe_rpow, โ† NNReal.coe_eq_zero] exact Real.rpow_eq_zero_iff_of_nonneg x.2
[ " x ^ y = 0 โ†” x = 0 โˆง y โ‰  0", " โ†‘x ^ y = โ†‘0 โ†” โ†‘x = 0 โˆง y โ‰  0" ]
[ " x ^ y = 0 โ†” x = 0 โˆง y โ‰  0" ]
[ " โ†‘x ^ y = โ†‘0 โ†” โ†‘x = 0 โˆง y โ‰  0" ]
import Mathlib.Analysis.Convex.Gauge import Mathlib.Analysis.Convex.Normed open Metric Bornology Filter Set open scoped NNReal Topology Pointwise noncomputable section section Module variable {E : Type*} [AddCommGroup E] [Module โ„ E] def gaugeRescale (s t : Set E) (x : E) : E := (gauge s x / gauge t x) โ€ข x the...
Mathlib/Analysis/Convex/GaugeRescale.lean
103
114
theorem continuous_gaugeRescale {s t : Set E} (hs : Convex โ„ s) (hsโ‚€ : s โˆˆ ๐“ 0) (ht : Convex โ„ t) (htโ‚€ : t โˆˆ ๐“ 0) (htb : IsVonNBounded โ„ t) : Continuous (gaugeRescale s t) := by
have hta : Absorbent โ„ t := absorbent_nhds_zero htโ‚€ refine continuous_iff_continuousAt.2 fun x โ†ฆ ?_ rcases eq_or_ne x 0 with rfl | hx ยท rw [ContinuousAt, gaugeRescale_zero] nth_rewrite 2 [โ† comap_gauge_nhds_zero htb htโ‚€] simp only [tendsto_comap_iff, (ยท โˆ˜ ยท), gauge_gaugeRescale _ hta htb] exact ten...
[ " gaugeRescale s t (c โ€ข x) = c โ€ข gaugeRescale s t x", " (c * gauge s x / (c * gauge t x) * c) โ€ข x = (c * (gauge s x / gauge t x)) โ€ข x", " gaugeRescale s s x = x", " gaugeRescale s s 0 = 0", " gauge s x โ‰  0", " gauge t (gaugeRescale s t x) = gauge s x", " gauge t (gaugeRescale s t 0) = gauge s 0", " ga...
[ " gaugeRescale s t (c โ€ข x) = c โ€ข gaugeRescale s t x", " (c * gauge s x / (c * gauge t x) * c) โ€ข x = (c * (gauge s x / gauge t x)) โ€ข x", " gaugeRescale s s x = x", " gaugeRescale s s 0 = 0", " gauge s x โ‰  0", " gauge t (gaugeRescale s t x) = gauge s x", " gauge t (gaugeRescale s t 0) = gauge s 0", " ga...
[ " ContinuousAt (gaugeRescale s t) x", " ContinuousAt (gaugeRescale s t) 0", " Tendsto (gaugeRescale s t) (๐“ 0) (๐“ 0)", " Tendsto (gaugeRescale s t) (๐“ 0) (comap (gauge t) (๐“ 0))", " Tendsto (fun x => gauge s x) (๐“ 0) (๐“ 0)" ]
import Mathlib.Analysis.InnerProductSpace.GramSchmidtOrtho import Mathlib.LinearAlgebra.Orientation #align_import analysis.inner_product_space.orientation from "leanprover-community/mathlib"@"bd65478311e4dfd41f48bf38c7e3b02fb75d0163" noncomputable section variable {E : Type*} [NormedAddCommGroup E] [InnerProduct...
Mathlib/Analysis/InnerProductSpace/Orientation.lean
91
96
theorem det_eq_neg_det_of_opposite_orientation (h : e.toBasis.orientation โ‰  f.toBasis.orientation) : e.toBasis.det = -f.toBasis.det := by
rw [e.toBasis.det.eq_smul_basis_det f.toBasis] -- Porting note: added `neg_one_smul` with explicit type simp [e.det_to_matrix_orthonormalBasis_of_opposite_orientation f h, neg_one_smul โ„ (M := E [โ‹€^ฮน]โ†’โ‚—[โ„] โ„)]
[ " e.toBasis.det โ‡‘f = 1", " ยฌe.toBasis.det โ‡‘f = -1", " 0 < e.toBasis.det โ‡‘f", " e.toBasis.det โ‡‘f = -1", " e.toBasis.orientation = f.toBasis.orientation", " e.toBasis.det = f.toBasis.det โ†” e.toBasis.orientation = f.toBasis.orientation", " e.toBasis.det = f.toBasis.det โ†’ e.toBasis.orientation = f.toBasis.o...
[ " e.toBasis.det โ‡‘f = 1", " ยฌe.toBasis.det โ‡‘f = -1", " 0 < e.toBasis.det โ‡‘f", " e.toBasis.det โ‡‘f = -1", " e.toBasis.orientation = f.toBasis.orientation", " e.toBasis.det = f.toBasis.det โ†” e.toBasis.orientation = f.toBasis.orientation", " e.toBasis.det = f.toBasis.det โ†’ e.toBasis.orientation = f.toBasis.o...
[ " e.toBasis.det โ‡‘f.toBasis โ€ข f.toBasis.det = -f.toBasis.det" ]
import Mathlib.LinearAlgebra.AffineSpace.AffineEquiv #align_import linear_algebra.affine_space.affine_subspace from "leanprover-community/mathlib"@"e96bdfbd1e8c98a09ff75f7ac6204d142debc840" noncomputable section open Affine open Set section variable (k : Type*) {V : Type*} {P : Type*} [Ring k] [AddCommGroup V]...
Mathlib/LinearAlgebra/AffineSpace/AffineSubspace.lean
128
132
theorem vadd_mem_spanPoints_of_mem_spanPoints_of_mem_vectorSpan {s : Set P} {p : P} {v : V} (hp : p โˆˆ spanPoints k s) (hv : v โˆˆ vectorSpan k s) : v +แตฅ p โˆˆ spanPoints k s := by
rcases hp with โŸจp2, โŸจhp2, โŸจv2, โŸจhv2, hv2pโŸฉโŸฉโŸฉโŸฉ rw [hv2p, vadd_vadd] exact โŸจp2, hp2, v + v2, (vectorSpan k s).add_mem hv hv2, rflโŸฉ
[ " vectorSpan k โˆ… = โŠฅ", " vectorSpan k {p} = โŠฅ", " (spanPoints k s).Nonempty โ†” s.Nonempty", " (spanPoints k s).Nonempty โ†’ s.Nonempty", " ยฌs.Nonempty โ†’ ยฌ(spanPoints k s).Nonempty", " s = โˆ… โ†’ spanPoints k s = โˆ…", " spanPoints k s = โˆ…", " s.Nonempty โ†’ (spanPoints k s).Nonempty", " v +แตฅ p โˆˆ spanPoints k ...
[ " vectorSpan k โˆ… = โŠฅ", " vectorSpan k {p} = โŠฅ", " (spanPoints k s).Nonempty โ†” s.Nonempty", " (spanPoints k s).Nonempty โ†’ s.Nonempty", " ยฌs.Nonempty โ†’ ยฌ(spanPoints k s).Nonempty", " s = โˆ… โ†’ spanPoints k s = โˆ…", " spanPoints k s = โˆ…", " s.Nonempty โ†’ (spanPoints k s).Nonempty", " v +แตฅ p โˆˆ spanPoints k ...
[ " v + v2 +แตฅ p2 โˆˆ spanPoints k s" ]
import Mathlib.Data.Set.Pointwise.SMul import Mathlib.GroupTheory.GroupAction.Hom open Set Pointwise
Mathlib/GroupTheory/GroupAction/Pointwise.lean
33
41
theorem MulAction.smul_bijective_of_is_unit {M : Type*} [Monoid M] {ฮฑ : Type*} [MulAction M ฮฑ] {m : M} (hm : IsUnit m) : Function.Bijective (fun (a : ฮฑ) โ†ฆ m โ€ข a) := by
lift m to Mหฃ using hm rw [Function.bijective_iff_has_inverse] use fun a โ†ฆ mโปยน โ€ข a constructor ยท intro x; simp [โ† Units.smul_def] ยท intro x; simp [โ† Units.smul_def]
[ " Function.Bijective fun a => m โ€ข a", " Function.Bijective fun a => โ†‘m โ€ข a", " โˆƒ g, (Function.LeftInverse g fun a => โ†‘m โ€ข a) โˆง Function.RightInverse g fun a => โ†‘m โ€ข a", " (Function.LeftInverse (fun a => mโปยน โ€ข a) fun a => โ†‘m โ€ข a) โˆง Function.RightInverse (fun a => mโปยน โ€ข a) fun a => โ†‘m โ€ข a", " Function.LeftInv...
[ " Function.Bijective fun a => m โ€ข a" ]
[ " Function.Bijective fun a => โ†‘m โ€ข a", " โˆƒ g, (Function.LeftInverse g fun a => โ†‘m โ€ข a) โˆง Function.RightInverse g fun a => โ†‘m โ€ข a", " (Function.LeftInverse (fun a => mโปยน โ€ข a) fun a => โ†‘m โ€ข a) โˆง Function.RightInverse (fun a => mโปยน โ€ข a) fun a => โ†‘m โ€ข a", " Function.LeftInverse (fun a => mโปยน โ€ข a) fun a => โ†‘m โ€ข a"...
import Mathlib.Data.List.Forall2 import Mathlib.Data.Set.Pairwise.Basic import Mathlib.Init.Data.Fin.Basic #align_import data.list.nodup from "leanprover-community/mathlib"@"c227d107bbada5d0d9d20287e3282c0a7f1651a0" universe u v open Nat Function variable {ฮฑ : Type u} {ฮฒ : Type v} {l lโ‚ lโ‚‚ : List ฮฑ} {r : ฮฑ โ†’ ฮฑ ...
Mathlib/Data/List/Nodup.lean
39
40
theorem nodup_cons {a : ฮฑ} {l : List ฮฑ} : Nodup (a :: l) โ†” a โˆ‰ l โˆง Nodup l := by
simp only [Nodup, pairwise_cons, forall_mem_ne]
[ " (a :: l).Nodup โ†” a โˆ‰ l โˆง l.Nodup" ]
[ " (a :: l).Nodup โ†” a โˆ‰ l โˆง l.Nodup" ]
[]
import Mathlib.Tactic.CategoryTheory.Coherence import Mathlib.CategoryTheory.Monoidal.Free.Coherence #align_import category_theory.monoidal.coherence_lemmas from "leanprover-community/mathlib"@"b8b8bf3ea0c625fa1f950034a184e07c67f7bcfe" open CategoryTheory Category Iso namespace CategoryTheory.MonoidalCategory v...
Mathlib/CategoryTheory/Monoidal/CoherenceLemmas.lean
67
68
theorem unitors_inv_equal : (ฮป_ (๐Ÿ™_ C)).inv = (ฯ_ (๐Ÿ™_ C)).inv := by
coherence
[ " (ฮฑ_ (๐Ÿ™_ C) X Y).hom โ‰ซ (ฮป_ (X โŠ— Y)).hom = (ฮป_ X).hom โŠ— ๐Ÿ™ Y", " (ฮป_ (X โŠ— Y)).hom = (ฮฑ_ (๐Ÿ™_ C) X Y).inv โ‰ซ ((ฮป_ X).hom โŠ— ๐Ÿ™ Y)", " (ฮป_ (X โŠ— Y)).inv = ((ฮป_ X).inv โŠ— ๐Ÿ™ Y) โ‰ซ (ฮฑ_ (๐Ÿ™_ C) X Y).hom", " ๐Ÿ™ X โŠ— (ฯ_ Y).inv = (ฯ_ (X โŠ— Y)).inv โ‰ซ (ฮฑ_ X Y (๐Ÿ™_ C)).hom", " (ฮป_ X).inv โŠ— ๐Ÿ™ Y = (ฮป_ (X โŠ— Y)).inv โ‰ซ (ฮฑ_ (๐Ÿ™...
[ " (ฮฑ_ (๐Ÿ™_ C) X Y).hom โ‰ซ (ฮป_ (X โŠ— Y)).hom = (ฮป_ X).hom โŠ— ๐Ÿ™ Y", " (ฮป_ (X โŠ— Y)).hom = (ฮฑ_ (๐Ÿ™_ C) X Y).inv โ‰ซ ((ฮป_ X).hom โŠ— ๐Ÿ™ Y)", " (ฮป_ (X โŠ— Y)).inv = ((ฮป_ X).inv โŠ— ๐Ÿ™ Y) โ‰ซ (ฮฑ_ (๐Ÿ™_ C) X Y).hom", " ๐Ÿ™ X โŠ— (ฯ_ Y).inv = (ฯ_ (X โŠ— Y)).inv โ‰ซ (ฮฑ_ X Y (๐Ÿ™_ C)).hom", " (ฮป_ X).inv โŠ— ๐Ÿ™ Y = (ฮป_ (X โŠ— Y)).inv โ‰ซ (ฮฑ_ (๐Ÿ™...
[]
import Mathlib.Algebra.Polynomial.Degree.Definitions import Mathlib.Data.ENat.Basic #align_import data.polynomial.degree.trailing_degree from "leanprover-community/mathlib"@"302eab4f46abb63de520828de78c04cb0f9b5836" noncomputable section open Function Polynomial Finsupp Finset open scoped Polynomial namespace ...
Mathlib/Algebra/Polynomial/Degree/TrailingDegree.lean
111
114
theorem trailingDegree_eq_iff_natTrailingDegree_eq {p : R[X]} {n : โ„•} (hp : p โ‰  0) : p.trailingDegree = n โ†” p.natTrailingDegree = n := by
rw [trailingDegree_eq_natTrailingDegree hp] exact WithTop.coe_eq_coe
[ " p.trailingDegree = โŠค", " p.trailingDegree = โ†‘p.natTrailingDegree", " โ†‘n = โ†‘(Option.getD (โ†‘n) 0)", " p.trailingDegree = โ†‘n โ†” p.natTrailingDegree = n", " โ†‘p.natTrailingDegree = โ†‘n โ†” p.natTrailingDegree = n" ]
[ " p.trailingDegree = โŠค", " p.trailingDegree = โ†‘p.natTrailingDegree", " โ†‘n = โ†‘(Option.getD (โ†‘n) 0)", " p.trailingDegree = โ†‘n โ†” p.natTrailingDegree = n" ]
[ " โ†‘p.natTrailingDegree = โ†‘n โ†” p.natTrailingDegree = n" ]
import Mathlib.Topology.Bases import Mathlib.Topology.DenseEmbedding #align_import topology.stone_cech from "leanprover-community/mathlib"@"0a0ec35061ed9960bf0e7ffb0335f44447b58977" noncomputable section open Filter Set open Topology universe u v section Ultrafilter def ultrafilterBasis (ฮฑ : Type u) : Set ...
Mathlib/Topology/StoneCech.lean
67
77
theorem ultrafilter_converges_iff {u : Ultrafilter (Ultrafilter ฮฑ)} {x : Ultrafilter ฮฑ} : โ†‘u โ‰ค ๐“ x โ†” x = joinM u := by
rw [eq_comm, โ† Ultrafilter.coe_le_coe] change โ†‘u โ‰ค ๐“ x โ†” โˆ€ s โˆˆ x, { v : Ultrafilter ฮฑ | s โˆˆ v } โˆˆ u simp only [TopologicalSpace.nhds_generateFrom, le_iInf_iff, ultrafilterBasis, le_principal_iff, mem_setOf_eq] constructor ยท intro h a ha exact h _ โŸจha, a, rflโŸฉ ยท rintro h a โŸจxi, a, rflโŸฉ exact h ...
[ " โˆ€ tโ‚ โˆˆ ultrafilterBasis ฮฑ, โˆ€ tโ‚‚ โˆˆ ultrafilterBasis ฮฑ, โˆ€ x โˆˆ tโ‚ โˆฉ tโ‚‚, โˆƒ tโ‚ƒ โˆˆ ultrafilterBasis ฮฑ, x โˆˆ tโ‚ƒ โˆง tโ‚ƒ โІ tโ‚ โˆฉ tโ‚‚", " โˆƒ tโ‚ƒ โˆˆ ultrafilterBasis ฮฑ, u โˆˆ tโ‚ƒ โˆง tโ‚ƒ โІ (fun s => {u | s โˆˆ u}) a โˆฉ (fun s => {u | s โˆˆ u}) b", " v โˆˆ (fun s => {u | s โˆˆ u}) a", " v โˆˆ (fun s => {u | s โˆˆ u}) b", " a โˆฉ b โІ a", " a โˆฉ b...
[ " โˆ€ tโ‚ โˆˆ ultrafilterBasis ฮฑ, โˆ€ tโ‚‚ โˆˆ ultrafilterBasis ฮฑ, โˆ€ x โˆˆ tโ‚ โˆฉ tโ‚‚, โˆƒ tโ‚ƒ โˆˆ ultrafilterBasis ฮฑ, x โˆˆ tโ‚ƒ โˆง tโ‚ƒ โІ tโ‚ โˆฉ tโ‚‚", " โˆƒ tโ‚ƒ โˆˆ ultrafilterBasis ฮฑ, u โˆˆ tโ‚ƒ โˆง tโ‚ƒ โІ (fun s => {u | s โˆˆ u}) a โˆฉ (fun s => {u | s โˆˆ u}) b", " v โˆˆ (fun s => {u | s โˆˆ u}) a", " v โˆˆ (fun s => {u | s โˆˆ u}) b", " a โˆฉ b โІ a", " a โˆฉ b...
[ " โ†‘u โ‰ค ๐“ x โ†” โ†‘(joinM u) โ‰ค โ†‘x", " โ†‘u โ‰ค ๐“ x โ†” โˆ€ s โˆˆ x, {v | s โˆˆ v} โˆˆ u", " (โˆ€ (i : Set (Ultrafilter ฮฑ)), (x โˆˆ i โˆง i โˆˆ range fun s => {u | s โˆˆ u}) โ†’ i โˆˆ โ†‘u) โ†” โˆ€ s โˆˆ x, {v | s โˆˆ v} โˆˆ u", " (โˆ€ (i : Set (Ultrafilter ฮฑ)), (x โˆˆ i โˆง i โˆˆ range fun s => {u | s โˆˆ u}) โ†’ i โˆˆ โ†‘u) โ†’ โˆ€ s โˆˆ x, {v | s โˆˆ v} โˆˆ u", " {v | a โˆˆ ...
import Mathlib.Analysis.InnerProductSpace.Basic import Mathlib.MeasureTheory.Constructions.BorelSpace.Complex #align_import measure_theory.function.special_functions.inner from "leanprover-community/mathlib"@"bf6a01357ff5684b1ebcd0f1a13be314fc82c0bf" variable {ฮฑ : Type*} {๐•œ : Type*} {E : Type*} variable [RCLike ...
Mathlib/MeasureTheory/Function/SpecialFunctions/Inner.lean
41
47
theorem AEMeasurable.inner {m : MeasurableSpace ฮฑ} [MeasurableSpace E] [OpensMeasurableSpace E] [SecondCountableTopology E] {ฮผ : MeasureTheory.Measure ฮฑ} {f g : ฮฑ โ†’ E} (hf : AEMeasurable f ฮผ) (hg : AEMeasurable g ฮผ) : AEMeasurable (fun x => โŸชf x, g xโŸซ) ฮผ := by
refine โŸจfun x => โŸชhf.mk f x, hg.mk g xโŸซ, hf.measurable_mk.inner hg.measurable_mk, ?_โŸฉ refine hf.ae_eq_mk.mp (hg.ae_eq_mk.mono fun x hxg hxf => ?_) dsimp only congr
[ " AEMeasurable (fun x => โŸชf x, g xโŸซ_๐•œ) ฮผ", " (fun x => โŸชf x, g xโŸซ_๐•œ) =แต[ฮผ] fun x => โŸชmk f hf x, mk g hg xโŸซ_๐•œ", " (fun x => โŸชf x, g xโŸซ_๐•œ) x = (fun x => โŸชmk f hf x, mk g hg xโŸซ_๐•œ) x", " โŸชf x, g xโŸซ_๐•œ = โŸชmk f hf x, mk g hg xโŸซ_๐•œ" ]
[ " AEMeasurable (fun x => โŸชf x, g xโŸซ_๐•œ) ฮผ" ]
[ " (fun x => โŸชf x, g xโŸซ_๐•œ) =แต[ฮผ] fun x => โŸชmk f hf x, mk g hg xโŸซ_๐•œ", " (fun x => โŸชf x, g xโŸซ_๐•œ) x = (fun x => โŸชmk f hf x, mk g hg xโŸซ_๐•œ) x", " โŸชf x, g xโŸซ_๐•œ = โŸชmk f hf x, mk g hg xโŸซ_๐•œ" ]
import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Tactic.Ring #align_import data.nat.hyperoperation from "leanprover-community/mathlib"@"f7fc89d5d5ff1db2d1242c7bb0e9062ce47ef47c" def hyperoperation : โ„• โ†’ โ„• โ†’ โ„• โ†’ โ„• | 0, _, k => k + 1 | 1, m, 0 => m | 2, _, 0 => 0 | _ + 3, _, 0 => 1 | n + 1, m, k + 1 ...
Mathlib/Data/Nat/Hyperoperation.lean
69
78
theorem hyperoperation_two : hyperoperation 2 = (ยท * ยท) := by
ext m k induction' k with bn bih ยท rw [hyperoperation] exact (Nat.mul_zero m).symm ยท rw [hyperoperation_recursion, hyperoperation_one, bih] -- Porting note: was `ring` dsimp only nth_rewrite 1 [โ† mul_one m] rw [โ† mul_add, add_comm]
[ " hyperoperation 0 m k = k.succ", " hyperoperation (n + 3) m 0 = 1", " hyperoperation (n + 1) m (k + 1) = hyperoperation n m (hyperoperation (n + 1) m k)", " hyperoperation 1 = fun x x_1 => x + x_1", " hyperoperation 1 m k = m + k", " hyperoperation 1 m 0 = m + 0", " hyperoperation 1 m (bn + 1) = m + (b...
[ " hyperoperation 0 m k = k.succ", " hyperoperation (n + 3) m 0 = 1", " hyperoperation (n + 1) m (k + 1) = hyperoperation n m (hyperoperation (n + 1) m k)", " hyperoperation 1 = fun x x_1 => x + x_1", " hyperoperation 1 m k = m + k", " hyperoperation 1 m 0 = m + 0", " hyperoperation 1 m (bn + 1) = m + (b...
[ " hyperoperation 2 m k = m * k", " hyperoperation 2 m 0 = m * 0", " 0 = m * 0", " hyperoperation 2 m (bn + 1) = m * (bn + 1)", " (fun x x_1 => x + x_1) m (m * bn) = m * (bn + 1)", " m + m * bn = m * (bn + 1)", " m * 1 + m * bn = m * (bn + 1)" ]
import Mathlib.Data.Fintype.Basic import Mathlib.ModelTheory.Substructures #align_import model_theory.elementary_maps from "leanprover-community/mathlib"@"d11893b411025250c8e61ff2f12ccbd7ee35ab15" open FirstOrder namespace FirstOrder namespace Language open Structure variable (L : Language) (M : Type*) (N : T...
Mathlib/ModelTheory/ElementaryMaps.lean
78
94
theorem map_boundedFormula (f : M โ†ชโ‚‘[L] N) {ฮฑ : Type*} {n : โ„•} (ฯ† : L.BoundedFormula ฮฑ n) (v : ฮฑ โ†’ M) (xs : Fin n โ†’ M) : ฯ†.Realize (f โˆ˜ v) (f โˆ˜ xs) โ†” ฯ†.Realize v xs := by
classical rw [โ† BoundedFormula.realize_restrictFreeVar Set.Subset.rfl, Set.inclusion_eq_id, iff_eq_eq] have h := f.map_formula' ((ฯ†.restrictFreeVar id).toFormula.relabel (Fintype.equivFin _)) (Sum.elim (v โˆ˜ (โ†‘)) xs โˆ˜ (Fintype.equivFin _).symm) simp only [Formula.realize_relabel, BoundedForm...
[ " f = g", " { toFun := toFunโœ, map_formula' := map_formula'โœ } = g", " { toFun := toFunโœยน, map_formula' := map_formula'โœยน } = { toFun := toFunโœ, map_formula' := map_formula'โœ }", " toFunโœยน = toFunโœ", " toFunโœยน x = toFunโœ x", " ฯ†.Realize (โ‡‘f โˆ˜ v) (โ‡‘f โˆ˜ xs) โ†” ฯ†.Realize v xs", " (ฯ†.restrictFreeVar id).Real...
[ " f = g", " { toFun := toFunโœ, map_formula' := map_formula'โœ } = g", " { toFun := toFunโœยน, map_formula' := map_formula'โœยน } = { toFun := toFunโœ, map_formula' := map_formula'โœ }", " toFunโœยน = toFunโœ", " toFunโœยน x = toFunโœ x", " ฯ†.Realize (โ‡‘f โˆ˜ v) (โ‡‘f โˆ˜ xs) โ†” ฯ†.Realize v xs" ]
[ " (ฯ†.restrictFreeVar id).Realize ((โ‡‘f โˆ˜ v) โˆ˜ Subtype.val) (โ‡‘f โˆ˜ xs) = ฯ†.Realize v xs", " (ฯ†.restrictFreeVar id).Realize\n (((Sum.elim (v โˆ˜ Subtype.val) xs โˆ˜ โ‡‘(Fintype.equivFin ({ x // x โˆˆ ฯ†.freeVarFinset } โŠ• Fin n)).symm) โˆ˜\n โ‡‘(Fintype.equivFin ({ x // x โˆˆ ฯ†.freeVarFinset } โŠ• Fin n))) โˆ˜\n Sum...
import Mathlib.Algebra.CharP.Invertible import Mathlib.Algebra.Order.Interval.Set.Group import Mathlib.Analysis.Convex.Segment import Mathlib.LinearAlgebra.AffineSpace.FiniteDimensional import Mathlib.Tactic.FieldSimp #align_import analysis.convex.between from "leanprover-community/mathlib"@"571e13cacbed7bf042fd3058c...
Mathlib/Analysis/Convex/Between.lean
80
83
theorem affineSegment_image (f : P โ†’แตƒ[R] P') (x y : P) : f '' affineSegment R x y = affineSegment R (f x) (f y) := by
rw [affineSegment, affineSegment, Set.image_image, โ† comp_lineMap] rfl
[ " affineSegment R x y = segment R x y", " affineSegment R x y = affineSegment R y x", " z โˆˆ affineSegment R x y โ†” z โˆˆ affineSegment R y x", " z โˆˆ affineSegment R x y โ†’ z โˆˆ affineSegment R y x", " z โˆˆ affineSegment R y x", " 1 - t โˆˆ Set.Icc 0 1", " (lineMap y x) (1 - t) = z", " z โˆˆ affineSegment R y x ...
[ " affineSegment R x y = segment R x y", " affineSegment R x y = affineSegment R y x", " z โˆˆ affineSegment R x y โ†” z โˆˆ affineSegment R y x", " z โˆˆ affineSegment R x y โ†’ z โˆˆ affineSegment R y x", " z โˆˆ affineSegment R y x", " 1 - t โˆˆ Set.Icc 0 1", " (lineMap y x) (1 - t) = z", " z โˆˆ affineSegment R y x ...
[ " (fun x_1 => f ((lineMap x y) x_1)) '' Set.Icc 0 1 = โ‡‘(f.comp (lineMap x y)) '' Set.Icc 0 1" ]
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.BigOperators.NatAntidiagonal import Mathlib.Algebra.CharZero.Lemmas import Mathlib.Data.Finset.NatAntidiagonal import Mathlib.Data.Nat.Choose.Central import Mathlib.Data.Tree.Basic import Mathlib.Tactic.FieldSimp import Mathlib.Tactic.GCongr import Mathlib...
Mathlib/Combinatorics/Enumerative/Catalan.lean
148
149
theorem catalan_three : catalan 3 = 5 := by
norm_num [catalan_eq_centralBinom_div, Nat.centralBinom, Nat.choose]
[ " catalan 0 = 1", " catalan (n + 1) = โˆ‘ i : Fin n.succ, catalan โ†‘i * catalan (n - โ†‘i)", " catalan (n + 1) = โˆ‘ ij โˆˆ antidiagonal n, catalan ij.1 * catalan ij.2", " catalan 1 = 1", " gosperCatalan (n + 1) (i + 1) - gosperCatalan (n + 1) i =\n โ†‘i.centralBinom / (โ†‘i + 1) * โ†‘(n - i).centralBinom / (โ†‘n - โ†‘i + ...
[ " catalan 0 = 1", " catalan (n + 1) = โˆ‘ i : Fin n.succ, catalan โ†‘i * catalan (n - โ†‘i)", " catalan (n + 1) = โˆ‘ ij โˆˆ antidiagonal n, catalan ij.1 * catalan ij.2", " catalan 1 = 1", " gosperCatalan (n + 1) (i + 1) - gosperCatalan (n + 1) i =\n โ†‘i.centralBinom / (โ†‘i + 1) * โ†‘(n - i).centralBinom / (โ†‘n - โ†‘i + ...
[]
import Mathlib.Algebra.FreeMonoid.Basic import Mathlib.Algebra.Group.Submonoid.MulOpposite import Mathlib.Algebra.Group.Submonoid.Operations import Mathlib.Algebra.GroupWithZero.Divisibility import Mathlib.Data.Finset.NoncommProd import Mathlib.Data.Int.Order.Lemmas #align_import group_theory.submonoid.membership fro...
Mathlib/Algebra/Group/Submonoid/Membership.lean
262
265
theorem mem_sSup_of_mem {S : Set (Submonoid M)} {s : Submonoid M} (hs : s โˆˆ S) : โˆ€ {x : M}, x โˆˆ s โ†’ x โˆˆ sSup S := by
rw [โ† SetLike.le_def] exact le_sSup hs
[ " x โˆˆ โจ† i, S i โ†” โˆƒ i, x โˆˆ S i", " x โˆˆ โจ† i, S i โ†’ โˆƒ i, x โˆˆ S i", " x โˆˆ closure (โ‹ƒ i, โ†‘(S i)) โ†’ โˆƒ i, x โˆˆ S i", " โˆƒ i, 1 โˆˆ S i", " โˆ€ (x y : M), (โˆƒ i, x โˆˆ S i) โ†’ (โˆƒ i, y โˆˆ S i) โ†’ โˆƒ i, x * y โˆˆ S i", " โˆƒ i, x * y โˆˆ S i", " x โˆˆ โ†‘(โจ† i, S i) โ†” x โˆˆ โ‹ƒ i, โ†‘(S i)", " x โˆˆ sSup S โ†” โˆƒ s โˆˆ S, x โˆˆ s", " x โˆˆ โ†‘(sSup S)...
[ " x โˆˆ โจ† i, S i โ†” โˆƒ i, x โˆˆ S i", " x โˆˆ โจ† i, S i โ†’ โˆƒ i, x โˆˆ S i", " x โˆˆ closure (โ‹ƒ i, โ†‘(S i)) โ†’ โˆƒ i, x โˆˆ S i", " โˆƒ i, 1 โˆˆ S i", " โˆ€ (x y : M), (โˆƒ i, x โˆˆ S i) โ†’ (โˆƒ i, y โˆˆ S i) โ†’ โˆƒ i, x * y โˆˆ S i", " โˆƒ i, x * y โˆˆ S i", " x โˆˆ โ†‘(โจ† i, S i) โ†” x โˆˆ โ‹ƒ i, โ†‘(S i)", " x โˆˆ sSup S โ†” โˆƒ s โˆˆ S, x โˆˆ s", " x โˆˆ โ†‘(sSup S)...
[ " s โ‰ค sSup S" ]
import Mathlib.Data.List.Cycle import Mathlib.GroupTheory.Perm.Cycle.Type import Mathlib.GroupTheory.Perm.List #align_import group_theory.perm.cycle.concrete from "leanprover-community/mathlib"@"00638177efd1b2534fc5269363ebf42a7871df9a" open Equiv Equiv.Perm List variable {ฮฑ : Type*} namespace Equiv.Perm secti...
Mathlib/GroupTheory/Perm/Cycle/Concrete.lean
312
320
theorem next_toList_eq_apply (p : Perm ฮฑ) (x y : ฮฑ) (hy : y โˆˆ toList p x) : next (toList p x) y hy = p y := by
rw [mem_toList_iff] at hy obtain โŸจk, hk, hk'โŸฉ := hy.left.exists_pow_eq_of_mem_support hy.right rw [โ† nthLe_toList p x k (by simpa using hk)] at hk' simp_rw [โ† hk'] rw [next_nthLe _ (nodup_toList _ _), nthLe_toList, nthLe_toList, โ† mul_apply, โ† pow_succ', length_toList, โ† pow_mod_orderOf_cycleOf_apply p (...
[ " toList 1 x = []", " p.toList x = [] โ†” x โˆ‰ p.support", " (p.toList x).length = (p.cycleOf x).support.card", " p.toList x โ‰  [y]", " False", " 2 โ‰ค (p.toList x).length โ†” x โˆˆ p.support", " (p.toList x).get โŸจn, hnโŸฉ = (p ^ n) x", " (p.toList x).get โŸจ0, โ‹ฏโŸฉ = x", " (p.toList x).nthLe n hn = (p ^ n) x", "...
[ " toList 1 x = []", " p.toList x = [] โ†” x โˆ‰ p.support", " (p.toList x).length = (p.cycleOf x).support.card", " p.toList x โ‰  [y]", " False", " 2 โ‰ค (p.toList x).length โ†” x โˆˆ p.support", " (p.toList x).get โŸจn, hnโŸฉ = (p ^ n) x", " (p.toList x).get โŸจ0, โ‹ฏโŸฉ = x", " (p.toList x).nthLe n hn = (p ^ n) x", "...
[ " (p.toList x).next y hyโœ = p y", " k < (p.toList x).length", " (p.toList x).next ((p.toList x).nthLe k โ‹ฏ) โ‹ฏ = p ((p.toList x).nthLe k โ‹ฏ)", " (p.cycleOf x).IsCycle" ]
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Complex #align_import analysis.special_functions.trigonometric.arctan from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" noncomputable section namespace Real open Set Filter open scoped Topology Real theorem tan_add {x y : โ„} ...
Mathlib/Analysis/SpecialFunctions/Trigonometric/Arctan.lean
47
49
theorem tan_two_mul {x : โ„} : tan (2 * x) = 2 * tan x / (1 - tan x ^ 2) := by
have := @Complex.tan_two_mul x norm_cast at *
[ " (x + y).tan = (x.tan + y.tan) / (1 - x.tan * y.tan)", " ((โˆ€ (k : โ„ค), โ†‘x โ‰  (2 * โ†‘k + 1) * โ†‘ฯ€ / 2) โˆง โˆ€ (l : โ„ค), โ†‘y โ‰  (2 * โ†‘l + 1) * โ†‘ฯ€ / 2) โˆจ\n (โˆƒ k, โ†‘x = (2 * โ†‘k + 1) * โ†‘ฯ€ / 2) โˆง โˆƒ l, โ†‘y = (2 * โ†‘l + 1) * โ†‘ฯ€ / 2", " โ†‘x = (2 * โ†‘aโœ + 1) * โ†‘ฯ€ / 2 โ†” x = (2 * โ†‘aโœ + 1) * ฯ€ / 2", " โ†‘y = (2 * โ†‘aโœ + 1) * โ†‘ฯ€ / 2 โ†” y...
[ " (x + y).tan = (x.tan + y.tan) / (1 - x.tan * y.tan)", " ((โˆ€ (k : โ„ค), โ†‘x โ‰  (2 * โ†‘k + 1) * โ†‘ฯ€ / 2) โˆง โˆ€ (l : โ„ค), โ†‘y โ‰  (2 * โ†‘l + 1) * โ†‘ฯ€ / 2) โˆจ\n (โˆƒ k, โ†‘x = (2 * โ†‘k + 1) * โ†‘ฯ€ / 2) โˆง โˆƒ l, โ†‘y = (2 * โ†‘l + 1) * โ†‘ฯ€ / 2", " โ†‘x = (2 * โ†‘aโœ + 1) * โ†‘ฯ€ / 2 โ†” x = (2 * โ†‘aโœ + 1) * ฯ€ / 2", " โ†‘y = (2 * โ†‘aโœ + 1) * โ†‘ฯ€ / 2 โ†” y...
[]
import Mathlib.Algebra.Order.Floor import Mathlib.Algebra.ContinuedFractions.Basic #align_import algebra.continued_fractions.computation.basic from "leanprover-community/mathlib"@"a7e36e48519ab281320c4d192da6a7b348ce40ad" namespace GeneralizedContinuedFraction -- Fix a carrier `K`. variable (K : Type*) structu...
Mathlib/Algebra/ContinuedFractions/Computation/Basic.lean
159
161
theorem stream_isSeq (v : K) : (IntFractPair.stream v).IsSeq := by
intro _ hyp simp [IntFractPair.stream, hyp]
[ " (IntFractPair.stream v).IsSeq", " IntFractPair.stream v (nโœ + 1) = none" ]
[ " (IntFractPair.stream v).IsSeq" ]
[ " IntFractPair.stream v (nโœ + 1) = none" ]
import Mathlib.Data.Finsupp.Multiset import Mathlib.Order.Bounded import Mathlib.SetTheory.Cardinal.PartENat import Mathlib.SetTheory.Ordinal.Principal import Mathlib.Tactic.Linarith #align_import set_theory.cardinal.ordinal from "leanprover-community/mathlib"@"7c2ce0c2da15516b4e65d0c9e254bb6dc93abd1f" noncomputa...
Mathlib/SetTheory/Cardinal/Ordinal.lean
500
543
theorem mul_eq_self {c : Cardinal} (h : โ„ตโ‚€ โ‰ค c) : c * c = c := by
refine le_antisymm ?_ (by simpa only [mul_one] using mul_le_mul_left' (one_le_aleph0.trans h) c) -- the only nontrivial part is `c * c โ‰ค c`. We prove it inductively. refine Acc.recOn (Cardinal.lt_wf.apply c) (fun c _ => Quotient.inductionOn c fun ฮฑ IH ol => ?_) h -- consider the minimal well-order `r` on `ฮฑ` (...
[ " c.ord.IsLimit", " โ„ตโ‚€ = 0", " c.ord โ‰ค a", " c โ‰ค a.card", " โ„ตโ‚€ โ‰ค a.card", " โ„ตโ‚€ โ‰ค (succ a).card", " โ„ตโ‚€.ord.IsLimit", " ฯ‰.IsLimit", " c * c = c", " c โ‰ค c * c", " c * c โ‰ค c", " โŸฆฮฑโŸง * โŸฆฮฑโŸง โ‰ค โŸฆฮฑโŸง", " type s โ‰ค type r", " o < type r", " typein s p < type r", " (typein s p).card < #ฮฑ", " (typ...
[ " c.ord.IsLimit", " โ„ตโ‚€ = 0", " c.ord โ‰ค a", " c โ‰ค a.card", " โ„ตโ‚€ โ‰ค a.card", " โ„ตโ‚€ โ‰ค (succ a).card", " โ„ตโ‚€.ord.IsLimit", " ฯ‰.IsLimit", " c * c = c" ]
[ " c โ‰ค c * c", " c * c โ‰ค c", " โŸฆฮฑโŸง * โŸฆฮฑโŸง โ‰ค โŸฆฮฑโŸง", " type s โ‰ค type r", " o < type r", " typein s p < type r", " (typein s p).card < #ฮฑ", " (typein s p).card โ‰ค\n (succ (typein (fun x x_1 => x < x_1) (g p))).card * (succ (typein (fun x x_1 => x < x_1) (g p))).card", " {q | s q p} โІ insert (g p) {x | x...
import Mathlib.Algebra.Group.Support import Mathlib.Algebra.Order.Monoid.WithTop import Mathlib.Data.Nat.Cast.Field #align_import algebra.char_zero.lemmas from "leanprover-community/mathlib"@"acee671f47b8e7972a1eb6f4eed74b4b3abce829" open Function Set section AddMonoidWithOne variable {ฮฑ M : Type*} [AddMonoidWith...
Mathlib/Algebra/CharZero/Lemmas.lean
188
188
theorem half_sub (a : R) : a / 2 - a = -(a / 2) := by
rw [โ† neg_sub, sub_half]
[ " 2 โ‰  0", " a + a = 0 โ†” a = 0", " 0 = bit0 a โ†” a = 0", " bit0 a = 0 โ†” a = 0", " n = 0 โˆจ a = b", " a = b", " โ†‘2 * a = โ†‘2 * b", " bit1 a = 1 โ†” a = 0", " 1 = bit1 0", " 1 = bit1 a โ†” a = 0", " (a + a) / 2 = a", " a / 2 + a / 2 = a", " a - a / 2 = a / 2", " a / 2 - a = -(a / 2)" ]
[ " 2 โ‰  0", " a + a = 0 โ†” a = 0", " 0 = bit0 a โ†” a = 0", " bit0 a = 0 โ†” a = 0", " n = 0 โˆจ a = b", " a = b", " โ†‘2 * a = โ†‘2 * b", " bit1 a = 1 โ†” a = 0", " 1 = bit1 0", " 1 = bit1 a โ†” a = 0", " (a + a) / 2 = a", " a / 2 + a / 2 = a", " a - a / 2 = a / 2", " a / 2 - a = -(a / 2)" ]
[]
import Mathlib.LinearAlgebra.Quotient #align_import linear_algebra.isomorphisms from "leanprover-community/mathlib"@"2738d2ca56cbc63be80c3bd48e9ed90ad94e947d" universe u v variable {R M Mโ‚‚ Mโ‚ƒ : Type*} variable [Ring R] [AddCommGroup M] [AddCommGroup Mโ‚‚] [AddCommGroup Mโ‚ƒ] variable [Module R M] [Module R Mโ‚‚] [Modul...
Mathlib/LinearAlgebra/Isomorphisms.lean
81
85
theorem quotientInfEquivSupQuotient_injective (p p' : Submodule R M) : Function.Injective (quotientInfToSupQuotient p p') := by
rw [โ† ker_eq_bot, quotientInfToSupQuotient, ker_liftQ_eq_bot] rw [ker_comp, ker_mkQ] exact fun โŸจx, hx1โŸฉ hx2 => โŸจhx1, hx2โŸฉ
[ " comap p.subtype (p โŠ“ p') โ‰ค ker (subToSupQuotient p p')", " comap p.subtype (p โŠ“ p') โ‰ค comap p.subtype ((p โŠ” p') โŠ“ p')", " Function.Injective โ‡‘(quotientInfToSupQuotient p p')", " ker (subToSupQuotient p p') โ‰ค comap p.subtype (p โŠ“ p')", " comap (inclusion โ‹ฏ) (comap (p โŠ” p').subtype p') โ‰ค comap p.subtype (p ...
[ " comap p.subtype (p โŠ“ p') โ‰ค ker (subToSupQuotient p p')", " comap p.subtype (p โŠ“ p') โ‰ค comap p.subtype ((p โŠ” p') โŠ“ p')", " Function.Injective โ‡‘(quotientInfToSupQuotient p p')" ]
[ " ker (subToSupQuotient p p') โ‰ค comap p.subtype (p โŠ“ p')", " comap (inclusion โ‹ฏ) (comap (p โŠ” p').subtype p') โ‰ค comap p.subtype (p โŠ“ p')" ]
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
121
128
theorem minimals_eq_minimals_of_subset_of_forall [IsTrans ฮฑ r] (hts : t โІ s) (h : โˆ€ x โˆˆ s, โˆƒ y โˆˆ t, r y x) : minimals r s = minimals r t := by
refine Set.ext fun a โ†ฆ โŸจfun โŸจhas, hminโŸฉ โ†ฆ โŸจ?_,fun b hbt โ†ฆ hmin (hts hbt)โŸฉ, fun โŸจhat, hminโŸฉ โ†ฆ โŸจhts hat, fun b hbs hba โ†ฆ ?_โŸฉโŸฉ ยท obtain โŸจa', ha', haa'โŸฉ := h _ has rwa [antisymm (hmin (hts ha') haa') haa'] obtain โŸจb', hb't, hb'bโŸฉ := h b hbs rwa [antisymm (hmin hb't (Trans.trans hb'b hba)) (Trans.trans hb'b...
[ " โˆ€ โฆƒ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", " x โˆˆ minimals r s โ†” x โˆˆ s โˆง โˆ€ โฆƒy : ฮฑโฆ„, rlt y x โ†’ y โˆ‰ s", " x โˆˆ m...
[ " โˆ€ โฆƒ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", " x โˆˆ minimals r s โ†” x โˆˆ s โˆง โˆ€ โฆƒy : ฮฑโฆ„, rlt y x โ†’ y โˆ‰ s", " x โˆˆ m...
[ " a โˆˆ t", " r a b" ]
import Mathlib.Topology.PartialHomeomorph import Mathlib.Analysis.Normed.Group.AddTorsor import Mathlib.Analysis.NormedSpace.Pointwise import Mathlib.Data.Real.Sqrt #align_import analysis.normed_space.basic from "leanprover-community/mathlib"@"bc91ed7093bf098d253401e69df601fc33dde156" open Set Metric Pointwise var...
Mathlib/Analysis/NormedSpace/HomeomorphBall.lean
130
131
theorem univBall_target (c : P) {r : โ„} (hr : 0 < r) : (univBall c r).target = ball c r := by
rw [univBall, dif_pos hr]; rfl
[ " (fun x => (โˆš(1 + โ€–xโ€– ^ 2))โปยน โ€ข x) x โˆˆ ball 0 1", " 0 < 1 + โ€–xโ€– ^ 2", " โ€–xโ€– ^ 2 < 1 + โ€–xโ€– ^ 2", " (fun y => (โˆš(1 - โ€–yโ€– ^ 2))โปยน โ€ข y) ((fun x => (โˆš(1 + โ€–xโ€– ^ 2))โปยน โ€ข x) x) = x", " (fun x => (โˆš(1 + โ€–xโ€– ^ 2))โปยน โ€ข x) ((fun y => (โˆš(1 - โ€–yโ€– ^ 2))โปยน โ€ข y) y) = y", " 0 < 1 - โ€–yโ€– ^ 2", " ContinuousOn\n โ†‘{ toFu...
[ " (fun x => (โˆš(1 + โ€–xโ€– ^ 2))โปยน โ€ข x) x โˆˆ ball 0 1", " 0 < 1 + โ€–xโ€– ^ 2", " โ€–xโ€– ^ 2 < 1 + โ€–xโ€– ^ 2", " (fun y => (โˆš(1 - โ€–yโ€– ^ 2))โปยน โ€ข y) ((fun x => (โˆš(1 + โ€–xโ€– ^ 2))โปยน โ€ข x) x) = x", " (fun x => (โˆš(1 + โ€–xโ€– ^ 2))โปยน โ€ข x) ((fun y => (โˆš(1 - โ€–yโ€– ^ 2))โปยน โ€ข y) y) = y", " 0 < 1 - โ€–yโ€– ^ 2", " ContinuousOn\n โ†‘{ toFu...
[ " (univUnitBall.trans' (unitBallBall c r hr) โ‹ฏ).target = ball c r" ]
import Mathlib.Logic.Encodable.Lattice import Mathlib.MeasureTheory.MeasurableSpace.Defs #align_import measure_theory.pi_system from "leanprover-community/mathlib"@"98e83c3d541c77cdb7da20d79611a780ff8e7d90" open MeasurableSpace Set open scoped Classical open MeasureTheory def IsPiSystem {ฮฑ} (C : Set (Set ฮฑ)) :...
Mathlib/MeasureTheory/PiSystem.lean
256
261
theorem generatePiSystem_measurableSet {ฮฑ} [M : MeasurableSpace ฮฑ] {S : Set (Set ฮฑ)} (h_meas_S : โˆ€ s โˆˆ S, MeasurableSet s) (t : Set ฮฑ) (h_in_pi : t โˆˆ generatePiSystem S) : MeasurableSet t := by
induction' h_in_pi with s h_s s u _ _ _ h_s h_u ยท apply h_meas_S _ h_s ยท apply MeasurableSet.inter h_s h_u
[ " IsPiSystem {S}", " s โˆฉ t โˆˆ {S}", " IsPiSystem (insert โˆ… S)", " s โˆฉ t โˆˆ insert โˆ… S", " IsPiSystem (insert univ S)", " s โˆฉ t โˆˆ insert univ S", " IsPiSystem {s | โˆƒ t โˆˆ S, f โปยน' t = s}", " f โปยน' s โˆฉ f โปยน' t โˆˆ {s | โˆƒ t โˆˆ S, f โปยน' t = s}", " f โปยน' (s โˆฉ t) โˆˆ {s | โˆƒ t โˆˆ S, f โปยน' t = s}", " IsPiSystem (โ‹ƒ...
[ " IsPiSystem {S}", " s โˆฉ t โˆˆ {S}", " IsPiSystem (insert โˆ… S)", " s โˆฉ t โˆˆ insert โˆ… S", " IsPiSystem (insert univ S)", " s โˆฉ t โˆˆ insert univ S", " IsPiSystem {s | โˆƒ t โˆˆ S, f โปยน' t = s}", " f โปยน' s โˆฉ f โปยน' t โˆˆ {s | โˆƒ t โˆˆ S, f โปยน' t = s}", " f โปยน' (s โˆฉ t) โˆˆ {s | โˆƒ t โˆˆ S, f โปยน' t = s}", " IsPiSystem (โ‹ƒ...
[ " MeasurableSet s", " MeasurableSet (s โˆฉ u)" ]
import Mathlib.Analysis.SpecificLimits.Basic import Mathlib.Order.Interval.Set.IsoIoo import Mathlib.Topology.Order.MonotoneContinuity import Mathlib.Topology.UrysohnsBounded #align_import topology.tietze_extension from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" variable {X Y : T...
Mathlib/Topology/TietzeExtension.lean
220
262
theorem exists_extension_norm_eq_of_closedEmbedding' (f : X โ†’แต‡ โ„) (e : C(X, Y)) (he : ClosedEmbedding e) : โˆƒ g : Y โ†’แต‡ โ„, โ€–gโ€– = โ€–fโ€– โˆง g.compContinuous e = f := by
/- For the proof, we iterate `tietze_extension_step`. Each time we apply it to the difference between the previous approximation and `f`. -/ choose F hF_norm hF_dist using fun f : X โ†’แต‡ โ„ => tietze_extension_step f e he set g : โ„• โ†’ Y โ†’แต‡ โ„ := fun n => (fun g => g + F (f - g.compContinuous e))^[n] 0 have g0 :...
[ " โˆƒ g, โ€–gโ€– โ‰ค โ€–fโ€– / 3 โˆง dist (g.compContinuous e) f โ‰ค 2 / 3 * โ€–fโ€–", " 0 < 3", " 0 < 2 / 3", " โˆƒ g, โ€–gโ€– โ‰ค โ€–0โ€– / 3 โˆง dist (g.compContinuous e) 0 โ‰ค 2 / 3 * โ€–0โ€–", " โ€–0โ€– โ‰ค โ€–0โ€– / 3 โˆง dist (compContinuous 0 e) 0 โ‰ค 2 / 3 * โ€–0โ€–", " Disjoint (โ‡‘e '' (โ‡‘f โปยน' Iic (-โ€–fโ€– / 3))) (โ‡‘e '' (โ‡‘f โปยน' Ici (โ€–fโ€– / 3)))", " Disjoi...
[ " โˆƒ g, โ€–gโ€– โ‰ค โ€–fโ€– / 3 โˆง dist (g.compContinuous e) f โ‰ค 2 / 3 * โ€–fโ€–", " 0 < 3", " 0 < 2 / 3", " โˆƒ g, โ€–gโ€– โ‰ค โ€–0โ€– / 3 โˆง dist (g.compContinuous e) 0 โ‰ค 2 / 3 * โ€–0โ€–", " โ€–0โ€– โ‰ค โ€–0โ€– / 3 โˆง dist (compContinuous 0 e) 0 โ‰ค 2 / 3 * โ€–0โ€–", " Disjoint (โ‡‘e '' (โ‡‘f โปยน' Iic (-โ€–fโ€– / 3))) (โ‡‘e '' (โ‡‘f โปยน' Ici (โ€–fโ€– / 3)))", " Disjoi...
[ " โˆ€ (n : โ„•), dist ((g n).compContinuous e) f โ‰ค (2 / 3) ^ n * โ€–fโ€–", " dist ((g n).compContinuous e) f โ‰ค (2 / 3) ^ n * โ€–fโ€–", " dist ((g 0).compContinuous e) f โ‰ค (2 / 3) ^ 0 * โ€–fโ€–", " dist ((g (n + 1)).compContinuous e) f โ‰ค (2 / 3) ^ (n + 1) * โ€–fโ€–", " dist ((F (f - (g n).compContinuous e)).compContinuous e) (f...
import Mathlib.Analysis.RCLike.Lemmas import Mathlib.MeasureTheory.Constructions.BorelSpace.Complex #align_import measure_theory.function.special_functions.is_R_or_C from "leanprover-community/mathlib"@"83a66c8775fa14ee5180c85cab98e970956401ad" noncomputable section open NNReal ENNReal namespace RCLike variabl...
Mathlib/MeasureTheory/Function/SpecialFunctions/RCLike.lean
80
84
theorem aemeasurable_of_re_im (hre : AEMeasurable (fun x => RCLike.re (f x)) ฮผ) (him : AEMeasurable (fun x => RCLike.im (f x)) ฮผ) : AEMeasurable f ฮผ := by
convert AEMeasurable.add (M := ๐•œ) (RCLike.measurable_ofReal.comp_aemeasurable hre) ((RCLike.measurable_ofReal.comp_aemeasurable him).mul_const RCLike.I) exact (RCLike.re_add_im _).symm
[ " Measurable f", " f xโœ = (RCLike.ofReal โˆ˜ fun x => RCLike.re (f x)) xโœ + (RCLike.ofReal โˆ˜ fun x => RCLike.im (f x)) xโœ * RCLike.I", " AEMeasurable f ฮผ" ]
[ " Measurable f", " f xโœ = (RCLike.ofReal โˆ˜ fun x => RCLike.re (f x)) xโœ + (RCLike.ofReal โˆ˜ fun x => RCLike.im (f x)) xโœ * RCLike.I", " AEMeasurable f ฮผ" ]
[]
import Mathlib.RingTheory.GradedAlgebra.Basic import Mathlib.Algebra.GradedMulAction import Mathlib.Algebra.DirectSum.Decomposition import Mathlib.Algebra.Module.BigOperators #align_import algebra.module.graded_module from "leanprover-community/mathlib"@"59cdeb0da2480abbc235b7e611ccd9a7e5603d7c" section open Dir...
Mathlib/Algebra/Module/GradedModule.lean
99
102
theorem smulAddMonoidHom_apply_of_of [DecidableEq ฮนA] [DecidableEq ฮนB] [GMonoid A] [Gmodule A M] {i j} (x : A i) (y : M j) : smulAddMonoidHom A M (DirectSum.of A i x) (of M j y) = of M (i +แตฅ j) (GSMul.smul x y) := by
simp [smulAddMonoidHom]
[ " ((smulAddMonoidHom A M) ((of A i) x)) ((of M j) y) = (of M (i +แตฅ j)) (GSMul.smul x y)" ]
[ " ((smulAddMonoidHom A M) ((of A i) x)) ((of M j) y) = (of M (i +แตฅ j)) (GSMul.smul x y)" ]
[]
import Mathlib.Order.BooleanAlgebra import Mathlib.Logic.Equiv.Basic #align_import order.symm_diff from "leanprover-community/mathlib"@"6eb334bd8f3433d5b08ba156b8ec3e6af47e1904" open Function OrderDual variable {ฮน ฮฑ ฮฒ : Type*} {ฯ€ : ฮน โ†’ Type*} def symmDiff [Sup ฮฑ] [SDiff ฮฑ] (a b : ฮฑ) : ฮฑ := a \ b โŠ” b \ a #ali...
Mathlib/Order/SymmDiff.lean
125
125
theorem symmDiff_bot : a โˆ† โŠฅ = a := by
rw [symmDiff, sdiff_bot, bot_sdiff, sup_bot_eq]
[ " โˆ€ (p q : Bool), p โˆ† q = xor p q", " a โˆ† b = b โˆ† a", " a โˆ† a = โŠฅ", " a โˆ† โŠฅ = a" ]
[ " โˆ€ (p q : Bool), p โˆ† q = xor p q", " a โˆ† b = b โˆ† a", " a โˆ† a = โŠฅ", " a โˆ† โŠฅ = a" ]
[]
import Mathlib.Order.BooleanAlgebra import Mathlib.Logic.Equiv.Basic #align_import order.symm_diff from "leanprover-community/mathlib"@"6eb334bd8f3433d5b08ba156b8ec3e6af47e1904" open Function OrderDual variable {ฮน ฮฑ ฮฒ : Type*} {ฯ€ : ฮน โ†’ Type*} def symmDiff [Sup ฮฑ] [SDiff ฮฑ] (a b : ฮฑ) : ฮฑ := a \ b โŠ” b \ a #ali...
Mathlib/Order/SymmDiff.lean
113
113
theorem symmDiff_comm : a โˆ† b = b โˆ† a := by
simp only [symmDiff, sup_comm]
[ " โˆ€ (p q : Bool), p โˆ† q = xor p q", " a โˆ† b = b โˆ† a" ]
[ " โˆ€ (p q : Bool), p โˆ† q = xor p q", " a โˆ† b = b โˆ† a" ]
[]
import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Data.Nat.Factors import Mathlib.Order.Interval.Finset.Nat #align_import number_theory.divisors from "leanprover-community/mathlib"@"e8638a0fcaf73e4500469f368ef9494e495099b3" open scoped Classical open Finset namespace Nat variable (n : โ„•) d...
Mathlib/NumberTheory/Divisors.lean
95
99
theorem mem_divisors {m : โ„•} : n โˆˆ divisors m โ†” n โˆฃ m โˆง m โ‰  0 := by
rcases eq_or_ne m 0 with (rfl | hm); ยท simp [divisors] simp only [hm, Ne, not_false_iff, and_true_iff, โ† filter_dvd_eq_divisors hm, mem_filter, mem_range, and_iff_right_iff_imp, Nat.lt_succ_iff] exact le_of_dvd hm.bot_lt
[ " filter (fun x => x โˆฃ n) (range n.succ) = n.divisors", " aโœ โˆˆ filter (fun x => x โˆฃ n) (range n.succ) โ†” aโœ โˆˆ n.divisors", " aโœ โˆฃ n โ†’ aโœ < n.succ โ†’ 1 โ‰ค aโœ", " filter (fun x => x โˆฃ n) (range n) = n.properDivisors", " aโœ โˆˆ filter (fun x => x โˆฃ n) (range n) โ†” aโœ โˆˆ n.properDivisors", " aโœ โˆฃ n โ†’ aโœ < n โ†’ 1 โ‰ค aโœ...
[ " filter (fun x => x โˆฃ n) (range n.succ) = n.divisors", " aโœ โˆˆ filter (fun x => x โˆฃ n) (range n.succ) โ†” aโœ โˆˆ n.divisors", " aโœ โˆฃ n โ†’ aโœ < n.succ โ†’ 1 โ‰ค aโœ", " filter (fun x => x โˆฃ n) (range n) = n.properDivisors", " aโœ โˆˆ filter (fun x => x โˆฃ n) (range n) โ†” aโœ โˆˆ n.properDivisors", " aโœ โˆฃ n โ†’ aโœ < n โ†’ 1 โ‰ค aโœ...
[ " n โˆˆ divisors 0 โ†” n โˆฃ 0 โˆง 0 โ‰  0", " n โˆฃ m โ†’ n โ‰ค m" ]
import Mathlib.CategoryTheory.Action import Mathlib.Combinatorics.Quiver.Arborescence import Mathlib.Combinatorics.Quiver.ConnectedComponent import Mathlib.GroupTheory.FreeGroup.IsFreeGroup #align_import group_theory.nielsen_schreier from "leanprover-community/mathlib"@"1bda4fc53de6ade5ab9da36f2192e24e2084a2ce" n...
Mathlib/GroupTheory/FreeGroup/NielsenSchreier.lean
275
288
theorem path_nonempty_of_hom {G} [Groupoid.{u, u} G] [IsFreeGroupoid G] {a b : G} : Nonempty (a โŸถ b) โ†’ Nonempty (Path (symgen a) (symgen b)) := by
rintro โŸจpโŸฉ rw [โ† @WeaklyConnectedComponent.eq (Generators G), eq_comm, โ† FreeGroup.of_injective.eq_iff, โ† mul_inv_eq_one] let X := FreeGroup (WeaklyConnectedComponent <| Generators G) let f : G โ†’ X := fun g => FreeGroup.of (WeaklyConnectedComponent.mk g) let F : G โฅค CategoryTheory.SingleObj.{u} (X : Type...
[ " โˆ€ {X : Type u} [inst : Group X] (f : Labelling (Generators (ActionCategory G A)) X),\n โˆƒ! F, โˆ€ (a b : Generators (ActionCategory G A)) (g : a โŸถ b), F.map ((fun {a b} e => โŸจIsFreeGroup.of โ†‘e, โ‹ฏโŸฉ) g) = f g", " โˆƒ! F, โˆ€ (a b : Generators (ActionCategory G A)) (g : a โŸถ b), F.map ((fun {a b} e => โŸจIsFreeGroup.of โ†‘...
[ " โˆ€ {X : Type u} [inst : Group X] (f : Labelling (Generators (ActionCategory G A)) X),\n โˆƒ! F, โˆ€ (a b : Generators (ActionCategory G A)) (g : a โŸถ b), F.map ((fun {a b} e => โŸจIsFreeGroup.of โ†‘e, โ‹ฏโŸฉ) g) = f g", " โˆƒ! F, โˆ€ (a b : Generators (ActionCategory G A)) (g : a โŸถ b), F.map ((fun {a b} e => โŸจIsFreeGroup.of โ†‘...
[ " Nonempty (Path (IsFreeGroupoid.symgen a) (IsFreeGroupoid.symgen b))", " FreeGroup.of (WeaklyConnectedComponent.mk (IsFreeGroupoid.symgen b)) *\n (FreeGroup.of (WeaklyConnectedComponent.mk (IsFreeGroupoid.symgen a)))โปยน =\n 1", " F.map p = ((Functor.const G).obj ()).map p", " F = (Functor.const G).obj...
import Mathlib.RingTheory.Polynomial.Cyclotomic.Roots import Mathlib.Tactic.ByContra import Mathlib.Topology.Algebra.Polynomial import Mathlib.NumberTheory.Padics.PadicVal import Mathlib.Analysis.Complex.Arg #align_import ring_theory.polynomial.cyclotomic.eval from "leanprover-community/mathlib"@"5bfbcca0a7ffdd21cf16...
Mathlib/RingTheory/Polynomial/Cyclotomic/Eval.lean
29
32
theorem eval_one_cyclotomic_prime {R : Type*} [CommRing R] {p : โ„•} [hn : Fact p.Prime] : eval 1 (cyclotomic p R) = p := by
simp only [cyclotomic_prime, eval_X, one_pow, Finset.sum_const, eval_pow, eval_finset_sum, Finset.card_range, smul_one_eq_cast]
[ " eval 1 (cyclotomic p R) = โ†‘p" ]
[ " eval 1 (cyclotomic p R) = โ†‘p" ]
[]
import Mathlib.Analysis.Normed.Group.Basic #align_import information_theory.hamming from "leanprover-community/mathlib"@"17ef379e997badd73e5eabb4d38f11919ab3c4b3" section HammingDistNorm open Finset Function variable {ฮฑ ฮน : Type*} {ฮฒ : ฮน โ†’ Type*} [Fintype ฮน] [โˆ€ i, DecidableEq (ฮฒ i)] variable {ฮณ : ฮน โ†’ Type*} [โˆ€ ...
Mathlib/InformationTheory/Hamming.lean
78
81
theorem hammingDist_triangle_right (x y z : โˆ€ i, ฮฒ i) : hammingDist x y โ‰ค hammingDist x z + hammingDist y z := by
rw [hammingDist_comm y] exact hammingDist_triangle _ _ _
[ " hammingDist x x = 0", " โˆ€ โฆƒx_1 : ฮนโฆ„, x_1 โˆˆ univ โ†’ ยฌx x_1 โ‰  x x_1", " hammingDist x y = hammingDist y x", " hammingDist x z โ‰ค hammingDist x y + hammingDist y z", " (filter (fun i => x i โ‰  z i) univ).card โ‰ค\n (filter (fun i => x i โ‰  y i) univ).card + (filter (fun i => y i โ‰  z i) univ).card", " filter (...
[ " hammingDist x x = 0", " โˆ€ โฆƒx_1 : ฮนโฆ„, x_1 โˆˆ univ โ†’ ยฌx x_1 โ‰  x x_1", " hammingDist x y = hammingDist y x", " hammingDist x z โ‰ค hammingDist x y + hammingDist y z", " (filter (fun i => x i โ‰  z i) univ).card โ‰ค\n (filter (fun i => x i โ‰  y i) univ).card + (filter (fun i => y i โ‰  z i) univ).card", " filter (...
[]
import Mathlib.Analysis.SpecialFunctions.ImproperIntegrals import Mathlib.Analysis.Calculus.ParametricIntegral import Mathlib.MeasureTheory.Measure.Haar.NormedSpace #align_import analysis.mellin_transform from "leanprover-community/mathlib"@"917c3c072e487b3cccdbfeff17e75b40e45f66cb" open MeasureTheory Set Filter A...
Mathlib/Analysis/MellinTransform.lean
47
50
theorem MellinConvergent.const_smul {f : โ„ โ†’ E} {s : โ„‚} (hf : MellinConvergent f s) {๐•œ : Type*} [NontriviallyNormedField ๐•œ] [NormedSpace ๐•œ E] [SMulCommClass โ„‚ ๐•œ E] (c : ๐•œ) : MellinConvergent (fun t => c โ€ข f t) s := by
simpa only [MellinConvergent, smul_comm] using hf.smul c
[ " MellinConvergent (fun t => c โ€ข f t) s" ]
[ " MellinConvergent (fun t => c โ€ข f t) s" ]
[]
import Mathlib.MeasureTheory.Function.ConditionalExpectation.Basic #align_import measure_theory.function.conditional_expectation.indicator from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" noncomputable section open TopologicalSpace MeasureTheory.Lp Filter ContinuousLinearMap open s...
Mathlib/MeasureTheory/Function/ConditionalExpectation/Indicator.lean
75
112
theorem condexp_indicator (hf_int : Integrable f ฮผ) (hs : MeasurableSet[m] s) : ฮผ[s.indicator f|m] =แต[ฮผ] s.indicator (ฮผ[f|m]) := by
by_cases hm : m โ‰ค m0 swap; ยท simp_rw [condexp_of_not_le hm, Set.indicator_zero']; rfl by_cases hฮผm : SigmaFinite (ฮผ.trim hm) swap; ยท simp_rw [condexp_of_not_sigmaFinite hm hฮผm, Set.indicator_zero']; rfl haveI : SigmaFinite (ฮผ.trim hm) := hฮผm -- use `have` to perform what should be the first calc step becau...
[ " ฮผ[f|m] =แถ [ae (ฮผ.restrict s)] 0", " 0 =แถ [ae (ฮผ.restrict s)] 0", " SigmaFinite ((ฮผ.restrict s).trim hm)", " SigmaFinite ((ฮผ.trim hm).restrict s)", " โˆ€ (s_1 : Set ฮฑ), MeasurableSet s_1 โ†’ (ฮผ.restrict s) s_1 < โŠค โ†’ IntegrableOn (ฮผ[f|m]) s_1 (ฮผ.restrict s)", " โˆ€ (s_1 : Set ฮฑ), MeasurableSet s_1 โ†’ (ฮผ.restrict s...
[ " ฮผ[f|m] =แถ [ae (ฮผ.restrict s)] 0", " 0 =แถ [ae (ฮผ.restrict s)] 0", " SigmaFinite ((ฮผ.restrict s).trim hm)", " SigmaFinite ((ฮผ.trim hm).restrict s)", " โˆ€ (s_1 : Set ฮฑ), MeasurableSet s_1 โ†’ (ฮผ.restrict s) s_1 < โŠค โ†’ IntegrableOn (ฮผ[f|m]) s_1 (ฮผ.restrict s)", " โˆ€ (s_1 : Set ฮฑ), MeasurableSet s_1 โ†’ (ฮผ.restrict s...
[ " s.indicator (ฮผ[f|m]) =แถ [ae ฮผ] s.indicator (ฮผ[s.indicator f + sแถœ.indicator f|m])", " s.indicator (ฮผ[s.indicator f + sแถœ.indicator f|m]) =แถ [ae ฮผ] ฮผ[s.indicator f|m]", " s.indicator (ฮผ[s.indicator f + sแถœ.indicator f|m]) =แถ [ae ฮผ] s.indicator (ฮผ[s.indicator f|m] + ฮผ[sแถœ.indicator f|m])", " s.indicator (ฮผ[s.indicat...
import Mathlib.Algebra.Module.Card import Mathlib.SetTheory.Cardinal.CountableCover import Mathlib.SetTheory.Cardinal.Continuum import Mathlib.Analysis.SpecificLimits.Normed import Mathlib.Topology.MetricSpace.Perfect universe u v open Filter Pointwise Set Function Cardinal open scoped Cardinal Topology theorem c...
Mathlib/Topology/Algebra/Module/Cardinality.lean
110
115
theorem cardinal_eq_of_isOpen {E : Type*} (๐•œ : Type*) [NontriviallyNormedField ๐•œ] [AddCommGroup E] [Module ๐•œ E] [TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul ๐•œ E] {s : Set E} (hs : IsOpen s) (h's : s.Nonempty) : #s = #E := by
rcases h's with โŸจx, hxโŸฉ exact cardinal_eq_of_mem_nhds ๐•œ (hs.mem_nhds hx)
[ " ๐”  โ‰ค #๐•œ", " โˆƒ f, range f โІ Set.univ โˆง Continuous f โˆง Injective f", " Perfect Set.univ", " โˆƒ y โˆˆ U โˆฉ Set.univ, y โ‰  x", " x + c ^ n โˆˆ U โˆฉ Set.univ", " x + c ^ n โ‰  x", " ยฌc ^ n = 0", " c โ‰  0", " ๐”  โ‰ค #E", " lift.{v, u} ๐”  โ‰ค lift.{v, u} #๐•œ", " #โ†‘s = #E", " โˆ€ (n : โ„•), c ^ n โ‰  0", " c ^ n โ‰  0"...
[ " ๐”  โ‰ค #๐•œ", " โˆƒ f, range f โІ Set.univ โˆง Continuous f โˆง Injective f", " Perfect Set.univ", " โˆƒ y โˆˆ U โˆฉ Set.univ, y โ‰  x", " x + c ^ n โˆˆ U โˆฉ Set.univ", " x + c ^ n โ‰  x", " ยฌc ^ n = 0", " c โ‰  0", " ๐”  โ‰ค #E", " lift.{v, u} ๐”  โ‰ค lift.{v, u} #๐•œ", " #โ†‘s = #E", " โˆ€ (n : โ„•), c ^ n โ‰  0", " c ^ n โ‰  0"...
[]
import Mathlib.Data.Set.Pointwise.SMul #align_import algebra.add_torsor from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" class AddTorsor (G : outParam Type*) (P : Type*) [AddGroup G] extends AddAction G P, VSub G P where [nonempty : Nonempty P] vsub_vadd' : โˆ€ pโ‚ pโ‚‚ : P, (pโ‚ ...
Mathlib/Algebra/AddTorsor.lean
165
167
theorem vsub_vadd_eq_vsub_sub (pโ‚ pโ‚‚ : P) (g : G) : pโ‚ -แตฅ (g +แตฅ pโ‚‚) = pโ‚ -แตฅ pโ‚‚ - g := by
rw [โ† add_right_inj (pโ‚‚ -แตฅ pโ‚ : G), vsub_add_vsub_cancel, โ† neg_vsub_eq_vsub_rev, vadd_vsub, โ† add_sub_assoc, โ† neg_vsub_eq_vsub_rev, neg_add_self, zero_sub]
[ " gโ‚ = gโ‚‚", " g +แตฅ pโ‚ -แตฅ pโ‚‚ = g + (pโ‚ -แตฅ pโ‚‚)", " g +แตฅ pโ‚ -แตฅ pโ‚‚ +แตฅ pโ‚‚ = g + (pโ‚ -แตฅ pโ‚‚) +แตฅ pโ‚‚", " p -แตฅ p = 0", " pโ‚ = pโ‚‚", " pโ‚ -แตฅ pโ‚‚ + (pโ‚‚ -แตฅ pโ‚ƒ) = pโ‚ -แตฅ pโ‚ƒ", " pโ‚ -แตฅ pโ‚‚ + (pโ‚‚ -แตฅ pโ‚ƒ) +แตฅ pโ‚ƒ = pโ‚ -แตฅ pโ‚ƒ +แตฅ pโ‚ƒ", " -(pโ‚ -แตฅ pโ‚‚) = pโ‚‚ -แตฅ pโ‚", " pโ‚ -แตฅ pโ‚‚ + (pโ‚‚ -แตฅ pโ‚) +แตฅ pโ‚ = 0 +แตฅ pโ‚", " g +แตฅ p -แตฅ q = g - (q...
[ " gโ‚ = gโ‚‚", " g +แตฅ pโ‚ -แตฅ pโ‚‚ = g + (pโ‚ -แตฅ pโ‚‚)", " g +แตฅ pโ‚ -แตฅ pโ‚‚ +แตฅ pโ‚‚ = g + (pโ‚ -แตฅ pโ‚‚) +แตฅ pโ‚‚", " p -แตฅ p = 0", " pโ‚ = pโ‚‚", " pโ‚ -แตฅ pโ‚‚ + (pโ‚‚ -แตฅ pโ‚ƒ) = pโ‚ -แตฅ pโ‚ƒ", " pโ‚ -แตฅ pโ‚‚ + (pโ‚‚ -แตฅ pโ‚ƒ) +แตฅ pโ‚ƒ = pโ‚ -แตฅ pโ‚ƒ +แตฅ pโ‚ƒ", " -(pโ‚ -แตฅ pโ‚‚) = pโ‚‚ -แตฅ pโ‚", " pโ‚ -แตฅ pโ‚‚ + (pโ‚‚ -แตฅ pโ‚) +แตฅ pโ‚ = 0 +แตฅ pโ‚", " g +แตฅ p -แตฅ q = g - (q...
[]
import Mathlib.Topology.Algebra.GroupWithZero import Mathlib.Topology.Order.OrderClosed #align_import topology.algebra.with_zero_topology from "leanprover-community/mathlib"@"3e0c4d76b6ebe9dfafb67d16f7286d2731ed6064" open Topology Filter TopologicalSpace Filter Set Function namespace WithZeroTopology variable {ฮฑ...
Mathlib/Topology/Algebra/WithZeroTopology.lean
101
101
theorem singleton_mem_nhds_of_units (ฮณ : ฮ“โ‚€หฃ) : ({โ†‘ฮณ} : Set ฮ“โ‚€) โˆˆ ๐“ (ฮณ : ฮ“โ‚€) := by
simp
[ " ๐“ = update pure 0 (โจ… ฮณ, โจ… (_ : ฮณ โ‰  0), ๐“Ÿ (Iio ฮณ))", " pure 0 โ‰ค โจ… ฮณ, โจ… (_ : ฮณ โ‰  0), ๐“Ÿ (Iio ฮณ)", " ๐“ 0 = โจ… ฮณ, โจ… (_ : ฮณ โ‰  0), ๐“Ÿ (Iio ฮณ)", " (๐“ 0).HasBasis (fun ฮณ => ฮณ โ‰  0) Iio", " (โจ… ฮณ, โจ… (_ : ฮณ โ‰  0), ๐“Ÿ (Iio ฮณ)).HasBasis (fun ฮณ => ฮณ โ‰  0) Iio", " DirectedOn ((fun ฮณ => Iio ฮณ) โปยน'o fun x x_1 => x โ‰ฅ x_1...
[ " ๐“ = update pure 0 (โจ… ฮณ, โจ… (_ : ฮณ โ‰  0), ๐“Ÿ (Iio ฮณ))", " pure 0 โ‰ค โจ… ฮณ, โจ… (_ : ฮณ โ‰  0), ๐“Ÿ (Iio ฮณ)", " ๐“ 0 = โจ… ฮณ, โจ… (_ : ฮณ โ‰  0), ๐“Ÿ (Iio ฮณ)", " (๐“ 0).HasBasis (fun ฮณ => ฮณ โ‰  0) Iio", " (โจ… ฮณ, โจ… (_ : ฮณ โ‰  0), ๐“Ÿ (Iio ฮณ)).HasBasis (fun ฮณ => ฮณ โ‰  0) Iio", " DirectedOn ((fun ฮณ => Iio ฮณ) โปยน'o fun x x_1 => x โ‰ฅ x_1...
[]
import Mathlib.LinearAlgebra.CliffordAlgebra.Fold import Mathlib.LinearAlgebra.ExteriorAlgebra.Basic #align_import linear_algebra.exterior_algebra.of_alternating from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" variable {R M N N' : Type*} variable [CommRing R] [AddCommGroup M] [AddCo...
Mathlib/LinearAlgebra/ExteriorAlgebra/OfAlternating.lean
96
99
theorem liftAlternating_algebraMap (f : โˆ€ i, M [โ‹€^Fin i]โ†’โ‚—[R] N) (r : R) : liftAlternating (R := R) (M := M) (N := N) f (algebraMap _ (ExteriorAlgebra R M) r) = r โ€ข f 0 0 := by
rw [Algebra.algebraMap_eq_smul_one, map_smul, liftAlternating_one]
[ " Module R (M [โ‹€^ฮน]โ†’โ‚—[R] N)", " ((i : โ„•) โ†’ M [โ‹€^Fin i]โ†’โ‚—[R] N) โ†’โ‚—[R] ExteriorAlgebra R M โ†’โ‚—[R] N", " ((i : โ„•) โ†’ M [โ‹€^Fin i]โ†’โ‚—[R] N) โ†’โ‚—[R] N", " M [โ‹€^Fin 0]โ†’โ‚—[R] N โ‰ƒโ‚—[R] N", " ((i : โ„•) โ†’ M [โ‹€^Fin i]โ†’โ‚—[R] N) โ†’โ‚—[R] ExteriorAlgebra R M โ†’โ‚—[R] (i : โ„•) โ†’ M [โ‹€^Fin i]โ†’โ‚—[R] N", " M โ†’โ‚—[R] ((i : โ„•) โ†’ M [โ‹€^Fin i]โ†’โ‚—[R]...
[ " Module R (M [โ‹€^ฮน]โ†’โ‚—[R] N)", " ((i : โ„•) โ†’ M [โ‹€^Fin i]โ†’โ‚—[R] N) โ†’โ‚—[R] ExteriorAlgebra R M โ†’โ‚—[R] N", " ((i : โ„•) โ†’ M [โ‹€^Fin i]โ†’โ‚—[R] N) โ†’โ‚—[R] N", " M [โ‹€^Fin 0]โ†’โ‚—[R] N โ‰ƒโ‚—[R] N", " ((i : โ„•) โ†’ M [โ‹€^Fin i]โ†’โ‚—[R] N) โ†’โ‚—[R] ExteriorAlgebra R M โ†’โ‚—[R] (i : โ„•) โ†’ M [โ‹€^Fin i]โ†’โ‚—[R] N", " M โ†’โ‚—[R] ((i : โ„•) โ†’ M [โ‹€^Fin i]โ†’โ‚—[R]...
[]
import Mathlib.MeasureTheory.Group.Measure import Mathlib.MeasureTheory.Integral.IntegrableOn import Mathlib.MeasureTheory.Function.LocallyIntegrable open Asymptotics MeasureTheory Set Filter variable {ฮฑ E F : Type*} [MeasurableSpace ฮฑ] [NormedAddCommGroup E] [NormedAddCommGroup F] {f : ฮฑ โ†’ E} {g : ฮฑ โ†’ F} {a b :...
Mathlib/MeasureTheory/Integral/Asymptotics.lean
97
101
theorem LocallyIntegrable.integrable_of_isBigO_atBot [IsMeasurablyGenerated (atBot (ฮฑ := ฮฑ))] [OrderTop ฮฑ] (hf : LocallyIntegrable f ฮผ) (ho : f =O[atBot] g) (hg : IntegrableAtFilter g atBot ฮผ) : Integrable f ฮผ := by
refine integrable_iff_integrableAtFilter_atBot.mpr โŸจho.integrableAtFilter ?_ hg, hfโŸฉ exact hf.aestronglyMeasurable.stronglyMeasurableAtFilter
[ " IntegrableAtFilter f l ฮผ", " โˆ€แต (a : ฮฑ) โˆ‚ฮผ.restrict s, โ€–f aโ€– โ‰ค โ€–C * โ€–g aโ€–โ€–", " โ€–f xโ€– โ‰ค โ€–C * โ€–g xโ€–โ€–", " Integrable f ฮผ", " IntegrableAtFilter f โŠค ฮผ", " StronglyMeasurableAtFilter f (cocompact ฮฑ) ฮผ", " StronglyMeasurableAtFilter f atTop ฮผ", " StronglyMeasurableAtFilter f atBot ฮผ", " IntegrableOn f (...
[ " IntegrableAtFilter f l ฮผ", " โˆ€แต (a : ฮฑ) โˆ‚ฮผ.restrict s, โ€–f aโ€– โ‰ค โ€–C * โ€–g aโ€–โ€–", " โ€–f xโ€– โ‰ค โ€–C * โ€–g xโ€–โ€–", " Integrable f ฮผ", " IntegrableAtFilter f โŠค ฮผ", " StronglyMeasurableAtFilter f (cocompact ฮฑ) ฮผ", " StronglyMeasurableAtFilter f atTop ฮผ", " StronglyMeasurableAtFilter f atBot ฮผ", " IntegrableOn f (...
[]
import Mathlib.LinearAlgebra.CliffordAlgebra.Basic import Mathlib.Data.ZMod.Basic import Mathlib.RingTheory.GradedAlgebra.Basic #align_import linear_algebra.clifford_algebra.grading from "leanprover-community/mathlib"@"34020e531ebc4e8aac6d449d9eecbcd1508ea8d0" namespace CliffordAlgebra variable {R M : Type*} [Co...
Mathlib/LinearAlgebra/CliffordAlgebra/Grading.lean
58
65
theorem evenOdd_mul_le (i j : ZMod 2) : evenOdd Q i * evenOdd Q j โ‰ค evenOdd Q (i + j) := by
simp_rw [evenOdd, Submodule.iSup_eq_span, Submodule.span_mul_span] apply Submodule.span_mono simp_rw [Set.iUnion_mul, Set.mul_iUnion, Set.iUnion_subset_iff, Set.mul_subset_iff] rintro โŸจxi, rflโŸฉ โŸจyi, rflโŸฉ x hx y hy refine Set.mem_iUnion.mpr โŸจโŸจxi + yi, Nat.cast_add _ _โŸฉ, ?_โŸฉ simp only [Subtype.coe_mk, Nat.ca...
[ " 1 โ‰ค evenOdd Q 0", " 1 โ‰ค LinearMap.range (ฮน Q) ^ โ†‘โŸจ0, โ‹ฏโŸฉ", " LinearMap.range (ฮน Q) โ‰ค evenOdd Q 1", " LinearMap.range (ฮน Q) โ‰ค LinearMap.range (ฮน Q) ^ โ†‘โŸจ1, โ‹ฏโŸฉ", " (ฮน Q) mโ‚ * (ฮน Q) mโ‚‚ โˆˆ LinearMap.range (ฮน Q) ^ โ†‘โŸจ2, โ‹ฏโŸฉ", " (ฮน Q) mโ‚ * (ฮน Q) mโ‚‚ โˆˆ LinearMap.range (ฮน Q) * LinearMap.range (ฮน Q)", " evenOdd Q i ...
[ " 1 โ‰ค evenOdd Q 0", " 1 โ‰ค LinearMap.range (ฮน Q) ^ โ†‘โŸจ0, โ‹ฏโŸฉ", " LinearMap.range (ฮน Q) โ‰ค evenOdd Q 1", " LinearMap.range (ฮน Q) โ‰ค LinearMap.range (ฮน Q) ^ โ†‘โŸจ1, โ‹ฏโŸฉ", " (ฮน Q) mโ‚ * (ฮน Q) mโ‚‚ โˆˆ LinearMap.range (ฮน Q) ^ โ†‘โŸจ2, โ‹ฏโŸฉ", " (ฮน Q) mโ‚ * (ฮน Q) mโ‚‚ โˆˆ LinearMap.range (ฮน Q) * LinearMap.range (ฮน Q)", " evenOdd Q i ...
[ " Submodule.span R ((โ‹ƒ i_1, โ†‘(LinearMap.range (ฮน Q) ^ โ†‘i_1)) * โ‹ƒ i, โ†‘(LinearMap.range (ฮน Q) ^ โ†‘i)) โ‰ค\n Submodule.span R (โ‹ƒ i_1, โ†‘(LinearMap.range (ฮน Q) ^ โ†‘i_1))", " (โ‹ƒ i_1, โ†‘(LinearMap.range (ฮน Q) ^ โ†‘i_1)) * โ‹ƒ i, โ†‘(LinearMap.range (ฮน Q) ^ โ†‘i) โІ โ‹ƒ i_1, โ†‘(LinearMap.range (ฮน Q) ^ โ†‘i_1)", " โˆ€ (i_1 : { n // โ†‘n = ...
import Mathlib.Analysis.NormedSpace.PiLp import Mathlib.Analysis.InnerProductSpace.PiL2 #align_import analysis.matrix from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f6dddd2b4f5" noncomputable section open scoped NNReal Matrix namespace Matrix variable {R l m n ฮฑ ฮฒ : Type*} [Fintype l] [Fintyp...
Mathlib/Analysis/Matrix.lean
116
118
theorem nnnorm_map_eq (A : Matrix m n ฮฑ) (f : ฮฑ โ†’ ฮฒ) (hf : โˆ€ a, โ€–f aโ€–โ‚Š = โ€–aโ€–โ‚Š) : โ€–A.map fโ€–โ‚Š = โ€–Aโ€–โ‚Š := by
simp only [nnnorm_def, Pi.nnnorm_def, Matrix.map_apply, hf]
[ " โ€–Aโ€– = โ†‘(Finset.univ.sup fun i => Finset.univ.sup fun j => โ€–A i jโ€–โ‚Š)", " โ€–Aโ€– โ‰ค r โ†” โˆ€ (i : m) (j : n), โ€–A i jโ€– โ‰ค r", " โ€–Aโ€–โ‚Š โ‰ค r โ†” โˆ€ (i : m) (j : n), โ€–A i jโ€–โ‚Š โ‰ค r", " โ€–Aโ€– < r โ†” โˆ€ (i : m) (j : n), โ€–A i jโ€– < r", " โ€–Aโ€–โ‚Š < r โ†” โˆ€ (i : m) (j : n), โ€–A i jโ€–โ‚Š < r", " โ€–A.map fโ€–โ‚Š = โ€–Aโ€–โ‚Š" ]
[ " โ€–Aโ€– = โ†‘(Finset.univ.sup fun i => Finset.univ.sup fun j => โ€–A i jโ€–โ‚Š)", " โ€–Aโ€– โ‰ค r โ†” โˆ€ (i : m) (j : n), โ€–A i jโ€– โ‰ค r", " โ€–Aโ€–โ‚Š โ‰ค r โ†” โˆ€ (i : m) (j : n), โ€–A i jโ€–โ‚Š โ‰ค r", " โ€–Aโ€– < r โ†” โˆ€ (i : m) (j : n), โ€–A i jโ€– < r", " โ€–Aโ€–โ‚Š < r โ†” โˆ€ (i : m) (j : n), โ€–A i jโ€–โ‚Š < r", " โ€–A.map fโ€–โ‚Š = โ€–Aโ€–โ‚Š" ]
[]
import Mathlib.RingTheory.Derivation.ToSquareZero import Mathlib.RingTheory.Ideal.Cotangent import Mathlib.RingTheory.IsTensorProduct import Mathlib.Algebra.Exact import Mathlib.Algebra.MvPolynomial.PDeriv import Mathlib.Algebra.Polynomial.Derivation #align_import ring_theory.kaehler from "leanprover-community/mathli...
Mathlib/RingTheory/Kaehler.lean
78
99
theorem Derivation.tensorProductTo_mul (D : Derivation R S M) (x y : S โŠ—[R] S) : D.tensorProductTo (x * y) = TensorProduct.lmul' (S := S) R x โ€ข D.tensorProductTo y + TensorProduct.lmul' (S := S) R y โ€ข D.tensorProductTo x := by
refine TensorProduct.induction_on x ?_ ?_ ?_ ยท rw [zero_mul, map_zero, map_zero, zero_smul, smul_zero, add_zero] swap ยท intro xโ‚ yโ‚ hโ‚ hโ‚‚ rw [add_mul, map_add, map_add, map_add, add_smul, smul_add, hโ‚, hโ‚‚, add_add_add_comm] intro xโ‚ xโ‚‚ refine TensorProduct.induction_on y ?_ ?_ ?_ ยท rw [mul_zero, map_...
[ " 1 โŠ—โ‚œ[R] a - a โŠ—โ‚œ[R] 1 โˆˆ ideal R S", " D.tensorProductTo (x * y) =\n (TensorProduct.lmul' R) x โ€ข D.tensorProductTo y + (TensorProduct.lmul' R) y โ€ข D.tensorProductTo x", " D.tensorProductTo (0 * y) =\n (TensorProduct.lmul' R) 0 โ€ข D.tensorProductTo y + (TensorProduct.lmul' R) y โ€ข D.tensorProductTo 0", " ...
[ " 1 โŠ—โ‚œ[R] a - a โŠ—โ‚œ[R] 1 โˆˆ ideal R S", " D.tensorProductTo (x * y) =\n (TensorProduct.lmul' R) x โ€ข D.tensorProductTo y + (TensorProduct.lmul' R) y โ€ข D.tensorProductTo x" ]
[ " D.tensorProductTo (0 * y) =\n (TensorProduct.lmul' R) 0 โ€ข D.tensorProductTo y + (TensorProduct.lmul' R) y โ€ข D.tensorProductTo 0", " โˆ€ (x y_1 : S โŠ—[R] S),\n D.tensorProductTo (x * y) =\n (TensorProduct.lmul' R) x โ€ข D.tensorProductTo y + (TensorProduct.lmul' R) y โ€ข D.tensorProductTo x โ†’\n D.tens...
import Mathlib.Logic.Function.Basic import Mathlib.Logic.Relator import Mathlib.Init.Data.Quot import Mathlib.Tactic.Cases import Mathlib.Tactic.Use import Mathlib.Tactic.MkIffOfInductiveProp import Mathlib.Tactic.SimpRw #align_import logic.relation from "leanprover-community/mathlib"@"3365b20c2ffa7c35e47e5209b89ba9a...
Mathlib/Logic/Relation.lean
312
316
theorem symmetric (h : Symmetric r) : Symmetric (ReflTransGen r) := by
intro x y h induction' h with z w _ b c ยท rfl ยท apply Relation.ReflTransGen.head (h b) c
[ " ReflTransGen r a c", " ReflTransGen r a b", " ReflTransGen r a cโœ", " Symmetric (ReflTransGen r)", " ReflTransGen r y x", " ReflTransGen r x x", " ReflTransGen r w x" ]
[ " ReflTransGen r a c", " ReflTransGen r a b", " ReflTransGen r a cโœ", " Symmetric (ReflTransGen r)" ]
[ " ReflTransGen r y x", " ReflTransGen r x x", " ReflTransGen r w x" ]