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"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.