Context stringlengths 57 6.04k | file_name stringlengths 21 79 | start int64 14 1.49k | end int64 18 1.5k | theorem stringlengths 25 1.55k | proof stringlengths 5 7.36k | goals listlengths 0 224 | goals_before listlengths 0 220 |
|---|---|---|---|---|---|---|---|
import Mathlib.LinearAlgebra.AffineSpace.AffineEquiv
#align_import linear_algebra.affine_space.midpoint from "leanprover-community/mathlib"@"2196ab363eb097c008d4497125e0dde23fb36db2"
open AffineMap AffineEquiv
section
variable (R : Type*) {V V' P P' : Type*} [Ring R] [Invertible (2 : R)] [AddCommGroup V]
[Modu... | Mathlib/LinearAlgebra/AffineSpace/Midpoint.lean | 133 | 137 | theorem midpoint_vsub (pβ pβ p : P) :
midpoint R pβ pβ -α΅₯ p = (β
2 : R) β’ (pβ -α΅₯ p) + (β
2 : R) β’ (pβ -α΅₯ p) := by |
rw [β vsub_sub_vsub_cancel_right pβ p pβ, smul_sub, sub_eq_add_neg, β smul_neg,
neg_vsub_eq_vsub_rev, add_assoc, invOf_two_smul_add_invOf_two_smul, β vadd_vsub_assoc,
midpoint_comm, midpoint, lineMap_apply]
| [
" (pointReflection R (midpoint R x y)) x = y",
" (pointReflection (midpoint R x y)) x = y",
" midpoint R x y = midpoint R y x",
" (pointReflection R (midpoint R x y)) y = x",
" (pointReflection (midpoint R x y)) y = x",
" midpoint R pβ pβ -α΅₯ pβ = β
2 β’ (pβ -α΅₯ pβ)",
" pβ -α΅₯ midpoint R pβ pβ = β
2 β’ (pβ -α΅₯ ... | [
" (pointReflection R (midpoint R x y)) x = y",
" (pointReflection (midpoint R x y)) x = y",
" midpoint R x y = midpoint R y x",
" (pointReflection R (midpoint R x y)) y = x",
" (pointReflection (midpoint R x y)) y = x",
" midpoint R pβ pβ -α΅₯ pβ = β
2 β’ (pβ -α΅₯ pβ)",
" pβ -α΅₯ midpoint R pβ pβ = β
2 β’ (pβ -α΅₯ ... |
import Mathlib.Algebra.BigOperators.Group.Multiset
import Mathlib.Data.Multiset.Dedup
#align_import data.multiset.bind from "leanprover-community/mathlib"@"f694c7dead66f5d4c80f446c796a5aad14707f0e"
assert_not_exists MonoidWithZero
assert_not_exists MulAction
universe v
variable {Ξ± : Type*} {Ξ² : Type v} {Ξ³ Ξ΄ : Ty... | Mathlib/Data/Multiset/Bind.lean | 115 | 117 | theorem coe_bind (l : List Ξ±) (f : Ξ± β List Ξ²) : (@bind Ξ± Ξ² l fun a => f a) = l.bind f := by |
rw [List.bind, β coe_join, List.map_map]
rfl
| [
" (β(List.map ofList (l :: L))).join = β(l :: L).join",
" a β join 0 β β s β 0, a β s",
" β (a_1 : Multiset Ξ±) (s : Multiset (Multiset Ξ±)),\n (a β s.join β β s_1 β s, a β s_1) β (a β (a_1 ::β s).join β β s_1 β a_1 ::β s, a β s_1)",
" card (join 0) = (map (βcard) 0).sum",
" β (a : Multiset Ξ±) (s : Multise... | [
" (β(List.map ofList (l :: L))).join = β(l :: L).join",
" a β join 0 β β s β 0, a β s",
" β (a_1 : Multiset Ξ±) (s : Multiset (Multiset Ξ±)),\n (a β s.join β β s_1 β s, a β s_1) β (a β (a_1 ::β s).join β β s_1 β a_1 ::β s, a β s_1)",
" card (join 0) = (map (βcard) 0).sum",
" β (a : Multiset Ξ±) (s : Multise... |
import Mathlib.Data.Finset.Lattice
import Mathlib.Data.Multiset.Powerset
#align_import data.finset.powerset from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853"
namespace Finset
open Function Multiset
variable {Ξ± : Type*} {s t : Finset Ξ±}
section powersetCard
variable {n} {s t : Fi... | Mathlib/Data/Finset/Powerset.lean | 220 | 225 | theorem powersetCard_zero (s : Finset Ξ±) : s.powersetCard 0 = {β
} := by |
ext; rw [mem_powersetCard, mem_singleton, card_eq_zero]
refine
β¨fun h => h.2, fun h => by
rw [h]
exact β¨empty_subset s, rflβ©β©
| [
" s β powersetCard n t β s β t β§ s.card = n",
" { val := valβ, nodup := nodupβ } β powersetCard n t β\n { val := valβ, nodup := nodupβ } β t β§ { val := valβ, nodup := nodupβ }.card = n",
" powersetCard 0 s = {β
}",
" aβ β powersetCard 0 s β aβ β {β
}",
" aβ β s β§ aβ = β
β aβ = β
",
" aβ β s β§ aβ = β
",
"... | [
" s β powersetCard n t β s β t β§ s.card = n",
" { val := valβ, nodup := nodupβ } β powersetCard n t β\n { val := valβ, nodup := nodupβ } β t β§ { val := valβ, nodup := nodupβ }.card = n"
] |
import Mathlib.Topology.Connected.Basic
open Set Topology
universe u v
variable {Ξ± : Type u} {Ξ² : Type v} {ΞΉ : Type*} {Ο : ΞΉ β Type*} [TopologicalSpace Ξ±]
{s t u v : Set Ξ±}
section LocallyConnectedSpace
class LocallyConnectedSpace (Ξ± : Type*) [TopologicalSpace Ξ±] : Prop where
open_connected_basis : β x,... | Mathlib/Topology/Connected/LocallyConnected.lean | 125 | 132 | theorem locallyConnectedSpace_of_connected_bases {ΞΉ : Type*} (b : Ξ± β ΞΉ β Set Ξ±) (p : Ξ± β ΞΉ β Prop)
(hbasis : β x, (π x).HasBasis (p x) (b x))
(hconnected : β x i, p x i β IsPreconnected (b x i)) : LocallyConnectedSpace Ξ± := by |
rw [locallyConnectedSpace_iff_connected_basis]
exact fun x =>
(hbasis x).to_hasBasis
(fun i hi => β¨b x i, β¨(hbasis x).mem_of_mem hi, hconnected x i hiβ©, subset_rflβ©) fun s hs =>
β¨(hbasis x).index s hs.1, β¨(hbasis x).property_index hs.1, (hbasis x).set_index_subset hs.1β©β©
| [
" LocallyConnectedSpace Ξ± β β (x : Ξ±), β U β π x, β V β U, IsOpen V β§ x β V β§ IsConnected V",
" (β (x : Ξ±), (π x).HasBasis (fun s => IsOpen s β§ x β s β§ IsConnected s) id) β\n β (x : Ξ±), β U β π x, β V β U, IsOpen V β§ x β V β§ IsConnected V",
" (π xβ).HasBasis (fun s => IsOpen s β§ xβ β s β§ IsConnected s) i... | [
" LocallyConnectedSpace Ξ± β β (x : Ξ±), β U β π x, β V β U, IsOpen V β§ x β V β§ IsConnected V",
" (β (x : Ξ±), (π x).HasBasis (fun s => IsOpen s β§ x β s β§ IsConnected s) id) β\n β (x : Ξ±), β U β π x, β V β U, IsOpen V β§ x β V β§ IsConnected V",
" (π xβ).HasBasis (fun s => IsOpen s β§ xβ β s β§ IsConnected s) i... |
import Mathlib.Analysis.PSeries
import Mathlib.Data.Real.Pi.Wallis
import Mathlib.Tactic.AdaptationNote
#align_import analysis.special_functions.stirling from "leanprover-community/mathlib"@"2c1d8ca2812b64f88992a5294ea3dba144755cd1"
open scoped Topology Real Nat Asymptotics
open Finset Filter Nat Real
namespace... | Mathlib/Analysis/SpecialFunctions/Stirling.lean | 77 | 93 | theorem log_stirlingSeq_diff_hasSum (m : β) :
HasSum (fun k : β => (1 : β) / (2 * β(k + 1) + 1) * ((1 / (2 * β(m + 1) + 1)) ^ 2) ^ β(k + 1))
(log (stirlingSeq (m + 1)) - log (stirlingSeq (m + 2))) := by |
let f (k : β) := (1 : β) / (2 * k + 1) * ((1 / (2 * β(m + 1) + 1)) ^ 2) ^ k
change HasSum (fun k => f (k + 1)) _
rw [hasSum_nat_add_iff]
convert (hasSum_log_one_add_inv m.cast_add_one_pos).mul_left ((β(m + 1) : β) + 1 / 2) using 1
Β· ext k
dsimp only [f]
rw [β pow_mul, pow_add]
push_cast
field... | [
" stirlingSeq 0 = 0",
" stirlingSeq 1 = rexp 1 / β2",
" (stirlingSeq n).log = (βn !).log - 1 / 2 * (2 * βn).log - βn * (βn / rexp 1).log",
" (stirlingSeq 0).log = (β0!).log - 1 / 2 * (2 * β0).log - β0 * (β0 / rexp 1).log",
" (stirlingSeq (nβ + 1)).log = (β(nβ + 1)!).log - 1 / 2 * (2 * β(nβ + 1)).log - β(nβ ... | [
" stirlingSeq 0 = 0",
" stirlingSeq 1 = rexp 1 / β2",
" (stirlingSeq n).log = (βn !).log - 1 / 2 * (2 * βn).log - βn * (βn / rexp 1).log",
" (stirlingSeq 0).log = (β0!).log - 1 / 2 * (2 * β0).log - β0 * (β0 / rexp 1).log",
" (stirlingSeq (nβ + 1)).log = (β(nβ + 1)!).log - 1 / 2 * (2 * β(nβ + 1)).log - β(nβ ... |
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 | 125 | 135 | theorem liftAlternating_comp (g : N ββ[R] N') (f : β i, M [β^Fin i]ββ[R] N) :
(liftAlternating (R := R) (M := M) (N := N') fun i => g.compAlternatingMap (f i)) =
g ββ liftAlternating (R := R) (M := M) (N := N) f := by |
ext v
rw [LinearMap.comp_apply]
induction' v using CliffordAlgebra.left_induction with r x y hx hy x m hx generalizing f
Β· rw [liftAlternating_algebraMap, liftAlternating_algebraMap, map_smul,
LinearMap.compAlternatingMap_apply]
Β· rw [map_add, map_add, map_add, hx, hy]
Β· rw [liftAlternating_ΞΉ_mul, li... | [
" 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.Data.Matrix.Basic
import Mathlib.Data.PEquiv
#align_import data.matrix.pequiv from "leanprover-community/mathlib"@"3e068ece210655b7b9a9477c3aff38a492400aa1"
namespace PEquiv
open Matrix
universe u v
variable {k l m n : Type*}
variable {Ξ± : Type v}
open Matrix
def toMatrix [DecidableEq n] [Zer... | Mathlib/Data/Matrix/PEquiv.lean | 96 | 99 | theorem toPEquiv_mul_matrix [Fintype m] [DecidableEq m] [Semiring Ξ±] (f : m β m)
(M : Matrix m n Ξ±) : f.toPEquiv.toMatrix * M = M.submatrix f id := by |
ext i j
rw [mul_matrix_apply, Equiv.toPEquiv_apply, submatrix_apply, id]
| [
" (f.toMatrix * M) i j = Option.casesOn (f i) 0 fun fi => M fi j",
" β j_1 : m, (if j_1 β f i then 1 else 0) * M j_1 j = Option.rec 0 (fun val => M val j) (f i)",
" β j_1 : m, (if j_1 β none then 1 else 0) * M j_1 j = Option.rec 0 (fun val => M val j) none",
" β j_1 : m, (if j_1 β some fi then 1 else 0) * M j... | [
" (f.toMatrix * M) i j = Option.casesOn (f i) 0 fun fi => M fi j",
" β j_1 : m, (if j_1 β f i then 1 else 0) * M j_1 j = Option.rec 0 (fun val => M val j) (f i)",
" β j_1 : m, (if j_1 β none then 1 else 0) * M j_1 j = Option.rec 0 (fun val => M val j) none",
" β j_1 : m, (if j_1 β some fi then 1 else 0) * M j... |
import Mathlib.Data.ZMod.Basic
import Mathlib.GroupTheory.Coxeter.Basic
namespace CoxeterSystem
open List Matrix Function Classical
variable {B : Type*}
variable {W : Type*} [Group W]
variable {M : CoxeterMatrix B} (cs : CoxeterSystem M W)
local prefix:100 "s" => cs.simple
local prefix:100 "Ο" => cs.wordProd
... | Mathlib/GroupTheory/Coxeter/Length.lean | 91 | 98 | theorem length_inv (w : W) : β (wβ»ΒΉ) = β w := by |
apply Nat.le_antisymm
Β· rcases cs.exists_reduced_word w with β¨Ο, hΟ, rflβ©
have := cs.length_wordProd_le (List.reverse Ο)
rwa [wordProd_reverse, length_reverse, hΟ] at this
Β· rcases cs.exists_reduced_word wβ»ΒΉ with β¨Ο, hΟ, h'Οβ©
have := cs.length_wordProd_le (List.reverse Ο)
rwa [wordProd_reverse, l... | [
" β n Ο, Ο.length = n β§ cs.wordProd Ο = w",
" β n Ο_1, Ο_1.length = n β§ cs.wordProd Ο_1 = cs.wordProd Ο",
" β Ο, Ο.length = cs.length w β§ w = cs.wordProd Ο",
" Ο.length = Ο.length β§ cs.wordProd Ο = cs.wordProd Ο",
" cs.length w = 0 β w = 1",
" cs.length w = 0 β w = 1",
" w = 1",
" cs.wordProd Ο = 1",
... | [
" β n Ο, Ο.length = n β§ cs.wordProd Ο = w",
" β n Ο_1, Ο_1.length = n β§ cs.wordProd Ο_1 = cs.wordProd Ο",
" β Ο, Ο.length = cs.length w β§ w = cs.wordProd Ο",
" Ο.length = Ο.length β§ cs.wordProd Ο = cs.wordProd Ο",
" cs.length w = 0 β w = 1",
" cs.length w = 0 β w = 1",
" w = 1",
" cs.wordProd Ο = 1",
... |
import Mathlib.Analysis.Convex.Between
import Mathlib.Analysis.Convex.Normed
import Mathlib.Analysis.Normed.Group.AddTorsor
#align_import analysis.convex.side from "leanprover-community/mathlib"@"a63928c34ec358b5edcda2bf7513c50052a5230f"
variable {R V V' P P' : Type*}
open AffineEquiv AffineMap
namespace Affine... | Mathlib/Analysis/Convex/Side.lean | 109 | 119 | theorem _root_.Function.Injective.wOppSide_map_iff {s : AffineSubspace R P} {x y : P}
{f : P βα΅[R] P'} (hf : Function.Injective f) :
(s.map f).WOppSide (f x) (f y) β s.WOppSide x y := by |
refine β¨fun h => ?_, fun h => h.map _β©
rcases h with β¨fpβ, hfpβ, fpβ, hfpβ, hβ©
rw [mem_map] at hfpβ hfpβ
rcases hfpβ with β¨pβ, hpβ, rflβ©
rcases hfpβ with β¨pβ, hpβ, rflβ©
refine β¨pβ, hpβ, pβ, hpβ, ?_β©
simp_rw [β linearMap_vsub, (f.linear_injective_iff.2 hf).sameRay_map_iff] at h
exact h
| [
" (AffineSubspace.map f s).WSameSide (f x) (f y)",
" SameRay R (f x -α΅₯ f pβ) (f y -α΅₯ f pβ)",
" SameRay R (f.linear (x -α΅₯ pβ)) (f.linear (y -α΅₯ pβ))",
" (map f s).WSameSide (f x) (f y) β s.WSameSide x y",
" s.WSameSide x y",
" SameRay R (x -α΅₯ pβ) (y -α΅₯ pβ)",
" (map f s).SSameSide (f x) (f y) β s.SSameSide... | [
" (AffineSubspace.map f s).WSameSide (f x) (f y)",
" SameRay R (f x -α΅₯ f pβ) (f y -α΅₯ f pβ)",
" SameRay R (f.linear (x -α΅₯ pβ)) (f.linear (y -α΅₯ pβ))",
" (map f s).WSameSide (f x) (f y) β s.WSameSide x y",
" s.WSameSide x y",
" SameRay R (x -α΅₯ pβ) (y -α΅₯ pβ)",
" (map f s).SSameSide (f x) (f y) β s.SSameSide... |
import Mathlib.Control.Functor
import Mathlib.Tactic.Common
#align_import control.bifunctor from "leanprover-community/mathlib"@"dc1525fb3ef6eb4348fb1749c302d8abc303d34a"
universe uβ uβ uβ vβ vβ vβ
open Function
class Bifunctor (F : Type uβ β Type uβ β Type uβ) where
bimap : β {Ξ± Ξ±' Ξ² Ξ²'}, (Ξ± β Ξ±') β (Ξ² β Ξ²'... | Mathlib/Control/Bifunctor.lean | 86 | 87 | theorem comp_fst {Ξ±β Ξ±β Ξ±β Ξ²} (f : Ξ±β β Ξ±β) (f' : Ξ±β β Ξ±β) (x : F Ξ±β Ξ²) :
fst f' (fst f x) = fst (f' β f) x := by | simp [fst, bimap_bimap]
| [
" fst f' (fst f x) = fst (f' β f) x"
] | [] |
import Mathlib.Algebra.MvPolynomial.Rename
#align_import data.mv_polynomial.comap from "leanprover-community/mathlib"@"aba31c938d3243cc671be7091b28a1e0814647ee"
namespace MvPolynomial
variable {Ο : Type*} {Ο : Type*} {Ο
: Type*} {R : Type*} [CommSemiring R]
noncomputable def comap (f : MvPolynomial Ο R ββ[R] M... | Mathlib/Algebra/MvPolynomial/Comap.lean | 48 | 50 | theorem comap_id_apply (x : Ο β R) : comap (AlgHom.id R (MvPolynomial Ο R)) x = x := by |
funext i
simp only [comap, AlgHom.id_apply, id, aeval_X]
| [
" comap (AlgHom.id R (MvPolynomial Ο R)) x = x",
" comap (AlgHom.id R (MvPolynomial Ο R)) x i = x i"
] | [] |
import Mathlib.Algebra.Quaternion
import Mathlib.Analysis.InnerProductSpace.Basic
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.Topology.Algebra.Algebra
#align_import analysis.quaternion from "leanprover-community/mathlib"@"07992a1d1f7a4176c6d3f160209608be4e198566"
@[inherit_doc] scoped[Quaternion... | Mathlib/Analysis/Quaternion.lean | 65 | 66 | theorem normSq_eq_norm_mul_self (a : β) : normSq a = βaβ * βaβ := by |
rw [β inner_self, real_inner_self_eq_norm_mul_norm]
| [
" (starRingEnd β) βͺy, xβ«_β = βͺx, yβ«_β",
" βͺx + y, zβ«_β = βͺx, zβ«_β + βͺy, zβ«_β",
" βͺr β’ x, yβ«_β = (starRingEnd β) r * βͺx, yβ«_β",
" normSq a = βaβ * βaβ"
] | [
" (starRingEnd β) βͺy, xβ«_β = βͺx, yβ«_β",
" βͺx + y, zβ«_β = βͺx, zβ«_β + βͺy, zβ«_β",
" βͺr β’ x, yβ«_β = (starRingEnd β) r * βͺx, yβ«_β"
] |
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Angle
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Inverse
#align_import analysis.special_functions.complex.arg from "leanprover-community/mathlib"@"2c1d8ca2812b64f88992a5294ea3dba144755cd1"
open Filter Metric Set
open scoped ComplexConjugate Real To... | Mathlib/Analysis/SpecialFunctions/Complex/Arg.lean | 63 | 64 | theorem abs_mul_cos_add_sin_mul_I (x : β) : (abs x * (cos (arg x) + sin (arg x) * I) : β) = x := by |
rw [β exp_mul_I, abs_mul_exp_arg_mul_I]
| [
" x.arg.sin = x.im / abs x",
" (if 0 β€ x.re then (x.im / abs x).arcsin\n else if 0 β€ x.im then ((-x).im / abs x).arcsin + Ο else ((-x).im / abs x).arcsin - Ο).sin =\n x.im / abs x",
" (x.im / abs x).arcsin.sin = x.im / abs x",
" (((-x).im / abs x).arcsin + Ο).sin = x.im / abs x",
" (((-x).im / abs x... | [
" x.arg.sin = x.im / abs x",
" (if 0 β€ x.re then (x.im / abs x).arcsin\n else if 0 β€ x.im then ((-x).im / abs x).arcsin + Ο else ((-x).im / abs x).arcsin - Ο).sin =\n x.im / abs x",
" (x.im / abs x).arcsin.sin = x.im / abs x",
" (((-x).im / abs x).arcsin + Ο).sin = x.im / abs x",
" (((-x).im / abs x... |
import Mathlib.AlgebraicTopology.DoldKan.FunctorGamma
import Mathlib.AlgebraicTopology.DoldKan.SplitSimplicialObject
import Mathlib.CategoryTheory.Idempotents.HomologicalComplex
#align_import algebraic_topology.dold_kan.gamma_comp_n from "leanprover-community/mathlib"@"32a7e535287f9c73f2e4d2aef306a39190f0b504"
no... | Mathlib/AlgebraicTopology/DoldKan/GammaCompN.lean | 113 | 116 | theorem NβΞβ_inv_app_f_f (K : ChainComplex C β) (n : β) :
(NβΞβ.inv.app K).f.f n = (Ξβ.splitting K).toKaroubiNondegComplexIsoNβ.hom.f.f n := by |
rw [NβΞβ_inv_app]
apply id_comp
| [
" β (i j : β),\n (ComplexShape.down β).Rel i j β\n ((fun n => Iso.refl ((Ξβ.splitting K).nondegComplex.X n)) i).hom β« K.d i j =\n (Ξβ.splitting K).nondegComplex.d i j β« ((fun n => Iso.refl ((Ξβ.splitting K).nondegComplex.X n)) j).hom",
" ((fun n => Iso.refl ((Ξβ.splitting K).nondegComplex.X n)) (n ... | [
" β (i j : β),\n (ComplexShape.down β).Rel i j β\n ((fun n => Iso.refl ((Ξβ.splitting K).nondegComplex.X n)) i).hom β« K.d i j =\n (Ξβ.splitting K).nondegComplex.d i j β« ((fun n => Iso.refl ((Ξβ.splitting K).nondegComplex.X n)) j).hom",
" ((fun n => Iso.refl ((Ξβ.splitting K).nondegComplex.X n)) (n ... |
import Mathlib.CategoryTheory.CofilteredSystem
import Mathlib.Combinatorics.SimpleGraph.Connectivity
import Mathlib.Data.Finite.Set
#align_import combinatorics.simple_graph.ends.defs from "leanprover-community/mathlib"@"b99e2d58a5e6861833fa8de11e51a81144258db4"
universe u
variable {V : Type u} (G : SimpleGraph V... | Mathlib/Combinatorics/SimpleGraph/Ends/Defs.lean | 44 | 49 | theorem ComponentCompl.supp_injective :
Function.Injective (ComponentCompl.supp : G.ComponentCompl K β Set V) := by |
refine ConnectedComponent.indβ ?_
rintro β¨v, hvβ© β¨w, hwβ© h
simp only [Set.ext_iff, ConnectedComponent.eq, Set.mem_setOf_eq, ComponentCompl.supp] at h β’
exact ((h v).mp β¨hv, Reachable.refl _β©).choose_spec
| [
" Function.Injective supp",
" β (v w : βKαΆ),\n supp ((induce KαΆ G).connectedComponentMk v) = supp ((induce KαΆ G).connectedComponentMk w) β\n (induce KαΆ G).connectedComponentMk v = (induce KαΆ G).connectedComponentMk w",
" (induce KαΆ G).connectedComponentMk β¨v, hvβ© = (induce KαΆ G).connectedComponentMk β¨w,... | [] |
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 | 88 | 89 | theorem add_self_eq_zero {a : R} : a + a = 0 β a = 0 := by |
simp only [(two_mul a).symm, mul_eq_zero, two_ne_zero, false_or_iff]
| [
" 2 β 0",
" a + a = 0 β a = 0"
] | [
" 2 β 0"
] |
import Mathlib.Data.Fintype.Order
import Mathlib.Data.Set.Finite
import Mathlib.Order.Category.FinPartOrd
import Mathlib.Order.Category.LinOrd
import Mathlib.CategoryTheory.Limits.Shapes.Images
import Mathlib.CategoryTheory.Limits.Shapes.RegularMono
import Mathlib.Data.Set.Subsingleton
#align_import order.category.No... | Mathlib/Order/Category/NonemptyFinLinOrd.lean | 150 | 163 | theorem mono_iff_injective {A B : NonemptyFinLinOrd.{u}} (f : A βΆ B) :
Mono f β Function.Injective f := by |
refine β¨?_, ConcreteCategory.mono_of_injective fβ©
intro
intro aβ aβ h
let X := NonemptyFinLinOrd.of (ULift (Fin 1))
let gβ : X βΆ A := β¨fun _ => aβ, fun _ _ _ => by rflβ©
let gβ : X βΆ A := β¨fun _ => aβ, fun _ _ _ => by rflβ©
change gβ (ULift.up (0 : Fin 1)) = gβ (ULift.up (0 : Fin 1))
have eq : gβ β« f = g... | [
" βe β« βe.symm = π Ξ±",
" (βe β« βe.symm) x = (π Ξ±) x",
" βe.symm β« βe = π Ξ²",
" (βe.symm β« βe) x = (π Ξ²) x",
" xβΒΉ = xβ",
" xβΒΉ x = xβ x",
" Mono f β Function.Injective βf",
" Mono f β Function.Injective βf",
" Function.Injective βf",
" aβ = aβ",
" (fun x => aβ) xβΒ² β€ (fun x => aβ) xβΒΉ",
" ... | [
" βe β« βe.symm = π Ξ±",
" (βe β« βe.symm) x = (π Ξ±) x",
" βe.symm β« βe = π Ξ²",
" (βe.symm β« βe) x = (π Ξ²) x",
" xβΒΉ = xβ",
" xβΒΉ x = xβ x"
] |
import Mathlib.Algebra.Algebra.Tower
import Mathlib.Algebra.MvPolynomial.Basic
#align_import ring_theory.mv_polynomial.tower from "leanprover-community/mathlib"@"bb168510ef455e9280a152e7f31673cabd3d7496"
variable (R A B : Type*) {Ο : Type*}
namespace MvPolynomial
section CommSemiring
variable [CommSemiring R] ... | Mathlib/RingTheory/MvPolynomial/Tower.lean | 48 | 53 | theorem aeval_algebraMap_apply (x : Ο β A) (p : MvPolynomial Ο R) :
aeval (algebraMap A B β x) p = algebraMap A B (MvPolynomial.aeval x p) := by |
rw [aeval_def, aeval_def, β coe_evalβHom, β coe_evalβHom, map_evalβHom, β
IsScalarTower.algebraMap_eq]
-- Porting note: added
simp only [Function.comp]
| [
" (aeval (β(algebraMap A B) β x)) p = (algebraMap A B) ((aeval x) p)",
" (evalβHom (algebraMap R B) (β(algebraMap A B) β x)) p = (evalβHom (algebraMap R B) fun i => (algebraMap A B) (x i)) p"
] | [] |
import Mathlib.Algebra.Polynomial.Degree.TrailingDegree
import Mathlib.Algebra.Polynomial.EraseLead
import Mathlib.Algebra.Polynomial.Eval
#align_import data.polynomial.reverse from "leanprover-community/mathlib"@"44de64f183393284a16016dfb2a48ac97382f2bd"
namespace Polynomial
open Polynomial Finsupp Finset
open... | Mathlib/Algebra/Polynomial/Reverse.lean | 82 | 88 | theorem revAt_add {N O n o : β} (hn : n β€ N) (ho : o β€ O) :
revAt (N + O) (n + o) = revAt N n + revAt O o := by |
rcases Nat.le.dest hn with β¨n', rflβ©
rcases Nat.le.dest ho with β¨o', rflβ©
repeat' rw [revAt_le (le_add_right rfl.le)]
rw [add_assoc, add_left_comm n' o, β add_assoc, revAt_le (le_add_right rfl.le)]
repeat' rw [add_tsub_cancel_left]
| [
" revAtFun N (revAtFun N i) = i",
" (if (if i β€ N then N - i else i) β€ N then N - if i β€ N then N - i else i else if i β€ N then N - i else i) = i",
" N - (N - i) = i",
" N - i = i",
" False",
" N - i β€ N",
" i = i",
" Function.Injective (revAtFun N)",
" a = b",
" (revAt N) i = i",
" (revAt (N + ... | [
" revAtFun N (revAtFun N i) = i",
" (if (if i β€ N then N - i else i) β€ N then N - if i β€ N then N - i else i else if i β€ N then N - i else i) = i",
" N - (N - i) = i",
" N - i = i",
" False",
" N - i β€ N",
" i = i",
" Function.Injective (revAtFun N)",
" a = b",
" (revAt N) i = i"
] |
import Mathlib.Data.Real.Basic
import Mathlib.Combinatorics.Pigeonhole
import Mathlib.Algebra.Order.EuclideanAbsoluteValue
#align_import number_theory.class_number.admissible_absolute_value from "leanprover-community/mathlib"@"f7fc89d5d5ff1db2d1242c7bb0e9062ce47ef47c"
local infixl:50 " βΊ " => EuclideanDomain.r
na... | Mathlib/NumberTheory/ClassNumber/AdmissibleAbsoluteValue.lean | 117 | 123 | theorem exists_approx {ΞΉ : Type*} [Fintype ΞΉ] {Ξ΅ : β} (hΞ΅ : 0 < Ξ΅) {b : R} (hb : b β 0)
(h : abv.IsAdmissible) (A : Fin (h.card Ξ΅ ^ Fintype.card ΞΉ).succ β ΞΉ β R) :
β iβ iβ, iβ β iβ β§ β k, (abv (A iβ k % b - A iβ k % b) : β) < abv b β’ Ξ΅ := by |
let e := Fintype.equivFin ΞΉ
obtain β¨iβ, iβ, ne, hβ© := h.exists_approx_aux (Fintype.card ΞΉ) hΞ΅ hb fun x y β¦ A x (e.symm y)
refine β¨iβ, iβ, ne, fun k β¦ ?_β©
convert h (e k) <;> simp only [e.symm_apply_apply]
| [
" β t, β (iβ iβ : ΞΉ), t iβ = t iβ β β(abv (A iβ % b - A iβ % b)) < abv b β’ Ξ΅",
" β(abv (A iβ % b - A iβ % b)) < abv b β’ Ξ΅",
" iβ = e.symm (e iβ)",
" iβ = e.symm (e iβ)",
" β {Ξ΅ : β},\n 0 < Ξ΅ β\n β {b : R},\n b β 0 β\n β (A : Fin (h.card Ξ΅ ^ n).succ β Fin n β R),\n β iβ iβ,... | [
" β t, β (iβ iβ : ΞΉ), t iβ = t iβ β β(abv (A iβ % b - A iβ % b)) < abv b β’ Ξ΅",
" β(abv (A iβ % b - A iβ % b)) < abv b β’ Ξ΅",
" iβ = e.symm (e iβ)",
" iβ = e.symm (e iβ)",
" β {Ξ΅ : β},\n 0 < Ξ΅ β\n β {b : R},\n b β 0 β\n β (A : Fin (h.card Ξ΅ ^ n).succ β Fin n β R),\n β iβ iβ,... |
import Mathlib.Analysis.Calculus.FDeriv.Basic
#align_import analysis.calculus.fderiv.restrict_scalars from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee"
open Filter Asymptotics ContinuousLinearMap Set Metric
open scoped Classical
open Topology NNReal Filter Asymptotics ENNReal
noncom... | Mathlib/Analysis/Calculus/FDeriv/RestrictScalars.lean | 99 | 102 | theorem hasFDerivAt_of_restrictScalars {g' : E βL[π] F} (h : HasFDerivAt f g' x)
(H : f'.restrictScalars π = g') : HasFDerivAt f f' x := by |
rw [β H] at h
exact .of_isLittleO h.1
| [
" HasFDerivWithinAt f f' s x",
" HasFDerivAt f f' x"
] | [
" HasFDerivWithinAt f f' s x"
] |
import Mathlib.LinearAlgebra.TensorProduct.Tower
import Mathlib.Algebra.DirectSum.Module
#align_import linear_algebra.direct_sum.tensor_product from "leanprover-community/mathlib"@"9b9d125b7be0930f564a68f1d73ace10cf46064d"
suppress_compilation
universe u vβ vβ wβ wβ' wβ wβ'
section Ring
namespace TensorProduct
... | Mathlib/LinearAlgebra/DirectSum/TensorProduct.lean | 150 | 153 | theorem directSum_lof_tmul_lof (iβ : ΞΉβ) (mβ : Mβ iβ) (iβ : ΞΉβ) (mβ : Mβ iβ) :
TensorProduct.directSum R S Mβ Mβ (DirectSum.lof S ΞΉβ Mβ iβ mβ ββ DirectSum.lof R ΞΉβ Mβ iβ mβ) =
DirectSum.lof S (ΞΉβ Γ ΞΉβ) (fun i => Mβ i.1 β[R] Mβ i.2) (iβ, iβ) (mβ ββ mβ) := by |
simp [TensorProduct.directSum]
| [
" ((β¨ (iβ : ΞΉβ), Mβ iβ) β[R] β¨ (iβ : ΞΉβ), Mβ iβ) ββ[S] β¨ (i : ΞΉβ Γ ΞΉβ), Mβ i.1 β[R] Mβ i.2",
" ((β¨ (iβ : ΞΉβ), Mβ iβ) β[R] β¨ (iβ : ΞΉβ), Mβ iβ) ββ[S] β¨ (i : ΞΉβ Γ ΞΉβ), Mβ i.1 β[R] Mβ i.2",
" (β¨ (iβ : ΞΉβ), Mβ iβ) ββ[S] (β¨ (iβ : ΞΉβ), Mβ iβ) ββ[R] β¨ (i : ΞΉβ Γ ΞΉβ), Mβ i.1 β[R] Mβ i.2",
" Mβ iβ ββ[S] (β¨ (iβ : ΞΉβ), Mβ... | [
" ((β¨ (iβ : ΞΉβ), Mβ iβ) β[R] β¨ (iβ : ΞΉβ), Mβ iβ) ββ[S] β¨ (i : ΞΉβ Γ ΞΉβ), Mβ i.1 β[R] Mβ i.2",
" ((β¨ (iβ : ΞΉβ), Mβ iβ) β[R] β¨ (iβ : ΞΉβ), Mβ iβ) ββ[S] β¨ (i : ΞΉβ Γ ΞΉβ), Mβ i.1 β[R] Mβ i.2",
" (β¨ (iβ : ΞΉβ), Mβ iβ) ββ[S] (β¨ (iβ : ΞΉβ), Mβ iβ) ββ[R] β¨ (i : ΞΉβ Γ ΞΉβ), Mβ i.1 β[R] Mβ i.2",
" Mβ iβ ββ[S] (β¨ (iβ : ΞΉβ), Mβ... |
import Mathlib.Analysis.BoxIntegral.Partition.Additive
import Mathlib.MeasureTheory.Measure.Lebesgue.Basic
#align_import analysis.box_integral.partition.measure from "leanprover-community/mathlib"@"fd5edc43dc4f10b85abfe544b88f82cf13c5f844"
open Set
noncomputable section
open scoped ENNReal Classical BoxIntegral... | Mathlib/Analysis/BoxIntegral/Partition/Measure.lean | 74 | 76 | theorem coe_ae_eq_Icc : (I : Set (ΞΉ β β)) =α΅[volume] Box.Icc I := by |
rw [coe_eq_pi]
exact Measure.univ_pi_Ioc_ae_eq_Icc
| [
" βI =αΆ [ae volume] Box.Icc I",
" (univ.pi fun i => Ioc (I.lower i) (I.upper i)) =αΆ [ae volume] Box.Icc I"
] | [] |
import Mathlib.Algebra.CharP.Invertible
import Mathlib.Algebra.Order.Invertible
import Mathlib.Algebra.Order.Module.OrderedSMul
import Mathlib.Algebra.Order.Group.Instances
import Mathlib.LinearAlgebra.AffineSpace.Slope
import Mathlib.LinearAlgebra.AffineSpace.Midpoint
import Mathlib.Tactic.FieldSimp
#align_import li... | Mathlib/LinearAlgebra/AffineSpace/Ordered.lean | 57 | 59 | theorem lineMap_strict_mono_left (ha : a < a') (hr : r < 1) : lineMap a b r < lineMap a' b r := by |
simp only [lineMap_apply_module]
exact add_lt_add_right (smul_lt_smul_of_pos_left ha (sub_pos.2 hr)) _
| [
" (lineMap a b) r β€ (lineMap a' b) r",
" (1 - r) β’ a + r β’ b β€ (1 - r) β’ a' + r β’ b",
" (lineMap a b) r < (lineMap a' b) r",
" (1 - r) β’ a + r β’ b < (1 - r) β’ a' + r β’ b"
] | [
" (lineMap a b) r β€ (lineMap a' b) r",
" (1 - r) β’ a + r β’ b β€ (1 - r) β’ a' + r β’ b"
] |
import Mathlib.Algebra.Category.GroupCat.Abelian
import Mathlib.CategoryTheory.Limits.Shapes.Images
#align_import algebra.category.Group.images from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a"
open CategoryTheory
open CategoryTheory.Limits
universe u
namespace AddCommGroupCat
set... | Mathlib/Algebra/Category/GroupCat/Images.lean | 87 | 91 | theorem image.lift_fac (F' : MonoFactorisation f) : image.lift F' β« F'.m = image.ΞΉ f := by |
ext x
change (F'.e β« F'.m) _ = _
rw [F'.fac, (Classical.indefiniteDescription _ x.2).2]
rfl
| [
" factorThruImage f β« ΞΉ f = f",
" (factorThruImage f β« ΞΉ f) xβ = f xβ",
" (fun x => F'.e β(Classical.indefiniteDescription (fun x_1 => f x_1 = βx) β―)) 0 = 0",
" F'.m ((fun x => F'.e β(Classical.indefiniteDescription (fun x_1 => f x_1 = βx) β―)) 0) = F'.m 0",
" (F'.e β« F'.m) β(Classical.indefiniteDescription ... | [
" factorThruImage f β« ΞΉ f = f",
" (factorThruImage f β« ΞΉ f) xβ = f xβ",
" (fun x => F'.e β(Classical.indefiniteDescription (fun x_1 => f x_1 = βx) β―)) 0 = 0",
" F'.m ((fun x => F'.e β(Classical.indefiniteDescription (fun x_1 => f x_1 = βx) β―)) 0) = F'.m 0",
" (F'.e β« F'.m) β(Classical.indefiniteDescription ... |
import Mathlib.LinearAlgebra.Ray
import Mathlib.Analysis.NormedSpace.Real
#align_import analysis.normed_space.ray from "leanprover-community/mathlib"@"92ca63f0fb391a9ca5f22d2409a6080e786d99f7"
open Real
variable {E : Type*} [SeminormedAddCommGroup E] [NormedSpace β E] {F : Type*}
[NormedAddCommGroup F] [NormedSp... | Mathlib/Analysis/NormedSpace/Ray.lean | 59 | 65 | theorem norm_injOn_ray_left (hx : x β 0) : { y | SameRay β x y }.InjOn norm := by |
rintro y hy z hz h
rcases hy.exists_nonneg_left hx with β¨r, hr, rflβ©
rcases hz.exists_nonneg_left hx with β¨s, hs, rflβ©
rw [norm_smul, norm_smul, mul_left_inj' (norm_ne_zero_iff.2 hx), norm_of_nonneg hr,
norm_of_nonneg hs] at h
rw [h]
| [
" Set.InjOn Norm.norm {y | SameRay β x y}",
" y = z",
" r β’ x = z",
" r β’ x = s β’ x"
] | [] |
import Mathlib.Order.Interval.Set.OrdConnectedComponent
import Mathlib.Topology.Order.Basic
#align_import topology.algebra.order.t5 from "leanprover-community/mathlib"@"4c19a16e4b705bf135cf9a80ac18fcc99c438514"
open Filter Set Function OrderDual Topology Interval
variable {X : Type*} [LinearOrder X] [Topological... | Mathlib/Topology/Order/T5.lean | 27 | 30 | theorem ordConnectedComponent_mem_nhds : ordConnectedComponent s a β π a β s β π a := by |
refine β¨fun h => mem_of_superset h ordConnectedComponent_subset, fun h => ?_β©
rcases exists_Icc_mem_subset_of_mem_nhds h with β¨b, c, ha, ha', hsβ©
exact mem_of_superset ha' (subset_ordConnectedComponent ha hs)
| [
" s.ordConnectedComponent a β π a β s β π a",
" s.ordConnectedComponent a β π a"
] | [] |
import Mathlib.LinearAlgebra.QuadraticForm.TensorProduct
import Mathlib.LinearAlgebra.CliffordAlgebra.Conjugation
import Mathlib.LinearAlgebra.TensorProduct.Opposite
import Mathlib.RingTheory.TensorProduct.Basic
variable {R A V : Type*}
variable [CommRing R] [CommRing A] [AddCommGroup V]
variable [Algebra R A] [Mod... | Mathlib/LinearAlgebra/CliffordAlgebra/BaseChange.lean | 124 | 137 | theorem toBaseChange_comp_reverseOp (Q : QuadraticForm R V) :
(toBaseChange A Q).op.comp reverseOp =
((Algebra.TensorProduct.opAlgEquiv R A A (CliffordAlgebra Q)).toAlgHom.comp <|
(Algebra.TensorProduct.map
(AlgEquiv.toOpposite A A).toAlgHom (reverseOp (Q := Q))).comp
(toBaseChange A... |
ext v
show op (toBaseChange A Q (reverse (ΞΉ (Q.baseChange A) (1 ββ[R] v)))) =
Algebra.TensorProduct.opAlgEquiv R A A (CliffordAlgebra Q)
(Algebra.TensorProduct.map (AlgEquiv.toOpposite A A).toAlgHom (reverseOp (Q := Q))
(toBaseChange A Q (ΞΉ (Q.baseChange A) (1 ββ[R] v))))
rw [toBaseChange_ΞΉ, re... | [
" { f // β (m : V), f m * f m = (algebraMap R (CliffordAlgebra (QuadraticForm.baseChange A Q))) (Q m) }",
" (βR (ΞΉ (QuadraticForm.baseChange A Q)) ββ (TensorProduct.mk R A V) 1) v *\n (βR (ΞΉ (QuadraticForm.baseChange A Q)) ββ (TensorProduct.mk R A V) 1) v =\n (algebraMap R (CliffordAlgebra (QuadraticForm.... | [
" { f // β (m : V), f m * f m = (algebraMap R (CliffordAlgebra (QuadraticForm.baseChange A Q))) (Q m) }",
" (βR (ΞΉ (QuadraticForm.baseChange A Q)) ββ (TensorProduct.mk R A V) 1) v *\n (βR (ΞΉ (QuadraticForm.baseChange A Q)) ββ (TensorProduct.mk R A V) 1) v =\n (algebraMap R (CliffordAlgebra (QuadraticForm.... |
import Mathlib.SetTheory.Game.Basic
import Mathlib.Tactic.NthRewrite
#align_import set_theory.game.impartial from "leanprover-community/mathlib"@"2e0975f6a25dd3fbfb9e41556a77f075f6269748"
universe u
namespace SetTheory
open scoped PGame
namespace PGame
def ImpartialAux : PGame β Prop
| G => (G β -G) β§ (β i... | Mathlib/SetTheory/Game/Impartial.lean | 137 | 142 | theorem equiv_or_fuzzy_zero : (G β 0) β¨ G β 0 := by |
rcases lt_or_equiv_or_gt_or_fuzzy G 0 with (h | h | h | h)
Β· exact ((nonneg G) h).elim
Β· exact Or.inl h
Β· exact ((nonpos G) h).elim
Β· exact Or.inr h
| [
" G.ImpartialAux β\n G β -G β§ (β (i : G.LeftMoves), (G.moveLeft i).ImpartialAux) β§ β (j : G.RightMoves), (G.moveRight j).ImpartialAux",
" G.Impartial β\n G β -G β§ (β (i : G.LeftMoves), (G.moveLeft i).Impartial) β§ β (j : G.RightMoves), (G.moveRight j).Impartial",
" Impartial 0",
" 0 β -0 β§ (β (i : LeftMo... | [
" G.ImpartialAux β\n G β -G β§ (β (i : G.LeftMoves), (G.moveLeft i).ImpartialAux) β§ β (j : G.RightMoves), (G.moveRight j).ImpartialAux",
" G.Impartial β\n G β -G β§ (β (i : G.LeftMoves), (G.moveLeft i).Impartial) β§ β (j : G.RightMoves), (G.moveRight j).Impartial",
" Impartial 0",
" 0 β -0 β§ (β (i : LeftMo... |
import Mathlib.Data.Int.Bitwise
import Mathlib.Data.Int.Order.Lemmas
import Mathlib.Data.Set.Function
import Mathlib.Order.Interval.Set.Basic
#align_import data.int.lemmas from "leanprover-community/mathlib"@"09597669f02422ed388036273d8848119699c22f"
open Nat
namespace Int
theorem le_natCast_sub (m n : β) : (m ... | Mathlib/Data/Int/Lemmas.lean | 82 | 86 | theorem natAbs_coe_sub_coe_le_of_le {a b n : β} (a_le_n : a β€ n) (b_le_n : b β€ n) :
natAbs (a - b : β€) β€ n := by |
rw [β Nat.cast_le (Ξ± := β€), natCast_natAbs]
exact abs_sub_le_of_nonneg_of_le (ofNat_nonneg a) (ofNat_le.mpr a_le_n)
(ofNat_nonneg b) (ofNat_le.mpr b_le_n)
| [
" βm - βn β€ β(m - n)",
" 0 β€ βn",
" a.natAbs = b.natAbs β a ^ 2 = b ^ 2",
" a.natAbs = b.natAbs β a * a = b * b",
" a.natAbs < b.natAbs β a ^ 2 < b ^ 2",
" a.natAbs < b.natAbs β a * a < b * b",
" a.natAbs β€ b.natAbs β a ^ 2 β€ b ^ 2",
" a.natAbs β€ b.natAbs β a * a β€ b * b",
" a.natAbs = b.natAbs β a ... | [
" βm - βn β€ β(m - n)",
" 0 β€ βn",
" a.natAbs = b.natAbs β a ^ 2 = b ^ 2",
" a.natAbs = b.natAbs β a * a = b * b",
" a.natAbs < b.natAbs β a ^ 2 < b ^ 2",
" a.natAbs < b.natAbs β a * a < b * b",
" a.natAbs β€ b.natAbs β a ^ 2 β€ b ^ 2",
" a.natAbs β€ b.natAbs β a * a β€ b * b",
" a.natAbs = b.natAbs β a ... |
import Mathlib.Order.Filter.AtTopBot
import Mathlib.Order.Filter.Pi
#align_import order.filter.cofinite from "leanprover-community/mathlib"@"8631e2d5ea77f6c13054d9151d82b83069680cb1"
open Set Function
variable {ΞΉ Ξ± Ξ² : Type*} {l : Filter Ξ±}
namespace Filter
def cofinite : Filter Ξ± :=
comk Set.Finite finite_e... | Mathlib/Order/Filter/Cofinite.lean | 101 | 104 | theorem le_cofinite_iff_compl_singleton_mem : l β€ cofinite β β x, {x}αΆ β l := by |
refine β¨fun h x => h (finite_singleton x).compl_mem_cofinite, fun h s (hs : sαΆ.Finite) => ?_β©
rw [β compl_compl s, β biUnion_of_singleton sαΆ, compl_iUnionβ, Filter.biInter_mem hs]
exact fun x _ => h x
| [
" cofinite = β₯ β Finite Ξ±",
" (βαΆ (x : Ξ±) in cofinite, p x) β {x | p x}.Infinite",
" l β€ cofinite β β (x : Ξ±), {x}αΆ β l",
" s β l",
" β i β sαΆ, {i}αΆ β l"
] | [
" cofinite = β₯ β Finite Ξ±",
" (βαΆ (x : Ξ±) in cofinite, p x) β {x | p x}.Infinite"
] |
import Mathlib.Data.Finset.Lattice
import Mathlib.Order.Hom.Basic
import Mathlib.Data.Set.Finite
import Mathlib.Order.ConditionallyCompleteLattice.Basic
#align_import order.partial_sups from "leanprover-community/mathlib"@"d6fad0e5bf2d6f48da9175d25c3dc5706b3834ce"
variable {Ξ± : Type*}
section SemilatticeSup
var... | Mathlib/Order/PartialSups.lean | 97 | 101 | theorem Monotone.partialSups_eq {f : β β Ξ±} (hf : Monotone f) : (partialSups f : β β Ξ±) = f := by |
ext n
induction' n with n ih
Β· rfl
Β· rw [partialSups_succ, ih, sup_eq_right.2 (hf (Nat.le_succ _))]
| [
" p ((partialSups f) 0) β β k β€ 0, p (f k)",
" p ((partialSups f) (n + 1)) β β k β€ n + 1, p (f k)",
" upperBounds (Set.range β(partialSups f)) = upperBounds (Set.range f)",
" a β upperBounds (Set.range β(partialSups f)) β a β upperBounds (Set.range f)",
" (β (i k : β), k β€ i β f k β€ a) β β (i : β), f i β€ a"... | [
" p ((partialSups f) 0) β β k β€ 0, p (f k)",
" p ((partialSups f) (n + 1)) β β k β€ n + 1, p (f k)",
" upperBounds (Set.range β(partialSups f)) = upperBounds (Set.range f)",
" a β upperBounds (Set.range β(partialSups f)) β a β upperBounds (Set.range f)",
" (β (i k : β), k β€ i β f k β€ a) β β (i : β), f i β€ a"... |
import Mathlib.Algebra.MonoidAlgebra.Degree
import Mathlib.Algebra.Polynomial.Coeff
import Mathlib.Algebra.Polynomial.Monomial
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Nat.WithBot
import Mathlib.Data.Nat.Cast.WithTop
import Mathlib.Data.Nat.SuccPred
#align_import data.polynomial.degree.definitions... | Mathlib/Algebra/Polynomial/Degree/Definitions.lean | 146 | 147 | theorem degree_eq_iff_natDegree_eq {p : R[X]} {n : β} (hp : p β 0) :
p.degree = n β p.natDegree = n := by | rw [degree_eq_natDegree hp]; exact WithBot.coe_eq_coe
| [
" Decidable p.Monic",
" Decidable (p.leadingCoeff = 1)",
" p.degree = β₯",
" p.natDegree = 0",
" p.degree = βp.natDegree",
" Option.some n = β(WithBot.unbot' 0 (Option.some n))",
" AddMonoidAlgebra.supDegree id p.toFinsupp = p.natDegree",
" AddMonoidAlgebra.supDegree id (toFinsupp 0) = natDegree 0",
... | [
" Decidable p.Monic",
" Decidable (p.leadingCoeff = 1)",
" p.degree = β₯",
" p.natDegree = 0",
" p.degree = βp.natDegree",
" Option.some n = β(WithBot.unbot' 0 (Option.some n))",
" AddMonoidAlgebra.supDegree id p.toFinsupp = p.natDegree",
" AddMonoidAlgebra.supDegree id (toFinsupp 0) = natDegree 0",
... |
import Mathlib.Algebra.GroupPower.IterateHom
import Mathlib.Algebra.Module.Defs
import Mathlib.Algebra.Order.Archimedean
import Mathlib.Algebra.Order.Group.Instances
import Mathlib.GroupTheory.GroupAction.Pi
open Function Set
structure AddConstMap (G H : Type*) [Add G] [Add H] (a : G) (b : H) where
protected... | Mathlib/Algebra/AddConstMap/Basic.lean | 78 | 79 | theorem map_add_nat' [AddMonoidWithOne G] [AddMonoid H] [AddConstMapClass F G H 1 b]
(f : F) (x : G) (n : β) : f (x + n) = f x + n β’ b := by | simp [β map_add_nsmul]
| [
" f (x + n β’ a) = f x + n β’ b",
" f (x + βn) = f x + n β’ b"
] | [
" f (x + n β’ a) = f x + n β’ b"
] |
import Mathlib.Analysis.Convex.Between
import Mathlib.Analysis.Convex.Jensen
import Mathlib.Analysis.Convex.Topology
import Mathlib.Analysis.Normed.Group.Pointwise
import Mathlib.Analysis.NormedSpace.AddTorsor
#align_import analysis.convex.normed from "leanprover-community/mathlib"@"a63928c34ec358b5edcda2bf7513c50052... | Mathlib/Analysis/Convex/Normed.lean | 92 | 97 | theorem convexHull_exists_dist_ge2 {s t : Set E} {x y : E} (hx : x β convexHull β s)
(hy : y β convexHull β t) : β x' β s, β y' β t, dist x y β€ dist x' y' := by |
rcases convexHull_exists_dist_ge hx y with β¨x', hx', Hx'β©
rcases convexHull_exists_dist_ge hy x' with β¨y', hy', Hy'β©
use x', hx', y', hy'
exact le_trans Hx' (dist_comm y x' βΈ dist_comm y' x' βΈ Hy')
| [
" βa β’ xβ + βb β’ yβ = a * βxβ + b * βyβ",
" ConvexOn β s fun z' => dist z' z",
" Convex β (ball a r)",
" Convex β (closedBall a r)",
" Convex β (Metric.thickening Ξ΄ s)",
" Convex β (s + ball 0 Ξ΄)",
" Convex β (Metric.cthickening Ξ΄ s)",
" Convex β (β Ξ΅, β (_ : Ξ΄ < Ξ΅), Metric.thickening Ξ΅ s)",
" Conve... | [
" βa β’ xβ + βb β’ yβ = a * βxβ + b * βyβ",
" ConvexOn β s fun z' => dist z' z",
" Convex β (ball a r)",
" Convex β (closedBall a r)",
" Convex β (Metric.thickening Ξ΄ s)",
" Convex β (s + ball 0 Ξ΄)",
" Convex β (Metric.cthickening Ξ΄ s)",
" Convex β (β Ξ΅, β (_ : Ξ΄ < Ξ΅), Metric.thickening Ξ΅ s)",
" Conve... |
import Mathlib.Data.Countable.Basic
import Mathlib.Data.Fin.VecNotation
import Mathlib.Order.Disjointed
import Mathlib.MeasureTheory.OuterMeasure.Defs
#align_import measure_theory.measure.outer_measure from "leanprover-community/mathlib"@"343e80208d29d2d15f8050b929aa50fe4ce71b55"
noncomputable section
open Set F... | Mathlib/MeasureTheory/OuterMeasure/Basic.lean | 129 | 129 | theorem measure_union_null (hs : ΞΌ s = 0) (ht : ΞΌ t = 0) : ΞΌ (s βͺ t) = 0 := by | simp [*]
| [
" ΞΌ (β i, s i) β€ β' (i : ΞΉ), ΞΌ (s i)",
" (fun x x_1 => x β€ x_1) (ΞΌ (β¨ i, t i)) (β' (i : β), ΞΌ (t i))",
" ΞΌ (β i, t i) = ΞΌ (β i, disjointed t i)",
" β' (i : β), ΞΌ (disjointed t i) β€ β' (i : β), ΞΌ (t i)",
" disjointed t aβ β t aβ",
" ΞΌ (β i β I, s i) β€ β' (i : βI), ΞΌ (s βi)",
" ΞΌ (β x, s βx) β€ β' (i : βI)... | [
" ΞΌ (β i, s i) β€ β' (i : ΞΉ), ΞΌ (s i)",
" (fun x x_1 => x β€ x_1) (ΞΌ (β¨ i, t i)) (β' (i : β), ΞΌ (t i))",
" ΞΌ (β i, t i) = ΞΌ (β i, disjointed t i)",
" β' (i : β), ΞΌ (disjointed t i) β€ β' (i : β), ΞΌ (t i)",
" disjointed t aβ β t aβ",
" ΞΌ (β i β I, s i) β€ β' (i : βI), ΞΌ (s βi)",
" ΞΌ (β x, s βx) β€ β' (i : βI)... |
import Mathlib.Algebra.BigOperators.Group.Multiset
import Mathlib.Data.PNat.Prime
import Mathlib.Data.Nat.Factors
import Mathlib.Data.Multiset.Sort
#align_import data.pnat.factors from "leanprover-community/mathlib"@"e3d9ab8faa9dea8f78155c6c27d62a621f4c152d"
-- Porting note: `deriving` contained Inhabited, Canonic... | Mathlib/Data/PNat/Factors.lean | 121 | 123 | theorem coePNat_prime (v : PrimeMultiset) (p : β+) (h : p β (v : Multiset β+)) : p.Prime := by |
rcases Multiset.mem_map.mp h with β¨β¨_, hp'β©, β¨_, h_eqβ©β©
exact h_eq βΈ hp'
| [
" β (a : PrimeMultiset), β₯ β€ a",
" Repr PrimeMultiset",
" Repr (Multiset Nat.Primes)",
" p.Prime"
] | [
" β (a : PrimeMultiset), β₯ β€ a",
" Repr PrimeMultiset",
" Repr (Multiset Nat.Primes)",
" p.Prime"
] |
import Mathlib.RepresentationTheory.FdRep
import Mathlib.LinearAlgebra.Trace
import Mathlib.RepresentationTheory.Invariants
#align_import representation_theory.character from "leanprover-community/mathlib"@"55b3f8206b8596db8bb1804d8a92814a0b6670c9"
noncomputable section
universe u
open CategoryTheory LinearMap ... | Mathlib/RepresentationTheory/Character.lean | 54 | 55 | theorem char_mul_comm (V : FdRep k G) (g : G) (h : G) :
V.character (h * g) = V.character (g * h) := by | simp only [trace_mul_comm, character, map_mul]
| [
" V.character (h * g) = V.character (g * h)"
] | [] |
import Mathlib.Algebra.BigOperators.Finsupp
import Mathlib.Algebra.Module.Basic
import Mathlib.Algebra.Regular.SMul
import Mathlib.Data.Finset.Preimage
import Mathlib.Data.Rat.BigOperators
import Mathlib.GroupTheory.GroupAction.Hom
import Mathlib.Data.Set.Subsingleton
#align_import data.finsupp.basic from "leanprover... | Mathlib/Data/Finsupp/Basic.lean | 78 | 80 | theorem mem_graph_iff {c : Ξ± Γ M} {f : Ξ± ββ M} : c β f.graph β f c.1 = c.2 β§ c.2 β 0 := by |
cases c
exact mk_mem_graph_iff
| [
" (a, m) β f.graph β f a = m β§ m β 0",
" (β a_1, f a_1 β 0 β§ { toFun := fun a => (a, f a), inj' := β― } a_1 = (a, m)) β f a = m β§ m β 0",
" (β a_1, f a_1 β 0 β§ { toFun := fun a => (a, f a), inj' := β― } a_1 = (a, m)) β f a = m β§ m β 0",
" f a = f a β§ f a β 0",
" f a = m β§ m β 0 β β a_2, f a_2 β 0 β§ { toFun :=... | [
" (a, m) β f.graph β f a = m β§ m β 0",
" (β a_1, f a_1 β 0 β§ { toFun := fun a => (a, f a), inj' := β― } a_1 = (a, m)) β f a = m β§ m β 0",
" (β a_1, f a_1 β 0 β§ { toFun := fun a => (a, f a), inj' := β― } a_1 = (a, m)) β f a = m β§ m β 0",
" f a = f a β§ f a β 0",
" f a = m β§ m β 0 β β a_2, f a_2 β 0 β§ { toFun :=... |
import Mathlib.Algebra.MvPolynomial.Rename
#align_import data.mv_polynomial.comap from "leanprover-community/mathlib"@"aba31c938d3243cc671be7091b28a1e0814647ee"
namespace MvPolynomial
variable {Ο : Type*} {Ο : Type*} {Ο
: Type*} {R : Type*} [CommSemiring R]
noncomputable def comap (f : MvPolynomial Ο R ββ[R] M... | Mathlib/Algebra/MvPolynomial/Comap.lean | 83 | 87 | theorem comap_eq_id_of_eq_id (f : MvPolynomial Ο R ββ[R] MvPolynomial Ο R) (hf : β Ο, f Ο = Ο)
(x : Ο β R) : comap f x = x := by |
convert comap_id_apply x
ext1 Ο
simp [hf, AlgHom.id_apply]
| [
" comap (AlgHom.id R (MvPolynomial Ο R)) x = x",
" comap (AlgHom.id R (MvPolynomial Ο R)) x i = x i",
" comap (AlgHom.id R (MvPolynomial Ο R)) = id",
" comap (AlgHom.id R (MvPolynomial Ο R)) x = id x",
" comap (g.comp f) x = comap f (comap g x)",
" comap (g.comp f) x i = comap f (comap g x) i",
" comap ... | [
" comap (AlgHom.id R (MvPolynomial Ο R)) x = x",
" comap (AlgHom.id R (MvPolynomial Ο R)) x i = x i",
" comap (AlgHom.id R (MvPolynomial Ο R)) = id",
" comap (AlgHom.id R (MvPolynomial Ο R)) x = id x",
" comap (g.comp f) x = comap f (comap g x)",
" comap (g.comp f) x i = comap f (comap g x) i",
" comap ... |
import Mathlib.MeasureTheory.Covering.DensityTheorem
#align_import measure_theory.covering.liminf_limsup from "leanprover-community/mathlib"@"5f6e827d81dfbeb6151d7016586ceeb0099b9655"
open Set Filter Metric MeasureTheory TopologicalSpace
open scoped NNReal ENNReal Topology
variable {Ξ± : Type*} [MetricSpace Ξ±] [... | Mathlib/MeasureTheory/Covering/LiminfLimsup.lean | 41 | 150 | theorem blimsup_cthickening_ae_le_of_eventually_mul_le_aux (p : β β Prop) {s : β β Set Ξ±}
(hs : β i, IsClosed (s i)) {rβ rβ : β β β} (hr : Tendsto rβ atTop (π[>] 0)) (hrp : 0 β€ rβ)
{M : β} (hM : 0 < M) (hM' : M < 1) (hMr : βαΆ i in atTop, M * rβ i β€ rβ i) :
(blimsup (fun i => cthickening (rβ i) (s i)) atTop... |
/- Sketch of proof:
Assume that `p` is identically true for simplicity. Let `Yβ i = cthickening (rβ i) (s i)`, define
`Yβ` similarly except using `rβ`, and let `(Z i) = β_{j β₯ i} (Yβ j)`. Our goal is equivalent to
showing that `ΞΌ ((limsup Yβ) \ (Z i)) = 0` for all `i`.
Assume for contradiction that `ΞΌ ((li... | [
" blimsup (fun i => cthickening (rβ i) (s i)) atTop p β€αΆ [ae ΞΌ] blimsup (fun i => cthickening (rβ i) (s i)) atTop p",
" blimsup Yβ atTop p β€αΆ [ae ΞΌ] blimsup (fun i => cthickening (rβ i) (s i)) atTop p",
" blimsup Yβ atTop p β€αΆ [ae ΞΌ] blimsup Yβ atTop p",
" β (i : β), ΞΌ (blimsup Yβ atTop p \\ Z i) = 0",
" ΞΌ (bl... | [] |
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 | 113 | 115 | theorem mem_minimals_iff_forall_lt_not_mem' (rlt : Ξ± β Ξ± β Prop) [IsNonstrictStrictOrder Ξ± r rlt] :
x β minimals r s β x β s β§ β β¦yβ¦, rlt y x β y β s := by |
simp [minimals, right_iff_left_not_left_of r rlt, not_imp_not, imp.swap (a := _ β _)]
| [
" β β¦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"
] | [
" β β¦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"
] |
import Mathlib.Algebra.BigOperators.Pi
import Mathlib.Algebra.BigOperators.Ring
import Mathlib.Algebra.Order.BigOperators.Ring.Finset
import Mathlib.Algebra.BigOperators.Fin
import Mathlib.Algebra.Group.Submonoid.Membership
import Mathlib.Data.Finsupp.Fin
import Mathlib.Data.Finsupp.Indicator
#align_import algebra.bi... | Mathlib/Algebra/BigOperators/Finsupp.lean | 124 | 127 | theorem sum_ite_self_eq_aux [DecidableEq Ξ±] {N : Type*} [AddCommMonoid N] (f : Ξ± ββ N) (a : Ξ±) :
(if a β f.support then f a else 0) = f a := by |
simp only [mem_support_iff, ne_eq, ite_eq_left_iff, not_not]
exact fun h β¦ h.symm
| [
" f.prod g = β x β s, g x (f x)",
" f x = 0",
" β x β {a}, h x ((single a b) x) = h a b",
" h xβΒΉ ((mapRange f hf g) xβΒΉ) = 1",
" (f.prod fun x v => if a = x then b x v else 1) = if a β f.support then b a (f a) else 1",
" (β a_1 β f.support, if a = a_1 then b a_1 (f a_1) else 1) = if a β f.support then b ... | [
" f.prod g = β x β s, g x (f x)",
" f x = 0",
" β x β {a}, h x ((single a b) x) = h a b",
" h xβΒΉ ((mapRange f hf g) xβΒΉ) = 1",
" (f.prod fun x v => if a = x then b x v else 1) = if a β f.support then b a (f a) else 1",
" (β a_1 β f.support, if a = a_1 then b a_1 (f a_1) else 1) = if a β f.support then b ... |
import Mathlib.Analysis.Complex.UpperHalfPlane.Basic
import Mathlib.LinearAlgebra.GeneralLinearGroup
import Mathlib.LinearAlgebra.Matrix.GeneralLinearGroup
import Mathlib.Topology.Instances.Matrix
import Mathlib.Topology.Algebra.Module.FiniteDimension
#align_import number_theory.modular from "leanprover-community/mat... | Mathlib/NumberTheory/Modular.lean | 85 | 89 | theorem bottom_row_coprime {R : Type*} [CommRing R] (g : SL(2, R)) :
IsCoprime ((βg : Matrix (Fin 2) (Fin 2) R) 1 0) ((βg : Matrix (Fin 2) (Fin 2) R) 1 1) := by |
use -(βg : Matrix (Fin 2) (Fin 2) R) 0 1, (βg : Matrix (Fin 2) (Fin 2) R) 0 0
rw [add_comm, neg_mul, β sub_eq_add_neg, β det_fin_two]
exact g.det_coe
| [
" IsCoprime (βg 1 0) (βg 1 1)",
" -βg 0 1 * βg 1 0 + βg 0 0 * βg 1 1 = 1",
" (βg).det = 1"
] | [] |
import Mathlib.Analysis.NormedSpace.Basic
import Mathlib.Analysis.Normed.Group.Hom
import Mathlib.Data.Real.Sqrt
import Mathlib.RingTheory.Ideal.QuotientOperations
import Mathlib.Topology.MetricSpace.HausdorffDistance
#align_import analysis.normed.group.quotient from "leanprover-community/mathlib"@"2196ab363eb097c008... | Mathlib/Analysis/Normed/Group/Quotient.lean | 147 | 148 | theorem quotient_norm_sub_rev {S : AddSubgroup M} (x y : M β§Έ S) : βx - yβ = βy - xβ := by |
rw [β neg_sub, quotient_norm_neg]
| [
" βxβ = infDist 0 {m | βm = x}",
" ββxβ = infDist x βS",
" infDist x (β(IsometryEquiv.subLeft x).symm β»ΒΉ' {m | βm = βx}) = infDist x βS",
" y β β(IsometryEquiv.subLeft x).symm β»ΒΉ' {m | βm = βx} β y β βS",
" β-xβ = βxβ",
" sInf (norm '' {m | βm = -x}) = sInf (norm '' {m | βm = x})",
" r β norm '' {m | βm... | [
" βxβ = infDist 0 {m | βm = x}",
" ββxβ = infDist x βS",
" infDist x (β(IsometryEquiv.subLeft x).symm β»ΒΉ' {m | βm = βx}) = infDist x βS",
" y β β(IsometryEquiv.subLeft x).symm β»ΒΉ' {m | βm = βx} β y β βS",
" β-xβ = βxβ",
" sInf (norm '' {m | βm = -x}) = sInf (norm '' {m | βm = x})",
" r β norm '' {m | βm... |
import Mathlib.Algebra.CharP.Defs
import Mathlib.RingTheory.Multiplicity
import Mathlib.RingTheory.PowerSeries.Basic
#align_import ring_theory.power_series.basic from "leanprover-community/mathlib"@"2d5739b61641ee4e7e53eca5688a08f66f2e6a60"
noncomputable section
open Polynomial
open Finset (antidiagonal mem_anti... | Mathlib/RingTheory/PowerSeries/Order.lean | 99 | 101 | theorem coeff_of_lt_order (n : β) (h : βn < order Ο) : coeff R n Ο = 0 := by |
contrapose! h
exact order_le _ h
| [
" (β n, (coeff R n) Ο β 0) β Ο β 0",
" (Β¬β n, (coeff R n) Ο β 0) β Β¬Ο β 0",
" (β (n : β), (coeff R n) Ο = 0) β Ο = 0",
" Ο.order.Dom β Ο β 0",
" (if h : Ο = 0 then β€ else β(Nat.find β―)).Dom β Ο β 0",
" (if h : Ο = 0 then β€ else β(Nat.find β―)).Dom β Ο β 0",
" β€.Dom β Ο β 0",
" (β(Nat.find β―)).Dom β Ο β ... | [
" (β n, (coeff R n) Ο β 0) β Ο β 0",
" (Β¬β n, (coeff R n) Ο β 0) β Β¬Ο β 0",
" (β (n : β), (coeff R n) Ο = 0) β Ο = 0",
" Ο.order.Dom β Ο β 0",
" (if h : Ο = 0 then β€ else β(Nat.find β―)).Dom β Ο β 0",
" (if h : Ο = 0 then β€ else β(Nat.find β―)).Dom β Ο β 0",
" β€.Dom β Ο β 0",
" (β(Nat.find β―)).Dom β Ο β ... |
import Mathlib.MeasureTheory.Constructions.Prod.Basic
import Mathlib.MeasureTheory.Group.Measure
#align_import measure_theory.group.prod from "leanprover-community/mathlib"@"fd5edc43dc4f10b85abfe544b88f82cf13c5f844"
noncomputable section
open Set hiding prod_eq
open Function MeasureTheory
open Filter hiding ma... | Mathlib/MeasureTheory/Group/Prod.lean | 108 | 116 | theorem measurable_measure_mul_right (hs : MeasurableSet s) :
Measurable fun x => ΞΌ ((fun y => y * x) β»ΒΉ' s) := by |
suffices
Measurable fun y =>
ΞΌ ((fun x => (x, y)) β»ΒΉ' ((fun z : G Γ G => ((1 : G), z.1 * z.2)) β»ΒΉ' univ ΓΛ’ s))
by convert this using 1; ext1 x; congr 1 with y : 1; simp
apply measurable_measure_prod_mk_right
apply measurable_const.prod_mk measurable_mul (MeasurableSet.univ.prod hs)
infer_instance... | [
" Measurable fun x => ΞΌ ((fun y => y * x) β»ΒΉ' s)",
" (fun x => ΞΌ ((fun y => y * x) β»ΒΉ' s)) = fun y => ΞΌ ((fun x => (x, y)) β»ΒΉ' ((fun z => (1, z.1 * z.2)) β»ΒΉ' univ ΓΛ’ s))",
" ΞΌ ((fun y => y * x) β»ΒΉ' s) = ΞΌ ((fun x_1 => (x_1, x)) β»ΒΉ' ((fun z => (1, z.1 * z.2)) β»ΒΉ' univ ΓΛ’ s))",
" y β (fun y => y * x) β»ΒΉ' s β y ... | [] |
import Mathlib.Data.Finsupp.ToDFinsupp
import Mathlib.LinearAlgebra.Finsupp
import Mathlib.LinearAlgebra.LinearIndependent
#align_import linear_algebra.dfinsupp from "leanprover-community/mathlib"@"a148d797a1094ab554ad4183a4ad6f130358ef64"
variable {ΞΉ : Type*} {R : Type*} {S : Type*} {M : ΞΉ β Type*} {N : Type*}
n... | Mathlib/LinearAlgebra/DFinsupp.lean | 206 | 209 | theorem mapRange.linearMap_id :
(mapRange.linearMap fun i => (LinearMap.id : Ξ²β i ββ[R] _)) = LinearMap.id := by |
ext
simp [linearMap]
| [
" mapRange f hf (r β’ g) = r β’ mapRange f hf g",
" (mapRange f hf (r β’ g)) iβ = (r β’ mapRange f hf g) iβ",
" (linearMap fun i => LinearMap.id) = LinearMap.id",
" (((linearMap fun i => LinearMap.id) ββ lsingle iβΒΉ) xβ) iβ = ((LinearMap.id ββ lsingle iβΒΉ) xβ) iβ"
] | [
" mapRange f hf (r β’ g) = r β’ mapRange f hf g",
" (mapRange f hf (r β’ g)) iβ = (r β’ mapRange f hf g) iβ"
] |
import Mathlib.Topology.Sets.Closeds
#align_import topology.noetherian_space from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988"
variable (Ξ± Ξ² : Type*) [TopologicalSpace Ξ±] [TopologicalSpace Ξ²]
namespace TopologicalSpace
@[mk_iff]
class NoetherianSpace : Prop where
wellFounded_open... | Mathlib/Topology/NoetherianSpace.lean | 53 | 56 | theorem noetherianSpace_iff_opens : NoetherianSpace Ξ± β β s : Opens Ξ±, IsCompact (s : Set Ξ±) := by |
rw [noetherianSpace_iff, CompleteLattice.wellFounded_iff_isSupFiniteCompact,
CompleteLattice.isSupFiniteCompact_iff_all_elements_compact]
exact forall_congr' Opens.isCompactElement_iff
| [
" NoetherianSpace Ξ± β β (s : Opens Ξ±), IsCompact βs",
" (β (k : Opens Ξ±), CompleteLattice.IsCompactElement k) β β (s : Opens Ξ±), IsCompact βs"
] | [] |
import Mathlib.CategoryTheory.Subobject.Lattice
#align_import category_theory.subobject.limits from "leanprover-community/mathlib"@"956af7c76589f444f2e1313911bad16366ea476d"
universe v u
noncomputable section
open CategoryTheory CategoryTheory.Category CategoryTheory.Limits CategoryTheory.Subobject Opposite
var... | Mathlib/CategoryTheory/Subobject/Limits.lean | 98 | 100 | theorem kernelSubobject_arrow :
(kernelSubobjectIso f).hom β« kernel.ΞΉ f = (kernelSubobject f).arrow := by |
simp [kernelSubobjectIso]
| [
" (kernelSubobjectIso f).hom β« kernel.ΞΉ f = (kernelSubobject f).arrow"
] | [] |
import Mathlib.Data.Set.Pairwise.Basic
import Mathlib.Data.Set.Lattice
import Mathlib.Data.SetLike.Basic
#align_import order.chain from "leanprover-community/mathlib"@"c227d107bbada5d0d9d20287e3282c0a7f1651a0"
open scoped Classical
open Set
variable {Ξ± Ξ² : Type*}
section Chain
variable (r : Ξ± β Ξ± β Prop)
... | Mathlib/Order/Chain.lean | 107 | 110 | theorem Monotone.isChain_range [LinearOrder Ξ±] [Preorder Ξ²] {f : Ξ± β Ξ²} (hf : Monotone f) :
IsChain (Β· β€ Β·) (range f) := by |
rw [β image_univ]
exact (isChain_of_trichotomous _).image (Β· β€ Β·) _ _ hf
| [
" IsChain r univ β IsTrichotomous Ξ± r",
" r a b β¨ a = b β¨ r b a",
" Β¬a = b β r a b β¨ r b a",
" IsChain (fun x x_1 => x β€ x_1) (range f)",
" IsChain (fun x x_1 => x β€ x_1) (f '' univ)"
] | [
" IsChain r univ β IsTrichotomous Ξ± r",
" r a b β¨ a = b β¨ r b a",
" Β¬a = b β r a b β¨ r b a"
] |
import Mathlib.AlgebraicTopology.DoldKan.Normalized
#align_import algebraic_topology.dold_kan.homotopy_equivalence from "leanprover-community/mathlib"@"f951e201d416fb50cc7826171d80aa510ec20747"
open CategoryTheory CategoryTheory.Category CategoryTheory.Limits
CategoryTheory.Preadditive Simplicial DoldKan
nonco... | Mathlib/AlgebraicTopology/DoldKan/HomotopyEquivalence.lean | 52 | 58 | theorem homotopyPToId_eventually_constant {q n : β} (hqn : n < q) :
((homotopyPToId X (q + 1)).hom n (n + 1) : X _[n] βΆ X _[n + 1]) =
(homotopyPToId X q).hom n (n + 1) := by |
simp only [homotopyHΟToZero, AlternatingFaceMapComplex.obj_X, Nat.add_eq, Homotopy.trans_hom,
Homotopy.ofEq_hom, Pi.zero_apply, Homotopy.add_hom, Homotopy.compLeft_hom, add_zero,
Homotopy.nullHomotopy'_hom, ComplexShape.down_Rel, hΟ'_eq_zero hqn (c_mk (n + 1) n rfl),
dite_eq_ite, ite_self, comp_zero, zer... | [
" Homotopy (P (q + 1)) (π K[X])",
" P (q + 1) = P q + P q β« HΟ q",
" π K[X] + P q β« 0 = π K[X]",
" (homotopyPToId X (q + 1)).hom n (n + 1) = (homotopyPToId X q).hom n (n + 1)"
] | [
" Homotopy (P (q + 1)) (π K[X])",
" P (q + 1) = P q + P q β« HΟ q",
" π K[X] + P q β« 0 = π K[X]"
] |
import Mathlib.Algebra.DirectSum.Module
import Mathlib.Algebra.Module.Submodule.Basic
#align_import algebra.direct_sum.decomposition from "leanprover-community/mathlib"@"4e861f25ba5ceef42ba0712d8ffeb32f38ad6441"
variable {ΞΉ R M Ο : Type*}
open DirectSum
namespace DirectSum
section AddCommMonoid
variable [Deci... | Mathlib/Algebra/DirectSum/Decomposition.lean | 145 | 147 | theorem degree_eq_of_mem_mem {x : M} {i j : ΞΉ} (hxi : x β β³ i) (hxj : x β β³ j) (hx : x β 0) :
i = j := by |
contrapose! hx; rw [β decompose_of_mem_same β³ hxj, decompose_of_mem_ne β³ hxi hx]
| [
" x = y",
" { decompose' := x, left_inv := xl, right_inv := xr } = y",
" { decompose' := x, left_inv := xl, right_inv := xr } = { decompose' := y, left_inv := yl, right_inv := yr }",
" β (m : M), p m",
" (decompose β³) βx = (of (fun i => β₯(β³ i)) i) x",
" β(((decompose β³) x) i) = x",
" β(((decompose β³) x)... | [
" x = y",
" { decompose' := x, left_inv := xl, right_inv := xr } = y",
" { decompose' := x, left_inv := xl, right_inv := xr } = { decompose' := y, left_inv := yl, right_inv := yr }",
" β (m : M), p m",
" (decompose β³) βx = (of (fun i => β₯(β³ i)) i) x",
" β(((decompose β³) x) i) = x",
" β(((decompose β³) x)... |
import Mathlib.Topology.Sheaves.PUnit
import Mathlib.Topology.Sheaves.Stalks
import Mathlib.Topology.Sheaves.Functors
#align_import topology.sheaves.skyscraper from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a"
noncomputable section
open TopologicalSpace TopCat CategoryTheory CategoryT... | Mathlib/Topology/Sheaves/Skyscraper.lean | 68 | 74 | theorem skyscraperPresheaf_eq_pushforward
[hd : β U : Opens (TopCat.of PUnit.{u + 1}), Decidable (PUnit.unit β U)] :
skyscraperPresheaf pβ A =
ContinuousMap.const (TopCat.of PUnit) pβ _*
skyscraperPresheaf (X := TopCat.of PUnit) PUnit.unit A := by |
convert_to @skyscraperPresheaf X pβ (fun U => hd <| (Opens.map <| ContinuousMap.const _ pβ).obj U)
C _ _ A = _ <;> congr
| [
" (fun U => if pβ β U.unop then A else β€_ C) U = (fun U => if pβ β U.unop then A else β€_ C) V",
" (if pβ β U.unop then A else β€_ C) = if pβ β V.unop then A else β€_ C",
" { obj := fun U => if pβ β U.unop then A else β€_ C,\n map := fun {U V} i =>\n if h : pβ β V.unop then eqToHom β―\n ... | [
" (fun U => if pβ β U.unop then A else β€_ C) U = (fun U => if pβ β U.unop then A else β€_ C) V",
" (if pβ β U.unop then A else β€_ C) = if pβ β V.unop then A else β€_ C",
" { obj := fun U => if pβ β U.unop then A else β€_ C,\n map := fun {U V} i =>\n if h : pβ β V.unop then eqToHom β―\n ... |
import Mathlib.MeasureTheory.Group.Measure
assert_not_exists NormedSpace
namespace MeasureTheory
open Measure TopologicalSpace
open scoped ENNReal
variable {G : Type*} [MeasurableSpace G] {ΞΌ : Measure G} {g : G}
section MeasurableMul
variable [Group G] [MeasurableMul G]
@[to_additive
"Translating a fu... | Mathlib/MeasureTheory/Group/LIntegral.lean | 46 | 49 | theorem lintegral_mul_right_eq_self [IsMulRightInvariant ΞΌ] (f : G β ββ₯0β) (g : G) :
(β«β» x, f (x * g) βΞΌ) = β«β» x, f x βΞΌ := by |
convert (lintegral_map_equiv f <| MeasurableEquiv.mulRight g).symm using 1
simp [map_mul_right_eq_self ΞΌ g]
| [
" β«β» (x : G), f (g * x) βΞΌ = β«β» (x : G), f x βΞΌ",
" ΞΌ = map (β(MeasurableEquiv.mulLeft g)) ΞΌ",
" β«β» (x : G), f (x * g) βΞΌ = β«β» (x : G), f x βΞΌ",
" β«β» (x : G), f x βΞΌ = β«β» (a : G), f a βmap (β(MeasurableEquiv.mulRight g)) ΞΌ"
] | [
" β«β» (x : G), f (g * x) βΞΌ = β«β» (x : G), f x βΞΌ",
" ΞΌ = map (β(MeasurableEquiv.mulLeft g)) ΞΌ"
] |
import Mathlib.Topology.Instances.ENNReal
import Mathlib.MeasureTheory.Measure.Dirac
#align_import probability.probability_mass_function.basic from "leanprover-community/mathlib"@"4ac69b290818724c159de091daa3acd31da0ee6d"
noncomputable section
variable {Ξ± Ξ² Ξ³ : Type*}
open scoped Classical
open NNReal ENNReal M... | Mathlib/Probability/ProbabilityMassFunction/Basic.lean | 136 | 138 | theorem coe_le_one (p : PMF Ξ±) (a : Ξ±) : p a β€ 1 := by |
refine hasSum_le (fun b => ?_) (hasSum_ite_eq a (p a)) (hasSum_coe_one p)
split_ifs with h <;> simp only [h, zero_le', le_rfl]
| [
" p a = 0 β a β p.support",
" p a = 1 β p.support = {a}",
" False",
" 1 < β' (a : Ξ±), p a",
" (p a + β' (b : Ξ±), if b = a then 0 else p b) = (if a = a then p a else 0) + β' (b : Ξ±), if b = a then 0 else p b",
" ((if a = a then p a else 0) + β' (b : Ξ±), if b = a then 0 else p b) =\n (β' (b : Ξ±), if b = ... | [
" p a = 0 β a β p.support",
" p a = 1 β p.support = {a}",
" False",
" 1 < β' (a : Ξ±), p a",
" (p a + β' (b : Ξ±), if b = a then 0 else p b) = (if a = a then p a else 0) + β' (b : Ξ±), if b = a then 0 else p b",
" ((if a = a then p a else 0) + β' (b : Ξ±), if b = a then 0 else p b) =\n (β' (b : Ξ±), if b = ... |
import Mathlib.Data.List.Nodup
#align_import data.list.duplicate from "leanprover-community/mathlib"@"f694c7dead66f5d4c80f446c796a5aad14707f0e"
variable {Ξ± : Type*}
namespace List
inductive Duplicate (x : Ξ±) : List Ξ± β Prop
| cons_mem {l : List Ξ±} : x β l β Duplicate x (x :: l)
| cons_duplicate {y : Ξ±} {l ... | Mathlib/Data/List/Duplicate.lean | 98 | 99 | theorem Duplicate.of_duplicate_cons {y : Ξ±} (h : x β+ y :: l) (hx : x β y) : x β+ l := by |
simpa [duplicate_cons_iff, hx.symm] using h
| [
" x β l",
" x β x :: l'",
" x β y :: l'",
" l β [y]",
" x :: l' β [y]",
" z :: l' β [y]",
" x β+ y :: l β y = x β§ x β l β¨ x β+ l",
" y = x β§ x β l β¨ x β+ l",
" x = x β§ x β l β¨ x β+ l",
" x β+ y :: l",
" x β+ x :: l",
" x β+ l"
] | [
" x β l",
" x β x :: l'",
" x β y :: l'",
" l β [y]",
" x :: l' β [y]",
" z :: l' β [y]",
" x β+ y :: l β y = x β§ x β l β¨ x β+ l",
" y = x β§ x β l β¨ x β+ l",
" x = x β§ x β l β¨ x β+ l",
" x β+ y :: l",
" x β+ x :: l"
] |
import Mathlib.Data.Set.Pointwise.Interval
import Mathlib.Topology.Algebra.Field
import Mathlib.Topology.Algebra.Order.Group
#align_import topology.algebra.order.field from "leanprover-community/mathlib"@"9a59dcb7a2d06bf55da57b9030169219980660cd"
open Set Filter TopologicalSpace Function
open scoped Pointwise Top... | Mathlib/Topology/Algebra/Order/Field.lean | 94 | 97 | theorem Filter.Tendsto.atBot_mul {C : π} (hC : 0 < C) (hf : Tendsto f l atBot)
(hg : Tendsto g l (π C)) : Tendsto (fun x => f x * g x) l atBot := by |
have := (tendsto_neg_atBot_atTop.comp hf).atTop_mul hC hg
simpa [(Β· β Β·)] using tendsto_neg_atTop_atBot.comp this
| [
" TopologicalRing R",
" β (f : R β R), β c β₯ 0, (β (x : R), norm (f x) β€ c * norm x) β Tendsto f (π 0) (π 0)",
" β ia, 0 < ia β§ β x β {x | norm x < ia}, f x β {x | norm x < Ξ΅}",
" c * norm x < Ξ΅",
" β (xβ : R), Tendsto (fun x => x * xβ) (π 0) (π 0)",
" Tendsto (uncurry fun x x_1 => x * x_1) (π 0 ΓΛ’ οΏ½... | [
" TopologicalRing R",
" β (f : R β R), β c β₯ 0, (β (x : R), norm (f x) β€ c * norm x) β Tendsto f (π 0) (π 0)",
" β ia, 0 < ia β§ β x β {x | norm x < ia}, f x β {x | norm x < Ξ΅}",
" c * norm x < Ξ΅",
" β (xβ : R), Tendsto (fun x => x * xβ) (π 0) (π 0)",
" Tendsto (uncurry fun x x_1 => x * x_1) (π 0 ΓΛ’ οΏ½... |
import Mathlib.Algebra.BigOperators.Ring.List
import Mathlib.Data.Nat.ModEq
import Mathlib.Data.Nat.GCD.BigOperators
namespace Nat
variable {ΞΉ : Type*}
lemma modEq_list_prod_iff {a b} {l : List β} (co : l.Pairwise Coprime) :
a β‘ b [MOD l.prod] β β i, a β‘ b [MOD l.get i] := by
induction' l with m l ih
Β· si... | Mathlib/Data/Nat/ChineseRemainder.lean | 93 | 105 | theorem chineseRemainderOfList_modEq_unique (l : List ΞΉ)
(co : l.Pairwise (Coprime on s)) {z} (hz : β i β l, z β‘ a i [MOD s i]) :
z β‘ chineseRemainderOfList a s l co [MOD (l.map s).prod] := by |
induction' l with i l ih
Β· simp [modEq_one]
Β· simp only [List.map_cons, List.prod_cons, chineseRemainderOfList]
have : Coprime (s i) (l.map s).prod := by
simp only [coprime_list_prod_right_iff, List.mem_map, forall_exists_index, and_imp,
forall_apply_eq_imp_iffβ]
intro j hj
exact (L... | [
" a β‘ b [MOD l.prod] β β (i : Fin l.length), a β‘ b [MOD l.get i]",
" a β‘ b [MOD [].prod] β β (i : Fin [].length), a β‘ b [MOD [].get i]",
" a β‘ b [MOD (m :: l).prod] β β (i : Fin (m :: l).length), a β‘ b [MOD (m :: l).get i]",
" (a β‘ b [MOD m] β§ β (i : Fin l.length), a β‘ b [MOD l.get i]) β β (i : Fin l.length.s... | [
" a β‘ b [MOD l.prod] β β (i : Fin l.length), a β‘ b [MOD l.get i]",
" a β‘ b [MOD [].prod] β β (i : Fin [].length), a β‘ b [MOD [].get i]",
" a β‘ b [MOD (m :: l).prod] β β (i : Fin (m :: l).length), a β‘ b [MOD (m :: l).get i]",
" (a β‘ b [MOD m] β§ β (i : Fin l.length), a β‘ b [MOD l.get i]) β β (i : Fin l.length.s... |
import Mathlib.Algebra.Group.Equiv.TypeTags
import Mathlib.GroupTheory.FreeAbelianGroup
import Mathlib.GroupTheory.FreeGroup.IsFreeGroup
import Mathlib.LinearAlgebra.Dimension.StrongRankCondition
#align_import group_theory.free_abelian_group_finsupp from "leanprover-community/mathlib"@"47b51515e69f59bca5cf34ef456e600... | Mathlib/GroupTheory/FreeAbelianGroupFinsupp.lean | 54 | 59 | theorem FreeAbelianGroup.toFinsupp_comp_toFreeAbelianGroup :
toFinsupp.comp toFreeAbelianGroup = AddMonoidHom.id (X ββ β€) := by |
ext x y; simp only [AddMonoidHom.id_comp]
rw [AddMonoidHom.comp_assoc, Finsupp.toFreeAbelianGroup_comp_singleAddHom]
simp only [toFinsupp, AddMonoidHom.coe_comp, Finsupp.singleAddHom_apply, Function.comp_apply,
one_smul, lift.of, AddMonoidHom.flip_apply, smulAddHom_apply, AddMonoidHom.id_apply]
| [
" toFreeAbelianGroup.comp (singleAddHom x) = (smulAddHom β€ (FreeAbelianGroup X)).flip (of x)",
" (toFreeAbelianGroup.comp (singleAddHom x)) 1 = ((smulAddHom β€ (FreeAbelianGroup X)).flip (of x)) 1",
" toFinsupp.comp toFreeAbelianGroup = AddMonoidHom.id (X ββ β€)",
" (((toFinsupp.comp toFreeAbelianGroup).comp (s... | [
" toFreeAbelianGroup.comp (singleAddHom x) = (smulAddHom β€ (FreeAbelianGroup X)).flip (of x)",
" (toFreeAbelianGroup.comp (singleAddHom x)) 1 = ((smulAddHom β€ (FreeAbelianGroup X)).flip (of x)) 1"
] |
import Mathlib.Algebra.Order.Monoid.Unbundled.MinMax
import Mathlib.Algebra.Order.Monoid.WithTop
import Mathlib.Data.Finset.Image
import Mathlib.Data.Multiset.Fold
#align_import data.finset.fold from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853"
-- TODO:
-- assert_not_exists OrderedComm... | Mathlib/Data/Finset/Fold.lean | 50 | 52 | theorem fold_cons (h : a β s) : (cons a s h).fold op b f = f a * s.fold op b f := by |
dsimp only [fold]
rw [cons_val, Multiset.map_cons, fold_cons_left]
| [
" fold op b f (cons a s h) = op (f a) (fold op b f s)",
" Multiset.fold op b (Multiset.map f (cons a s h).val) = op (f a) (Multiset.fold op b (Multiset.map f s.val))"
] | [] |
import Mathlib.Algebra.GradedMonoid
import Mathlib.Algebra.Order.Monoid.Canonical.Defs
import Mathlib.Algebra.MvPolynomial.Basic
#align_import ring_theory.mv_polynomial.weighted_homogeneous from "leanprover-community/mathlib"@"2f5b500a507264de86d666a5f87ddb976e2d8de4"
noncomputable section
open Set Function Fins... | Mathlib/RingTheory/MvPolynomial/WeightedHomogeneous.lean | 168 | 173 | theorem weightedHomogeneousSubmodule_eq_finsupp_supported (w : Ο β M) (m : M) :
weightedHomogeneousSubmodule R w m = Finsupp.supported R R { d | weightedDegree w d = m } := by |
ext x
rw [mem_supported, Set.subset_def]
simp only [Finsupp.mem_support_iff, mem_coe]
rfl
| [
" (weightedDegree w) f = f.sum fun i c => c β’ w i",
" weightedTotalDegree' w p = β₯ β p = 0",
" (β (s : Ο ββ β), coeff s p β 0 β False) β β (d : Ο ββ β), coeff d p = 0",
" weightedTotalDegree' w 0 = β₯",
" (weightedDegree w) c = m",
" coeff c a β 0 β¨ coeff c b β 0",
" coeff c a + coeff c b = 0",
" weigh... | [
" (weightedDegree w) f = f.sum fun i c => c β’ w i",
" weightedTotalDegree' w p = β₯ β p = 0",
" (β (s : Ο ββ β), coeff s p β 0 β False) β β (d : Ο ββ β), coeff d p = 0",
" weightedTotalDegree' w 0 = β₯",
" (weightedDegree w) c = m",
" coeff c a β 0 β¨ coeff c b β 0",
" coeff c a + coeff c b = 0"
] |
import Mathlib.NumberTheory.LegendreSymbol.QuadraticReciprocity
#align_import number_theory.legendre_symbol.jacobi_symbol from "leanprover-community/mathlib"@"74a27133cf29446a0983779e37c8f829a85368f3"
section Jacobi
open Nat ZMod
-- Since we need the fact that the factors are prime, we use `List.pmap`.
def ... | Mathlib/NumberTheory/LegendreSymbol/JacobiSymbol.lean | 331 | 337 | theorem value_at (a : β€) {R : Type*} [CommSemiring R] (Ο : R β* β€)
(hp : β (p : β) (pp : p.Prime), p β 2 β @legendreSym p β¨ppβ© a = Ο p) {b : β} (hb : Odd b) :
J(a | b) = Ο b := by |
conv_rhs => rw [β prod_factors hb.pos.ne', cast_list_prod, map_list_prod Ο]
rw [jacobiSym, List.map_map, β List.pmap_eq_map Nat.Prime _ _ fun _ => prime_of_mem_factors]
congr 1; apply List.pmap_congr
exact fun p h pp _ => hp p pp (hb.ne_two_of_dvd_nat <| dvd_of_mem_factors h)
| [
" J(a | b) = Ο βb",
"a : β€\nR : Type u_1\ninstβ : CommSemiring R\nΟ : R β* β€\nhp : β (p : β) (pp : p.Prime), p β 2 β legendreSym p a = Ο βp\nb : β\nhb : Odd b\n| Ο βb",
" J(a | b) = (List.map (βΟ) (List.map Nat.cast b.factors)).prod",
" (List.pmap (fun p pp => legendreSym p a) b.factors β―).prod =\n (List.p... | [] |
import Mathlib.LinearAlgebra.Dimension.Free
import Mathlib.Algebra.Module.Torsion
#align_import linear_algebra.dimension from "leanprover-community/mathlib"@"47a5f8186becdbc826190ced4312f8199f9db6a5"
noncomputable section
universe u v v' uβ' w w'
variable {R S : Type u} {M : Type v} {M' : Type v'} {Mβ : Type v}... | Mathlib/LinearAlgebra/Dimension/Constructions.lean | 538 | 541 | theorem subalgebra_top_rank_eq_submodule_top_rank :
Module.rank F (β€ : Subalgebra F E) = Module.rank F (β€ : Submodule F E) := by |
rw [β Algebra.top_toSubmodule]
rfl
| [
" Module.rank R (ΞΉ ββ M) = lift.{v, w} #ΞΉ * lift.{w, v} (Module.rank R M)",
" Module.rank R (ΞΉ ββ M) = #ΞΉ * Module.rank R M",
" Module.rank R (ΞΉ ββ R) = lift.{u, w} #ΞΉ",
" Module.rank R (ΞΉ ββ R) = #ΞΉ",
" Module.rank R (β¨ (i : ΞΉ), M i) = sum fun i => Module.rank R (M i)",
" Module.rank R (Matrix m n R) = l... | [
" Module.rank R (ΞΉ ββ M) = lift.{v, w} #ΞΉ * lift.{w, v} (Module.rank R M)",
" Module.rank R (ΞΉ ββ M) = #ΞΉ * Module.rank R M",
" Module.rank R (ΞΉ ββ R) = lift.{u, w} #ΞΉ",
" Module.rank R (ΞΉ ββ R) = #ΞΉ",
" Module.rank R (β¨ (i : ΞΉ), M i) = sum fun i => Module.rank R (M i)",
" Module.rank R (Matrix m n R) = l... |
import Mathlib.Data.Multiset.Bind
import Mathlib.Control.Traversable.Lemmas
import Mathlib.Control.Traversable.Instances
#align_import data.multiset.functor from "leanprover-community/mathlib"@"1f0096e6caa61e9c849ec2adbd227e960e9dff58"
universe u
namespace Multiset
open List
instance functor : Functor Multiset... | Mathlib/Data/Multiset/Functor.lean | 137 | 143 | theorem naturality {G H : Type _ β Type _} [Applicative G] [Applicative H] [CommApplicative G]
[CommApplicative H] (eta : ApplicativeTransformation G H) {Ξ± Ξ² : Type _} (f : Ξ± β G Ξ²)
(x : Multiset Ξ±) : eta (traverse f x) = traverse (@eta _ β f) x := by |
refine Quotient.inductionOn x ?_
intro
simp only [quot_mk_to_coe, traverse, lift_coe, Function.comp_apply,
ApplicativeTransformation.preserves_map, LawfulTraversable.naturality]
| [
" β {Ξ± : Type ?u.133} (x : Multiset Ξ±), id <$> x = x",
" β {Ξ± Ξ² Ξ³ : Type ?u.133} (g : Ξ± β Ξ²) (h : Ξ² β Ξ³) (x : Multiset Ξ±), (h β g) <$> x = h <$> g <$> x",
" Multiset Ξ±' β F (Multiset Ξ²')",
" β (a b : List Ξ±'),\n a β b β (Functor.map Coe.coe β Traversable.traverse f) a = (Functor.map Coe.coe β Traversable.t... | [
" β {Ξ± : Type ?u.133} (x : Multiset Ξ±), id <$> x = x",
" β {Ξ± Ξ² Ξ³ : Type ?u.133} (g : Ξ± β Ξ²) (h : Ξ² β Ξ³) (x : Multiset Ξ±), (h β g) <$> x = h <$> g <$> x",
" Multiset Ξ±' β F (Multiset Ξ²')",
" β (a b : List Ξ±'),\n a β b β (Functor.map Coe.coe β Traversable.traverse f) a = (Functor.map Coe.coe β Traversable.t... |
import Mathlib.Analysis.NormedSpace.IndicatorFunction
import Mathlib.MeasureTheory.Function.EssSup
import Mathlib.MeasureTheory.Function.AEEqFun
import Mathlib.MeasureTheory.Function.SpecialFunctions.Basic
#align_import measure_theory.function.lp_seminorm from "leanprover-community/mathlib"@"c4015acc0a223449d44061e27... | Mathlib/MeasureTheory/Function/LpSeminorm/Basic.lean | 117 | 120 | theorem lintegral_rpow_nnnorm_eq_rpow_snorm' {f : Ξ± β F} (hq0_lt : 0 < q) :
(β«β» a, (βf aββ : ββ₯0β) ^ q βΞΌ) = snorm' f q ΞΌ ^ q := by |
rw [snorm', β ENNReal.rpow_mul, one_div, inv_mul_cancel, ENNReal.rpow_one]
exact (ne_of_lt hq0_lt).symm
| [
" snorm f p ΞΌ = snorm' f p.toReal ΞΌ",
" snorm f p ΞΌ = (β«β» (x : Ξ±), ββf xββ ^ p.toReal βΞΌ) ^ (1 / p.toReal)",
" snorm f 1 ΞΌ = β«β» (x : Ξ±), ββf xββ βΞΌ",
" snorm f β€ ΞΌ = snormEssSup f ΞΌ",
" β«β» (a : Ξ±), ββf aββ ^ q βΞΌ = snorm' f q ΞΌ ^ q",
" q β 0"
] | [
" snorm f p ΞΌ = snorm' f p.toReal ΞΌ",
" snorm f p ΞΌ = (β«β» (x : Ξ±), ββf xββ ^ p.toReal βΞΌ) ^ (1 / p.toReal)",
" snorm f 1 ΞΌ = β«β» (x : Ξ±), ββf xββ βΞΌ",
" snorm f β€ ΞΌ = snormEssSup f ΞΌ"
] |
import Mathlib.Analysis.BoxIntegral.Box.Basic
import Mathlib.Analysis.SpecificLimits.Basic
#align_import analysis.box_integral.box.subbox_induction from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982"
open Set Finset Function Filter Metric Classical Topology Filter ENNReal
noncomputable... | Mathlib/Analysis/BoxIntegral/Box/SubboxInduction.lean | 53 | 62 | theorem mem_splitCenterBox {s : Set ΞΉ} {y : ΞΉ β β} :
y β I.splitCenterBox s β y β I β§ β i, (I.lower i + I.upper i) / 2 < y i β i β s := by |
simp only [splitCenterBox, mem_def, β forall_and]
refine forall_congr' fun i β¦ ?_
dsimp only [Set.piecewise]
split_ifs with hs <;> simp only [hs, iff_true_iff, iff_false_iff, not_lt]
exacts [β¨fun H β¦ β¨β¨(left_lt_add_div_two.2 (I.lower_lt_upper i)).trans H.1, H.2β©, H.1β©,
fun H β¦ β¨H.2, H.1.2β©β©,
β¨fun H... | [
" s.piecewise (fun i => (I.lower i + I.upper i) / 2) I.lower i <\n s.piecewise I.upper (fun i => (I.lower i + I.upper i) / 2) i",
" (if i β s then (I.lower i + I.upper i) / 2 else I.lower i) < if i β s then I.upper i else (I.lower i + I.upper i) / 2",
" (I.lower i + I.upper i) / 2 < I.upper i",
" I.lower i... | [
" s.piecewise (fun i => (I.lower i + I.upper i) / 2) I.lower i <\n s.piecewise I.upper (fun i => (I.lower i + I.upper i) / 2) i",
" (if i β s then (I.lower i + I.upper i) / 2 else I.lower i) < if i β s then I.upper i else (I.lower i + I.upper i) / 2",
" (I.lower i + I.upper i) / 2 < I.upper i",
" I.lower i... |
import Mathlib.CategoryTheory.Preadditive.ProjectiveResolution
import Mathlib.Algebra.Homology.HomotopyCategory
import Mathlib.Tactic.SuppressCompilation
suppress_compilation
noncomputable section
universe v u
namespace CategoryTheory
variable {C : Type u} [Category.{v} C]
open Category Limits Projective
set_... | Mathlib/CategoryTheory/Abelian/ProjectiveResolution.lean | 99 | 102 | theorem lift_commutes {Y Z : C} (f : Y βΆ Z) (P : ProjectiveResolution Y)
(Q : ProjectiveResolution Z) : lift f P Q β« Q.Ο = P.Ο β« (ChainComplex.singleβ C).map f := by |
ext
simp [lift, liftFZero, liftFOne]
| [
" (P.complex.d 1 0 β« liftFZero f P Q) β« (ShortComplex.mk (Q.complex.d 1 0) (Q.Ο.f 0) β―).g = 0",
" liftFOne f P Q β« Q.complex.d 1 0 = P.complex.d 1 0 β« liftFZero f P Q",
" (P.complex.d (n + 2) (n + 1) β« g') β« (ShortComplex.mk (Q.complex.d (n + 2) (n + 1)) (Q.complex.d (n + 1) n) β―).g = 0",
" lift f P Q β« Q.Ο =... | [
" (P.complex.d 1 0 β« liftFZero f P Q) β« (ShortComplex.mk (Q.complex.d 1 0) (Q.Ο.f 0) β―).g = 0",
" liftFOne f P Q β« Q.complex.d 1 0 = P.complex.d 1 0 β« liftFZero f P Q",
" (P.complex.d (n + 2) (n + 1) β« g') β« (ShortComplex.mk (Q.complex.d (n + 2) (n + 1)) (Q.complex.d (n + 1) n) β―).g = 0"
] |
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 | 401 | 407 | theorem nmem_nonZeroDivisors_iff {P : R[X]} : P β R[X]β° β β a : R, a β 0 β§ a β’ P = 0 := by |
refine β¨fun hP β¦ ?_, fun β¨a, ha, hβ© h1 β¦ ha <| C_eq_zero.1 <| (h1 _) <| smul_eq_C_mul a βΈ hβ©
by_contra! h
obtain β¨Q, hQβ© := _root_.nmem_nonZeroDivisors_iff.1 hP
refine hQ.2 (eq_zero_of_mul_eq_zero_of_smul P (fun a ha β¦ ?_) Q (mul_comm P _ βΈ hQ.1))
contrapose! ha
exact h a ha
| [
" IsUnit a",
" IsUnit (C (a.coeff 0))",
" β (Q : R[X]), P * Q = 0 β Q = 0",
" Q = 0",
" Q.leadingCoeff = 0",
" Q.leadingCoeff β’ P = 0",
" β (i : β), P.coeff i β’ Q = 0",
" β n, β m > n, P.coeff m β’ Q = 0",
" β m > P.natDegree, P.coeff m β’ Q = 0",
" P.coeff i β’ Q = 0",
" β (n : β), (β m > n, P.coe... | [
" IsUnit a",
" IsUnit (C (a.coeff 0))",
" β (Q : R[X]), P * Q = 0 β Q = 0",
" Q = 0",
" Q.leadingCoeff = 0",
" Q.leadingCoeff β’ P = 0",
" β (i : β), P.coeff i β’ Q = 0",
" β n, β m > n, P.coeff m β’ Q = 0",
" β m > P.natDegree, P.coeff m β’ Q = 0",
" P.coeff i β’ Q = 0",
" β (n : β), (β m > n, P.coe... |
import Mathlib.Order.Filter.AtTopBot
#align_import order.filter.indicator_function from "leanprover-community/mathlib"@"8631e2d5ea77f6c13054d9151d82b83069680cb1"
variable {Ξ± Ξ² M E : Type*}
open Set Filter
@[to_additive]
| Mathlib/Order/Filter/IndicatorFunction.lean | 63 | 66 | theorem Monotone.mulIndicator_eventuallyEq_iUnion {ΞΉ} [Preorder ΞΉ] [One Ξ²] (s : ΞΉ β Set Ξ±)
(hs : Monotone s) (f : Ξ± β Ξ²) (a : Ξ±) :
(fun i => mulIndicator (s i) f a) =αΆ [atTop] fun _ β¦ mulIndicator (β i, s i) f a := by |
classical exact hs.piecewise_eventually_eq_iUnion f 1 a
| [
" (fun i => (s i).mulIndicator f a) =αΆ [atTop] fun x => (β i, s i).mulIndicator f a"
] | [] |
import Mathlib.Topology.Constructions
#align_import topology.continuous_on from "leanprover-community/mathlib"@"d4f691b9e5f94cfc64639973f3544c95f8d5d494"
open Set Filter Function Topology Filter
variable {Ξ± : Type*} {Ξ² : Type*} {Ξ³ : Type*} {Ξ΄ : Type*}
variable [TopologicalSpace Ξ±]
@[simp]
theorem nhds_bind_nhdsW... | Mathlib/Topology/ContinuousOn.lean | 75 | 76 | theorem nhdsWithin_univ (a : Ξ±) : π[Set.univ] a = π a := by |
rw [nhdsWithin, principal_univ, inf_top_eq]
| [
" (βαΆ (x : Ξ±) in π z, x β s β§ p x) β βαΆ (x : Ξ±) in π z, p x β§ x β s",
" z β closure (s \\ {z}) β βαΆ (x : Ξ±) in π[β ] z, x β s",
" (βαΆ (y : Ξ±) in π[s] a, βαΆ (x : Ξ±) in π[s] y, p x) β βαΆ (x : Ξ±) in π[s] a, p x",
" βαΆ (x : Ξ±) in π[s] a, p x",
" βαΆ (x : Ξ±) in π a, x β s β p x",
" π[univ] a = π a"
] | [
" (βαΆ (x : Ξ±) in π z, x β s β§ p x) β βαΆ (x : Ξ±) in π z, p x β§ x β s",
" z β closure (s \\ {z}) β βαΆ (x : Ξ±) in π[β ] z, x β s",
" (βαΆ (y : Ξ±) in π[s] a, βαΆ (x : Ξ±) in π[s] y, p x) β βαΆ (x : Ξ±) in π[s] a, p x",
" βαΆ (x : Ξ±) in π[s] a, p x",
" βαΆ (x : Ξ±) in π a, x β s β p x"
] |
import Mathlib.Order.Filter.Basic
import Mathlib.Order.Filter.CountableInter
import Mathlib.SetTheory.Cardinal.Ordinal
import Mathlib.SetTheory.Cardinal.Cofinality
open Set Filter Cardinal
universe u
variable {ΞΉ : Type u} {Ξ± Ξ² : Type u} {c : Cardinal.{u}}
class CardinalInterFilter (l : Filter Ξ±) (c : Cardinal.{... | Mathlib/Order/Filter/CardinalInter.lean | 102 | 105 | theorem eventually_cardinal_forall {p : Ξ± β ΞΉ β Prop} (hic : #ΞΉ < c) :
(βαΆ x in l, β i, p x i) β β i, βαΆ x in l, p x i := by |
simp only [Filter.Eventually, setOf_forall]
exact cardinal_iInter_mem hic
| [
" β (S : Set (Set Ξ±)), #βS < β΅β β (β s β S, s β l) β ββ S β l",
" β i, s i β l β β (i : ΞΉ), s i β l",
" (ββ range fun i => s i) β l β β (i : ΞΉ), s i β l",
" (β s_1 β range fun i => s i, s_1 β l) β β (i : ΞΉ), s i β l",
" β i, β (hi : i β S), s i hi β l β β (i : ΞΉ) (hi : i β S), s i hi β l",
" β x, s βx β― β... | [
" β (S : Set (Set Ξ±)), #βS < β΅β β (β s β S, s β l) β ββ S β l",
" β i, s i β l β β (i : ΞΉ), s i β l",
" (ββ range fun i => s i) β l β β (i : ΞΉ), s i β l",
" (β s_1 β range fun i => s i, s_1 β l) β β (i : ΞΉ), s i β l",
" β i, β (hi : i β S), s i hi β l β β (i : ΞΉ) (hi : i β S), s i hi β l",
" β x, s βx β― β... |
import Mathlib.SetTheory.Cardinal.Ordinal
#align_import set_theory.cardinal.continuum from "leanprover-community/mathlib"@"e08a42b2dd544cf11eba72e5fc7bf199d4349925"
namespace Cardinal
universe u v
open Cardinal
def continuum : Cardinal.{u} :=
2 ^ β΅β
#align cardinal.continuum Cardinal.continuum
scoped notat... | Mathlib/SetTheory/Cardinal/Continuum.lean | 52 | 54 | theorem lift_le_continuum {c : Cardinal.{u}} : lift.{v} c β€ π β c β€ π := by |
-- Porting note: added explicit universes
rw [β lift_continuum.{u,v}, lift_le]
| [
" lift.{v, u_1} π = π ",
" π β€ lift.{v, u} c β π β€ c",
" lift.{v, u} c β€ π β c β€ π "
] | [
" lift.{v, u_1} π = π ",
" π β€ lift.{v, u} c β π β€ c"
] |
import Mathlib.CategoryTheory.Adjunction.Whiskering
import Mathlib.CategoryTheory.Sites.PreservesSheafification
#align_import category_theory.sites.adjunction from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a"
namespace CategoryTheory
open GrothendieckTopology CategoryTheory Limits Op... | Mathlib/CategoryTheory/Sites/Adjunction.lean | 148 | 160 | theorem adjunctionToTypes_counit_app_val {G : Type max v u β₯€ D} (adj : G β£ forget D)
(X : Sheaf J D) :
((adjunctionToTypes J adj).counit.app X).val =
sheafifyLift J ((Functor.associator _ _ _).hom β« (adj.whiskerRight _).counit.app _) X.2 := by |
apply sheafifyLift_unique
dsimp only [adjunctionToTypes, Adjunction.comp, NatTrans.comp_app,
instCategorySheaf_comp_val, instCategorySheaf_id_val]
rw [adjunction_counit_app_val]
erw [Category.id_comp, sheafifyMap_sheafifyLift, toSheafify_sheafifyLift]
ext
dsimp [sheafEquivSheafOfTypes, Equivalence.symm... | [
" Function.LeftInverse\n (fun Ξ³ =>\n { val := sheafifyLift J ((A.homEquiv ((sheafToPresheaf J E).obj X) Y.val).symm ((sheafToPresheaf J E).map Ξ³)) β― })\n fun Ξ· => { val := (A.homEquiv X.val Y.val) (toSheafify J (((whiskeringRight Cα΅α΅ E D).obj G).obj X.val) β« Ξ·.val) }",
" (fun Ξ³ =>\n {\n ... | [
" Function.LeftInverse\n (fun Ξ³ =>\n { val := sheafifyLift J ((A.homEquiv ((sheafToPresheaf J E).obj X) Y.val).symm ((sheafToPresheaf J E).map Ξ³)) β― })\n fun Ξ· => { val := (A.homEquiv X.val Y.val) (toSheafify J (((whiskeringRight Cα΅α΅ E D).obj G).obj X.val) β« Ξ·.val) }",
" (fun Ξ³ =>\n {\n ... |
import Mathlib.Algebra.Order.Ring.Basic
import Mathlib.Algebra.Order.Ring.Int
import Mathlib.Algebra.Ring.Divisibility.Basic
import Mathlib.Data.Nat.Cast.Order
#align_import algebra.order.ring.abs from "leanprover-community/mathlib"@"10b4e499f43088dd3bb7b5796184ad5216648ab1"
#align_import data.nat.parity from "leanpr... | Mathlib/Algebra/Order/Ring/Abs.lean | 192 | 193 | theorem abs_dvd (a b : Ξ±) : |a| β£ b β a β£ b := by |
cases' abs_choice a with h h <;> simp only [h, neg_dvd]
| [
" Odd |a| β Odd a",
" |a| β£ b β a β£ b"
] | [
" Odd |a| β Odd a"
] |
import Mathlib.Algebra.IsPrimePow
import Mathlib.Data.Nat.Factorization.Basic
#align_import data.nat.factorization.prime_pow from "leanprover-community/mathlib"@"6ca1a09bc9aa75824bf97388c9e3b441fc4ccf3f"
variable {R : Type*} [CommMonoidWithZero R] (n p : R) (k : β)
theorem IsPrimePow.minFac_pow_factorization_eq ... | Mathlib/Data/Nat/Factorization/PrimePow.lean | 63 | 73 | theorem IsPrimePow.exists_ord_compl_eq_one {n : β} (h : IsPrimePow n) :
β p : β, p.Prime β§ ord_compl[p] n = 1 := by |
rcases eq_or_ne n 0 with (rfl | hn0); Β· cases not_isPrimePow_zero h
rcases isPrimePow_iff_factorization_eq_single.mp h with β¨p, k, hk0, h1β©
rcases em' p.Prime with (pp | pp)
Β· refine absurd ?_ hk0.ne'
simp [β Nat.factorization_eq_zero_of_non_prime n pp, h1]
refine β¨p, pp, ?_β©
refine Nat.eq_of_factoriza... | [
" n.minFac ^ n.factorization n.minFac = n",
" (p ^ k).minFac ^ (p ^ k).factorization (p ^ k).minFac = p ^ k",
" IsPrimePow n",
" IsPrimePow 0",
" 0 < n.factorization n.minFac",
" IsPrimePow n β β p k, 0 < k β§ n.factorization = Finsupp.single p k",
" (β p k, p.Prime β§ 0 < k β§ p ^ k = n) β β p k, 0 < k β§ ... | [
" n.minFac ^ n.factorization n.minFac = n",
" (p ^ k).minFac ^ (p ^ k).factorization (p ^ k).minFac = p ^ k",
" IsPrimePow n",
" IsPrimePow 0",
" 0 < n.factorization n.minFac",
" IsPrimePow n β β p k, 0 < k β§ n.factorization = Finsupp.single p k",
" (β p k, p.Prime β§ 0 < k β§ p ^ k = n) β β p k, 0 < k β§ ... |
import Mathlib.GroupTheory.OrderOfElement
import Mathlib.Data.Finset.NoncommProd
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Nat.GCD.BigOperators
import Mathlib.Order.SupIndep
#align_import group_theory.noncomm_pi_coprod from "leanprover-community/mathlib"@"6f9f36364eae3f42368b04858fd66d6d9ae730d8"
... | Mathlib/GroupTheory/NoncommPiCoprod.lean | 125 | 137 | theorem noncommPiCoprod_mulSingle (i : ΞΉ) (y : N i) :
noncommPiCoprod Ο hcomm (Pi.mulSingle i y) = Ο i y := by |
change Finset.univ.noncommProd (fun j => Ο j (Pi.mulSingle i y j)) (fun _ _ _ _ h => hcomm h _ _)
= Ο i y
rw [β Finset.insert_erase (Finset.mem_univ i)]
rw [Finset.noncommProd_insert_of_not_mem _ _ _ _ (Finset.not_mem_erase i _)]
rw [Pi.mulSingle_eq_same]
rw [Finset.noncommProd_eq_pow_card]
Β· rw [one_p... | [
" (fun f => Finset.univ.noncommProd (fun i => (Ο i) (f i)) β―) 1 = 1",
" β x β Finset.univ, (Ο x) (1 x) = 1",
" { toFun := fun f => Finset.univ.noncommProd (fun i => (Ο i) (f i)) β―, map_one' := β― }.toFun (f * g) =\n { toFun := fun f => Finset.univ.noncommProd (fun i => (Ο i) (f i)) β―, map_one' := β― }.toFun f ... | [
" (fun f => Finset.univ.noncommProd (fun i => (Ο i) (f i)) β―) 1 = 1",
" β x β Finset.univ, (Ο x) (1 x) = 1",
" { toFun := fun f => Finset.univ.noncommProd (fun i => (Ο i) (f i)) β―, map_one' := β― }.toFun (f * g) =\n { toFun := fun f => Finset.univ.noncommProd (fun i => (Ο i) (f i)) β―, map_one' := β― }.toFun f ... |
import Mathlib.NumberTheory.ZetaValues
import Mathlib.NumberTheory.LSeries.RiemannZeta
open Complex Real Set
open scoped Nat
namespace HurwitzZeta
variable {k : β} {x : β}
theorem cosZeta_two_mul_nat (hk : k β 0) (hx : x β Icc 0 1) :
cosZeta x (2 * k) = (-1) ^ (k + 1) * (2 * Ο) ^ (2 * k) / 2 / (2 * k)! *
... | Mathlib/NumberTheory/LSeries/HurwitzZetaValues.lean | 113 | 124 | theorem sinZeta_two_mul_nat_add_one' (hk : k β 0) (hx : x β Icc (0 : β) 1) :
sinZeta x (2 * k + 1) = (-1) ^ (k + 1) / (2 * k + 1) / Gammaβ (2 * k + 1) *
((Polynomial.bernoulli (2 * k + 1)).map (algebraMap β β)).eval (x : β) := by |
rw [sinZeta_two_mul_nat_add_one hk hx]
congr 1
have : (2 * k + 1)! = (2 * k + 1) * Complex.Gamma (2 * k + 1) := by
rw [(by simp : Complex.Gamma (2 * k + 1) = Complex.Gamma (β(2 * k) + 1)),
Complex.Gamma_nat_eq_factorial, β Nat.cast_ofNat (R := β), β Nat.cast_mul,
β Nat.cast_add_one, β Nat.cast_m... | [
" cosZeta (βx) (2 * βk) =\n (-1) ^ (k + 1) * (2 * βΟ) ^ (2 * k) / 2 / β(2 * k)! *\n Polynomial.eval (βx) (Polynomial.map (algebraMap β β) (Polynomial.bernoulli (2 * k)))",
" 1 < (2 * βk).re",
" β' (b : β), β(2 * Ο * x * βb).cos / βb ^ (2 * βk) = β(β' (b : β), 1 / βb ^ (2 * k) * (2 * Ο * βb * x).cos)",
... | [
" cosZeta (βx) (2 * βk) =\n (-1) ^ (k + 1) * (2 * βΟ) ^ (2 * k) / 2 / β(2 * k)! *\n Polynomial.eval (βx) (Polynomial.map (algebraMap β β) (Polynomial.bernoulli (2 * k)))",
" 1 < (2 * βk).re",
" β' (b : β), β(2 * Ο * x * βb).cos / βb ^ (2 * βk) = β(β' (b : β), 1 / βb ^ (2 * k) * (2 * Ο * βb * x).cos)",
... |
import Mathlib.Data.Fin.VecNotation
import Mathlib.GroupTheory.Abelianization
import Mathlib.GroupTheory.Perm.ViaEmbedding
import Mathlib.GroupTheory.Subgroup.Simple
import Mathlib.SetTheory.Cardinal.Basic
#align_import group_theory.solvable from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd298... | Mathlib/GroupTheory/Solvable.lean | 56 | 59 | theorem derivedSeries_normal (n : β) : (derivedSeries G n).Normal := by |
induction' n with n ih
Β· exact (β€ : Subgroup G).normal_of_characteristic
Β· exact @Subgroup.commutator_normal G _ (derivedSeries G n) (derivedSeries G n) ih ih
| [
" (derivedSeries G n).Normal",
" (derivedSeries G 0).Normal",
" (derivedSeries G (n + 1)).Normal"
] | [] |
import Mathlib.Algebra.Order.Field.Basic
import Mathlib.Data.Nat.Cast.Order
import Mathlib.Data.Nat.Choose.Basic
import Mathlib.Data.Nat.Cast.Order
#align_import data.nat.choose.bounds from "leanprover-community/mathlib"@"550b58538991c8977703fdeb7c9d51a5aa27df11"
open Nat
variable {Ξ± : Type*} [LinearOrderedSemif... | Mathlib/Data/Nat/Choose/Bounds.lean | 32 | 37 | theorem choose_le_pow (r n : β) : (n.choose r : Ξ±) β€ (n ^ r : Ξ±) / r ! := by |
rw [le_div_iff']
Β· norm_cast
rw [β Nat.descFactorial_eq_factorial_mul_choose]
exact n.descFactorial_le_pow r
exact mod_cast r.factorial_pos
| [
" β(n.choose r) β€ βn ^ r / βr !",
" βr ! * β(n.choose r) β€ βn ^ r",
" r ! * n.choose r β€ n ^ r",
" n.descFactorial r β€ n ^ r",
" 0 < βr !"
] | [] |
import Mathlib.GroupTheory.Solvable
import Mathlib.FieldTheory.PolynomialGaloisGroup
import Mathlib.RingTheory.RootsOfUnity.Basic
#align_import field_theory.abel_ruffini from "leanprover-community/mathlib"@"e3f4be1fcb5376c4948d7f095bec45350bfb9d1a"
noncomputable section
open scoped Classical Polynomial Intermedi... | Mathlib/FieldTheory/AbelRuffini.lean | 49 | 49 | theorem gal_X_isSolvable : IsSolvable (X : F[X]).Gal := by | infer_instance
| [
" IsSolvable (Gal 0)",
" IsSolvable (Gal 1)",
" IsSolvable (C x).Gal",
" IsSolvable X.Gal"
] | [
" IsSolvable (Gal 0)",
" IsSolvable (Gal 1)",
" IsSolvable (C x).Gal"
] |
import Mathlib.Data.List.Infix
#align_import data.list.rdrop from "leanprover-community/mathlib"@"26f081a2fb920140ed5bc5cc5344e84bcc7cb2b2"
-- Make sure we don't import algebra
assert_not_exists Monoid
variable {Ξ± : Type*} (p : Ξ± β Bool) (l : List Ξ±) (n : β)
namespace List
def rdrop : List Ξ± :=
l.take (l.leng... | Mathlib/Data/List/DropRight.lean | 179 | 181 | theorem dropWhile_idempotent : dropWhile p (dropWhile p l) = dropWhile p l := by |
simp only [dropWhile_eq_self_iff]
exact fun h => dropWhile_nthLe_zero_not p l h
| [
" [].rdrop n = []",
" l.rdrop 0 = l",
" l.rdrop n = (drop n l.reverse).reverse",
" take (l.length - n) l = (drop n l.reverse).reverse",
" take ([].length - n) [] = (drop n [].reverse).reverse",
" take ((xs ++ [x]).length - n) (xs ++ [x]) = (drop n (xs ++ [x]).reverse).reverse",
" take ((xs ++ [x]).lengt... | [
" [].rdrop n = []",
" l.rdrop 0 = l",
" l.rdrop n = (drop n l.reverse).reverse",
" take (l.length - n) l = (drop n l.reverse).reverse",
" take ([].length - n) [] = (drop n [].reverse).reverse",
" take ((xs ++ [x]).length - n) (xs ++ [x]) = (drop n (xs ++ [x]).reverse).reverse",
" take ((xs ++ [x]).lengt... |
import Mathlib.Algebra.Polynomial.FieldDivision
import Mathlib.FieldTheory.Minpoly.Basic
import Mathlib.RingTheory.Algebraic
#align_import field_theory.minpoly.field from "leanprover-community/mathlib"@"cbdf7b565832144d024caa5a550117c6df0204a5"
open scoped Classical
open Polynomial Set Function minpoly
namespace... | Mathlib/FieldTheory/Minpoly/Field.lean | 86 | 90 | theorem dvd_map_of_isScalarTower (A K : Type*) {R : Type*} [CommRing A] [Field K] [CommRing R]
[Algebra A K] [Algebra A R] [Algebra K R] [IsScalarTower A K R] (x : R) :
minpoly K x β£ (minpoly A x).map (algebraMap A K) := by |
refine minpoly.dvd K x ?_
rw [aeval_map_algebraMap, minpoly.aeval]
| [
" (Polynomial.aeval x) (p * C p.leadingCoeffβ»ΒΉ) = 0",
" p = minpoly A x",
" minpoly A x = p",
" minpoly A x - p = 0",
" False",
" (Polynomial.aeval x) (minpoly A x - p) = 0",
" (minpoly A x - p).degree < (minpoly A x).degree",
" (minpoly A x).leadingCoeff = p.leadingCoeff",
" (minpoly A x).degree = ... | [
" (Polynomial.aeval x) (p * C p.leadingCoeffβ»ΒΉ) = 0",
" p = minpoly A x",
" minpoly A x = p",
" minpoly A x - p = 0",
" False",
" (Polynomial.aeval x) (minpoly A x - p) = 0",
" (minpoly A x - p).degree < (minpoly A x).degree",
" (minpoly A x).leadingCoeff = p.leadingCoeff",
" (minpoly A x).degree = ... |
import Mathlib.SetTheory.Game.Basic
import Mathlib.Tactic.NthRewrite
#align_import set_theory.game.impartial from "leanprover-community/mathlib"@"2e0975f6a25dd3fbfb9e41556a77f075f6269748"
universe u
namespace SetTheory
open scoped PGame
namespace PGame
def ImpartialAux : PGame β Prop
| G => (G β -G) β§ (β i... | Mathlib/SetTheory/Game/Impartial.lean | 35 | 38 | theorem impartialAux_def {G : PGame} :
G.ImpartialAux β
(G β -G) β§ (β i, ImpartialAux (G.moveLeft i)) β§ β j, ImpartialAux (G.moveRight j) := by |
rw [ImpartialAux]
| [
" G.ImpartialAux β\n G β -G β§ (β (i : G.LeftMoves), (G.moveLeft i).ImpartialAux) β§ β (j : G.RightMoves), (G.moveRight j).ImpartialAux"
] | [] |
import Mathlib.Data.Finset.Pointwise
#align_import combinatorics.additive.e_transform from "leanprover-community/mathlib"@"207c92594599a06e7c134f8d00a030a83e6c7259"
open MulOpposite
open Pointwise
variable {Ξ± : Type*} [DecidableEq Ξ±]
namespace Finset
section Group
variable [Group Ξ±] (e : Ξ±) (x : Finset... | Mathlib/Combinatorics/Additive/ETransform.lean | 142 | 145 | theorem mulETransformLeft.fst_mul_snd_subset :
(mulETransformLeft e x).1 * (mulETransformLeft e x).2 β x.1 * x.2 := by |
refine inter_mul_union_subset_union.trans (union_subset Subset.rfl ?_)
rw [op_smul_finset_mul_eq_mul_smul_finset, smul_inv_smul]
| [
" mulETransformLeft 1 x = x",
" mulETransformRight 1 x = x",
" (mulETransformLeft e x).1 * (mulETransformLeft e x).2 β x.1 * x.2",
" op e β’ x.1 * eβ»ΒΉ β’ x.2 β x.1 * x.2"
] | [
" mulETransformLeft 1 x = x",
" mulETransformRight 1 x = x"
] |
import Mathlib.Topology.ContinuousFunction.ZeroAtInfty
open Topology Filter
variable {E F π : Type*}
variable [SeminormedAddGroup E] [SeminormedAddCommGroup F]
variable [FunLike π E F] [ZeroAtInftyContinuousMapClass π E F]
| Mathlib/Analysis/Normed/Group/ZeroAtInfty.lean | 24 | 34 | theorem ZeroAtInftyContinuousMapClass.norm_le (f : π) (Ξ΅ : β) (hΞ΅ : 0 < Ξ΅) :
β (r : β), β (x : E) (_hx : r < βxβ), βf xβ < Ξ΅ := by |
have h := zero_at_infty f
rw [tendsto_zero_iff_norm_tendsto_zero, tendsto_def] at h
specialize h (Metric.ball 0 Ξ΅) (Metric.ball_mem_nhds 0 hΞ΅)
rcases Metric.closedBall_compl_subset_of_mem_cocompact h 0 with β¨r, hrβ©
use r
intro x hr'
suffices x β (fun x β¦ βf xβ) β»ΒΉ' Metric.ball 0 Ξ΅ by aesop
apply hr
a... | [
" β r, β (x : E), r < βxβ β βf xβ < Ξ΅",
" β (x : E), r < βxβ β βf xβ < Ξ΅",
" βf xβ < Ξ΅",
" x β (fun x => βf xβ) β»ΒΉ' Metric.ball 0 Ξ΅",
" x β (Metric.closedBall 0 r)αΆ"
] | [] |
import Mathlib.Algebra.Order.Monoid.Unbundled.MinMax
import Mathlib.Algebra.Order.Monoid.WithTop
import Mathlib.Data.Finset.Image
import Mathlib.Data.Multiset.Fold
#align_import data.finset.fold from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853"
-- TODO:
-- assert_not_exists OrderedComm... | Mathlib/Data/Finset/Fold.lean | 83 | 85 | theorem fold_op_distrib {f g : Ξ± β Ξ²} {bβ bβ : Ξ²} :
(s.fold op (bβ * bβ) fun x => f x * g x) = s.fold op bβ f * s.fold op bβ g := by |
simp only [fold, fold_distrib]
| [
" fold op b f (cons a s h) = op (f a) (fold op b f s)",
" Multiset.fold op b (Multiset.map f (cons a s h).val) = op (f a) (Multiset.fold op b (Multiset.map f s.val))",
" fold op b f (insert a s) = op (f a) (fold op b f s)",
" Multiset.fold op b (Multiset.map f (insert a s).val) = op (f a) (Multiset.fold op b ... | [
" fold op b f (cons a s h) = op (f a) (fold op b f s)",
" Multiset.fold op b (Multiset.map f (cons a s h).val) = op (f a) (Multiset.fold op b (Multiset.map f s.val))",
" fold op b f (insert a s) = op (f a) (fold op b f s)",
" Multiset.fold op b (Multiset.map f (insert a s).val) = op (f a) (Multiset.fold op b ... |
import Mathlib.CategoryTheory.Sites.Sheaf
import Mathlib.CategoryTheory.Sites.CoverLifting
import Mathlib.CategoryTheory.Adjunction.FullyFaithful
#align_import category_theory.sites.dense_subsite from "leanprover-community/mathlib"@"1d650c2e131f500f3c17f33b4d19d2ea15987f2c"
universe w v u
namespace CategoryTheory... | Mathlib/CategoryTheory/Sites/DenseSubsite.lean | 133 | 141 | theorem functorPullback_pushforward_covering [Full G] {X : C}
(T : K (G.obj X)) : (T.val.functorPullback G).functorPushforward G β K (G.obj X) := by |
refine K.superset_covering ?_ (K.bind_covering T.property
fun Y f _ => G.is_cover_of_isCoverDense K Y)
rintro Y _ β¨Z, _, f, hf, β¨W, g, f', β¨rflβ©β©, rflβ©
use W; use G.preimage (f' β« f); use g
constructor
Β· simpa using T.val.downward_closed hf f'
Β· simp
| [
" (g β« fβ) β« fβ = g β« fβ",
" π (G.obj Y) β« f = f",
" Sieve.coverByImage G U β K.sieves U",
" Sieve.coverByImage G B β K.sieves B",
" Sieve.generate (Presieve.singleton f) β€ Sieve.coverByImage G B",
" (Sieve.coverByImage G B).arrows f",
" s = t",
" β β¦Y : Dβ¦ β¦f : Y βΆ Xβ¦, (Sieve.coverByImage G X).arrow... | [
" (g β« fβ) β« fβ = g β« fβ",
" π (G.obj Y) β« f = f",
" Sieve.coverByImage G U β K.sieves U",
" Sieve.coverByImage G B β K.sieves B",
" Sieve.generate (Presieve.singleton f) β€ Sieve.coverByImage G B",
" (Sieve.coverByImage G B).arrows f",
" s = t",
" β β¦Y : Dβ¦ β¦f : Y βΆ Xβ¦, (Sieve.coverByImage G X).arrow... |
import Mathlib.MeasureTheory.Constructions.BorelSpace.Order
#align_import measure_theory.constructions.borel_space.basic from "leanprover-community/mathlib"@"9f55d0d4363ae59948c33864cbc52e0b12e0e8ce"
open Set Filter MeasureTheory MeasurableSpace
open scoped Classical Topology NNReal ENNReal MeasureTheory
univers... | Mathlib/MeasureTheory/Constructions/BorelSpace/Real.lean | 56 | 66 | theorem borel_eq_generateFrom_Ioi_rat : borel β = .generateFrom (β a : β, {Ioi (a : β)}) := by |
rw [borel_eq_generateFrom_Ioi]
refine le_antisymm
(generateFrom_le ?_)
(generateFrom_mono <| iUnion_subset fun q β¦ singleton_subset_iff.mpr <| mem_range_self _)
rintro _ β¨a, rflβ©
have : IsGLB (range ((β) : β β β) β© Ioi a) a := by
simp [isGLB_iff_le_iff, mem_lowerBounds, β le_iff_forall_lt_rat_imp_l... | [
" borel β = generateFrom (β a, {Iio βa})",
" generateFrom (range Iio) = generateFrom (β a, {Iio βa})",
" β t β range Iio, MeasurableSet t",
" MeasurableSet (Iio a)",
" IsLUB (range Rat.cast β© Iio a) a",
" MeasurableSet (β y β Rat.cast β»ΒΉ' Iio a, Iio βy)",
" Iio βb β β a, {Iio βa}",
" borel β = generat... | [
" borel β = generateFrom (β a, {Iio βa})",
" generateFrom (range Iio) = generateFrom (β a, {Iio βa})",
" β t β range Iio, MeasurableSet t",
" MeasurableSet (Iio a)",
" IsLUB (range Rat.cast β© Iio a) a",
" MeasurableSet (β y β Rat.cast β»ΒΉ' Iio a, Iio βy)",
" Iio βb β β a, {Iio βa}"
] |
import Mathlib.SetTheory.Cardinal.Finite
#align_import data.finite.card from "leanprover-community/mathlib"@"3ff3f2d6a3118b8711063de7111a0d77a53219a8"
noncomputable section
open scoped Classical
variable {Ξ± Ξ² Ξ³ : Type*}
def Finite.equivFin (Ξ± : Type*) [Finite Ξ±] : Ξ± β Fin (Nat.card Ξ±) := by
have := (Finite.... | Mathlib/Data/Finite/Card.lean | 83 | 85 | theorem one_lt_card_iff_nontrivial [Finite Ξ±] : 1 < Nat.card Ξ± β Nontrivial Ξ± := by |
haveI := Fintype.ofFinite Ξ±
simp only [Nat.card_eq_fintype_card, Fintype.one_lt_card_iff_nontrivial]
| [
" Ξ± β Fin (Nat.card Ξ±)",
" Ξ± β Fin n",
" Nat.card Ξ± = if h : Finite Ξ± then Fintype.card Ξ± else 0",
" 0 < Nat.card Ξ± β Nonempty Ξ±",
" Nat.card Ξ± = Nat.card Ξ² β Nonempty (Ξ± β Ξ²)",
" Nat.card Ξ± β€ 1 β Subsingleton Ξ±",
" 1 < Nat.card Ξ± β Nontrivial Ξ±"
] | [
" Ξ± β Fin (Nat.card Ξ±)",
" Ξ± β Fin n",
" Nat.card Ξ± = if h : Finite Ξ± then Fintype.card Ξ± else 0",
" 0 < Nat.card Ξ± β Nonempty Ξ±",
" Nat.card Ξ± = Nat.card Ξ² β Nonempty (Ξ± β Ξ²)",
" Nat.card Ξ± β€ 1 β Subsingleton Ξ±"
] |
import Mathlib.Algebra.Algebra.Bilinear
import Mathlib.RingTheory.Localization.Basic
#align_import algebra.module.localized_module from "leanprover-community/mathlib"@"831c494092374cfe9f50591ed0ac81a25efc5b86"
section IsLocalizedModule
universe u v
variable {R : Type*} [CommSemiring R] (S : Submonoid R)
variabl... | Mathlib/Algebra/Module/LocalizedModule.lean | 574 | 588 | theorem IsLocalizedModule.of_linearEquiv (e : M' ββ[R] M'') [hf : IsLocalizedModule S f] :
IsLocalizedModule S (e ββ f : M ββ[R] M'') where
map_units s := by |
rw [show algebraMap R (Module.End R M'') s = e ββ (algebraMap R (Module.End R M') s) ββ e.symm
by ext; simp, Module.End_isUnit_iff, LinearMap.coe_comp, LinearMap.coe_comp,
LinearEquiv.coe_coe, LinearEquiv.coe_coe, EquivLike.comp_bijective, EquivLike.bijective_comp]
exact (Module.End_isUnit_iff _).m... | [
" f xβ = f xβ",
" IsUnit ((algebraMap R (Module.End R M'')) βs)",
" (algebraMap R (Module.End R M'')) βs = βe ββ (algebraMap R (Module.End R M')) βs ββ βe.symm",
" ((algebraMap R (Module.End R M'')) βs) xβ = (βe ββ (algebraMap R (Module.End R M')) βs ββ βe.symm) xβ",
" Function.Bijective β((algebraMap R (Mo... | [
" f xβ = f xβ"
] |
import Mathlib.Algebra.Field.Basic
import Mathlib.Algebra.GroupWithZero.Units.Equiv
import Mathlib.Algebra.Order.Field.Defs
import Mathlib.Algebra.Order.Ring.Abs
import Mathlib.Order.Bounds.OrderIso
import Mathlib.Tactic.Positivity.Core
#align_import algebra.order.field.basic from "leanprover-community/mathlib"@"8477... | Mathlib/Algebra/Order/Field/Basic.lean | 86 | 86 | theorem lt_div_iff' (hc : 0 < c) : a < b / c β c * a < b := by | rw [mul_comm, lt_div_iff hc]
| [
" a β€ b / c β c * a β€ b",
" a = a / b * b",
" c * b / b = c",
" a / b β€ c β a β€ b * c",
" a / b β€ c β a / c β€ b",
" a < b / c β c * a < b"
] | [
" a β€ b / c β c * a β€ b",
" a = a / b * b",
" c * b / b = c",
" a / b β€ c β a β€ b * c",
" a / b β€ c β a / c β€ b"
] |
import Mathlib.CategoryTheory.Limits.Types
import Mathlib.CategoryTheory.IsConnected
import Mathlib.CategoryTheory.Limits.Final
import Mathlib.CategoryTheory.Conj
universe w v u
namespace CategoryTheory.Limits.Types
variable (C : Type u) [Category.{v} C]
def constPUnitFunctor : C β₯€ Type w := (Functor.const C).o... | Mathlib/CategoryTheory/Limits/IsConnected.lean | 87 | 93 | theorem zigzag_of_eqvGen_quot_rel (F : C β₯€ Type w) (c d : Ξ£ j, F.obj j)
(h : EqvGen (Quot.Rel F) c d) : Zigzag c.1 d.1 := by |
induction h with
| rel _ _ h => exact Zigzag.of_hom <| Exists.choose h
| refl _ => exact Zigzag.refl _
| symm _ _ _ ih => exact zigzag_symmetric ih
| trans _ _ _ _ _ ihβ ihβ => exact ihβ.trans ihβ
| [
" (pUnitCocone C).ΞΉ.app j β« (fun s => s.ΞΉ.app Classical.ofNonempty) s = s.ΞΉ.app j",
" ((pUnitCocone C).ΞΉ.app j β« (fun s => s.ΞΉ.app Classical.ofNonempty) s) PUnit.unit = s.ΞΉ.app j PUnit.unit",
" β (jβ jβ : C), (jβ βΆ jβ) β s.ΞΉ.app jβ PUnit.unit = s.ΞΉ.app jβ PUnit.unit",
" s.ΞΉ.app X PUnit.unit = s.ΞΉ.app Y PUnit.... | [
" (pUnitCocone C).ΞΉ.app j β« (fun s => s.ΞΉ.app Classical.ofNonempty) s = s.ΞΉ.app j",
" ((pUnitCocone C).ΞΉ.app j β« (fun s => s.ΞΉ.app Classical.ofNonempty) s) PUnit.unit = s.ΞΉ.app j PUnit.unit",
" β (jβ jβ : C), (jβ βΆ jβ) β s.ΞΉ.app jβ PUnit.unit = s.ΞΉ.app jβ PUnit.unit",
" s.ΞΉ.app X PUnit.unit = s.ΞΉ.app Y PUnit.... |
import Mathlib.Combinatorics.SetFamily.Shadow
#align_import combinatorics.set_family.compression.uv from "leanprover-community/mathlib"@"6f8ab7de1c4b78a68ab8cf7dd83d549eb78a68a1"
open Finset
variable {Ξ± : Type*}
| Mathlib/Combinatorics/SetFamily/Compression/UV.lean | 57 | 64 | theorem sup_sdiff_injOn [GeneralizedBooleanAlgebra Ξ±] (u v : Ξ±) :
{ x | Disjoint u x β§ v β€ x }.InjOn fun x => (x β u) \ v := by |
rintro a ha b hb hab
have h : ((a β u) \ v) \ u β v = ((b β u) \ v) \ u β v := by
dsimp at hab
rw [hab]
rwa [sdiff_sdiff_comm, ha.1.symm.sup_sdiff_cancel_right, sdiff_sdiff_comm,
hb.1.symm.sup_sdiff_cancel_right, sdiff_sup_cancel ha.2, sdiff_sup_cancel hb.2] at h
| [
" Set.InjOn (fun x => (x β u) \\ v) {x | Disjoint u x β§ v β€ x}",
" a = b",
" ((a β u) \\ v) \\ u β v = ((b β u) \\ v) \\ u β v"
] | [] |
import Mathlib.Algebra.Order.Ring.Int
import Mathlib.Data.Nat.SuccPred
#align_import data.int.succ_pred from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853"
open Function Order
namespace Int
-- so that Lean reads `Int.succ` through `SuccOrder.succ`
@[instance] abbrev instSuccOrder : Su... | Mathlib/Data/Int/SuccPred.lean | 79 | 79 | theorem sub_one_covBy (z : β€) : z - 1 β z := by | rw [Int.covBy_iff_succ_eq, sub_add_cancel]
| [
" succ^[n + 1] a = a + β(n + 1)",
" (succ β succ^[n]) a = a + βn + 1",
" pred^[n + 1] a = a - β(n + 1)",
" (pred β pred^[n]) a = a - βn - 1",
" Order.succ^[(b - a).toNat] a = b",
" Order.pred^[(b - a).toNat] b = a",
" z - 1 β z"
] | [
" succ^[n + 1] a = a + β(n + 1)",
" (succ β succ^[n]) a = a + βn + 1",
" pred^[n + 1] a = a - β(n + 1)",
" (pred β pred^[n]) a = a - βn - 1",
" Order.succ^[(b - a).toNat] a = b",
" Order.pred^[(b - a).toNat] b = a"
] |
import Mathlib.Tactic.CategoryTheory.Elementwise
import Mathlib.CategoryTheory.Limits.Shapes.Multiequalizer
import Mathlib.CategoryTheory.Limits.Constructions.EpiMono
import Mathlib.CategoryTheory.Limits.Preserves.Limits
import Mathlib.CategoryTheory.Limits.Shapes.Types
#align_import category_theory.glue_data from "l... | Mathlib/CategoryTheory/GlueData.lean | 99 | 105 | theorem t_inv (i j : D.J) : D.t i j β« D.t j i = π _ := by |
have eq : (pullbackSymmetry (D.f i i) (D.f i j)).hom = pullback.snd β« inv pullback.fst := by simp
have := D.cocycle i j i
rw [D.t'_iij, D.t'_jii, D.t'_iji, fst_eq_snd_of_mono_eq, eq] at this
simp only [Category.assoc, IsIso.inv_hom_id_assoc] at this
rw [β IsIso.eq_inv_comp, β Category.assoc, IsIso.comp_inv_e... | [
" D.t' i i j = (pullbackSymmetry (D.f i i) (D.f i j)).hom",
" D.t' j i i = pullback.fst β« D.t j i β« inv pullback.snd",
" D.t' j i i = (D.t' j i i β« pullback.snd) β« inv pullback.snd",
" D.t' i j i = pullback.fst β« D.t i j β« inv pullback.snd",
" D.t' i j i = (D.t' i j i β« pullback.snd) β« inv pullback.snd",
... | [
" D.t' i i j = (pullbackSymmetry (D.f i i) (D.f i j)).hom",
" D.t' j i i = pullback.fst β« D.t j i β« inv pullback.snd",
" D.t' j i i = (D.t' j i i β« pullback.snd) β« inv pullback.snd",
" D.t' i j i = pullback.fst β« D.t i j β« inv pullback.snd",
" D.t' i j i = (D.t' i j i β« pullback.snd) β« inv pullback.snd"
] |
import Mathlib.MeasureTheory.PiSystem
import Mathlib.Order.OmegaCompletePartialOrder
import Mathlib.Topology.Constructions
import Mathlib.MeasureTheory.MeasurableSpace.Basic
open Set
namespace MeasureTheory
variable {ΞΉ : Type _} {Ξ± : ΞΉ β Type _}
section cylinder
def cylinder (s : Finset ΞΉ) (S : Set (β i : s, Ξ±... | Mathlib/MeasureTheory/Constructions/Cylinders.lean | 161 | 162 | theorem cylinder_empty (s : Finset ΞΉ) : cylinder s (β
: Set (β i : s, Ξ± i)) = β
:= by |
rw [cylinder, preimage_empty]
| [
" cylinder s β
= β
"
] | [] |
import Mathlib.CategoryTheory.Closed.Cartesian
import Mathlib.CategoryTheory.Limits.Preserves.Shapes.BinaryProducts
import Mathlib.CategoryTheory.Adjunction.FullyFaithful
#align_import category_theory.closed.functor from "leanprover-community/mathlib"@"cea27692b3fdeb328a2ddba6aabf181754543184"
noncomputable secti... | Mathlib/CategoryTheory/Closed/Functor.lean | 166 | 168 | theorem expComparison_iso_of_frobeniusMorphism_iso (h : L β£ F) (A : C)
[i : IsIso (frobeniusMorphism F h A)] : IsIso (expComparison F A) := by |
rw [β frobeniusMorphism_mate F h]; infer_instance
| [
" IsIso ((frobeniusMorphism F h A).app B)",
" IsIso (prodComparison L (F.obj A) B β« prod.map (h.counit.app A) (π (L.obj B)))",
" prod.map (π (F.obj A)) ((expComparison F A).app B) β« (exp.ev (F.obj A)).app (F.obj B) =\n inv (prodComparison F A (A βΉ B)) β« F.map ((exp.ev A).app B)",
" inv (prodComparison F ... | [
" IsIso ((frobeniusMorphism F h A).app B)",
" IsIso (prodComparison L (F.obj A) B β« prod.map (h.counit.app A) (π (L.obj B)))",
" prod.map (π (F.obj A)) ((expComparison F A).app B) β« (exp.ev (F.obj A)).app (F.obj B) =\n inv (prodComparison F A (A βΉ B)) β« F.map ((exp.ev A).app B)",
" inv (prodComparison F ... |
import Mathlib.Algebra.Group.Subgroup.Pointwise
import Mathlib.Data.ZMod.Basic
import Mathlib.GroupTheory.GroupAction.ConjAct
import Mathlib.LinearAlgebra.Matrix.SpecialLinearGroup
#align_import number_theory.modular_forms.congruence_subgroups from "leanprover-community/mathlib"@"ae690b0c236e488a0043f6faa8ce3546e7f2f... | Mathlib/NumberTheory/ModularForms/CongruenceSubgroups.lean | 73 | 75 | theorem Gamma_one_top : Gamma 1 = β€ := by |
ext
simp [eq_iff_true_of_subsingleton]
| [
" Ξ³ β Gamma N β β(βΞ³ 0 0) = 1 β§ β(βΞ³ 0 1) = 0 β§ β(βΞ³ 1 0) = 0 β§ β(βΞ³ 1 1) = 1",
" (SpecialLinearGroup.map (Int.castRingHom (ZMod N))) Ξ³ = 1 β\n β(βΞ³ 0 0) = 1 β§ β(βΞ³ 0 1) = 0 β§ β(βΞ³ 1 0) = 0 β§ β(βΞ³ 1 1) = 1",
" (SpecialLinearGroup.map (Int.castRingHom (ZMod N))) Ξ³ = 1 β\n β(βΞ³ 0 0) = 1 β§ β(βΞ³ 0 1) = 0 β§ β(... | [
" Ξ³ β Gamma N β β(βΞ³ 0 0) = 1 β§ β(βΞ³ 0 1) = 0 β§ β(βΞ³ 1 0) = 0 β§ β(βΞ³ 1 1) = 1",
" (SpecialLinearGroup.map (Int.castRingHom (ZMod N))) Ξ³ = 1 β\n β(βΞ³ 0 0) = 1 β§ β(βΞ³ 0 1) = 0 β§ β(βΞ³ 1 0) = 0 β§ β(βΞ³ 1 1) = 1",
" (SpecialLinearGroup.map (Int.castRingHom (ZMod N))) Ξ³ = 1 β\n β(βΞ³ 0 0) = 1 β§ β(βΞ³ 0 1) = 0 β§ β(... |
import Mathlib.RingTheory.Localization.FractionRing
import Mathlib.RingTheory.Localization.Ideal
import Mathlib.RingTheory.Noetherian
#align_import ring_theory.localization.submodule from "leanprover-community/mathlib"@"1ebb20602a8caef435ce47f6373e1aa40851a177"
variable {R : Type*} [CommRing R] (M : Submonoid R) ... | Mathlib/RingTheory/Localization/Submodule.lean | 125 | 133 | theorem coeSubmodule_isPrincipal {I : Ideal R} (h : M β€ nonZeroDivisors R) :
(coeSubmodule S I).IsPrincipal β I.IsPrincipal := by |
constructor <;> rintro β¨β¨x, hxβ©β©
Β· have x_mem : x β coeSubmodule S I := hx.symm βΈ Submodule.mem_span_singleton_self x
obtain β¨x, _, rflβ© := (mem_coeSubmodule _ _).mp x_mem
refine β¨β¨x, coeSubmodule_injective S h ?_β©β©
rw [Ideal.submodule_span_eq, hx, coeSubmodule_span_singleton]
Β· refine β¨β¨algebraMap R... | [
" coeSubmodule S β₯ = β₯",
" coeSubmodule S β€ = 1",
" coeSubmodule S (Ideal.span s) = Submodule.span R (β(algebraMap R S) '' s)",
" Submodule.span R (β(Algebra.linearMap R S) '' s) = Submodule.span R (β(algebraMap R S) '' s)",
" coeSubmodule S (Ideal.span {x}) = Submodule.span R {(algebraMap R S) x}",
" IsN... | [
" coeSubmodule S β₯ = β₯",
" coeSubmodule S β€ = 1",
" coeSubmodule S (Ideal.span s) = Submodule.span R (β(algebraMap R S) '' s)",
" Submodule.span R (β(Algebra.linearMap R S) '' s) = Submodule.span R (β(algebraMap R S) '' s)",
" coeSubmodule S (Ideal.span {x}) = Submodule.span R {(algebraMap R S) x}",
" IsN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.