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.Algebra.ContinuedFractions.Basic
import Mathlib.Algebra.GroupWithZero.Basic
#align_import algebra.continued_fractions.translations from "leanprover-community/mathlib"@"a7e36e48519ab281320c4d192da6a7b348ce40ad"
namespace GeneralizedContinuedFraction
section General
variable {α : Type*} {g : Gen... | Mathlib/Algebra/ContinuedFractions/Translations.lean | 41 | 42 | theorem part_num_none_iff_s_none : g.partialNumerators.get? n = none ↔ g.s.get? n = none := by |
cases s_nth_eq : g.s.get? n <;> simp [partialNumerators, s_nth_eq]
| [
" g.TerminatedAt n ↔ g.s.TerminatedAt n",
" g.TerminatedAt n ↔ g.s.get? n = none",
" g.partialNumerators.get? n = none ↔ g.s.get? n = none",
" g.partialNumerators.get? n = none ↔ none = none",
" g.partialNumerators.get? n = none ↔ some val✝ = none"
] | [
" g.TerminatedAt n ↔ g.s.TerminatedAt n",
" g.TerminatedAt n ↔ g.s.get? n = none"
] |
import Mathlib.Algebra.Polynomial.UnitTrinomial
import Mathlib.RingTheory.Polynomial.GaussLemma
import Mathlib.Tactic.LinearCombination
#align_import ring_theory.polynomial.selmer from "leanprover-community/mathlib"@"3e00d81bdcbf77c8188bbd18f5524ddc3ed8cac6"
namespace Polynomial
open scoped Polynomial
variable ... | Mathlib/RingTheory/Polynomial/Selmer.lean | 71 | 82 | theorem X_pow_sub_X_sub_one_irreducible_rat (hn1 : n ≠ 1) : Irreducible (X ^ n - X - 1 : ℚ[X]) := by |
by_cases hn0 : n = 0
· rw [hn0, pow_zero, sub_sub, add_comm, ← sub_sub, sub_self, zero_sub]
exact Associated.irreducible ⟨-1, mul_neg_one X⟩ irreducible_X
have hp : (X ^ n - X - 1 : ℤ[X]) = trinomial 0 1 n (-1) (-1) 1 := by
simp only [trinomial, C_neg, C_1]; ring
have hn : 1 < n := Nat.one_lt_iff_ne_ze... | [
" ¬(z ^ n = z + 1 ∧ z ^ n + z ^ 2 = 0)",
" False",
" z ^ 3 = 1",
" z ^ n = 1 ∨ z ^ n = z ∨ z ^ n = z ^ 2",
" z ^ (n % 3) = 1 ∨ z ^ (n % 3) = z ∨ z ^ (n % 3) = z ^ 2",
" z ^ 0 = 1 ∨ z ^ 0 = z ∨ z ^ 0 = z ^ 2",
" z ^ 1 = 1 ∨ z ^ 1 = z ∨ z ^ 1 = z ^ 2",
" z ^ 2 = 1 ∨ z ^ 2 = z ∨ z ^ 2 = z ^ 2",
" z = 0... | [
" ¬(z ^ n = z + 1 ∧ z ^ n + z ^ 2 = 0)",
" False",
" z ^ 3 = 1",
" z ^ n = 1 ∨ z ^ n = z ∨ z ^ n = z ^ 2",
" z ^ (n % 3) = 1 ∨ z ^ (n % 3) = z ∨ z ^ (n % 3) = z ^ 2",
" z ^ 0 = 1 ∨ z ^ 0 = z ∨ z ^ 0 = z ^ 2",
" z ^ 1 = 1 ∨ z ^ 1 = z ∨ z ^ 1 = z ^ 2",
" z ^ 2 = 1 ∨ z ^ 2 = z ∨ z ^ 2 = z ^ 2",
" z = 0... |
import Mathlib.CategoryTheory.EqToHom
import Mathlib.CategoryTheory.Quotient
import Mathlib.Combinatorics.Quiver.Path
#align_import category_theory.path_category from "leanprover-community/mathlib"@"c6dd521ebdce53bb372c527569dd7c25de53a08b"
universe v₁ v₂ u₁ u₂
namespace CategoryTheory
section
def Paths (V : ... | Mathlib/CategoryTheory/PathCategory.lean | 124 | 135 | theorem ext_functor {C} [Category C] {F G : Paths V ⥤ C} (h_obj : F.obj = G.obj)
(h : ∀ (a b : V) (e : a ⟶ b), F.map e.toPath =
eqToHom (congr_fun h_obj a) ≫ G.map e.toPath ≫ eqToHom (congr_fun h_obj.symm b)) :
F = G := by |
fapply Functor.ext
· intro X
rw [h_obj]
· intro X Y f
induction' f with Y' Z' g e ih
· erw [F.map_id, G.map_id, Category.id_comp, eqToHom_trans, eqToHom_refl]
· erw [F.map_comp g (Quiver.Hom.toPath e), G.map_comp g (Quiver.Hom.toPath e), ih, h]
simp only [Category.id_comp, eqToHom_refl, eqT... | [
" { obj := φ.obj, map := fun {X Y} f => Quiver.Path.rec (𝟙 (φ.obj X)) (fun {b c} x f ihp => ihp ≫ φ.map f) f }.map\n (f ≫ g) =\n { obj := φ.obj, map := fun {X Y} f => Quiver.Path.rec (𝟙 (φ.obj X)) (fun {b c} x f ihp => ihp ≫ φ.map f) f }.map f ≫\n { obj := φ.obj, map := fun {X Y} f => Quiver.Path.rec... | [
" { obj := φ.obj, map := fun {X Y} f => Quiver.Path.rec (𝟙 (φ.obj X)) (fun {b c} x f ihp => ihp ≫ φ.map f) f }.map\n (f ≫ g) =\n { obj := φ.obj, map := fun {X Y} f => Quiver.Path.rec (𝟙 (φ.obj X)) (fun {b c} x f ihp => ihp ≫ φ.map f) f }.map f ≫\n { obj := φ.obj, map := fun {X Y} f => Quiver.Path.rec... |
import Batteries.Data.List.Lemmas
import Batteries.Data.Array.Basic
import Batteries.Tactic.SeqFocus
import Batteries.Util.ProofWanted
namespace Array
theorem forIn_eq_data_forIn [Monad m]
(as : Array α) (b : β) (f : α → β → m (ForInStep β)) :
forIn as b f = forIn as.data b f := by
let rec loop : ∀ {i h b ... | .lake/packages/batteries/Batteries/Data/Array/Lemmas.lean | 106 | 113 | theorem mem_join : ∀ {L : Array (Array α)}, a ∈ L.join ↔ ∃ l, l ∈ L ∧ a ∈ l := by |
simp only [mem_def, join_data, List.mem_join, List.mem_map]
intro l
constructor
· rintro ⟨_, ⟨s, m, rfl⟩, h⟩
exact ⟨s, m, h⟩
· rintro ⟨s, h₁, h₂⟩
refine ⟨s.data, ⟨⟨s, h₁, rfl⟩, h₂⟩⟩
| [
" forIn as b f = forIn as.data b f",
" forIn.loop as f 0 x✝¹ x✝ = forIn (List.drop as.data.length as.data) x✝ f",
" forIn.loop as f 0 x✝¹ x✝ = forIn [] x✝ f",
" forIn.loop as f (i + 1) x✝¹ x✝ = forIn (List.drop j as.data) x✝ f",
" (do\n let __do_lift ← f as[as.size - 1 - i] x✝\n match __do_lift wi... | [
" forIn as b f = forIn as.data b f",
" forIn.loop as f 0 x✝¹ x✝ = forIn (List.drop as.data.length as.data) x✝ f",
" forIn.loop as f 0 x✝¹ x✝ = forIn [] x✝ f",
" forIn.loop as f (i + 1) x✝¹ x✝ = forIn (List.drop j as.data) x✝ f",
" (do\n let __do_lift ← f as[as.size - 1 - i] x✝\n match __do_lift wi... |
import Mathlib.Algebra.Order.Ring.Abs
#align_import data.int.order.units from "leanprover-community/mathlib"@"d012cd09a9b256d870751284dd6a29882b0be105"
namespace Int
theorem isUnit_iff_abs_eq {x : ℤ} : IsUnit x ↔ abs x = 1 := by
rw [isUnit_iff_natAbs_eq, abs_eq_natAbs, ← Int.ofNat_one, natCast_inj]
#align int.... | Mathlib/Data/Int/Order/Units.lean | 63 | 67 | theorem units_pow_eq_pow_mod_two (u : ℤˣ) (n : ℕ) : u ^ n = u ^ (n % 2) := by |
conv =>
lhs
rw [← Nat.mod_add_div n 2];
rw [pow_add, pow_mul, units_sq, one_pow, mul_one]
| [
" IsUnit x ↔ |x| = 1",
" a ^ 2 = 1",
" u ^ 2 = 1",
" u * u = 1",
" u⁻¹ = u",
" u₁ / u₂ = u₁ * u₂",
" ↑u * ↑u = 1",
" (-1) ^ n ≠ 0",
" u ^ n = u ^ (n % 2)",
"u : ℤˣ n : ℕ | u ^ n = u ^ (n % 2)",
"u : ℤˣ n : ℕ | u ^ n",
"u : ℤˣ n : ℕ | u ^ (n % 2 + 2 * (n / 2))"
] | [
" IsUnit x ↔ |x| = 1",
" a ^ 2 = 1",
" u ^ 2 = 1",
" u * u = 1",
" u⁻¹ = u",
" u₁ / u₂ = u₁ * u₂",
" ↑u * ↑u = 1",
" (-1) ^ n ≠ 0"
] |
import Mathlib.Algebra.MvPolynomial.PDeriv
import Mathlib.Algebra.Polynomial.AlgebraMap
import Mathlib.Algebra.Polynomial.Derivative
import Mathlib.Data.Nat.Choose.Sum
import Mathlib.LinearAlgebra.LinearIndependent
import Mathlib.RingTheory.Polynomial.Pochhammer
#align_import ring_theory.polynomial.bernstein from "le... | Mathlib/RingTheory/Polynomial/Bernstein.lean | 102 | 131 | theorem derivative_succ_aux (n ν : ℕ) :
Polynomial.derivative (bernsteinPolynomial R (n + 1) (ν + 1)) =
(n + 1) * (bernsteinPolynomial R n ν - bernsteinPolynomial R n (ν + 1)) := by |
rw [bernsteinPolynomial]
suffices ((n + 1).choose (ν + 1) : R[X]) * ((↑(ν + 1 : ℕ) : R[X]) * X ^ ν) * (1 - X) ^ (n - ν) -
((n + 1).choose (ν + 1) : R[X]) * X ^ (ν + 1) * ((↑(n - ν) : R[X]) * (1 - X) ^ (n - ν - 1)) =
(↑(n + 1) : R[X]) * ((n.choose ν : R[X]) * X ^ ν * (1 - X) ^ (n - ν) -
(n.choos... | [
" bernsteinPolynomial ℤ 3 2 = 3 * X ^ 2 - 3 * X ^ 3",
" 3 * X ^ 2 * (1 - X) = 3 * X ^ 2 - 3 * X ^ 3",
" bernsteinPolynomial R n ν = 0",
" Polynomial.map f (bernsteinPolynomial R n ν) = bernsteinPolynomial S n ν",
" (bernsteinPolynomial R n ν).comp (1 - X) = bernsteinPolynomial R n (n - ν)",
" bernsteinPol... | [
" bernsteinPolynomial ℤ 3 2 = 3 * X ^ 2 - 3 * X ^ 3",
" 3 * X ^ 2 * (1 - X) = 3 * X ^ 2 - 3 * X ^ 3",
" bernsteinPolynomial R n ν = 0",
" Polynomial.map f (bernsteinPolynomial R n ν) = bernsteinPolynomial S n ν",
" (bernsteinPolynomial R n ν).comp (1 - X) = bernsteinPolynomial R n (n - ν)",
" bernsteinPol... |
import Mathlib.FieldTheory.Separable
import Mathlib.RingTheory.IntegralDomain
import Mathlib.Algebra.CharP.Reduced
import Mathlib.Tactic.ApplyFun
#align_import field_theory.finite.basic from "leanprover-community/mathlib"@"12a85fac627bea918960da036049d611b1a3ee43"
variable {K : Type*} {R : Type*}
local notation ... | Mathlib/FieldTheory/Finite/Basic.lean | 142 | 164 | theorem sum_subgroup_units_eq_zero [Ring K] [NoZeroDivisors K]
{G : Subgroup Kˣ} [Fintype G] (hg : G ≠ ⊥) :
∑ x : G, (x.val : K) = 0 := by |
rw [Subgroup.ne_bot_iff_exists_ne_one] at hg
rcases hg with ⟨a, ha⟩
-- The action of a on G as an embedding
let a_mul_emb : G ↪ G := mulLeftEmbedding a
-- ... and leaves G unchanged
have h_unchanged : Finset.univ.map a_mul_emb = Finset.univ := by simp
-- Therefore the sum of x over a G is the sum of a x ... | [
" ∏ x : Kˣ, x = -1",
" ∀ (a : Kˣ) (ha : a ∈ univ.erase (-1)), a * (fun x x_1 => x⁻¹) a ha = 1",
" ∀ (ha : a ∈ univ.erase (-1)), a ≠ 1 → (fun x x_1 => x⁻¹) a ha ≠ a",
" ∀ (ha : a ∈ univ.erase (-1)), (fun x x_1 => x⁻¹) a ha ∈ univ.erase (-1)",
" ∀ (a : Kˣ) (ha : a ∈ univ.erase (-1)), (fun x x_1 => x⁻¹) ((fun ... | [
" ∏ x : Kˣ, x = -1",
" ∀ (a : Kˣ) (ha : a ∈ univ.erase (-1)), a * (fun x x_1 => x⁻¹) a ha = 1",
" ∀ (ha : a ∈ univ.erase (-1)), a ≠ 1 → (fun x x_1 => x⁻¹) a ha ≠ a",
" ∀ (ha : a ∈ univ.erase (-1)), (fun x x_1 => x⁻¹) a ha ∈ univ.erase (-1)",
" ∀ (a : Kˣ) (ha : a ∈ univ.erase (-1)), (fun x x_1 => x⁻¹) ((fun ... |
import Mathlib.MeasureTheory.Integral.Lebesgue
open Set hiding restrict restrict_apply
open Filter ENNReal NNReal MeasureTheory.Measure
namespace MeasureTheory
variable {α : Type*} {m0 : MeasurableSpace α} {μ : Measure α}
noncomputable
def Measure.withDensity {m : MeasurableSpace α} (μ : Measure α) (f : α → ℝ≥... | Mathlib/MeasureTheory/Measure/WithDensity.lean | 110 | 113 | theorem withDensity_add_measure {m : MeasurableSpace α} (μ ν : Measure α) (f : α → ℝ≥0∞) :
(μ + ν).withDensity f = μ.withDensity f + ν.withDensity f := by |
ext1 s hs
simp only [withDensity_apply f hs, restrict_add, lintegral_add_measure, Measure.add_apply]
| [
" (fun s x => ∫⁻ (a : α) in s, f a ∂μ) ∅ ⋯ = 0",
" ∫⁻ (a : α) in s, f a ∂μ ≤ (μ.withDensity f) s",
" (μ.withDensity f) s = ∫⁻ (a : α) in s, f a ∂μ",
" (μ.withDensity f) s ≤ ∫⁻ (a : α) in s, f a ∂μ",
" ∫⁻ (a : α) in t, f a ∂μ = ∫⁻ (a : α) in s, f a ∂μ",
" μ.restrict t = μ.restrict s",
" withDensity 0 f =... | [
" (fun s x => ∫⁻ (a : α) in s, f a ∂μ) ∅ ⋯ = 0",
" ∫⁻ (a : α) in s, f a ∂μ ≤ (μ.withDensity f) s",
" (μ.withDensity f) s = ∫⁻ (a : α) in s, f a ∂μ",
" (μ.withDensity f) s ≤ ∫⁻ (a : α) in s, f a ∂μ",
" ∫⁻ (a : α) in t, f a ∂μ = ∫⁻ (a : α) in s, f a ∂μ",
" μ.restrict t = μ.restrict s",
" withDensity 0 f =... |
import Mathlib.Algebra.Periodic
import Mathlib.Data.Nat.Count
import Mathlib.Data.Nat.GCD.Basic
import Mathlib.Order.Interval.Finset.Nat
#align_import data.nat.periodic from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988"
namespace Nat
open Nat Function
theorem periodic_gcd (a : ℕ) : P... | Mathlib/Data/Nat/Periodic.lean | 33 | 34 | theorem periodic_mod (a : ℕ) : Periodic (fun n => n % a) a := by |
simp only [forall_const, eq_self_iff_true, add_mod_right, Periodic]
| [
" Periodic a.gcd a",
" Periodic a.Coprime a",
" Periodic (fun n => n % a) a"
] | [
" Periodic a.gcd a",
" Periodic a.Coprime a"
] |
import Mathlib.Data.Set.Prod
import Mathlib.Logic.Function.Conjugate
#align_import data.set.function from "leanprover-community/mathlib"@"996b0ff959da753a555053a480f36e5f264d4207"
variable {α β γ : Type*} {ι : Sort*} {π : α → Type*}
open Equiv Equiv.Perm Function
namespace Set
section restrict
def restrict (... | Mathlib/Data/Set/Function.lean | 74 | 76 | theorem image_restrict (f : α → β) (s t : Set α) :
s.restrict f '' (Subtype.val ⁻¹' t) = f '' (t ∩ s) := by |
rw [restrict_eq, image_comp, image_preimage_eq_inter_range, Subtype.range_coe]
| [
" s.restrict f '' (Subtype.val ⁻¹' t) = f '' (t ∩ s)"
] | [] |
import Mathlib.Analysis.Calculus.ContDiff.Bounds
import Mathlib.Analysis.Calculus.IteratedDeriv.Defs
import Mathlib.Analysis.Calculus.LineDeriv.Basic
import Mathlib.Analysis.LocallyConvex.WithSeminorms
import Mathlib.Analysis.Normed.Group.ZeroAtInfty
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Ana... | Mathlib/Analysis/Distribution/SchwartzSpace.lean | 145 | 153 | theorem isBigO_cocompact_zpow_neg_nat (k : ℕ) :
f =O[cocompact E] fun x => ‖x‖ ^ (-k : ℤ) := by |
obtain ⟨d, _, hd'⟩ := f.decay k 0
simp only [norm_iteratedFDeriv_zero] at hd'
simp_rw [Asymptotics.IsBigO, Asymptotics.IsBigOWith]
refine ⟨d, Filter.Eventually.filter_mono Filter.cocompact_le_cofinite ?_⟩
refine (Filter.eventually_cofinite_ne 0).mono fun x hx => ?_
rw [Real.norm_of_nonneg (zpow_nonneg (nor... | [
" f = g",
" { toFun := toFun✝, smooth' := smooth'✝, decay' := decay'✝ } = g",
" { toFun := toFun✝¹, smooth' := smooth'✝¹, decay' := decay'✝¹ } =\n { toFun := toFun✝, smooth' := smooth'✝, decay' := decay'✝ }",
" ∃ C, 0 < C ∧ ∀ (x : E), ‖x‖ ^ k * ‖iteratedFDeriv ℝ n (⇑f) x‖ ≤ C",
" 0 < max C 1",
" ⇑f =O[... | [
" f = g",
" { toFun := toFun✝, smooth' := smooth'✝, decay' := decay'✝ } = g",
" { toFun := toFun✝¹, smooth' := smooth'✝¹, decay' := decay'✝¹ } =\n { toFun := toFun✝, smooth' := smooth'✝, decay' := decay'✝ }",
" ∃ C, 0 < C ∧ ∀ (x : E), ‖x‖ ^ k * ‖iteratedFDeriv ℝ n (⇑f) x‖ ≤ C",
" 0 < max C 1"
] |
import Mathlib.Analysis.SpecificLimits.Basic
import Mathlib.Data.Rat.Denumerable
import Mathlib.Data.Set.Pointwise.Interval
import Mathlib.SetTheory.Cardinal.Continuum
#align_import data.real.cardinality from "leanprover-community/mathlib"@"7e7aaccf9b0182576cabdde36cf1b5ad3585b70d"
open Nat Set
open Cardinal
no... | Mathlib/Data/Real/Cardinality.lean | 123 | 164 | theorem increasing_cantorFunction (h1 : 0 < c) (h2 : c < 1 / 2) {n : ℕ} {f g : ℕ → Bool}
(hn : ∀ k < n, f k = g k) (fn : f n = false) (gn : g n = true) :
cantorFunction c f < cantorFunction c g := by |
have h3 : c < 1 := by
apply h2.trans
norm_num
induction' n with n ih generalizing f g
· let f_max : ℕ → Bool := fun n => Nat.rec false (fun _ _ => true) n
have hf_max : ∀ n, f n → f_max n := by
intro n hn
cases n
· rw [fn] at hn
contradiction
apply rfl
let g_min : ... | [
" cantorFunctionAux c f n = c ^ n",
" cantorFunctionAux c f n = 0",
" 0 ≤ cantorFunctionAux c f n",
" 0 ≤ c ^ n",
" cantorFunctionAux c f n = cantorFunctionAux c g n",
" cantorFunctionAux c f 0 = bif f 0 then 1 else 0",
" cantorFunctionAux c f 0 = bif false then 1 else 0",
" cantorFunctionAux c f 0 = ... | [
" cantorFunctionAux c f n = c ^ n",
" cantorFunctionAux c f n = 0",
" 0 ≤ cantorFunctionAux c f n",
" 0 ≤ c ^ n",
" cantorFunctionAux c f n = cantorFunctionAux c g n",
" cantorFunctionAux c f 0 = bif f 0 then 1 else 0",
" cantorFunctionAux c f 0 = bif false then 1 else 0",
" cantorFunctionAux c f 0 = ... |
import Mathlib.Data.List.Chain
import Mathlib.Data.List.Enum
import Mathlib.Data.List.Nodup
import Mathlib.Data.List.Pairwise
import Mathlib.Data.List.Zip
#align_import data.list.range from "leanprover-community/mathlib"@"7b78d1776212a91ecc94cf601f83bdcc46b04213"
set_option autoImplicit true
universe u
open Nat... | Mathlib/Data/List/Range.lean | 115 | 118 | theorem chain_range_succ (r : ℕ → ℕ → Prop) (n a : ℕ) :
Chain r a (range n.succ) ↔ r a 0 ∧ ∀ m < n, r m m.succ := by |
rw [range_succ_eq_map, chain_cons, and_congr_right_iff, ← chain'_range_succ, range_succ_eq_map]
exact fun _ => Iff.rfl
| [
" (range' n m).nthLe i H = n + i",
" Pairwise (fun x x_1 => x < x_1) (range n)",
" take m (range n) = range (min m n)",
" (take m (range n)).length = (range (min m n)).length",
" ∀ (n_1 : ℕ) (h₁ : n_1 < (take m (range n)).length) (h₂ : n_1 < (range (min m n)).length),\n (take m (range n)).get ⟨n_1, h₁⟩ =... | [
" (range' n m).nthLe i H = n + i",
" Pairwise (fun x x_1 => x < x_1) (range n)",
" take m (range n) = range (min m n)",
" (take m (range n)).length = (range (min m n)).length",
" ∀ (n_1 : ℕ) (h₁ : n_1 < (take m (range n)).length) (h₂ : n_1 < (range (min m n)).length),\n (take m (range n)).get ⟨n_1, h₁⟩ =... |
import Mathlib.Data.Nat.Choose.Basic
import Mathlib.Data.Nat.Prime
#align_import data.nat.choose.dvd from "leanprover-community/mathlib"@"966e0cf0685c9cedf8a3283ac69eef4d5f2eaca2"
namespace Nat
open Nat
namespace Prime
variable {p a b k : ℕ}
| Mathlib/Data/Nat/Choose/Dvd.lean | 24 | 29 | theorem dvd_choose_add (hp : Prime p) (hap : a < p) (hbp : b < p) (h : p ≤ a + b) :
p ∣ choose (a + b) a := by |
have h₁ : p ∣ (a + b)! := hp.dvd_factorial.2 h
rw [← add_choose_mul_factorial_mul_factorial, ← choose_symm_add, hp.dvd_mul, hp.dvd_mul,
hp.dvd_factorial, hp.dvd_factorial] at h₁
exact (h₁.resolve_right hbp.not_le).resolve_right hap.not_le
| [
" p ∣ (a + b).choose a"
] | [] |
import Mathlib.Geometry.Manifold.ContMDiff.Defs
open Set Filter Function
open scoped Topology Manifold
variable {𝕜 : Type*} [NontriviallyNormedField 𝕜]
-- declare a smooth manifold `M` over the pair `(E, H)`.
{E : Type*}
[NormedAddCommGroup E] [NormedSpace 𝕜 E] {H : Type*} [TopologicalSpace H]
(I : Mode... | Mathlib/Geometry/Manifold/ContMDiff/Basic.lean | 81 | 84 | theorem ContMDiffWithinAt.comp_of_eq {t : Set M'} {g : M' → M''} {x : M} {y : M'}
(hg : ContMDiffWithinAt I' I'' n g t y) (hf : ContMDiffWithinAt I I' n f s x)
(st : MapsTo f s t) (hx : f x = y) : ContMDiffWithinAt I I'' n (g ∘ f) s x := by |
subst hx; exact hg.comp x hf st
| [
" ContMDiffWithinAt I I'' n (g ∘ f) s x",
" ContinuousWithinAt (g ∘ f) s x ∧\n ContDiffWithinAt 𝕜 n (↑(extChartAt I'' ((g ∘ f) x)) ∘ (g ∘ f) ∘ ↑(extChartAt I x).symm)\n (↑(extChartAt I x).symm ⁻¹' s ∩ range ↑I) (↑(extChartAt I x) x)",
" ContDiffWithinAt 𝕜 n (↑(extChartAt I'' ((g ∘ f) x)) ∘ (g ∘ f) ∘ ↑... | [
" ContMDiffWithinAt I I'' n (g ∘ f) s x",
" ContinuousWithinAt (g ∘ f) s x ∧\n ContDiffWithinAt 𝕜 n (↑(extChartAt I'' ((g ∘ f) x)) ∘ (g ∘ f) ∘ ↑(extChartAt I x).symm)\n (↑(extChartAt I x).symm ⁻¹' s ∩ range ↑I) (↑(extChartAt I x) x)",
" ContDiffWithinAt 𝕜 n (↑(extChartAt I'' ((g ∘ f) x)) ∘ (g ∘ f) ∘ ↑... |
import Mathlib.NumberTheory.SmoothNumbers
import Mathlib.Analysis.PSeries
open Set Nat
open scoped Topology
-- This needs `Mathlib.Analysis.RCLike.Basic`, so we put it here
-- instead of in `Mathlib.NumberTheory.SmoothNumbers`.
lemma Nat.roughNumbersUpTo_card_le' (N k : ℕ) :
(roughNumbersUpTo N k).card ≤
... | Mathlib/NumberTheory/SumPrimeReciprocals.lean | 82 | 83 | theorem Nat.Primes.not_summable_one_div : ¬ Summable (fun p : Nat.Primes ↦ (1 / p : ℝ)) := by |
convert summable_subtype_iff_indicator.mp.mt not_summable_one_div_on_primes
| [
" ↑(N.roughNumbersUpTo k).card ≤ ↑N * ∑ p ∈ N.succ.primesBelow \\ k.primesBelow, 1 / ↑p",
" ↑(N.roughNumbersUpTo k).card ≤ ∑ x ∈ N.succ.primesBelow \\ k.primesBelow, ↑N / ↑x",
" 1 / 2 ≤ ∑ p ∈ (4 ^ (k.primesBelow.card + 1)).succ.primesBelow \\ k.primesBelow, 1 / ↑p",
" 4 ^ (k.primesBelow.card + 1) = 2 * N₀",
... | [
" ↑(N.roughNumbersUpTo k).card ≤ ↑N * ∑ p ∈ N.succ.primesBelow \\ k.primesBelow, 1 / ↑p",
" ↑(N.roughNumbersUpTo k).card ≤ ∑ x ∈ N.succ.primesBelow \\ k.primesBelow, ↑N / ↑x",
" 1 / 2 ≤ ∑ p ∈ (4 ^ (k.primesBelow.card + 1)).succ.primesBelow \\ k.primesBelow, 1 / ↑p",
" 4 ^ (k.primesBelow.card + 1) = 2 * N₀",
... |
import Mathlib.Algebra.Group.Defs
#align_import algebra.invertible from "leanprover-community/mathlib"@"722b3b152ddd5e0cf21c0a29787c76596cb6b422"
assert_not_exists MonoidWithZero
assert_not_exists DenselyOrdered
universe u
variable {α : Type u}
class Invertible [Mul α] [One α] (a : α) : Type u where
invOf... | Mathlib/Algebra/Group/Invertible/Defs.lean | 141 | 142 | theorem mul_mul_invOf_self_cancel' [Monoid α] (a b : α) {_ : Invertible b} : a * b * ⅟ b = a := by |
simp [mul_assoc]
| [
" ⅟a * (a * b) = b",
" a * (⅟a * b) = b",
" a * ⅟b * b = a",
" a * b * ⅟b = a"
] | [
" ⅟a * (a * b) = b",
" a * (⅟a * b) = b",
" a * ⅟b * b = a"
] |
import Mathlib.Data.ENNReal.Operations
#align_import data.real.ennreal from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520"
open Set NNReal
namespace ENNReal
noncomputable section Inv
variable {a b c d : ℝ≥0∞} {r p q : ℝ≥0}
protected theorem div_eq_inv_mul : a / b = b⁻¹ * a := by rw [... | Mathlib/Data/ENNReal/Inv.lean | 79 | 79 | theorem div_zero (h : a ≠ 0) : a / 0 = ∞ := by | simp [div_eq_mul_inv, h]
| [
" a / b = b⁻¹ * a",
" sInf {b | 1 ≤ 0 * b} = ⊤",
" a ∈ {b | 1 ≤ ⊤ * b}",
" ∀ (p : ℝ≥0), b = ↑p → r⁻¹ ≤ p",
" r⁻¹ ≤ b",
" 1 ≤ r * b",
" 1 ≤ ↑r * ↑r⁻¹",
" ↑2⁻¹ = 2⁻¹",
" ↑(p / r) = ↑p / ↑r",
" ↑(p / r) ≤ ↑p / ↑r",
" a / 0 = ⊤"
] | [
" a / b = b⁻¹ * a",
" sInf {b | 1 ≤ 0 * b} = ⊤",
" a ∈ {b | 1 ≤ ⊤ * b}",
" ∀ (p : ℝ≥0), b = ↑p → r⁻¹ ≤ p",
" r⁻¹ ≤ b",
" 1 ≤ r * b",
" 1 ≤ ↑r * ↑r⁻¹",
" ↑2⁻¹ = 2⁻¹",
" ↑(p / r) = ↑p / ↑r",
" ↑(p / r) ≤ ↑p / ↑r"
] |
import Mathlib.Algebra.MonoidAlgebra.Division
import Mathlib.Algebra.Polynomial.Degree.Definitions
import Mathlib.Algebra.Polynomial.Induction
import Mathlib.Algebra.Polynomial.EraseLead
import Mathlib.Order.Interval.Finset.Nat
#align_import data.polynomial.inductions from "leanprover-community/mathlib"@"57e09a1296bf... | Mathlib/Algebra/Polynomial/Inductions.lean | 45 | 46 | theorem coeff_divX : (divX p).coeff n = p.coeff (n + 1) := by |
rw [add_comm]; cases p; rfl
| [
" p.divX.coeff n = p.coeff (n + 1)",
" p.divX.coeff n = p.coeff (1 + n)",
" { toFinsupp := toFinsupp✝ }.divX.coeff n = { toFinsupp := toFinsupp✝ }.coeff (1 + n)"
] | [] |
import Mathlib.MeasureTheory.Measure.AEMeasurable
#align_import dynamics.ergodic.measure_preserving from "leanprover-community/mathlib"@"92ca63f0fb391a9ca5f22d2409a6080e786d99f7"
variable {α β γ δ : Type*} [MeasurableSpace α] [MeasurableSpace β] [MeasurableSpace γ]
[MeasurableSpace δ]
namespace MeasureTheory
... | Mathlib/Dynamics/Ergodic/MeasurePreserving.lean | 92 | 94 | theorem aemeasurable_comp_iff {f : α → β} (hf : MeasurePreserving f μa μb)
(h₂ : MeasurableEmbedding f) {g : β → γ} : AEMeasurable (g ∘ f) μa ↔ AEMeasurable g μb := by |
rw [← hf.map_eq, h₂.aemeasurable_map_iff]
| [
" map (⇑e.symm) μb = μa",
" map f (μa.restrict (f ⁻¹' s)) = μb.restrict s",
" MeasurePreserving f (μa.restrict s) (μb.restrict (f '' s))",
" AEMeasurable (g ∘ f) μa ↔ AEMeasurable g μb"
] | [
" map (⇑e.symm) μb = μa",
" map f (μa.restrict (f ⁻¹' s)) = μb.restrict s",
" MeasurePreserving f (μa.restrict s) (μb.restrict (f '' s))"
] |
import Mathlib.Geometry.RingedSpace.PresheafedSpace
import Mathlib.CategoryTheory.Limits.Final
import Mathlib.Topology.Sheaves.Stalks
#align_import algebraic_geometry.stalks from "leanprover-community/mathlib"@"d39590fc8728fbf6743249802486f8c91ffe07bc"
noncomputable section
universe v u v' u'
open Opposite Cate... | Mathlib/Geometry/RingedSpace/Stalks.lean | 171 | 177 | theorem congr {X Y : PresheafedSpace.{_, _, v} C} (α β : X ⟶ Y)
(h₁ : α = β) (x x' : X) (h₂ : x = x') :
stalkMap α x ≫ eqToHom (show X.stalk x = X.stalk x' by rw [h₂]) =
eqToHom (show Y.stalk (α.base x) = Y.stalk (β.base x') by rw [h₁, h₂]) ≫ stalkMap β x' := by |
ext
substs h₁ h₂
simp
| [] | [] |
import Mathlib.Analysis.SpecialFunctions.ExpDeriv
#align_import analysis.ODE.gronwall from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982"
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {F : Type*} [NormedAddCommGroup F]
[NormedSpace ℝ F]
open Metric Set Asymptotics Fil... | Mathlib/Analysis/ODE/Gronwall.lean | 86 | 89 | theorem gronwallBound_ε0 (δ K x : ℝ) : gronwallBound δ K 0 x = δ * exp (K * x) := by |
by_cases hK : K = 0
· simp only [gronwallBound_K0, hK, zero_mul, exp_zero, add_zero, mul_one]
· simp only [gronwallBound_of_K_ne_0 hK, zero_div, zero_mul, add_zero]
| [
" HasDerivAt (gronwallBound δ K ε) (K * gronwallBound δ K ε x + ε) x",
" HasDerivAt (gronwallBound δ 0 ε) (0 * gronwallBound δ 0 ε x + ε) x",
" HasDerivAt (fun x => δ + ε * x) ε x",
" ε = ε * 1",
" HasDerivAt (fun x => δ * rexp (K * x) + ε / K * (rexp (K * x) - 1))\n (K * (δ * rexp (K * x) + ε / K * (rex... | [
" HasDerivAt (gronwallBound δ K ε) (K * gronwallBound δ K ε x + ε) x",
" HasDerivAt (gronwallBound δ 0 ε) (0 * gronwallBound δ 0 ε x + ε) x",
" HasDerivAt (fun x => δ + ε * x) ε x",
" ε = ε * 1",
" HasDerivAt (fun x => δ * rexp (K * x) + ε / K * (rexp (K * x) - 1))\n (K * (δ * rexp (K * x) + ε / K * (rex... |
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 | 156 | 159 | theorem frobeniusMorphism_iso_of_expComparison_iso (h : L ⊣ F) (A : C)
[i : IsIso (expComparison F A)] : IsIso (frobeniusMorphism F h A) := by |
rw [← frobeniusMorphism_mate F h] at i
exact @transferNatTransSelf_of_iso _ _ _ _ _ _ _ _ _ _ _ i
| [
" 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.Geometry.Manifold.MFDeriv.FDeriv
noncomputable section
open scoped Manifold
open Bundle Set Topology
section SpecificFunctions
variable {𝕜 : Type*} [NontriviallyNormedField 𝕜] {E : Type*} [NormedAddCommGroup E]
[NormedSpace 𝕜 E] {H : Type*} [TopologicalSpace H] (I : ModelWithCorners 𝕜 E H)... | Mathlib/Geometry/Manifold/MFDeriv/SpecificFunctions.lean | 167 | 172 | theorem tangentMapWithin_id {p : TangentBundle I M} (hs : UniqueMDiffWithinAt I s p.proj) :
tangentMapWithin I I (id : M → M) s p = p := by |
simp only [tangentMapWithin, id]
rw [mfderivWithin_id]
· rcases p with ⟨⟩; rfl
· exact hs
| [
" HasMFDerivAt I I id x (ContinuousLinearMap.id 𝕜 (TangentSpace I x))",
" HasFDerivWithinAt (writtenInExtChartAt I I x id) (ContinuousLinearMap.id 𝕜 (TangentSpace I x)) (range ↑I)\n (↑(extChartAt I x) x)",
" ∀ᶠ (y : E) in 𝓝[range ↑I] ↑(extChartAt I x) x, (↑(extChartAt I x) ∘ ↑(extChartAt I x).symm) y = y"... | [
" HasMFDerivAt I I id x (ContinuousLinearMap.id 𝕜 (TangentSpace I x))",
" HasFDerivWithinAt (writtenInExtChartAt I I x id) (ContinuousLinearMap.id 𝕜 (TangentSpace I x)) (range ↑I)\n (↑(extChartAt I x) x)",
" ∀ᶠ (y : E) in 𝓝[range ↑I] ↑(extChartAt I x) x, (↑(extChartAt I x) ∘ ↑(extChartAt I x).symm) y = y"... |
import Mathlib.LinearAlgebra.Dimension.StrongRankCondition
import Mathlib.LinearAlgebra.FreeModule.Basic
import Mathlib.LinearAlgebra.FreeModule.Finite.Basic
#align_import linear_algebra.dimension from "leanprover-community/mathlib"@"47a5f8186becdbc826190ced4312f8199f9db6a5"
noncomputable section
universe u v v'... | Mathlib/LinearAlgebra/Dimension/Free.lean | 63 | 66 | theorem FiniteDimensional.finrank_mul_finrank : finrank F K * finrank K A = finrank F A := by |
simp_rw [finrank]
rw [← toNat_lift.{w} (Module.rank F K), ← toNat_lift.{v} (Module.rank K A), ← toNat_mul,
lift_rank_mul_lift_rank, toNat_lift]
| [
" lift.{w, v} (Module.rank F K) * lift.{v, w} (Module.rank K A) = lift.{v, w} (Module.rank F A)",
" Module.rank F K * Module.rank K A = Module.rank F A",
" Module.rank F K = lift.{v, v} (Module.rank F K)",
" Module.rank K A = lift.{v, v} (Module.rank K A)",
" Module.rank F A = lift.{v, v} (Module.rank F A)"... | [
" lift.{w, v} (Module.rank F K) * lift.{v, w} (Module.rank K A) = lift.{v, w} (Module.rank F A)",
" Module.rank F K * Module.rank K A = Module.rank F A",
" Module.rank F K = lift.{v, v} (Module.rank F K)",
" Module.rank K A = lift.{v, v} (Module.rank K A)",
" Module.rank F A = lift.{v, v} (Module.rank F A)"... |
import Mathlib.Algebra.CharP.Invertible
import Mathlib.Algebra.Order.Interval.Set.Group
import Mathlib.Analysis.Convex.Segment
import Mathlib.LinearAlgebra.AffineSpace.FiniteDimensional
import Mathlib.Tactic.FieldSimp
#align_import analysis.convex.between from "leanprover-community/mathlib"@"571e13cacbed7bf042fd3058c... | Mathlib/Analysis/Convex/Between.lean | 121 | 123 | theorem mem_vadd_const_affineSegment {x y z : V} (p : P) :
z +ᵥ p ∈ affineSegment R (x +ᵥ p) (y +ᵥ p) ↔ z ∈ affineSegment R x y := by |
rw [← affineSegment_vadd_const_image, (vadd_right_injective p).mem_set_image]
| [
" affineSegment R x y = segment R x y",
" affineSegment R x y = affineSegment R y x",
" z ∈ affineSegment R x y ↔ z ∈ affineSegment R y x",
" z ∈ affineSegment R x y → z ∈ affineSegment R y x",
" z ∈ affineSegment R y x",
" 1 - t ∈ Set.Icc 0 1",
" (lineMap y x) (1 - t) = z",
" z ∈ affineSegment R y x ... | [
" affineSegment R x y = segment R x y",
" affineSegment R x y = affineSegment R y x",
" z ∈ affineSegment R x y ↔ z ∈ affineSegment R y x",
" z ∈ affineSegment R x y → z ∈ affineSegment R y x",
" z ∈ affineSegment R y x",
" 1 - t ∈ Set.Icc 0 1",
" (lineMap y x) (1 - t) = z",
" z ∈ affineSegment R y x ... |
import Mathlib.Algebra.BigOperators.Ring
import Mathlib.Algebra.Field.Rat
import Mathlib.Algebra.Order.Field.Basic
import Mathlib.Algebra.Order.Field.Rat
import Mathlib.Combinatorics.Enumerative.DoubleCounting
import Mathlib.Combinatorics.SetFamily.Shadow
#align_import combinatorics.set_family.lym from "leanprover-co... | Mathlib/Combinatorics/SetFamily/LYM.lean | 131 | 133 | theorem mem_falling : s ∈ falling k 𝒜 ↔ (∃ t ∈ 𝒜, s ⊆ t) ∧ s.card = k := by |
simp_rw [falling, mem_sup, mem_powersetCard]
aesop
| [
" s ∈ falling k 𝒜 ↔ (∃ t ∈ 𝒜, s ⊆ t) ∧ s.card = k",
" (∃ v ∈ 𝒜, s ⊆ v ∧ s.card = k) ↔ (∃ t ∈ 𝒜, s ⊆ t) ∧ s.card = k"
] | [] |
import Mathlib.Topology.Category.TopCat.EpiMono
import Mathlib.Topology.Category.TopCat.Limits.Basic
import Mathlib.CategoryTheory.Limits.Shapes.Products
import Mathlib.CategoryTheory.Limits.ConcreteCategory
import Mathlib.Data.Set.Subsingleton
import Mathlib.Tactic.CategoryTheory.Elementwise
#align_import topology.c... | Mathlib/Topology/Category/TopCat/Limits/Products.lean | 72 | 73 | theorem piIsoPi_inv_π {ι : Type v} (α : ι → TopCat.{max v u}) (i : ι) :
(piIsoPi α).inv ≫ Pi.π α i = piπ α i := by | simp [piIsoPi]
| [
" ∀ (s : Cone (Discrete.functor α)) (m : s.pt ⟶ (piFan α).pt),\n (∀ (j : Discrete ι), m ≫ (piFan α).π.app j = s.π.app j) →\n m = (fun S => { toFun := fun s i => (S.π.app { as := i }) s, continuous_toFun := ⋯ }) s",
" m = (fun S => { toFun := fun s i => (S.π.app { as := i }) s, continuous_toFun := ⋯ }) S",... | [
" ∀ (s : Cone (Discrete.functor α)) (m : s.pt ⟶ (piFan α).pt),\n (∀ (j : Discrete ι), m ≫ (piFan α).π.app j = s.π.app j) →\n m = (fun S => { toFun := fun s i => (S.π.app { as := i }) s, continuous_toFun := ⋯ }) s",
" m = (fun S => { toFun := fun s i => (S.π.app { as := i }) s, continuous_toFun := ⋯ }) S",... |
import Mathlib.Data.Fintype.List
#align_import data.list.cycle from "leanprover-community/mathlib"@"7413128c3bcb3b0818e3e18720abc9ea3100fb49"
assert_not_exists MonoidWithZero
namespace List
variable {α : Type*} [DecidableEq α]
def nextOr : ∀ (_ : List α) (_ _ : α), α
| [], _, default => default
| [_], _, d... | Mathlib/Data/List/Cycle.lean | 154 | 155 | theorem next_cons_cons_eq' (y z : α) (h : x ∈ y :: z :: l) (hx : x = y) :
next (y :: z :: l) x h = z := by | rw [next, nextOr, if_pos hx]
| [
" (y :: xs).nextOr x d = xs.nextOr x d",
" [y].nextOr x d = [].nextOr x d",
" (y :: z :: zs).nextOr x d = (z :: zs).nextOr x d",
" xs.nextOr x d = xs.nextOr x d'",
" [].nextOr x d = [].nextOr x d'",
" (y :: ys).nextOr x d = (y :: ys).nextOr x d'",
" [y].nextOr x d = [y].nextOr x d'",
" (y :: z :: zs).... | [
" (y :: xs).nextOr x d = xs.nextOr x d",
" [y].nextOr x d = [].nextOr x d",
" (y :: z :: zs).nextOr x d = (z :: zs).nextOr x d",
" xs.nextOr x d = xs.nextOr x d'",
" [].nextOr x d = [].nextOr x d'",
" (y :: ys).nextOr x d = (y :: ys).nextOr x d'",
" [y].nextOr x d = [y].nextOr x d'",
" (y :: z :: zs).... |
import Mathlib.Topology.Baire.Lemmas
import Mathlib.Topology.Algebra.Group.Basic
open scoped Topology Pointwise
open MulAction Set Function
variable {G X : Type*} [TopologicalSpace G] [TopologicalSpace X]
[Group G] [TopologicalGroup G] [MulAction G X]
[SigmaCompactSpace G] [BaireSpace X] [T2Space X]
[Contin... | Mathlib/Topology/Algebra/Group/OpenMapping.lean | 112 | 121 | theorem MonoidHom.isOpenMap_of_sigmaCompact
{H : Type*} [Group H] [TopologicalSpace H] [BaireSpace H] [T2Space H] [ContinuousMul H]
(f : G →* H) (hf : Function.Surjective f) (h'f : Continuous f) :
IsOpenMap f := by |
let A : MulAction G H := MulAction.compHom _ f
have : ContinuousSMul G H := continuousSMul_compHom h'f
have : IsPretransitive G H := isPretransitive_compHom hf
have : f = (fun (g : G) ↦ g • (1 : H)) := by simp [MulAction.compHom_smul_def]
rw [this]
exact isOpenMap_smul_of_sigmaCompact _
| [
" U • {x} ∈ 𝓝 x",
" ∃ s, s.Countable ∧ ⋃ g ∈ s, g • V = univ",
" g • V ∈ 𝓝 g",
" g = g • 1",
" ∃ i, (interior (F i)).Nonempty",
" ∀ (i : ℕ × ↑s), IsClosed (F i)",
" IsClosed (F (n, ⟨g, hg⟩))",
" IsCompact (F (n, ⟨g, hg⟩))",
" IsCompact ((fun g => g • x) '' (K n ∩ g • V))",
" IsCompact (K n ∩ g •... | [
" U • {x} ∈ 𝓝 x",
" ∃ s, s.Countable ∧ ⋃ g ∈ s, g • V = univ",
" g • V ∈ 𝓝 g",
" g = g • 1",
" ∃ i, (interior (F i)).Nonempty",
" ∀ (i : ℕ × ↑s), IsClosed (F i)",
" IsClosed (F (n, ⟨g, hg⟩))",
" IsCompact (F (n, ⟨g, hg⟩))",
" IsCompact ((fun g => g • x) '' (K n ∩ g • V))",
" IsCompact (K n ∩ g •... |
import Mathlib.Analysis.Calculus.ContDiff.Basic
import Mathlib.Analysis.Calculus.Deriv.Mul
import Mathlib.Analysis.Calculus.Deriv.Shift
import Mathlib.Analysis.Calculus.IteratedDeriv.Defs
variable
{𝕜 : Type*} [NontriviallyNormedField 𝕜]
{F : Type*} [NormedAddCommGroup F] [NormedSpace 𝕜 F]
{R : Type*} [Semi... | Mathlib/Analysis/Calculus/IteratedDeriv/Lemmas.lean | 102 | 104 | theorem iteratedDeriv_const_mul {n : ℕ} {f : 𝕜 → 𝕜} (h : ContDiff 𝕜 n f) (c : 𝕜) :
iteratedDeriv n (fun x => f (c * x)) = fun x => c ^ n * iteratedDeriv n f (c * x) := by |
simpa only [smul_eq_mul] using iteratedDeriv_const_smul h c
| [
" iteratedDerivWithin n (f + g) s x = iteratedDerivWithin n f s x + iteratedDerivWithin n g s x",
" Set.EqOn (iteratedDerivWithin n f s) (iteratedDerivWithin n g s) s",
" Set.EqOn (iteratedDerivWithin 0 f s) (iteratedDerivWithin 0 g s) s",
" Set.EqOn (iteratedDerivWithin (n + 1) f s) (iteratedDerivWithin (n +... | [
" iteratedDerivWithin n (f + g) s x = iteratedDerivWithin n f s x + iteratedDerivWithin n g s x",
" Set.EqOn (iteratedDerivWithin n f s) (iteratedDerivWithin n g s) s",
" Set.EqOn (iteratedDerivWithin 0 f s) (iteratedDerivWithin 0 g s) s",
" Set.EqOn (iteratedDerivWithin (n + 1) f s) (iteratedDerivWithin (n +... |
import Mathlib.Analysis.SpecialFunctions.PolarCoord
import Mathlib.Analysis.SpecialFunctions.Gamma.Basic
open Real Set MeasureTheory MeasureTheory.Measure
section real
| Mathlib/MeasureTheory/Integral/Gamma.lean | 21 | 37 | theorem integral_rpow_mul_exp_neg_rpow {p q : ℝ} (hp : 0 < p) (hq : - 1 < q) :
∫ x in Ioi (0:ℝ), x ^ q * exp (- x ^ p) = (1 / p) * Gamma ((q + 1) / p) := by |
calc
_ = ∫ (x : ℝ) in Ioi 0, (1 / p * x ^ (1 / p - 1)) • ((x ^ (1 / p)) ^ q * exp (-x)) := by
rw [← integral_comp_rpow_Ioi _ (one_div_ne_zero (ne_of_gt hp)),
abs_eq_self.mpr (le_of_lt (one_div_pos.mpr hp))]
refine setIntegral_congr measurableSet_Ioi (fun _ hx => ?_)
rw [← rpow_mul (le_... | [
" ∫ (x : ℝ) in Ioi 0, x ^ q * rexp (-x ^ p) = 1 / p * ((q + 1) / p).Gamma",
" ∫ (x : ℝ) in Ioi 0, x ^ q * rexp (-x ^ p) =\n ∫ (x : ℝ) in Ioi 0, (1 / p * x ^ (1 / p - 1)) • ((x ^ (1 / p)) ^ q * rexp (-x))",
" ∫ (x : ℝ) in Ioi 0, (1 / p * x ^ (1 / p - 1)) • ((x ^ (1 / p)) ^ q * rexp (-(x ^ (1 / p)) ^ p)) =\n ... | [] |
import Mathlib.Data.Bundle
import Mathlib.Data.Set.Image
import Mathlib.Topology.PartialHomeomorph
import Mathlib.Topology.Order.Basic
#align_import topology.fiber_bundle.trivialization from "leanprover-community/mathlib"@"e473c3198bb41f68560cab68a0529c854b618833"
open TopologicalSpace Filter Set Bundle Function
... | Mathlib/Topology/FiberBundle/Trivialization.lean | 175 | 177 | theorem symm_apply_mk_proj {x : Z} (ex : x ∈ e.source) :
e.toPartialEquiv.symm (proj x, (e x).2) = x := by |
rw [← e.coe_fst ex, ← e.coe_coe, e.left_inv ex]
| [
" e = e'",
" { toPartialEquiv := toPartialEquiv✝, open_target := open_target✝, baseSet := baseSet✝, open_baseSet := open_baseSet✝,\n source_eq := source_eq✝, target_eq := target_eq✝, proj_toFun := proj_toFun✝ } =\n e'",
" { toPartialEquiv := toPartialEquiv✝¹, open_target := open_target✝¹, baseSet := bas... | [
" e = e'",
" { toPartialEquiv := toPartialEquiv✝, open_target := open_target✝, baseSet := baseSet✝, open_baseSet := open_baseSet✝,\n source_eq := source_eq✝, target_eq := target_eq✝, proj_toFun := proj_toFun✝ } =\n e'",
" { toPartialEquiv := toPartialEquiv✝¹, open_target := open_target✝¹, baseSet := bas... |
import Mathlib.CategoryTheory.Filtered.Connected
import Mathlib.CategoryTheory.Limits.TypesFiltered
import Mathlib.CategoryTheory.Limits.Final
universe v₁ v₂ u₁ u₂
namespace CategoryTheory
open CategoryTheory.Limits CategoryTheory.Functor Opposite
section ArbitraryUniverses
variable {C : Type u₁} [Category.{v₁}... | Mathlib/CategoryTheory/Filtered/Final.lean | 108 | 117 | theorem IsFilteredOrEmpty.of_exists_of_isFiltered_of_fullyFaithful [IsFilteredOrEmpty D] [F.Full]
[F.Faithful] (h : ∀ d, ∃ c, Nonempty (d ⟶ F.obj c)) : IsFilteredOrEmpty C where
cocone_objs c c' := by |
obtain ⟨c₀, ⟨f⟩⟩ := h (IsFiltered.max (F.obj c) (F.obj c'))
exact ⟨c₀, F.preimage (IsFiltered.leftToMax _ _ ≫ f),
F.preimage (IsFiltered.rightToMax _ _ ≫ f), trivial⟩
cocone_maps {c c'} f g := by
obtain ⟨c₀, ⟨f₀⟩⟩ := h (IsFiltered.coeq (F.map f) (F.map g))
refine ⟨_, F.preimage (IsFiltered.coeq... | [
" IsFiltered (StructuredArrow d F)",
" Nonempty (StructuredArrow d F)",
" IsFilteredOrEmpty (StructuredArrow d F)",
" ∃ Z x x, True",
" f ⟶ StructuredArrow.mk (f.hom ≫ F.map (IsFiltered.leftToMax f.right g.right ≫ t))",
" g ⟶ StructuredArrow.mk (f.hom ≫ F.map (IsFiltered.leftToMax f.right g.right ≫ t))",
... | [
" IsFiltered (StructuredArrow d F)",
" Nonempty (StructuredArrow d F)",
" IsFilteredOrEmpty (StructuredArrow d F)",
" ∃ Z x x, True",
" f ⟶ StructuredArrow.mk (f.hom ≫ F.map (IsFiltered.leftToMax f.right g.right ≫ t))",
" g ⟶ StructuredArrow.mk (f.hom ≫ F.map (IsFiltered.leftToMax f.right g.right ≫ t))",
... |
import Mathlib.Probability.Notation
import Mathlib.Probability.Integration
import Mathlib.MeasureTheory.Function.L2Space
#align_import probability.variance from "leanprover-community/mathlib"@"f0c8bf9245297a541f468be517f1bde6195105e9"
open MeasureTheory Filter Finset
noncomputable section
open scoped MeasureThe... | Mathlib/Probability/Variance.lean | 65 | 72 | theorem _root_.MeasureTheory.Memℒp.evariance_lt_top [IsFiniteMeasure μ] (hX : Memℒp X 2 μ) :
evariance X μ < ∞ := by |
have := ENNReal.pow_lt_top (hX.sub <| memℒp_const <| μ[X]).2 2
rw [snorm_eq_lintegral_rpow_nnnorm two_ne_zero ENNReal.two_ne_top, ← ENNReal.rpow_two] at this
simp only [coe_two, Pi.sub_apply, ENNReal.one_toReal, one_div] at this
rw [← ENNReal.rpow_mul, inv_mul_cancel (two_ne_zero : (2 : ℝ) ≠ 0), ENNReal.rpow_o... | [
" evariance X μ < ⊤"
] | [] |
import Mathlib.Algebra.Group.Subgroup.Basic
import Mathlib.Algebra.Group.Submonoid.Membership
import Mathlib.Data.Finite.Card
#align_import group_theory.subgroup.finite from "leanprover-community/mathlib"@"f93c11933efbc3c2f0299e47b8ff83e9b539cbf6"
variable {G : Type*} [Group G]
variable {A : Type*} [AddGroup A]
n... | Mathlib/Algebra/Group/Subgroup/Finite.lean | 259 | 270 | theorem mem_normalizer_fintype {S : Set G} [Finite S] {x : G} (h : ∀ n, n ∈ S → x * n * x⁻¹ ∈ S) :
x ∈ Subgroup.setNormalizer S := by |
haveI := Classical.propDecidable; cases nonempty_fintype S;
haveI := Set.fintypeImage S fun n => x * n * x⁻¹;
exact fun n =>
⟨h n, fun h₁ =>
have heq : (fun n => x * n * x⁻¹) '' S = S :=
Set.eq_of_subset_of_card_le (fun n ⟨y, hy⟩ => hy.2 ▸ h y hy.1)
(by rw [Set.card_imag... | [
" x ∈ setNormalizer S",
" Fintype.card ↑S ≤ Fintype.card ↑((fun n => x * n * x⁻¹) '' S)"
] | [] |
import Mathlib.CategoryTheory.Products.Basic
#align_import category_theory.products.bifunctor from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988"
open CategoryTheory
namespace CategoryTheory.Bifunctor
universe v₁ v₂ v₃ u₁ u₂ u₃
variable {C : Type u₁} {D : Type u₂} {E : Type u₃}
varia... | Mathlib/CategoryTheory/Products/Bifunctor.lean | 31 | 34 | theorem map_id_comp (F : C × D ⥤ E) (W : C) {X Y Z : D} (f : X ⟶ Y) (g : Y ⟶ Z) :
F.map ((𝟙 W, f ≫ g) : (W, X) ⟶ (W, Z)) =
F.map ((𝟙 W, f) : (W, X) ⟶ (W, Y)) ≫ F.map ((𝟙 W, g) : (W, Y) ⟶ (W, Z)) := by |
rw [← Functor.map_comp, prod_comp, Category.comp_id]
| [
" F.map (𝟙 W, f ≫ g) = F.map (𝟙 W, f) ≫ F.map (𝟙 W, g)"
] | [] |
import Mathlib.CategoryTheory.Limits.Preserves.Shapes.BinaryProducts
import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Products
import Mathlib.CategoryTheory.Limits.ConcreteCategory
import Mathlib.CategoryTheory.Limits.Shapes.Types
import Mathlib.CategoryTheory.Limits.Shapes.Multiequalizer
import Mathlib.CategoryT... | Mathlib/CategoryTheory/Limits/Shapes/ConcreteCategory.lean | 252 | 259 | theorem multiequalizer_ext {I : MulticospanIndex.{w} C} [HasMultiequalizer I]
[PreservesLimit I.multicospan (forget C)] (x y : ↑(multiequalizer I))
(h : ∀ t : I.L, Multiequalizer.ι I t x = Multiequalizer.ι I t y) : x = y := by |
apply Concrete.limit_ext
rintro (a | b)
· apply h
· rw [← limit.w I.multicospan (WalkingMulticospan.Hom.fst b), comp_apply, comp_apply]
simp [h]
| [
" x = y",
" ∀ (j : WalkingMulticospan I.fstTo I.sndTo), (limit.π I.multicospan j) x = (limit.π I.multicospan j) y",
" (limit.π I.multicospan (WalkingMulticospan.left a)) x = (limit.π I.multicospan (WalkingMulticospan.left a)) y",
" (limit.π I.multicospan (WalkingMulticospan.right b)) x = (limit.π I.multicospa... | [] |
import Mathlib.Analysis.InnerProductSpace.TwoDim
import Mathlib.Geometry.Euclidean.Angle.Unoriented.Basic
#align_import geometry.euclidean.angle.oriented.basic from "leanprover-community/mathlib"@"f0c8bf9245297a541f468be517f1bde6195105e9"
noncomputable section
open FiniteDimensional Complex
open scoped Real Rea... | Mathlib/Geometry/Euclidean/Angle/Oriented/Basic.lean | 86 | 87 | theorem left_ne_zero_of_oangle_ne_zero {x y : V} (h : o.oangle x y ≠ 0) : x ≠ 0 := by |
rintro rfl; simp at h
| [
" ContinuousAt (fun y => o.oangle y.1 y.2) x",
" (o.kahler x.1) x.2 ≠ 0",
" ContinuousAt (fun y => (o.kahler y.1) y.2) x",
" o.oangle 0 x = 0",
" o.oangle x 0 = 0",
" o.oangle x x = 0",
" ↑(↑(‖x‖ ^ 2)).arg = 0",
" (↑(‖x‖ ^ 2)).arg = 0",
" 0 ≤ ‖x‖ ^ 2",
" x ≠ 0",
" False"
] | [
" ContinuousAt (fun y => o.oangle y.1 y.2) x",
" (o.kahler x.1) x.2 ≠ 0",
" ContinuousAt (fun y => (o.kahler y.1) y.2) x",
" o.oangle 0 x = 0",
" o.oangle x 0 = 0",
" o.oangle x x = 0",
" ↑(↑(‖x‖ ^ 2)).arg = 0",
" (↑(‖x‖ ^ 2)).arg = 0",
" 0 ≤ ‖x‖ ^ 2"
] |
import Mathlib.Analysis.Calculus.LineDeriv.Basic
import Mathlib.Analysis.Calculus.FDeriv.Measurable
open MeasureTheory
variable {𝕜 : Type*} [NontriviallyNormedField 𝕜] [LocallyCompactSpace 𝕜]
{E : Type*} [NormedAddCommGroup E] [NormedSpace 𝕜 E] [MeasurableSpace E] [OpensMeasurableSpace E]
{F : Type*} [Norm... | Mathlib/Analysis/Calculus/LineDeriv/Measurable.lean | 72 | 81 | theorem measurableSet_lineDifferentiableAt_uncurry (hf : Continuous f) :
MeasurableSet {p : E × E | LineDifferentiableAt 𝕜 f p.1 p.2} := by |
borelize 𝕜
let g : (E × E) → 𝕜 → F := fun p t ↦ f (p.1 + t • p.2)
have : Continuous g.uncurry :=
hf.comp <| (continuous_fst.comp continuous_fst).add
<| continuous_snd.smul (continuous_snd.comp continuous_fst)
have M_meas : MeasurableSet {q : (E × E) × 𝕜 | DifferentiableAt 𝕜 (g q.1) q.2} :=
meas... | [
" MeasurableSet {x | LineDifferentiableAt 𝕜 f x v}",
" Continuous (Function.uncurry g)",
" Continuous fun x => x.1 + x.2 • v",
" Measurable fun x => lineDeriv 𝕜 f x v",
" StronglyMeasurable fun x => lineDeriv 𝕜 f x v",
" MeasurableSet {p | LineDifferentiableAt 𝕜 f p.1 p.2}"
] | [
" MeasurableSet {x | LineDifferentiableAt 𝕜 f x v}",
" Continuous (Function.uncurry g)",
" Continuous fun x => x.1 + x.2 • v",
" Measurable fun x => lineDeriv 𝕜 f x v",
" StronglyMeasurable fun x => lineDeriv 𝕜 f x v"
] |
import Mathlib.Analysis.Complex.AbsMax
import Mathlib.Analysis.Complex.RemovableSingularity
#align_import analysis.complex.schwarz from "leanprover-community/mathlib"@"3f655f5297b030a87d641ad4e825af8d9679eb0b"
open Metric Set Function Filter TopologicalSpace
open scoped Topology
namespace Complex
section Space... | Mathlib/Analysis/Complex/Schwarz.lean | 92 | 108 | theorem norm_dslope_le_div_of_mapsTo_ball (hd : DifferentiableOn ℂ f (ball c R₁))
(h_maps : MapsTo f (ball c R₁) (ball (f c) R₂)) (hz : z ∈ ball c R₁) :
‖dslope f c z‖ ≤ R₂ / R₁ := by |
have hR₁ : 0 < R₁ := nonempty_ball.1 ⟨z, hz⟩
have hR₂ : 0 < R₂ := nonempty_ball.1 ⟨f z, h_maps hz⟩
rcases eq_or_ne (dslope f c z) 0 with hc | hc
· rw [hc, norm_zero]; exact div_nonneg hR₂.le hR₁.le
rcases exists_dual_vector ℂ _ hc with ⟨g, hg, hgf⟩
have hg' : ‖g‖₊ = 1 := NNReal.eq hg
have hg₀ : ‖g‖₊ ≠ 0 ... | [
" ‖dslope f c z‖ ≤ R₂ / R₁",
" Tendsto (fun c => R₂ / c) (𝓝[<] R₁) (𝓝 (R₂ / R₁))",
" ∀ᶠ (r : ℝ) in 𝓝[<] R₁, ‖dslope f c z‖ ≤ R₂ / r",
" ‖dslope f c z‖ ≤ R₂ / r",
" DiffContOnCl ℂ (dslope f c) (ball c r)",
" DifferentiableOn ℂ (dslope f c) (closure (ball c r))",
" DifferentiableOn ℂ (dslope f c) (clos... | [
" ‖dslope f c z‖ ≤ R₂ / R₁",
" Tendsto (fun c => R₂ / c) (𝓝[<] R₁) (𝓝 (R₂ / R₁))",
" ∀ᶠ (r : ℝ) in 𝓝[<] R₁, ‖dslope f c z‖ ≤ R₂ / r",
" ‖dslope f c z‖ ≤ R₂ / r",
" DiffContOnCl ℂ (dslope f c) (ball c r)",
" DifferentiableOn ℂ (dslope f c) (closure (ball c r))",
" DifferentiableOn ℂ (dslope f c) (clos... |
import Mathlib.Data.Nat.Factorization.Basic
import Mathlib.Data.SetLike.Fintype
import Mathlib.GroupTheory.GroupAction.ConjAct
import Mathlib.GroupTheory.PGroup
import Mathlib.GroupTheory.NoncommPiCoprod
import Mathlib.Order.Atoms.Finite
import Mathlib.Data.Set.Lattice
#align_import group_theory.sylow from "leanprove... | Mathlib/GroupTheory/Sylow.lean | 138 | 141 | theorem subtype_injective {P Q : Sylow p G} {hP : ↑P ≤ N} {hQ : ↑Q ≤ N}
(h : P.subtype hP = Q.subtype hQ) : P = Q := by |
rw [SetLike.ext_iff] at h ⊢
exact fun g => ⟨fun hg => (h ⟨g, hP hg⟩).mp hg, fun hg => (h ⟨g, hQ hg⟩).mpr hg⟩
| [
" P = Q",
" { toSubgroup := toSubgroup✝, isPGroup' := isPGroup'✝, is_maximal' := is_maximal'✝ } = Q",
" { toSubgroup := toSubgroup✝¹, isPGroup' := isPGroup'✝¹, is_maximal' := is_maximal'✝¹ } =\n { toSubgroup := toSubgroup✝, isPGroup' := isPGroup'✝, is_maximal' := is_maximal'✝ }",
" Q = __src✝",
" Q = com... | [
" P = Q",
" { toSubgroup := toSubgroup✝, isPGroup' := isPGroup'✝, is_maximal' := is_maximal'✝ } = Q",
" { toSubgroup := toSubgroup✝¹, isPGroup' := isPGroup'✝¹, is_maximal' := is_maximal'✝¹ } =\n { toSubgroup := toSubgroup✝, isPGroup' := isPGroup'✝, is_maximal' := is_maximal'✝ }",
" Q = __src✝",
" Q = com... |
import Mathlib.LinearAlgebra.Matrix.Reindex
import Mathlib.LinearAlgebra.Matrix.ToLin
#align_import linear_algebra.matrix.basis from "leanprover-community/mathlib"@"6c263e4bfc2e6714de30f22178b4d0ca4d149a76"
noncomputable section
open LinearMap Matrix Set Submodule
open Matrix
section BasisToMatrix
variable {ι... | Mathlib/LinearAlgebra/Matrix/Basis.lean | 113 | 114 | theorem sum_toMatrix_smul_self [Fintype ι] : ∑ i : ι, e.toMatrix v i j • e i = v j := by |
simp_rw [e.toMatrix_apply, e.sum_repr]
| [
" e.toMatrix v = (LinearMap.toMatrix e e) ((e.constr ℕ) v)",
" e.toMatrix v i✝ j✝ = (LinearMap.toMatrix e e) ((e.constr ℕ) v) i✝ j✝",
" (Pi.basisFun R ι).toMatrix = transpose",
" (Pi.basisFun R ι).toMatrix M i j = Mᵀ i j",
" e.toMatrix ⇑e = 1",
" (fun i j => (e.repr (e j)) i) = 1",
" (e.repr (e j)) i = ... | [
" e.toMatrix v = (LinearMap.toMatrix e e) ((e.constr ℕ) v)",
" e.toMatrix v i✝ j✝ = (LinearMap.toMatrix e e) ((e.constr ℕ) v) i✝ j✝",
" (Pi.basisFun R ι).toMatrix = transpose",
" (Pi.basisFun R ι).toMatrix M i j = Mᵀ i j",
" e.toMatrix ⇑e = 1",
" (fun i j => (e.repr (e j)) i) = 1",
" (e.repr (e j)) i = ... |
import Mathlib.Init.Function
import Mathlib.Init.Order.Defs
#align_import data.bool.basic from "leanprover-community/mathlib"@"c4658a649d216f57e99621708b09dcb3dcccbd23"
namespace Bool
@[deprecated (since := "2024-06-07")] alias decide_True := decide_true_eq_true
#align bool.to_bool_true decide_true_eq_true
@[dep... | Mathlib/Data/Bool/Basic.lean | 102 | 102 | theorem or_inr {a b : Bool} (H : b) : a || b := by | cases a <;> simp [H]
| [
" b = false ∨ b = true",
" false = false ∨ false = true",
" true = false ∨ true = true",
" p x",
" p false",
" p true",
" p b ∨ p !b",
" p false ∨ p !false",
" p true ∨ p !true",
" ∃ x, p x",
" (a || b) = true",
" (false || b) = true",
" (true || b) = true"
] | [
" b = false ∨ b = true",
" false = false ∨ false = true",
" true = false ∨ true = true",
" p x",
" p false",
" p true",
" p b ∨ p !b",
" p false ∨ p !false",
" p true ∨ p !true",
" ∃ x, p x",
" (a || b) = true"
] |
import Mathlib.MeasureTheory.Decomposition.RadonNikodym
import Mathlib.Probability.Kernel.Disintegration.CdfToKernel
#align_import probability.kernel.cond_cdf from "leanprover-community/mathlib"@"3b88f4005dc2e28d42f974cc1ce838f0dafb39b8"
open MeasureTheory Set Filter TopologicalSpace
open scoped NNReal ENNReal Me... | Mathlib/Probability/Kernel/Disintegration/CondCdf.lean | 65 | 69 | theorem IicSnd_mono {r r' : ℝ} (h_le : r ≤ r') : ρ.IicSnd r ≤ ρ.IicSnd r' := by |
refine Measure.le_iff.2 fun s hs ↦ ?_
simp_rw [IicSnd_apply ρ _ hs]
refine measure_mono (prod_subset_prod_iff.mpr (Or.inl ⟨subset_rfl, Iic_subset_Iic.mpr ?_⟩))
exact mod_cast h_le
| [
" (ρ.IicSnd r) s = ρ (s ×ˢ Iic r)",
" ρ.IicSnd r ≤ ρ.IicSnd r'",
" (ρ.IicSnd r) s ≤ (ρ.IicSnd r') s",
" ρ (s ×ˢ Iic r) ≤ ρ (s ×ˢ Iic r')",
" r ≤ r'"
] | [
" (ρ.IicSnd r) s = ρ (s ×ˢ Iic r)"
] |
import Mathlib.Analysis.InnerProductSpace.Basic
import Mathlib.LinearAlgebra.SesquilinearForm
#align_import analysis.inner_product_space.orthogonal from "leanprover-community/mathlib"@"f0c8bf9245297a541f468be517f1bde6195105e9"
variable {𝕜 E F : Type*} [RCLike 𝕜]
variable [NormedAddCommGroup E] [InnerProductSpace... | Mathlib/Analysis/InnerProductSpace/Orthogonal.lean | 82 | 83 | theorem mem_orthogonal_singleton_iff_inner_left {u v : E} : v ∈ (𝕜 ∙ u)ᗮ ↔ ⟪v, u⟫ = 0 := by |
rw [mem_orthogonal_singleton_iff_inner_right, inner_eq_zero_symm]
| [
" ⟪u, a✝ + b✝⟫_𝕜 = 0",
" ⟪u, c • x⟫_𝕜 = 0",
" v ∈ Kᗮ ↔ ∀ u ∈ K, ⟪v, u⟫_𝕜 = 0",
" ⟪v, u⟫_𝕜 = 0",
" ⟪u, v⟫_𝕜 = 0",
" v ∈ (span 𝕜 {u})ᗮ ↔ ⟪u, v⟫_𝕜 = 0",
" ⟪u, v⟫_𝕜 = 0 → v ∈ (span 𝕜 {u})ᗮ",
" ⟪w, v⟫_𝕜 = 0",
" ⟪c • u, v⟫_𝕜 = 0",
" v ∈ (span 𝕜 {u})ᗮ ↔ ⟪v, u⟫_𝕜 = 0"
] | [
" ⟪u, a✝ + b✝⟫_𝕜 = 0",
" ⟪u, c • x⟫_𝕜 = 0",
" v ∈ Kᗮ ↔ ∀ u ∈ K, ⟪v, u⟫_𝕜 = 0",
" ⟪v, u⟫_𝕜 = 0",
" ⟪u, v⟫_𝕜 = 0",
" v ∈ (span 𝕜 {u})ᗮ ↔ ⟪u, v⟫_𝕜 = 0",
" ⟪u, v⟫_𝕜 = 0 → v ∈ (span 𝕜 {u})ᗮ",
" ⟪w, v⟫_𝕜 = 0",
" ⟪c • u, v⟫_𝕜 = 0"
] |
import Mathlib.Algebra.BigOperators.GroupWithZero.Finset
import Mathlib.Algebra.Group.Submonoid.Membership
import Mathlib.Algebra.Module.LinearMap.Basic
import Mathlib.Data.Finset.Preimage
import Mathlib.Data.Set.Finite
import Mathlib.GroupTheory.GroupAction.BigOperators
#align_import data.dfinsupp.basic from "leanpr... | Mathlib/Data/DFinsupp/Basic.lean | 150 | 154 | theorem mapRange_comp (f : ∀ i, β₁ i → β₂ i) (f₂ : ∀ i, β i → β₁ i) (hf : ∀ i, f i 0 = 0)
(hf₂ : ∀ i, f₂ i 0 = 0) (h : ∀ i, (f i ∘ f₂ i) 0 = 0) (g : Π₀ i : ι, β i) :
mapRange (fun i => f i ∘ f₂ i) h g = mapRange f hf (mapRange f₂ hf₂ g) := by |
ext
simp only [mapRange_apply]; rfl
| [
" { toFun := f₁, support' := s₁✝ } = { toFun := f₂, support' := s₁ }",
" { toFun := f₁, support' := s₁✝ } = { toFun := f₁, support' := s₁ }",
" s₁✝ = s₁",
" (fun i => f i (x i)) i = 0",
" mapRange (fun i => id) h g = g",
" (mapRange (fun i => id) h g) i✝ = g i✝",
" mapRange (fun i => f i ∘ f₂ i) h g = m... | [
" { toFun := f₁, support' := s₁✝ } = { toFun := f₂, support' := s₁ }",
" { toFun := f₁, support' := s₁✝ } = { toFun := f₁, support' := s₁ }",
" s₁✝ = s₁",
" (fun i => f i (x i)) i = 0",
" mapRange (fun i => id) h g = g",
" (mapRange (fun i => id) h g) i✝ = g i✝"
] |
import Mathlib.Analysis.Normed.Field.Basic
#align_import topology.metric_space.cau_seq_filter from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982"
universe u v
open Set Filter
open scoped Classical
open Topology
variable {β : Type v}
theorem CauSeq.tendsto_limit [NormedRing β] [hn : ... | Mathlib/Topology/MetricSpace/CauSeqFilter.lean | 67 | 82 | theorem CauSeq.cauchySeq (f : CauSeq β norm) : CauchySeq f := by |
refine cauchy_iff.2 ⟨by infer_instance, fun s hs => ?_⟩
rcases mem_uniformity_dist.1 hs with ⟨ε, ⟨hε, hεs⟩⟩
cases' CauSeq.cauchy₂ f hε with N hN
exists { n | n ≥ N }.image f
simp only [exists_prop, mem_atTop_sets, mem_map, mem_image, ge_iff_le, mem_setOf_eq]
constructor
· exists N
intro b hb
exis... | [
" ∀ (s : Set β), IsOpen s → f.lim ∈ s → ↑f ⁻¹' s ∈ atTop",
" ↑f ⁻¹' s ∈ atTop",
" ∃ a, ∀ b ≥ a, ↑f b ∈ s",
" ∀ b ≥ N, ↑f b ∈ s",
" ↑f b ∈ s",
" ↑f b ∈ Metric.ball f.lim ε",
" dist (↑f b) f.lim < ε",
" ‖f.lim - ↑f b‖ < ε",
" IsCauSeq norm f",
" ∃ i, ∀ j ≥ i, ‖f j - f i‖ < ε",
" ∀ j ≥ N, ‖f j - f ... | [
" ∀ (s : Set β), IsOpen s → f.lim ∈ s → ↑f ⁻¹' s ∈ atTop",
" ↑f ⁻¹' s ∈ atTop",
" ∃ a, ∀ b ≥ a, ↑f b ∈ s",
" ∀ b ≥ N, ↑f b ∈ s",
" ↑f b ∈ s",
" ↑f b ∈ Metric.ball f.lim ε",
" dist (↑f b) f.lim < ε",
" ‖f.lim - ↑f b‖ < ε",
" IsCauSeq norm f",
" ∃ i, ∀ j ≥ i, ‖f j - f i‖ < ε",
" ∀ j ≥ N, ‖f j - f ... |
import Mathlib.Data.Complex.Basic
import Mathlib.MeasureTheory.Integral.CircleIntegral
#align_import measure_theory.integral.circle_transform from "leanprover-community/mathlib"@"d11893b411025250c8e61ff2f12ccbd7ee35ab15"
open Set MeasureTheory Metric Filter Function
open scoped Interval Real
noncomputable secti... | Mathlib/MeasureTheory/Integral/CircleTransform.lean | 120 | 129 | theorem abs_circleTransformBoundingFunction_le {R r : ℝ} (hr : r < R) (hr' : 0 ≤ r) (z : ℂ) :
∃ x : closedBall z r ×ˢ [[0, 2 * π]], ∀ y : closedBall z r ×ˢ [[0, 2 * π]],
abs (circleTransformBoundingFunction R z y) ≤ abs (circleTransformBoundingFunction R z x) := by |
have cts := continuousOn_abs_circleTransformBoundingFunction hr z
have comp : IsCompact (closedBall z r ×ˢ [[0, 2 * π]]) := by
apply_rules [IsCompact.prod, ProperSpace.isCompact_closedBall z r, isCompact_uIcc]
have none : (closedBall z r ×ˢ [[0, 2 * π]]).Nonempty :=
(nonempty_closedBall.2 hr').prod nonem... | [
" Periodic (circleTransformDeriv R z w f) (2 * π)",
" ∀ (x : ℝ), circleTransformDeriv R z w f (x + 2 * π) = circleTransformDeriv R z w f x",
" circleTransformDeriv R z w f (x + 2 * π) = circleTransformDeriv R z w f x",
" (2 * ↑π * I)⁻¹ • deriv (circleMap z R) (x + 2 * π) • ((circleMap z R x - w) ^ 2)⁻¹ • f (c... | [
" Periodic (circleTransformDeriv R z w f) (2 * π)",
" ∀ (x : ℝ), circleTransformDeriv R z w f (x + 2 * π) = circleTransformDeriv R z w f x",
" circleTransformDeriv R z w f (x + 2 * π) = circleTransformDeriv R z w f x",
" (2 * ↑π * I)⁻¹ • deriv (circleMap z R) (x + 2 * π) • ((circleMap z R x - w) ^ 2)⁻¹ • f (c... |
import Mathlib.Analysis.InnerProductSpace.Dual
import Mathlib.Analysis.Calculus.FDeriv.Basic
import Mathlib.Analysis.Calculus.Deriv.Basic
open Topology InnerProductSpace Set
noncomputable section
variable {𝕜 F : Type*} [RCLike 𝕜]
variable [NormedAddCommGroup F] [InnerProductSpace 𝕜 F] [CompleteSpace F]
variabl... | Mathlib/Analysis/Calculus/Gradient/Basic.lean | 138 | 140 | theorem hasGradientWithinAt_univ : HasGradientWithinAt f f' univ x ↔ HasGradientAt f f' x := by |
rw [hasGradientWithinAt_iff_hasFDerivWithinAt, hasGradientAt_iff_hasFDerivAt]
exact hasFDerivWithinAt_univ
| [
" HasFDerivWithinAt f frechet s x ↔ HasGradientWithinAt f ((toDual 𝕜 F).symm frechet) s x",
" HasFDerivAt f frechet x ↔ HasGradientAt f ((toDual 𝕜 F).symm frechet) x",
" ∇ f x = 0",
" HasGradientAt f (∇ f x) x",
" HasFDerivAt f (fderiv 𝕜 f x) x",
" HasGradientWithinAt f (gradientWithin f s x) s x",
"... | [
" HasFDerivWithinAt f frechet s x ↔ HasGradientWithinAt f ((toDual 𝕜 F).symm frechet) s x",
" HasFDerivAt f frechet x ↔ HasGradientAt f ((toDual 𝕜 F).symm frechet) x",
" ∇ f x = 0",
" HasGradientAt f (∇ f x) x",
" HasFDerivAt f (fderiv 𝕜 f x) x",
" HasGradientWithinAt f (gradientWithin f s x) s x",
"... |
import Mathlib.Algebra.Module.Equiv
import Mathlib.Algebra.Module.Hom
import Mathlib.Algebra.Module.Prod
import Mathlib.Algebra.Module.Submodule.Range
import Mathlib.Data.Set.Finite
import Mathlib.Order.ConditionallyCompleteLattice.Basic
import Mathlib.Tactic.Abel
#align_import linear_algebra.basic from "leanprover-c... | Mathlib/LinearAlgebra/Basic.lean | 83 | 91 | theorem isLinearMap_sub {R M : Type*} [Semiring R] [AddCommGroup M] [Module R M] :
IsLinearMap R fun x : M × M => x.1 - x.2 := by |
apply IsLinearMap.mk
· intro x y
-- porting note (#10745): was `simp [add_comm, add_left_comm, sub_eq_add_neg]`
rw [Prod.fst_add, Prod.snd_add]
abel
· intro x y
simp [smul_sub]
| [
" IsLinearMap R fun x => x.1 + x.2",
" ∀ (x y : M × M), (x + y).1 + (x + y).2 = x.1 + x.2 + (y.1 + y.2)",
" (x + y).1 + (x + y).2 = x.1 + x.2 + (y.1 + y.2)",
" x.1 + y.1 + (x.2 + y.2) = x.1 + x.2 + (y.1 + y.2)",
" ∀ (c : R) (x : M × M), (c • x).1 + (c • x).2 = c • (x.1 + x.2)",
" (x • y).1 + (x • y).2 = x... | [
" IsLinearMap R fun x => x.1 + x.2",
" ∀ (x y : M × M), (x + y).1 + (x + y).2 = x.1 + x.2 + (y.1 + y.2)",
" (x + y).1 + (x + y).2 = x.1 + x.2 + (y.1 + y.2)",
" x.1 + y.1 + (x.2 + y.2) = x.1 + x.2 + (y.1 + y.2)",
" ∀ (c : R) (x : M × M), (c • x).1 + (c • x).2 = c • (x.1 + x.2)",
" (x • y).1 + (x • y).2 = x... |
import Mathlib.Algebra.Field.ULift
import Mathlib.Algebra.MvPolynomial.Cardinal
import Mathlib.Data.Nat.Factorization.PrimePow
import Mathlib.Data.Rat.Denumerable
import Mathlib.FieldTheory.Finite.GaloisField
import Mathlib.Logic.Equiv.TransferInstance
import Mathlib.RingTheory.Localization.Cardinality
import Mathlib.... | Mathlib/FieldTheory/Cardinality.lean | 53 | 57 | theorem Fintype.nonempty_field_iff {α} [Fintype α] : Nonempty (Field α) ↔ IsPrimePow ‖α‖ := by |
refine ⟨fun ⟨h⟩ => Fintype.isPrimePow_card_of_field, ?_⟩
rintro ⟨p, n, hp, hn, hα⟩
haveI := Fact.mk hp.nat_prime
exact ⟨(Fintype.equivOfCardEq ((GaloisField.card p n hn.ne').trans hα)).symm.field⟩
| [
" IsPrimePow ‖α‖",
" IsPrimePow p",
" ‖{ x // x ∈ IsNoetherian.finsetBasisIndex (ZMod p) α }‖ ≠ 0",
" FiniteDimensional.finrank (ZMod p) α ≠ 0",
" Nonempty (Field α) ↔ IsPrimePow ‖α‖",
" IsPrimePow ‖α‖ → Nonempty (Field α)",
" Nonempty (Field α)"
] | [
" IsPrimePow ‖α‖",
" IsPrimePow p",
" ‖{ x // x ∈ IsNoetherian.finsetBasisIndex (ZMod p) α }‖ ≠ 0",
" FiniteDimensional.finrank (ZMod p) α ≠ 0"
] |
import Mathlib.Topology.ContinuousOn
import Mathlib.Data.Set.BoolIndicator
open Set Filter Topology TopologicalSpace Classical
universe u v
variable {X : Type u} {Y : Type v} {ι : Type*}
variable [TopologicalSpace X] [TopologicalSpace Y] {s t : Set X}
section Clopen
protected theorem IsClopen.isOpen (hs : IsClo... | Mathlib/Topology/Clopen.lean | 30 | 34 | theorem isClopen_iff_frontier_eq_empty : IsClopen s ↔ frontier s = ∅ := by |
rw [IsClopen, ← closure_eq_iff_isClosed, ← interior_eq_iff_isOpen, frontier, diff_eq_empty]
refine ⟨fun h => (h.1.trans h.2.symm).subset, fun h => ?_⟩
exact ⟨(h.trans interior_subset).antisymm subset_closure,
interior_subset.antisymm (subset_closure.trans h)⟩
| [
" IsClopen s ↔ frontier s = ∅",
" closure s = s ∧ interior s = s ↔ closure s ⊆ interior s",
" closure s = s ∧ interior s = s"
] | [] |
import Mathlib.Data.SetLike.Basic
import Mathlib.Data.Finset.Preimage
import Mathlib.ModelTheory.Semantics
#align_import model_theory.definability from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a"
universe u v w u₁
namespace Set
variable {M : Type w} (A : Set M) (L : FirstOrder.Lang... | Mathlib/ModelTheory/Definability.lean | 116 | 122 | theorem Definable.union {f g : Set (α → M)} (hf : A.Definable L f) (hg : A.Definable L g) :
A.Definable L (f ∪ g) := by |
rcases hf with ⟨φ, hφ⟩
rcases hg with ⟨θ, hθ⟩
refine ⟨φ ⊔ θ, ?_⟩
ext
rw [hφ, hθ, mem_setOf_eq, Formula.realize_sup, mem_union, mem_setOf_eq, mem_setOf_eq]
| [
" A.Definable L' s",
" A.Definable L' (setOf ψ.Realize)",
" setOf ψ.Realize = setOf ((LHom.addConstants (↑A) φ).onFormula ψ).Realize",
" x ∈ setOf ψ.Realize ↔ x ∈ setOf ((LHom.addConstants (↑A) φ).onFormula ψ).Realize",
" A.Definable L s ↔ ∃ φ, s = {v | φ.Realize (Sum.elim Subtype.val v)}",
" (∃ b, s = se... | [
" A.Definable L' s",
" A.Definable L' (setOf ψ.Realize)",
" setOf ψ.Realize = setOf ((LHom.addConstants (↑A) φ).onFormula ψ).Realize",
" x ∈ setOf ψ.Realize ↔ x ∈ setOf ((LHom.addConstants (↑A) φ).onFormula ψ).Realize",
" A.Definable L s ↔ ∃ φ, s = {v | φ.Realize (Sum.elim Subtype.val v)}",
" (∃ b, s = se... |
import Mathlib.Data.List.OfFn
import Mathlib.Data.List.Nodup
import Mathlib.Data.List.Infix
#align_import data.list.sort from "leanprover-community/mathlib"@"f694c7dead66f5d4c80f446c796a5aad14707f0e"
open List.Perm
universe u
namespace List
section sort
variable {α : Type u} (r : α → α → Prop) [DecidableRe... | Mathlib/Data/List/Sort.lean | 273 | 275 | theorem orderedInsert_count [DecidableEq α] (L : List α) (a b : α) :
count a (L.orderedInsert r b) = count a L + if a = b then 1 else 0 := by |
rw [(L.perm_orderedInsert r b).count_eq, count_cons]
| [
" (orderedInsert r a (hd :: tl)).length = (hd :: tl).length + 1",
" (if r a hd then a :: hd :: tl else hd :: orderedInsert r a tl).length = tl.length + 1 + 1",
" (a :: hd :: tl).length = tl.length + 1 + 1",
" (hd :: orderedInsert r a tl).length = tl.length + 1 + 1",
" orderedInsert r a (b :: l) =\n takeW... | [
" (orderedInsert r a (hd :: tl)).length = (hd :: tl).length + 1",
" (if r a hd then a :: hd :: tl else hd :: orderedInsert r a tl).length = tl.length + 1 + 1",
" (a :: hd :: tl).length = tl.length + 1 + 1",
" (hd :: orderedInsert r a tl).length = tl.length + 1 + 1",
" orderedInsert r a (b :: l) =\n takeW... |
import Mathlib.Topology.Basic
#align_import topology.nhds_set from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982"
open Set Filter Topology
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] {f : Filter X}
{s t s₁ s₂ t₁ t₂ : Set X} {x : X}
theorem nhdsSet_diagonal (X) [T... | Mathlib/Topology/NhdsSet.lean | 63 | 64 | theorem mem_nhdsSet_iff_exists : s ∈ 𝓝ˢ t ↔ ∃ U : Set X, IsOpen U ∧ t ⊆ U ∧ U ⊆ s := by |
rw [← subset_interior_iff_mem_nhdsSet, subset_interior_iff]
| [
" 𝓝ˢ (diagonal X) = ⨆ x, 𝓝 (x, x)",
" sSup (range (𝓝 ∘ fun x => (x, x))) = ⨆ x, 𝓝 (x, x)",
" s ∈ 𝓝ˢ t ↔ ∀ x ∈ t, s ∈ 𝓝 x",
" 𝓝ˢ s ≤ f ↔ ∀ x ∈ s, 𝓝 x ≤ f",
" s ⊆ interior t ↔ t ∈ 𝓝ˢ s",
" Disjoint (𝓟 s) (𝓝ˢ t) ↔ Disjoint (closure s) t",
" Disjoint (𝓝ˢ s) (𝓟 t) ↔ Disjoint s (closure t)",
" ... | [
" 𝓝ˢ (diagonal X) = ⨆ x, 𝓝 (x, x)",
" sSup (range (𝓝 ∘ fun x => (x, x))) = ⨆ x, 𝓝 (x, x)",
" s ∈ 𝓝ˢ t ↔ ∀ x ∈ t, s ∈ 𝓝 x",
" 𝓝ˢ s ≤ f ↔ ∀ x ∈ s, 𝓝 x ≤ f",
" s ⊆ interior t ↔ t ∈ 𝓝ˢ s",
" Disjoint (𝓟 s) (𝓝ˢ t) ↔ Disjoint (closure s) t",
" Disjoint (𝓝ˢ s) (𝓟 t) ↔ Disjoint s (closure t)"
] |
import Mathlib.Analysis.Calculus.FDeriv.Pi
import Mathlib.Analysis.Calculus.Deriv.Basic
variable {𝕜 ι : Type*} [DecidableEq ι] [Fintype ι] [NontriviallyNormedField 𝕜]
| Mathlib/Analysis/Calculus/Deriv/Pi.lean | 15 | 22 | theorem hasDerivAt_update (x : ι → 𝕜) (i : ι) (y : 𝕜) :
HasDerivAt (Function.update x i) (Pi.single i (1 : 𝕜)) y := by |
convert (hasFDerivAt_update x y).hasDerivAt
ext z j
rw [Pi.single, Function.update_apply]
split_ifs with h
· simp [h]
· simp [Pi.single_eq_of_ne h]
| [
" HasDerivAt (Function.update x i) (Pi.single i 1) y",
" Pi.single i = ⇑(ContinuousLinearMap.pi (Pi.single i (ContinuousLinearMap.id 𝕜 𝕜)))",
" Pi.single i z j = (ContinuousLinearMap.pi (Pi.single i (ContinuousLinearMap.id 𝕜 𝕜))) z j",
" (if j = i then z else 0 j) = (ContinuousLinearMap.pi (Pi.single i (C... | [] |
import Mathlib.MeasureTheory.Integral.Lebesgue
import Mathlib.Analysis.MeanInequalities
import Mathlib.Analysis.MeanInequalitiesPow
import Mathlib.MeasureTheory.Function.SpecialFunctions.Basic
#align_import measure_theory.integral.mean_inequalities from "leanprover-community/mathlib"@"13bf7613c96a9fd66a81b9020a82cad9... | Mathlib/MeasureTheory/Integral/MeanInequalities.lean | 66 | 79 | theorem lintegral_mul_le_one_of_lintegral_rpow_eq_one {p q : ℝ} (hpq : p.IsConjExponent q)
{f g : α → ℝ≥0∞} (hf : AEMeasurable f μ) (hf_norm : ∫⁻ a, f a ^ p ∂μ = 1)
(hg_norm : ∫⁻ a, g a ^ q ∂μ = 1) : (∫⁻ a, (f * g) a ∂μ) ≤ 1 := by |
calc
(∫⁻ a : α, (f * g) a ∂μ) ≤
∫⁻ a : α, f a ^ p / ENNReal.ofReal p + g a ^ q / ENNReal.ofReal q ∂μ :=
lintegral_mono fun a => young_inequality (f a) (g a) hpq
_ = 1 := by
simp only [div_eq_mul_inv]
rw [lintegral_add_left']
· rw [lintegral_mul_const'' _ (hf.pow_const p), lint... | [
" ∫⁻ (a : α), (f * g) a ∂μ ≤ 1",
" ∫⁻ (a : α), f a ^ p / ENNReal.ofReal p + g a ^ q / ENNReal.ofReal q ∂μ = 1",
" ∫⁻ (a : α), f a ^ p * (ENNReal.ofReal p)⁻¹ + g a ^ q * (ENNReal.ofReal q)⁻¹ ∂μ = 1",
" ∫⁻ (a : α), f a ^ p * (ENNReal.ofReal p)⁻¹ ∂μ + ∫⁻ (a : α), g a ^ q * (ENNReal.ofReal q)⁻¹ ∂μ = 1",
" (ENNR... | [] |
import Mathlib.Tactic.CategoryTheory.Coherence
import Mathlib.CategoryTheory.Monoidal.Free.Coherence
#align_import category_theory.monoidal.coherence_lemmas from "leanprover-community/mathlib"@"b8b8bf3ea0c625fa1f950034a184e07c67f7bcfe"
open CategoryTheory Category Iso
namespace CategoryTheory.MonoidalCategory
v... | Mathlib/CategoryTheory/Monoidal/CoherenceLemmas.lean | 30 | 32 | theorem leftUnitor_tensor'' (X Y : C) :
(α_ (𝟙_ C) X Y).hom ≫ (λ_ (X ⊗ Y)).hom = (λ_ X).hom ⊗ 𝟙 Y := by |
coherence
| [
" (α_ (𝟙_ C) X Y).hom ≫ (λ_ (X ⊗ Y)).hom = (λ_ X).hom ⊗ 𝟙 Y"
] | [] |
import Mathlib.Algebra.Category.ModuleCat.Abelian
import Mathlib.CategoryTheory.Limits.Shapes.Images
#align_import algebra.category.Module.images from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a"
open CategoryTheory
open CategoryTheory.Limits
universe u v
namespace ModuleCat
set_op... | Mathlib/Algebra/Category/ModuleCat/Images.lean | 81 | 85 | 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
| [
" (fun x => F'.e ↑(Classical.indefiniteDescription (fun x_1 => f x_1 = ↑x) ⋯)) (x + y) =\n (fun x => F'.e ↑(Classical.indefiniteDescription (fun x_1 => f x_1 = ↑x) ⋯)) x +\n (fun x => F'.e ↑(Classical.indefiniteDescription (fun x_1 => f x_1 = ↑x) ⋯)) y",
" Mono F'.m",
" F'.m ((fun x => F'.e ↑(Classical.... | [
" (fun x => F'.e ↑(Classical.indefiniteDescription (fun x_1 => f x_1 = ↑x) ⋯)) (x + y) =\n (fun x => F'.e ↑(Classical.indefiniteDescription (fun x_1 => f x_1 = ↑x) ⋯)) x +\n (fun x => F'.e ↑(Classical.indefiniteDescription (fun x_1 => f x_1 = ↑x) ⋯)) y",
" Mono F'.m",
" F'.m ((fun x => F'.e ↑(Classical.... |
import Mathlib.Algebra.Algebra.Subalgebra.Operations
import Mathlib.Algebra.Ring.Fin
import Mathlib.RingTheory.Ideal.Quotient
#align_import ring_theory.ideal.quotient_operations from "leanprover-community/mathlib"@"b88d81c84530450a8989e918608e5960f015e6c8"
universe u v w
namespace Ideal
open Function RingHom
var... | Mathlib/RingTheory/Ideal/QuotientOperations.lean | 182 | 185 | theorem mem_quotient_iff_mem_sup {I J : Ideal R} {x : R} :
Quotient.mk I x ∈ J.map (Quotient.mk I) ↔ x ∈ J ⊔ I := by |
rw [← mem_comap, comap_map_of_surjective (Quotient.mk I) Quotient.mk_surjective, ←
ker_eq_comap_bot, mk_ker]
| [
" ker (Quotient.mk I) = I",
" x✝ ∈ ker (Quotient.mk I) ↔ x✝ ∈ I",
" map (Quotient.mk J) I = ⊥",
" I ≤ J",
" ker (Quotient.lift I f H) = map (Quotient.mk I) (ker f)",
" ∀ (x : R ⧸ I), x ∈ ker (Quotient.lift I f H) ↔ x ∈ map (Quotient.mk I) (ker f)",
" x ∈ ker (Quotient.lift I f H) ↔ x ∈ map (Quotient.mk ... | [
" ker (Quotient.mk I) = I",
" x✝ ∈ ker (Quotient.mk I) ↔ x✝ ∈ I",
" map (Quotient.mk J) I = ⊥",
" I ≤ J",
" ker (Quotient.lift I f H) = map (Quotient.mk I) (ker f)",
" ∀ (x : R ⧸ I), x ∈ ker (Quotient.lift I f H) ↔ x ∈ map (Quotient.mk I) (ker f)",
" x ∈ ker (Quotient.lift I f H) ↔ x ∈ map (Quotient.mk ... |
import Mathlib.Order.Filter.Bases
#align_import order.filter.pi from "leanprover-community/mathlib"@"ce64cd319bb6b3e82f31c2d38e79080d377be451"
open Set Function
open scoped Classical
open Filter
namespace Filter
variable {ι : Type*} {α : ι → Type*} {f f₁ f₂ : (i : ι) → Filter (α i)} {s : (i : ι) → Set (α i)}
... | Mathlib/Order/Filter/Pi.lean | 96 | 104 | theorem mem_of_pi_mem_pi [∀ i, NeBot (f i)] {I : Set ι} (h : I.pi s ∈ pi f) {i : ι} (hi : i ∈ I) :
s i ∈ f i := by |
rcases mem_pi.1 h with ⟨I', -, t, htf, hts⟩
refine mem_of_superset (htf i) fun x hx => ?_
have : ∀ i, (t i).Nonempty := fun i => nonempty_of_mem (htf i)
choose g hg using this
have : update g i x ∈ I'.pi t := fun j _ => by
rcases eq_or_ne j i with (rfl | hne) <;> simp [*]
simpa using hts this i hi
| [
" Tendsto m l (pi f) ↔ ∀ (i : ι), Tendsto (fun x => m x i) l (f i)",
" (∀ (i : ι), Tendsto (eval i ∘ m) l (f i)) ↔ ∀ (i : ι), Tendsto (fun x => m x i) l (f i)",
" I.pi s ∈ pi f",
" ⋂ x, eval ↑x ⁻¹' s ↑x ∈ pi f",
" eval ↑i ⁻¹' s ↑i ∈ comap (eval ↑i) (f ↑i)",
" s ∈ pi f ↔ ∃ I, I.Finite ∧ ∃ t, (∀ (i : ι), t ... | [
" Tendsto m l (pi f) ↔ ∀ (i : ι), Tendsto (fun x => m x i) l (f i)",
" (∀ (i : ι), Tendsto (eval i ∘ m) l (f i)) ↔ ∀ (i : ι), Tendsto (fun x => m x i) l (f i)",
" I.pi s ∈ pi f",
" ⋂ x, eval ↑x ⁻¹' s ↑x ∈ pi f",
" eval ↑i ⁻¹' s ↑i ∈ comap (eval ↑i) (f ↑i)",
" s ∈ pi f ↔ ∃ I, I.Finite ∧ ∃ t, (∀ (i : ι), t ... |
import Mathlib.RingTheory.GradedAlgebra.HomogeneousIdeal
#align_import ring_theory.graded_algebra.radical from "leanprover-community/mathlib"@"f1944b30c97c5eb626e498307dec8b022a05bd0a"
open GradedRing DirectSum SetLike Finset
variable {ι σ A : Type*}
variable [CommRing A]
variable [LinearOrderedCancelAddCommMono... | Mathlib/RingTheory/GradedAlgebra/Radical.lean | 47 | 136 | theorem Ideal.IsHomogeneous.isPrime_of_homogeneous_mem_or_mem {I : Ideal A} (hI : I.IsHomogeneous 𝒜)
(I_ne_top : I ≠ ⊤)
(homogeneous_mem_or_mem :
∀ {x y : A}, Homogeneous 𝒜 x → Homogeneous 𝒜 y → x * y ∈ I → x ∈ I ∨ y ∈ I) :
Ideal.IsPrime I :=
⟨I_ne_top, by
intro x y hxy
by_contra! rid
... |
intro x hx
rw [filter_nonempty_iff]
contrapose! hx
simp_rw [proj_apply] at hx
rw [← sum_support_decompose 𝒜 x]
exact Ideal.sum_mem _ hx
set max₁ := set₁.max' (nonempty x rid₁)
set max₂ := set₂.max' (nonempty y rid₂)
have mem_max₁ : max₁ ∈ set₁ := max'_... | [
" ∀ {x y : A}, x * y ∈ I → x ∈ I ∨ y ∈ I",
" x ∈ I ∨ y ∈ I",
" False",
" ∀ x ∉ I, (filter (fun i => (proj 𝒜 i) x ∉ I) (DFinsupp.support ((decompose 𝒜) x))).Nonempty",
" (filter (fun i => (proj 𝒜 i) x ∉ I) (DFinsupp.support ((decompose 𝒜) x))).Nonempty",
" ∃ a ∈ DFinsupp.support ((decompose 𝒜) x), (pr... | [] |
import Mathlib.Data.Finsupp.Basic
import Mathlib.Data.List.AList
#align_import data.finsupp.alist from "leanprover-community/mathlib"@"59694bd07f0a39c5beccba34bd9f413a160782bf"
namespace Finsupp
variable {α M : Type*} [Zero M]
@[simps]
noncomputable def toAList (f : α →₀ M) : AList fun _x : α => M :=
⟨f.grap... | Mathlib/Data/Finsupp/AList.lean | 48 | 49 | theorem mem_toAlist {f : α →₀ M} {x : α} : x ∈ f.toAList ↔ f x ≠ 0 := by |
classical rw [AList.mem_keys, ← List.mem_toFinset, toAList_keys_toFinset, mem_support_iff]
| [
" (List.map Prod.toSigma f.graph.toList).NodupKeys",
" ∀ x ∈ f.graph.toList, ∀ y ∈ f.graph.toList, x.1 = y.1 → x = y",
" (b, m) = (b, n)",
" f.graph.toList.Nodup",
" f.toAList.keys.toFinset = f.support",
" a✝ ∈ f.toAList.keys.toFinset ↔ a✝ ∈ f.support",
" x ∈ f.toAList ↔ f x ≠ 0"
] | [
" (List.map Prod.toSigma f.graph.toList).NodupKeys",
" ∀ x ∈ f.graph.toList, ∀ y ∈ f.graph.toList, x.1 = y.1 → x = y",
" (b, m) = (b, n)",
" f.graph.toList.Nodup",
" f.toAList.keys.toFinset = f.support",
" a✝ ∈ f.toAList.keys.toFinset ↔ a✝ ∈ f.support"
] |
import Mathlib.Algebra.Group.Semiconj.Defs
import Mathlib.Algebra.Ring.Defs
#align_import algebra.ring.semiconj from "leanprover-community/mathlib"@"70d50ecfd4900dd6d328da39ab7ebd516abe4025"
universe u v w x
variable {α : Type u} {β : Type v} {γ : Type w} {R : Type x}
open Function
namespace SemiconjBy
@[simp... | Mathlib/Algebra/Ring/Semiconj.lean | 95 | 97 | theorem sub_left (ha : SemiconjBy a x y) (hb : SemiconjBy b x y) :
SemiconjBy (a - b) x y := by |
simpa only [sub_eq_add_neg] using ha.add_left hb.neg_left
| [
" SemiconjBy a (x + x') (y + y')",
" SemiconjBy (a + b) x y",
" SemiconjBy a (-x) (-y)",
" SemiconjBy (-a) x y",
" SemiconjBy a (x - x') (y - y')",
" SemiconjBy (a - b) x y"
] | [
" SemiconjBy a (x + x') (y + y')",
" SemiconjBy (a + b) x y",
" SemiconjBy a (-x) (-y)",
" SemiconjBy (-a) x y",
" SemiconjBy a (x - x') (y - y')"
] |
import Mathlib.Analysis.Calculus.Deriv.Inv
import Mathlib.Analysis.NormedSpace.BallAction
import Mathlib.Analysis.SpecialFunctions.ExpDeriv
import Mathlib.Analysis.InnerProductSpace.Calculus
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.Geometry.Manifold.Algebra.LieGroup
import Mathlib.Geometry.Manifol... | Mathlib/Geometry/Manifold/Instances/Sphere.lean | 170 | 179 | theorem contDiff_stereoInvFunAux : ContDiff ℝ ⊤ (stereoInvFunAux v) := by |
have h₀ : ContDiff ℝ ⊤ fun w : E => ‖w‖ ^ 2 := contDiff_norm_sq ℝ
have h₁ : ContDiff ℝ ⊤ fun w : E => (‖w‖ ^ 2 + 4)⁻¹ := by
refine (h₀.add contDiff_const).inv ?_
intro x
nlinarith
have h₂ : ContDiff ℝ ⊤ fun w => (4 : ℝ) • w + (‖w‖ ^ 2 - 4) • v := by
refine (contDiff_const.smul contDiff_id).add ?_... | [
" ContDiffOn ℝ ⊤ (stereoToFun v) {x | ((innerSL ℝ) v) x ≠ 1}",
" ContDiffOn ℝ ⊤ (fun x => 2 / (1 - ((innerSL ℝ) v) x)) {x | ((innerSL ℝ) v) x ≠ 1}",
" ContDiffOn ℝ ⊤ (fun x => 1 - ((innerSL ℝ) v) x) {x | ((innerSL ℝ) v) x ≠ 1}",
" ∀ x ∈ {x | ((innerSL ℝ) v) x ≠ 1}, 1 - ((innerSL ℝ) v) x ≠ 0",
" False",
" ... | [
" ContDiffOn ℝ ⊤ (stereoToFun v) {x | ((innerSL ℝ) v) x ≠ 1}",
" ContDiffOn ℝ ⊤ (fun x => 2 / (1 - ((innerSL ℝ) v) x)) {x | ((innerSL ℝ) v) x ≠ 1}",
" ContDiffOn ℝ ⊤ (fun x => 1 - ((innerSL ℝ) v) x) {x | ((innerSL ℝ) v) x ≠ 1}",
" ∀ x ∈ {x | ((innerSL ℝ) v) x ≠ 1}, 1 - ((innerSL ℝ) v) x ≠ 0",
" False",
" ... |
import Lean.Elab.Tactic.Location
import Mathlib.Logic.Basic
import Mathlib.Init.Order.Defs
import Mathlib.Tactic.Conv
import Mathlib.Init.Set
import Lean.Elab.Tactic.Location
set_option autoImplicit true
namespace Mathlib.Tactic.PushNeg
open Lean Meta Elab.Tactic Parser.Tactic
variable (p q : Prop) (s : α → Prop)... | Mathlib/Tactic/PushNeg.lean | 47 | 48 | theorem empty_ne_eq_nonempty (s : Set γ) : (∅ ≠ s) = s.Nonempty := by |
rw [ne_comm, ne_empty_eq_nonempty]
| [
" ¬p ∧ q ∨ ¬¬p ∧ ¬q ↔ p ∧ ¬q ∨ ¬p ∧ q",
" (¬s.Nonempty) = (s = ∅)",
" (∀ (x : γ), ¬x ∈ s) ↔ s = ∅",
" x ∈ s ↔ x ∈ ∅",
" ∀ (x : γ), ¬x ∈ s",
" (s ≠ ∅) = s.Nonempty",
" (∅ ≠ s) = s.Nonempty"
] | [
" ¬p ∧ q ∨ ¬¬p ∧ ¬q ↔ p ∧ ¬q ∨ ¬p ∧ q",
" (¬s.Nonempty) = (s = ∅)",
" (∀ (x : γ), ¬x ∈ s) ↔ s = ∅",
" x ∈ s ↔ x ∈ ∅",
" ∀ (x : γ), ¬x ∈ s",
" (s ≠ ∅) = s.Nonempty"
] |
import Mathlib.CategoryTheory.Generator
import Mathlib.CategoryTheory.Preadditive.Yoneda.Basic
#align_import category_theory.preadditive.generator from "leanprover-community/mathlib"@"09f981f72d43749f1fa072deade828d9c1e185bb"
universe v u
open CategoryTheory Opposite
namespace CategoryTheory
variable {C : Type... | Mathlib/CategoryTheory/Preadditive/Generator.lean | 54 | 59 | theorem isSeparator_iff_faithful_preadditiveCoyoneda (G : C) :
IsSeparator G ↔ (preadditiveCoyoneda.obj (op G)).Faithful := by |
rw [isSeparator_iff_faithful_coyoneda_obj, ← whiskering_preadditiveCoyoneda, Functor.comp_obj,
whiskeringRight_obj_obj]
exact ⟨fun h => Functor.Faithful.of_comp _ (forget AddCommGroupCat),
fun h => Functor.Faithful.comp _ _⟩
| [
" ∀ G ∈ 𝒢, ∀ (h : G ⟶ X), h ≫ f = h ≫ 0",
" ∀ G ∈ 𝒢, ∀ (h : G ⟶ X), h ≫ (f - g) = 0",
" ∀ G ∈ 𝒢, ∀ (h : Y ⟶ G), f ≫ h = 0 ≫ h",
" ∀ G ∈ 𝒢, ∀ (h : Y ⟶ G), (f - g) ≫ h = 0",
" ∀ (h : G ⟶ X), h ≫ f = h ≫ 0",
" ∀ (h : G ⟶ X), h ≫ (f - g) = 0",
" ∀ (h : Y ⟶ G), f ≫ h = 0 ≫ h",
" ∀ (h : Y ⟶ G), (f - g) ... | [
" ∀ G ∈ 𝒢, ∀ (h : G ⟶ X), h ≫ f = h ≫ 0",
" ∀ G ∈ 𝒢, ∀ (h : G ⟶ X), h ≫ (f - g) = 0",
" ∀ G ∈ 𝒢, ∀ (h : Y ⟶ G), f ≫ h = 0 ≫ h",
" ∀ G ∈ 𝒢, ∀ (h : Y ⟶ G), (f - g) ≫ h = 0",
" ∀ (h : G ⟶ X), h ≫ f = h ≫ 0",
" ∀ (h : G ⟶ X), h ≫ (f - g) = 0",
" ∀ (h : Y ⟶ G), f ≫ h = 0 ≫ h",
" ∀ (h : Y ⟶ G), (f - g) ... |
import Mathlib.Analysis.Calculus.Deriv.Basic
import Mathlib.Analysis.Calculus.FDeriv.Mul
import Mathlib.Analysis.Calculus.FDeriv.Add
#align_import analysis.calculus.deriv.mul from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe"
universe u v w
noncomputable section
open scoped Classical... | Mathlib/Analysis/Calculus/Deriv/Mul.lean | 120 | 123 | theorem HasDerivWithinAt.smul_const (hc : HasDerivWithinAt c c' s x) (f : F) :
HasDerivWithinAt (fun y => c y • f) (c' • f) s x := by |
have := hc.smul (hasDerivWithinAt_const x s f)
rwa [smul_zero, zero_add] at this
| [
" HasDerivWithinAt (fun y => c y • f y) (c x • f' + c' • f x) s x",
" HasDerivAt (fun y => c y • f y) (c x • f' + c' • f x) x",
" HasDerivWithinAt (fun y => c y • f y) (c x • f' + c' • f x) univ x",
" HasStrictDerivAt (fun y => c y • f y) (c x • f' + c' • f x) x",
" HasStrictDerivAt (fun y => c y • f) (c' •... | [
" HasDerivWithinAt (fun y => c y • f y) (c x • f' + c' • f x) s x",
" HasDerivAt (fun y => c y • f y) (c x • f' + c' • f x) x",
" HasDerivWithinAt (fun y => c y • f y) (c x • f' + c' • f x) univ x",
" HasStrictDerivAt (fun y => c y • f y) (c x • f' + c' • f x) x",
" HasStrictDerivAt (fun y => c y • f) (c' •... |
import Mathlib.Topology.MetricSpace.Basic
#align_import topology.metric_space.metrizable from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982"
open Set Filter Metric
open scoped Filter Topology
namespace TopologicalSpace
variable {ι X Y : Type*} {π : ι → Type*} [TopologicalSpace X] [Top... | Mathlib/Topology/Metrizable/Basic.lean | 133 | 137 | theorem IsSeparable.secondCountableTopology [PseudoMetrizableSpace X] {s : Set X}
(hs : IsSeparable s) : SecondCountableTopology s := by |
letI := pseudoMetrizableSpacePseudoMetric X
have := hs.separableSpace
exact UniformSpace.secondCountable_of_separable s
| [
" FirstCountableTopology X",
" PseudoMetrizableSpace ((i : ι) → π i)",
" MetrizableSpace ((i : ι) → π i)",
" SecondCountableTopology ↑s"
] | [
" FirstCountableTopology X",
" PseudoMetrizableSpace ((i : ι) → π i)",
" MetrizableSpace ((i : ι) → π i)"
] |
import Mathlib.Order.Cover
import Mathlib.Order.Interval.Finset.Defs
#align_import data.finset.locally_finite from "leanprover-community/mathlib"@"442a83d738cb208d3600056c489be16900ba701d"
assert_not_exists MonoidWithZero
assert_not_exists Finset.sum
open Function OrderDual
open FinsetInterval
variable {ι α : T... | Mathlib/Order/Interval/Finset/Basic.lean | 83 | 84 | theorem Ico_eq_empty_iff : Ico a b = ∅ ↔ ¬a < b := by |
rw [← coe_eq_empty, coe_Ico, Set.Ico_eq_empty_iff]
| [
" (Icc a b).Nonempty ↔ a ≤ b",
" (Ico a b).Nonempty ↔ a < b",
" (Ioc a b).Nonempty ↔ a < b",
" (Ioo a b).Nonempty ↔ a < b",
" Icc a b = ∅ ↔ ¬a ≤ b",
" Ico a b = ∅ ↔ ¬a < b"
] | [
" (Icc a b).Nonempty ↔ a ≤ b",
" (Ico a b).Nonempty ↔ a < b",
" (Ioc a b).Nonempty ↔ a < b",
" (Ioo a b).Nonempty ↔ a < b",
" Icc a b = ∅ ↔ ¬a ≤ b"
] |
import Mathlib.Geometry.RingedSpace.PresheafedSpace
import Mathlib.CategoryTheory.Limits.Final
import Mathlib.Topology.Sheaves.Stalks
#align_import algebraic_geometry.stalks from "leanprover-community/mathlib"@"d39590fc8728fbf6743249802486f8c91ffe07bc"
noncomputable section
universe v u v' u'
open Opposite Cate... | Mathlib/Geometry/RingedSpace/Stalks.lean | 56 | 59 | theorem stalkMap_germ {X Y : PresheafedSpace.{_, _, v} C} (α : X ⟶ Y) (U : Opens Y)
(x : (Opens.map α.base).obj U) :
Y.presheaf.germ ⟨α.base x.1, x.2⟩ ≫ stalkMap α ↑x = α.c.app (op U) ≫ X.presheaf.germ x := by |
rw [stalkMap, stalkFunctor_map_germ_assoc, stalkPushforward_germ]
| [
" Y.presheaf.germ ⟨α.base ↑x, ⋯⟩ ≫ stalkMap α ↑x = α.c.app { unop := U } ≫ X.presheaf.germ x"
] | [] |
import Mathlib.Algebra.BigOperators.Group.Finset
import Mathlib.Data.List.MinMax
import Mathlib.Algebra.Tropical.Basic
import Mathlib.Order.ConditionallyCompleteLattice.Finset
#align_import algebra.tropical.big_operators from "leanprover-community/mathlib"@"d6fad0e5bf2d6f48da9175d25c3dc5706b3834ce"
variable {R S :... | Mathlib/Algebra/Tropical/BigOperators.lean | 51 | 55 | theorem trop_sum [AddCommMonoid R] (s : Finset S) (f : S → R) :
trop (∑ i ∈ s, f i) = ∏ i ∈ s, trop (f i) := by |
convert Multiset.trop_sum (s.val.map f)
simp only [Multiset.map_map, Function.comp_apply]
rfl
| [
" trop l.sum = (map trop l).prod",
" trop [].sum = (map trop []).prod",
" trop (hd :: tl).sum = (map trop (hd :: tl)).prod",
" ∀ (a : List R), trop (sum ⟦a⟧) = (map trop ⟦a⟧).prod",
" trop (∑ i ∈ s, f i) = ∏ i ∈ s, trop (f i)",
" ∏ i ∈ s, trop (f i) = (Multiset.map trop (Multiset.map f s.val)).prod",
" ... | [
" trop l.sum = (map trop l).prod",
" trop [].sum = (map trop []).prod",
" trop (hd :: tl).sum = (map trop (hd :: tl)).prod",
" ∀ (a : List R), trop (sum ⟦a⟧) = (map trop ⟦a⟧).prod"
] |
import Mathlib.Combinatorics.SetFamily.Shadow
#align_import combinatorics.set_family.compression.uv from "leanprover-community/mathlib"@"6f8ab7de1c4b78a68ab8cf7dd83d549eb78a68a1"
open Finset
variable {α : Type*}
theorem sup_sdiff_injOn [GeneralizedBooleanAlgebra α] (u v : α) :
{ x | Disjoint u x ∧ v ≤ x }.... | Mathlib/Combinatorics/SetFamily/Compression/UV.lean | 142 | 151 | theorem compress_injOn : Set.InjOn (compress u v) ↑(s.filter (compress u v · ∉ s)) := by |
intro a ha b hb hab
rw [mem_coe, mem_filter] at ha hb
rw [compress] at ha hab
split_ifs at ha hab with has
· rw [compress] at hb hab
split_ifs at hb hab with hbs
· exact sup_sdiff_injOn u v has hbs hab
· exact (hb.2 hb.1).elim
· exact (ha.2 ha.1).elim
| [
" 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",
" compress u v ((a ⊔ v) \\ u) = a",
" compress u u a = a",
" (if Disjoint u a ∧ u ≤ a then (a ⊔ u) \\ u else a) = a",
" (a ⊔ u) \\ u = a",
" a = a",
" compress (a \\ b) (b... | [
" 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",
" compress u v ((a ⊔ v) \\ u) = a",
" compress u u a = a",
" (if Disjoint u a ∧ u ≤ a then (a ⊔ u) \\ u else a) = a",
" (a ⊔ u) \\ u = a",
" a = a",
" compress (a \\ b) (b... |
import Mathlib.Algebra.Order.Sub.Defs
import Mathlib.Data.Finset.Basic
import Mathlib.Order.Interval.Finset.Defs
open Function
namespace Finset
class HasAntidiagonal (A : Type*) [AddMonoid A] where
antidiagonal : A → Finset (A × A)
mem_antidiagonal {n} {a} : a ∈ antidiagonal n ↔ a.fst + a.snd = n
exp... | Mathlib/Data/Finset/Antidiagonal.lean | 169 | 174 | theorem filter_snd_eq_antidiagonal (n m : A) [DecidablePred (· = m)] [Decidable (m ≤ n)] :
filter (fun x : A × A ↦ x.snd = m) (antidiagonal n) = if m ≤ n then {(n - m, m)} else ∅ := by |
have : (fun x : A × A ↦ (x.snd = m)) ∘ Prod.swap = fun x : A × A ↦ x.fst = m := by
ext; simp
rw [← map_swap_antidiagonal, filter_map]
simp [this, filter_fst_eq_antidiagonal, apply_ite (Finset.map _)]
| [
" ∀ (a b : HasAntidiagonal A), a = b",
" { antidiagonal := a, mem_antidiagonal := ha } = { antidiagonal := b, mem_antidiagonal := hb }",
" xy ∈ a n ↔ xy ∈ b n",
" antidiagonal = antidiagonal",
" H1 = H2",
" xy.swap ∈ antidiagonal n ↔ xy ∈ antidiagonal n",
" (a, b) ∈ map (Equiv.prodComm A A).toEmbedding ... | [
" ∀ (a b : HasAntidiagonal A), a = b",
" { antidiagonal := a, mem_antidiagonal := ha } = { antidiagonal := b, mem_antidiagonal := hb }",
" xy ∈ a n ↔ xy ∈ b n",
" antidiagonal = antidiagonal",
" H1 = H2",
" xy.swap ∈ antidiagonal n ↔ xy ∈ antidiagonal n",
" (a, b) ∈ map (Equiv.prodComm A A).toEmbedding ... |
import Mathlib.Topology.Algebra.Algebra
import Mathlib.Topology.ContinuousFunction.Compact
import Mathlib.Topology.UrysohnsLemma
import Mathlib.Analysis.RCLike.Basic
import Mathlib.Analysis.NormedSpace.Units
import Mathlib.Topology.Algebra.Module.CharacterSpace
#align_import topology.continuous_function.ideals from "... | Mathlib/Topology/ContinuousFunction/Ideals.lean | 118 | 120 | theorem not_mem_setOfIdeal {I : Ideal C(X, R)} {x : X} :
x ∉ setOfIdeal I ↔ ∀ ⦃f : C(X, R)⦄, f ∈ I → f x = 0 := by |
rw [← Set.mem_compl_iff, setOfIdeal, compl_compl, Set.mem_setOf]
| [
" (f + g) x = 0",
" IsClosed ↑(idealOfSet R s)",
" IsClosed ↑{ carrier := ⋂ i ∈ sᶜ, {x | x i = 0}, add_mem' := ⋯, zero_mem' := ⋯ }",
" f ∈ idealOfSet R s ↔ ∀ ⦃x : X⦄, x ∈ sᶜ → f x = 0",
" f ∉ idealOfSet R s ↔ ∃ x ∈ sᶜ, f x ≠ 0",
" (¬∀ ⦃x : X⦄, x ∈ sᶜ → f x = 0) ↔ ∃ x ∈ sᶜ, f x ≠ 0",
" (∃ x ∈ sᶜ, f x ≠ 0... | [
" (f + g) x = 0",
" IsClosed ↑(idealOfSet R s)",
" IsClosed ↑{ carrier := ⋂ i ∈ sᶜ, {x | x i = 0}, add_mem' := ⋯, zero_mem' := ⋯ }",
" f ∈ idealOfSet R s ↔ ∀ ⦃x : X⦄, x ∈ sᶜ → f x = 0",
" f ∉ idealOfSet R s ↔ ∃ x ∈ sᶜ, f x ≠ 0",
" (¬∀ ⦃x : X⦄, x ∈ sᶜ → f x = 0) ↔ ∃ x ∈ sᶜ, f x ≠ 0",
" (∃ x ∈ sᶜ, f x ≠ 0... |
import Mathlib.Combinatorics.SimpleGraph.Connectivity
import Mathlib.Data.Nat.Lattice
#align_import combinatorics.simple_graph.metric from "leanprover-community/mathlib"@"352ecfe114946c903338006dd3287cb5a9955ff2"
namespace SimpleGraph
variable {V : Type*} (G : SimpleGraph V)
noncomputable def dist (u v : V)... | Mathlib/Combinatorics/SimpleGraph/Metric.lean | 144 | 153 | theorem Walk.isPath_of_length_eq_dist {u v : V} (p : G.Walk u v) (hp : p.length = G.dist u v) :
p.IsPath := by |
classical
have : p.bypass = p := by
apply Walk.bypass_eq_self_of_length_le
calc p.length
_ = G.dist u v := hp
_ ≤ p.bypass.length := dist_le p.bypass
rw [← this]
apply Walk.bypass_isPath
| [
" G.dist u v = 0 ↔ u = v ∨ ¬G.Reachable u v",
" G.dist v v = 0",
" G.dist u v = 0 ↔ u = v",
" G.dist u v ≠ 0",
" False",
" G.dist u v = 0",
" Set.univ.Nonempty",
" G.dist u w ≤ G.dist u v + G.dist v w",
" G.dist u w ≤ (p.append q).length",
" G.dist u v ≤ G.dist v u",
" G.dist u v ≤ p.reverse.len... | [
" G.dist u v = 0 ↔ u = v ∨ ¬G.Reachable u v",
" G.dist v v = 0",
" G.dist u v = 0 ↔ u = v",
" G.dist u v ≠ 0",
" False",
" G.dist u v = 0",
" Set.univ.Nonempty",
" G.dist u w ≤ G.dist u v + G.dist v w",
" G.dist u w ≤ (p.append q).length",
" G.dist u v ≤ G.dist v u",
" G.dist u v ≤ p.reverse.len... |
import Mathlib.Data.Set.Lattice
#align_import data.semiquot from "leanprover-community/mathlib"@"09597669f02422ed388036273d8848119699c22f"
-- Porting note: removed universe parameter
structure Semiquot (α : Type*) where mk' ::
s : Set α
val : Trunc s
#align semiquot Semiquot
namespace Semiquot
vari... | Mathlib/Data/Semiquot.lean | 115 | 117 | theorem liftOn_ofMem (q : Semiquot α) (f : α → β)
(h : ∀ a ∈ q, ∀ b ∈ q, f a = f b) (a : α) (aq : a ∈ q) : liftOn q f h = f a := by |
revert h; rw [eq_mk_of_mem aq]; intro; rfl
| [
" q₁ = q₂ ↔ q₁.s = q₂.s",
" q₁ = q₂",
" { s := s✝, val := v₁ } = q₂",
" { s := s✝¹, val := v₁ } = { s := s✝, val := v₂ }",
" HEq v₁ v₂",
" blur s q = q.blur' h",
" q.blur' ⋯ = q.blur' h",
" s ∪ q.s = s",
" q.liftOn f h = f a",
" ∀ (h : ∀ a ∈ q, ∀ b ∈ q, f a = f b), q.liftOn f h = f a",
" ∀ (h : ... | [
" q₁ = q₂ ↔ q₁.s = q₂.s",
" q₁ = q₂",
" { s := s✝, val := v₁ } = q₂",
" { s := s✝¹, val := v₁ } = { s := s✝, val := v₂ }",
" HEq v₁ v₂",
" blur s q = q.blur' h",
" q.blur' ⋯ = q.blur' h",
" s ∪ q.s = s"
] |
import Mathlib.Algebra.Order.Group.Indicator
import Mathlib.Analysis.Normed.Group.Basic
#align_import analysis.normed_space.indicator_function from "leanprover-community/mathlib"@"17ef379e997badd73e5eabb4d38f11919ab3c4b3"
variable {α E : Type*} [SeminormedAddCommGroup E] {s t : Set α} (f : α → E) (a : α)
open Se... | Mathlib/Analysis/NormedSpace/IndicatorFunction.lean | 34 | 37 | theorem norm_indicator_le_of_subset (h : s ⊆ t) (f : α → E) (a : α) :
‖indicator s f a‖ ≤ ‖indicator t f a‖ := by |
simp only [norm_indicator_eq_indicator_norm]
exact indicator_le_indicator_of_subset ‹_› (fun _ => norm_nonneg _) _
| [
" ‖s.indicator f a‖ ≤ ‖t.indicator f a‖",
" s.indicator (fun a => ‖f a‖) a ≤ t.indicator (fun a => ‖f a‖) a"
] | [] |
import Mathlib.Analysis.Calculus.FDeriv.Equiv
import Mathlib.Analysis.Calculus.FormalMultilinearSeries
#align_import analysis.calculus.cont_diff_def from "leanprover-community/mathlib"@"3a69562db5a458db8322b190ec8d9a8bbd8a5b14"
noncomputable section
open scoped Classical
open NNReal Topology Filter
local notatio... | Mathlib/Analysis/Calculus/ContDiff/Defs.lean | 223 | 226 | theorem HasFTaylorSeriesUpToOn.continuousOn (h : HasFTaylorSeriesUpToOn n f p s) :
ContinuousOn f s := by |
have := (h.cont 0 bot_le).congr fun x hx => (h.zero_eq' hx).symm
rwa [← (continuousMultilinearCurryFin0 𝕜 E F).symm.comp_continuousOn_iff]
| [
" p x 0 = (continuousMultilinearCurryFin0 𝕜 E F).symm (f x)",
" p x 0 = (continuousMultilinearCurryFin0 𝕜 E F).symm (p x 0).uncurry0",
" HasFTaylorSeriesUpToOn n f₁ p s",
" (p x 0).uncurry0 = f₁ x",
" (p x 0).uncurry0 = f x",
" ContinuousOn f s"
] | [
" p x 0 = (continuousMultilinearCurryFin0 𝕜 E F).symm (f x)",
" p x 0 = (continuousMultilinearCurryFin0 𝕜 E F).symm (p x 0).uncurry0",
" HasFTaylorSeriesUpToOn n f₁ p s",
" (p x 0).uncurry0 = f₁ x",
" (p x 0).uncurry0 = f x"
] |
import Mathlib.Algebra.Quaternion
import Mathlib.Tactic.Ring
#align_import algebra.quaternion_basis from "leanprover-community/mathlib"@"3aa5b8a9ed7a7cabd36e6e1d022c9858ab8a8c2d"
open Quaternion
namespace QuaternionAlgebra
structure Basis {R : Type*} (A : Type*) [CommRing R] [Ring A] [Algebra R A] (c₁ c₂ : R) ... | Mathlib/Algebra/QuaternionBasis.lean | 120 | 122 | theorem lift_add (x y : ℍ[R,c₁,c₂]) : q.lift (x + y) = q.lift x + q.lift y := by |
simp only [lift, add_re, map_add, add_imI, add_smul, add_imJ, add_imK]
abel
| [
" q₁ = q₂",
" { i := i✝, j := j✝, k := k✝, i_mul_i := i_mul_i✝, j_mul_j := j_mul_j✝, i_mul_j := i_mul_j✝, j_mul_i := j_mul_i✝ } = q₂",
" { i := i✝, j := j✝, k := k✝, i_mul_i := i_mul_i✝, j_mul_j := j_mul_j✝, i_mul_j := q₁_i_mul_j, j_mul_i := j_mul_i✝ } =\n q₂",
" { i := i✝¹, j := j✝¹, k := k✝¹, i_mul_i := ... | [
" q₁ = q₂",
" { i := i✝, j := j✝, k := k✝, i_mul_i := i_mul_i✝, j_mul_j := j_mul_j✝, i_mul_j := i_mul_j✝, j_mul_i := j_mul_i✝ } = q₂",
" { i := i✝, j := j✝, k := k✝, i_mul_i := i_mul_i✝, j_mul_j := j_mul_j✝, i_mul_j := q₁_i_mul_j, j_mul_i := j_mul_i✝ } =\n q₂",
" { i := i✝¹, j := j✝¹, k := k✝¹, i_mul_i := ... |
import Mathlib.Topology.Order.ProjIcc
import Mathlib.Topology.CompactOpen
import Mathlib.Topology.UnitInterval
#align_import topology.path_connected from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982"
noncomputable section
open scoped Classical
open Topology Filter unitInterval Set Fun... | Mathlib/Topology/Connected/PathConnected.lean | 178 | 181 | theorem symm_symm (γ : Path x y) : γ.symm.symm = γ := by |
ext t
show γ (σ (σ t)) = γ t
rw [unitInterval.symm_symm]
| [
" γ₁ = γ₂",
" { toContinuousMap := toContinuousMap✝, source' := source'✝, target' := target'✝ } = γ₂",
" { toContinuousMap := toContinuousMap✝¹, source' := source'✝¹, target' := target'✝¹ } =\n { toContinuousMap := toContinuousMap✝, source' := source'✝, target' := target'✝ }",
" Continuous ⇑γ.toContinuousM... | [
" γ₁ = γ₂",
" { toContinuousMap := toContinuousMap✝, source' := source'✝, target' := target'✝ } = γ₂",
" { toContinuousMap := toContinuousMap✝¹, source' := source'✝¹, target' := target'✝¹ } =\n { toContinuousMap := toContinuousMap✝, source' := source'✝, target' := target'✝ }",
" Continuous ⇑γ.toContinuousM... |
import Mathlib.MeasureTheory.MeasurableSpace.Defs
import Mathlib.Order.Filter.CountableInter
open Filter Set MeasurableSpace
variable {α : Type*} (m : MeasurableSpace α) (l : Filter α) [CountableInterFilter l] {s t : Set α}
def EventuallyMeasurableSpace : MeasurableSpace α where
MeasurableSet' s := ∃ t, Measu... | Mathlib/MeasureTheory/Constructions/EventuallyMeasurable.lean | 67 | 70 | theorem EventuallyMeasurableSet.congr
(ht : EventuallyMeasurableSet m l t) (hst : s =ᶠ[l] t) : EventuallyMeasurableSet m l s := by |
rcases ht with ⟨t', ht', htt'⟩
exact ⟨t', ht', hst.trans htt'⟩
| [
" (fun s => ∃ t, MeasurableSet t ∧ s =ᶠ[l] t) (⋃ i, s i)",
" ∃ t, MeasurableSet t ∧ ⋃ i, s i =ᶠ[l] t",
" EventuallyMeasurableSet m l s"
] | [
" (fun s => ∃ t, MeasurableSet t ∧ s =ᶠ[l] t) (⋃ i, s i)",
" ∃ t, MeasurableSet t ∧ ⋃ i, s i =ᶠ[l] t"
] |
import Mathlib.Order.BooleanAlgebra
import Mathlib.Logic.Equiv.Basic
#align_import order.symm_diff from "leanprover-community/mathlib"@"6eb334bd8f3433d5b08ba156b8ec3e6af47e1904"
open Function OrderDual
variable {ι α β : Type*} {π : ι → Type*}
def symmDiff [Sup α] [SDiff α] (a b : α) : α :=
a \ b ⊔ b \ a
#ali... | Mathlib/Order/SymmDiff.lean | 371 | 371 | theorem bihimp_bot : a ⇔ ⊥ = aᶜ := by | simp [bihimp]
| [
" ∀ (p q : Bool), p ∆ q = xor p q",
" a ⇔ ⊥ = aᶜ"
] | [
" ∀ (p q : Bool), p ∆ q = xor p q"
] |
import Mathlib.LinearAlgebra.CliffordAlgebra.Contraction
variable {R M : Type*}
variable [CommRing R] [AddCommGroup M] [Module R M] {Q : QuadraticForm R M}
namespace CliffordAlgebra
variable (Q)
def invertibleιOfInvertible (m : M) [Invertible (Q m)] : Invertible (ι Q m) where
invOf := ι Q (⅟ (Q m) • m)
invO... | Mathlib/LinearAlgebra/CliffordAlgebra/Inversion.lean | 66 | 69 | theorem isUnit_of_isUnit_ι {m : M} (h : IsUnit (ι Q m)) : IsUnit (Q m) := by |
cases h.nonempty_invertible
letI := invertibleOfInvertibleι Q m
exact isUnit_of_invertible (Q m)
| [
" (ι Q) (⅟(Q m) • m) * (ι Q) m = 1",
" (ι Q) m * (ι Q) (⅟(Q m) • m) = 1",
" ⅟((ι Q) m) = (ι Q) (⅟(Q m) • m)",
" IsUnit ((ι Q) m)",
" (ι Q) a * (ι Q) b * ⅟((ι Q) a) = (ι Q) ((⅟(Q a) * QuadraticForm.polar (⇑Q) a b) • a - b)",
" ⅟((ι Q) a) * (ι Q) b * (ι Q) a = (ι Q) ((⅟(Q a) * QuadraticForm.polar (⇑Q) a b) ... | [
" (ι Q) (⅟(Q m) • m) * (ι Q) m = 1",
" (ι Q) m * (ι Q) (⅟(Q m) • m) = 1",
" ⅟((ι Q) m) = (ι Q) (⅟(Q m) • m)",
" IsUnit ((ι Q) m)",
" (ι Q) a * (ι Q) b * ⅟((ι Q) a) = (ι Q) ((⅟(Q a) * QuadraticForm.polar (⇑Q) a b) • a - b)",
" ⅟((ι Q) a) * (ι Q) b * (ι Q) a = (ι Q) ((⅟(Q a) * QuadraticForm.polar (⇑Q) a b) ... |
import Mathlib.Algebra.MvPolynomial.Supported
import Mathlib.RingTheory.Derivation.Basic
#align_import data.mv_polynomial.derivation from "leanprover-community/mathlib"@"b608348ffaeb7f557f2fd46876037abafd326ff3"
namespace MvPolynomial
noncomputable section
variable {σ R A : Type*} [CommSemiring R] [AddCommMonoi... | Mathlib/Algebra/MvPolynomial/Derivation.lean | 65 | 68 | theorem derivation_C_mul (D : Derivation R (MvPolynomial σ R) A) (a : R) (f : MvPolynomial σ R) :
C (σ := σ) a • D f = a • D f := by |
have : C (σ := σ) a • D f = D (C a * f) := by simp
rw [this, C_mul', D.map_smul]
| [
" (1 • (Finsupp.single i 1).sum fun i_1 k => (monomial (Finsupp.single i 1 - Finsupp.single i_1 1)) ↑k • f i_1) = f i",
" C a • D f = a • D f",
" C a • D f = D (C a * f)"
] | [
" (1 • (Finsupp.single i 1).sum fun i_1 k => (monomial (Finsupp.single i 1 - Finsupp.single i_1 1)) ↑k • f i_1) = f i"
] |
import Mathlib.GroupTheory.Sylow
import Mathlib.GroupTheory.Transfer
#align_import group_theory.schur_zassenhaus from "leanprover-community/mathlib"@"d57133e49cf06508700ef69030cd099917e0f0de"
namespace Subgroup
section SchurZassenhausAbelian
open MulOpposite MulAction Subgroup.leftTransversals MemLeftTransversa... | Mathlib/GroupTheory/SchurZassenhaus.lean | 48 | 62 | theorem smul_diff_smul' [hH : Normal H] (g : Gᵐᵒᵖ) :
diff (MonoidHom.id H) (g • α) (g • β) =
⟨g.unop⁻¹ * (diff (MonoidHom.id H) α β : H) * g.unop,
hH.mem_comm ((congr_arg (· ∈ H) (mul_inv_cancel_left _ _)).mpr (SetLike.coe_mem _))⟩ := by |
letI := H.fintypeQuotientOfFiniteIndex
let ϕ : H →* H :=
{ toFun := fun h =>
⟨g.unop⁻¹ * h * g.unop,
hH.mem_comm ((congr_arg (· ∈ H) (mul_inv_cancel_left _ _)).mpr (SetLike.coe_mem _))⟩
map_one' := by rw [Subtype.ext_iff, coe_mk, coe_one, mul_one, inv_mul_self]
map_mul' := fun h₁ ... | [
" diff (MonoidHom.id ↥H) y✝ x✝ = 1",
" diff (MonoidHom.id ↥H) x✝ z✝ = 1",
" Inhabited H.QuotientDiff",
" Inhabited (Quotient { r := fun α β => diff (MonoidHom.id ↥H) α β = 1, iseqv := ⋯ })",
" diff (MonoidHom.id ↥H) (g • α) (g • β) = ⟨g.unop⁻¹ * ↑(diff (MonoidHom.id ↥H) α β) * g.unop, ⋯⟩",
" (fun h => ⟨g.... | [
" diff (MonoidHom.id ↥H) y✝ x✝ = 1",
" diff (MonoidHom.id ↥H) x✝ z✝ = 1",
" Inhabited H.QuotientDiff",
" Inhabited (Quotient { r := fun α β => diff (MonoidHom.id ↥H) α β = 1, iseqv := ⋯ })"
] |
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 | 62 | 67 | theorem WSameSide.map {s : AffineSubspace R P} {x y : P} (h : s.WSameSide x y) (f : P →ᵃ[R] P') :
(s.map f).WSameSide (f x) (f y) := by |
rcases h with ⟨p₁, hp₁, p₂, hp₂, h⟩
refine ⟨f p₁, mem_map_of_mem f hp₁, f p₂, mem_map_of_mem f hp₂, ?_⟩
simp_rw [← linearMap_vsub]
exact h.map f.linear
| [
" (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₂))"
] | [] |
import Mathlib.Order.RelClasses
import Mathlib.Order.Interval.Set.Basic
#align_import order.bounded from "leanprover-community/mathlib"@"aba57d4d3dae35460225919dcd82fe91355162f9"
namespace Set
variable {α : Type*} {r : α → α → Prop} {s t : Set α}
theorem Bounded.mono (hst : s ⊆ t) (hs : Bounded r t) : Bounde... | Mathlib/Order/Bounded.lean | 44 | 45 | theorem unbounded_le_iff [LinearOrder α] : Unbounded (· ≤ ·) s ↔ ∀ a, ∃ b ∈ s, a < b := by |
simp only [Unbounded, not_le]
| [
" Unbounded (fun x x_1 => x ≤ x_1) s ↔ ∀ (a : α), ∃ b ∈ s, a < b"
] | [] |
import Mathlib.Analysis.InnerProductSpace.Orthogonal
import Mathlib.Analysis.Normed.Group.AddTorsor
#align_import geometry.euclidean.basic from "leanprover-community/mathlib"@"2de9c37fa71dde2f1c6feff19876dd6a7b1519f0"
open Set
open scoped RealInnerProductSpace
variable {V P : Type*} [NormedAddCommGroup V] [InnerP... | Mathlib/Geometry/Euclidean/PerpBisector.lean | 65 | 67 | theorem midpoint_mem_perpBisector (p₁ p₂ : P) :
midpoint ℝ p₁ p₂ ∈ perpBisector p₁ p₂ := by |
simp [mem_perpBisector_iff_inner_eq_zero]
| [
" c ∈ perpBisector p₁ p₂ ↔ ⟪(Equiv.pointReflection c) p₁ -ᵥ p₂, p₂ -ᵥ p₁⟫_ℝ = 0",
" 2⁻¹ * ⟪c -ᵥ p₁ + (c -ᵥ p₂), p₂ -ᵥ p₁⟫_ℝ = 0 ↔ ⟪c -ᵥ p₁ + (c -ᵥ p₂), p₂ -ᵥ p₁⟫_ℝ = 0",
" c ∈ perpBisector p₁ ((Equiv.pointReflection p₂) p₁) ↔ ⟪c -ᵥ p₂, p₁ -ᵥ p₂⟫_ℝ = 0",
" midpoint ℝ p₁ p₂ ∈ perpBisector p₁ p₂"
] | [
" c ∈ perpBisector p₁ p₂ ↔ ⟪(Equiv.pointReflection c) p₁ -ᵥ p₂, p₂ -ᵥ p₁⟫_ℝ = 0",
" 2⁻¹ * ⟪c -ᵥ p₁ + (c -ᵥ p₂), p₂ -ᵥ p₁⟫_ℝ = 0 ↔ ⟪c -ᵥ p₁ + (c -ᵥ p₂), p₂ -ᵥ p₁⟫_ℝ = 0",
" c ∈ perpBisector p₁ ((Equiv.pointReflection p₂) p₁) ↔ ⟪c -ᵥ p₂, p₁ -ᵥ p₂⟫_ℝ = 0"
] |
import Mathlib.Algebra.Order.Sub.Defs
import Mathlib.Data.Finset.Basic
import Mathlib.Order.Interval.Finset.Defs
open Function
namespace Finset
class HasAntidiagonal (A : Type*) [AddMonoid A] where
antidiagonal : A → Finset (A × A)
mem_antidiagonal {n} {a} : a ∈ antidiagonal n ↔ a.fst + a.snd = n
exp... | Mathlib/Data/Finset/Antidiagonal.lean | 80 | 82 | theorem swap_mem_antidiagonal [AddCommMonoid A] [HasAntidiagonal A] {n : A} {xy : A × A}:
xy.swap ∈ antidiagonal n ↔ xy ∈ antidiagonal n := by |
simp [add_comm]
| [
" ∀ (a b : HasAntidiagonal A), a = b",
" { antidiagonal := a, mem_antidiagonal := ha } = { antidiagonal := b, mem_antidiagonal := hb }",
" xy ∈ a n ↔ xy ∈ b n",
" antidiagonal = antidiagonal",
" H1 = H2",
" xy.swap ∈ antidiagonal n ↔ xy ∈ antidiagonal n"
] | [
" ∀ (a b : HasAntidiagonal A), a = b",
" { antidiagonal := a, mem_antidiagonal := ha } = { antidiagonal := b, mem_antidiagonal := hb }",
" xy ∈ a n ↔ xy ∈ b n",
" antidiagonal = antidiagonal",
" H1 = H2"
] |
import Mathlib.Data.Real.NNReal
import Mathlib.RingTheory.Valuation.Basic
noncomputable section
open Function Multiplicative
open scoped NNReal
variable {R : Type*} [Ring R] {Γ₀ : Type*} [LinearOrderedCommGroupWithZero Γ₀]
namespace Valuation
class RankOne (v : Valuation R Γ₀) where
hom : Γ₀ →*₀ ℝ≥0
st... | Mathlib/RingTheory/Valuation/RankOne.lean | 67 | 69 | theorem unit_ne_one : unit v ≠ 1 := by |
rw [Ne, ← Units.eq_iff, Units.val_one]
exact ((nontrivial v).choose_spec ).2
| [
" x = 0",
" False",
" (hom v) x = 0",
" unit v ≠ 1",
" ¬↑(unit v) = 1"
] | [
" x = 0",
" False",
" (hom v) x = 0"
] |
import Mathlib.Analysis.InnerProductSpace.Adjoint
#align_import analysis.inner_product_space.positive from "leanprover-community/mathlib"@"caa58cbf5bfb7f81ccbaca4e8b8ac4bc2b39cc1c"
open InnerProductSpace RCLike ContinuousLinearMap
open scoped InnerProduct ComplexConjugate
namespace ContinuousLinearMap
variable... | Mathlib/Analysis/InnerProductSpace/Positive.lean | 101 | 106 | theorem IsPositive.conj_orthogonalProjection (U : Submodule 𝕜 E) {T : E →L[𝕜] E} (hT : T.IsPositive)
[CompleteSpace U] :
(U.subtypeL ∘L
orthogonalProjection U ∘L T ∘L U.subtypeL ∘L orthogonalProjection U).IsPositive := by |
have := hT.conj_adjoint (U.subtypeL ∘L orthogonalProjection U)
rwa [(orthogonalProjection_isSelfAdjoint U).adjoint_eq] at this
| [
" 0 ≤ re ⟪x, T x⟫_𝕜",
" 0 ≤ re ⟪T x, x⟫_𝕜",
" IsPositive 0",
" 0 ≤ reApplyInnerSelf 0 x",
" 0 ≤ re ⟪0 x, x⟫_𝕜",
" (T + S).IsPositive",
" 0 ≤ (T + S).reApplyInnerSelf x",
" 0 ≤ re ⟪T x, x⟫_𝕜 + re ⟪S x, x⟫_𝕜",
" (S.comp (T.comp (adjoint S))).IsPositive",
" 0 ≤ (S.comp (T.comp (adjoint S))).reAp... | [
" 0 ≤ re ⟪x, T x⟫_𝕜",
" 0 ≤ re ⟪T x, x⟫_𝕜",
" IsPositive 0",
" 0 ≤ reApplyInnerSelf 0 x",
" 0 ≤ re ⟪0 x, x⟫_𝕜",
" (T + S).IsPositive",
" 0 ≤ (T + S).reApplyInnerSelf x",
" 0 ≤ re ⟪T x, x⟫_𝕜 + re ⟪S x, x⟫_𝕜",
" (S.comp (T.comp (adjoint S))).IsPositive",
" 0 ≤ (S.comp (T.comp (adjoint S))).reAp... |
import Mathlib.Algebra.Associated
import Mathlib.Algebra.BigOperators.Finsupp
#align_import algebra.big_operators.associated from "leanprover-community/mathlib"@"f7fc89d5d5ff1db2d1242c7bb0e9062ce47ef47c"
variable {α β γ δ : Type*}
-- the same local notation used in `Algebra.Associated`
local infixl:50 " ~ᵤ " => ... | Mathlib/Algebra/BigOperators/Associated.lean | 103 | 111 | theorem Finset.prod_primes_dvd [CancelCommMonoidWithZero α] [Unique αˣ] {s : Finset α} (n : α)
(h : ∀ a ∈ s, Prime a) (div : ∀ a ∈ s, a ∣ n) : (∏ p ∈ s, p) ∣ n := by |
classical
exact
Multiset.prod_primes_dvd n (by simpa only [Multiset.map_id', Finset.mem_def] using h)
(by simpa only [Multiset.map_id', Finset.mem_def] using div)
(by
simp only [Multiset.map_id', associated_eq_eq, Multiset.countP_eq_card_filter,
← s.val.count_eq_card_f... | [
" ∏ i ∈ s, f i ~ᵤ ∏ i ∈ s, g i",
" ∏ i ∈ ∅, f i ~ᵤ ∏ i ∈ ∅, g i",
" 1 ~ᵤ 1",
" ∏ i ∈ insert j s, f i ~ᵤ ∏ i ∈ insert j s, g i",
" f j * ∏ x ∈ s, f x ~ᵤ g j * ∏ x ∈ s, g x",
" (∀ r ∈ 0, Prime r) → p ∣ Multiset.prod 0 → ∃ q ∈ 0, p ~ᵤ q",
" ∃ q ∈ a ::ₘ s, p ~ᵤ q",
" s.prod ∣ n",
" prod 0 ∣ n",
" (a :... | [
" ∏ i ∈ s, f i ~ᵤ ∏ i ∈ s, g i",
" ∏ i ∈ ∅, f i ~ᵤ ∏ i ∈ ∅, g i",
" 1 ~ᵤ 1",
" ∏ i ∈ insert j s, f i ~ᵤ ∏ i ∈ insert j s, g i",
" f j * ∏ x ∈ s, f x ~ᵤ g j * ∏ x ∈ s, g x",
" (∀ r ∈ 0, Prime r) → p ∣ Multiset.prod 0 → ∃ q ∈ 0, p ~ᵤ q",
" ∃ q ∈ a ::ₘ s, p ~ᵤ q",
" s.prod ∣ n",
" prod 0 ∣ n",
" (a :... |
import Mathlib.Analysis.Complex.Basic
import Mathlib.Analysis.NormedSpace.OperatorNorm.NormedSpace
import Mathlib.Data.Complex.Determinant
#align_import analysis.complex.operator_norm from "leanprover-community/mathlib"@"468b141b14016d54b479eb7a0fff1e360b7e3cf6"
open ContinuousLinearMap
namespace Complex
@[simp... | Mathlib/Analysis/Complex/OperatorNorm.lean | 37 | 41 | theorem reCLM_norm : ‖reCLM‖ = 1 :=
le_antisymm (LinearMap.mkContinuous_norm_le _ zero_le_one _) <|
calc
1 = ‖reCLM 1‖ := by | simp
_ ≤ ‖reCLM‖ := unit_le_opNorm _ _ (by simp)
| [
" 1 = ‖reCLM 1‖",
" ‖1‖ ≤ 1"
] | [] |
import Mathlib.Logic.Pairwise
import Mathlib.Order.CompleteBooleanAlgebra
import Mathlib.Order.Directed
import Mathlib.Order.GaloisConnection
#align_import data.set.lattice from "leanprover-community/mathlib"@"b86832321b586c6ac23ef8cdef6a7a27e42b13bd"
open Function Set
universe u
variable {α β γ : Type*} {ι ι' ι... | Mathlib/Data/Set/Lattice.lean | 67 | 68 | theorem mem_iUnion₂ {x : γ} {s : ∀ i, κ i → Set γ} : (x ∈ ⋃ (i) (j), s i j) ↔ ∃ i j, x ∈ s i j := by |
simp_rw [mem_iUnion]
| [
" x ∈ ⋃ i, ⋃ j, s i j ↔ ∃ i j, x ∈ s i j"
] | [] |
import Mathlib.Algebra.PUnitInstances
import Mathlib.Tactic.Abel
import Mathlib.Tactic.Ring
import Mathlib.Order.Hom.Lattice
#align_import algebra.ring.boolean_ring from "leanprover-community/mathlib"@"e8638a0fcaf73e4500469f368ef9494e495099b3"
open scoped symmDiff
variable {α β γ : Type*}
class BooleanRing (α) ... | Mathlib/Algebra/Ring/BooleanRing.lean | 83 | 86 | theorem add_eq_zero' : a + b = 0 ↔ a = b :=
calc
a + b = 0 ↔ a = -b := add_eq_zero_iff_eq_neg
_ ↔ a = b := by | rw [neg_eq]
| [
" a + a = 0",
" a + a = (a + a) * (a + a)",
" (a + a) * (a + a) = a * a + a * a + (a * a + a * a)",
" a * a + a * a + (a * a + a * a) = a + a + (a + a)",
" -a = -a + 0",
" -a + 0 = -a + -a + a",
" -a + -a + a = a",
" a = -b ↔ a = b"
] | [
" a + a = 0",
" a + a = (a + a) * (a + a)",
" (a + a) * (a + a) = a * a + a * a + (a * a + a * a)",
" a * a + a * a + (a * a + a * a) = a + a + (a + a)",
" -a = -a + 0",
" -a + 0 = -a + -a + a",
" -a + -a + a = a"
] |
import Mathlib.Data.Complex.Module
import Mathlib.Data.Complex.Order
import Mathlib.Data.Complex.Exponential
import Mathlib.Analysis.RCLike.Basic
import Mathlib.Topology.Algebra.InfiniteSum.Module
import Mathlib.Topology.Instances.RealVectorSpace
#align_import analysis.complex.basic from "leanprover-community/mathlib... | Mathlib/Analysis/Complex/Basic.lean | 146 | 146 | theorem dist_self_conj (z : ℂ) : dist z (conj z) = 2 * |z.im| := by | rw [dist_comm, dist_conj_self]
| [
" ‖cexp (↑t * I)‖ = 1",
" r₁ < ‖↑x‖ ∧ ‖↑x‖ < r₂",
" ‖r • x‖ ≤ ‖r‖ * ‖x‖",
" dist z w = √((z.re - w.re) ^ 2 + (z.im - w.im) ^ 2)",
" dist z w = √((z.re - w.re) * (z.re - w.re) + (z.im - w.im) * (z.im - w.im))",
" dist z w = dist z.im w.im",
" edist z w = edist z.im w.im",
" dist z w = dist z.re w.re",
... | [
" ‖cexp (↑t * I)‖ = 1",
" r₁ < ‖↑x‖ ∧ ‖↑x‖ < r₂",
" ‖r • x‖ ≤ ‖r‖ * ‖x‖",
" dist z w = √((z.re - w.re) ^ 2 + (z.im - w.im) ^ 2)",
" dist z w = √((z.re - w.re) * (z.re - w.re) + (z.im - w.im) * (z.im - w.im))",
" dist z w = dist z.im w.im",
" edist z w = edist z.im w.im",
" dist z w = dist z.re w.re",
... |
import Mathlib.Data.Fin.VecNotation
import Mathlib.SetTheory.Cardinal.Basic
#align_import model_theory.basic from "leanprover-community/mathlib"@"369525b73f229ccd76a6ec0e0e0bf2be57599768"
set_option autoImplicit true
universe u v u' v' w w'
open Cardinal
open Cardinal
namespace FirstOrder
-- intended to b... | Mathlib/ModelTheory/Basic.lean | 104 | 106 | theorem sum_card : Cardinal.sum (fun i => #(Sequence₂ a₀ a₁ a₂ i)) = #a₀ + #a₁ + #a₂ := by |
rw [sum_nat_eq_add_sum_succ, sum_nat_eq_add_sum_succ, sum_nat_eq_add_sum_succ]
simp [add_assoc, Sequence₂]
| [
" lift.{v, u} #(Sequence₂ a₀ a₁ a₂ i) = #(Sequence₂ (ULift.{v, u} a₀) (ULift.{v, u} a₁) (ULift.{v, u} a₂) i)",
" lift.{v, u} #(Sequence₂ a₀ a₁ a₂ 0) = #(Sequence₂ (ULift.{v, u} a₀) (ULift.{v, u} a₁) (ULift.{v, u} a₂) 0)",
" lift.{v, u} #(Sequence₂ a₀ a₁ a₂ (0 + 1)) = #(Sequence₂ (ULift.{v, u} a₀) (ULift.{v, u} ... | [
" lift.{v, u} #(Sequence₂ a₀ a₁ a₂ i) = #(Sequence₂ (ULift.{v, u} a₀) (ULift.{v, u} a₁) (ULift.{v, u} a₂) i)",
" lift.{v, u} #(Sequence₂ a₀ a₁ a₂ 0) = #(Sequence₂ (ULift.{v, u} a₀) (ULift.{v, u} a₁) (ULift.{v, u} a₂) 0)",
" lift.{v, u} #(Sequence₂ a₀ a₁ a₂ (0 + 1)) = #(Sequence₂ (ULift.{v, u} a₀) (ULift.{v, u} ... |
import Mathlib.Analysis.InnerProductSpace.Dual
import Mathlib.Analysis.InnerProductSpace.Orientation
import Mathlib.Data.Complex.Orientation
import Mathlib.Tactic.LinearCombination
#align_import analysis.inner_product_space.two_dim from "leanprover-community/mathlib"@"cd8fafa2fac98e1a67097e8a91ad9901cfde48af"
non... | Mathlib/Analysis/InnerProductSpace/TwoDim.lean | 125 | 127 | theorem areaForm_neg_orientation : (-o).areaForm = -o.areaForm := by |
ext x y
simp [areaForm_to_volumeForm]
| [
" E →ₗ[ℝ] E →ₗ[ℝ] ℝ",
" (o.areaForm x) y = o.volumeForm ![x, y]",
" (o.areaForm x) x = 0",
" o.volumeForm ![x, x] = 0",
" ![x, x] 0 = ![x, x] 1",
" 0 ≠ 1",
" (o.areaForm x) y = -(o.areaForm y) x",
" o.volumeForm ![x, y] = -o.volumeForm ![y, x]",
" ![x, y] = ![y, x] ∘ ⇑(Equiv.swap 0 1)",
" ![x, y] ... | [
" E →ₗ[ℝ] E →ₗ[ℝ] ℝ",
" (o.areaForm x) y = o.volumeForm ![x, y]",
" (o.areaForm x) x = 0",
" o.volumeForm ![x, x] = 0",
" ![x, x] 0 = ![x, x] 1",
" 0 ≠ 1",
" (o.areaForm x) y = -(o.areaForm y) x",
" o.volumeForm ![x, y] = -o.volumeForm ![y, x]",
" ![x, y] = ![y, x] ∘ ⇑(Equiv.swap 0 1)",
" ![x, y] ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.