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
221
import Mathlib.Data.Real.Sqrt import Mathlib.Analysis.NormedSpace.Star.Basic import Mathlib.Analysis.NormedSpace.ContinuousLinearMap import Mathlib.Analysis.NormedSpace.Basic #align_import data.is_R_or_C.basic from "leanprover-community/mathlib"@"baa88307f3e699fa7054ef04ec79fa4f056169cb" section local notation "οΏ½...
Mathlib/Analysis/RCLike/Basic.lean
162
162
theorem one_re : re (1 : K) = 1 := by
rw [← ofReal_one, ofReal_re]
[ " r β€’ x = ↑r β€’ x", " re 1 = 1" ]
[ " r β€’ x = ↑r β€’ x", " re 1 = 1" ]
import Mathlib.Analysis.NormedSpace.PiLp import Mathlib.Analysis.InnerProductSpace.PiL2 #align_import analysis.matrix from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f6dddd2b4f5" noncomputable section open scoped NNReal Matrix namespace Matrix variable {R l m n Ξ± Ξ² : Type*} [Fintype l] [Fintyp...
Mathlib/Analysis/Matrix.lean
560
565
theorem frobenius_nnnorm_def (A : Matrix m n Ξ±) : β€–Aβ€–β‚Š = (βˆ‘ i, βˆ‘ j, β€–A i jβ€–β‚Š ^ (2 : ℝ)) ^ (1 / 2 : ℝ) := by
-- Porting note: added, along with `WithLp.equiv_symm_pi_apply` below change β€–(WithLp.equiv 2 _).symm fun i => (WithLp.equiv 2 _).symm fun j => A i jβ€–β‚Š = _ simp_rw [PiLp.nnnorm_eq_of_L2, NNReal.sq_sqrt, NNReal.sqrt_eq_rpow, NNReal.rpow_two, WithLp.equiv_symm_pi_apply]
[ " NormedAddCommGroup (PiLp 2 fun i => PiLp 2 fun j => Ξ±)", " BoundedSMul R (PiLp 2 fun i => PiLp 2 fun j => Ξ±)", " NormedSpace R (PiLp 2 fun i => PiLp 2 fun j => Ξ±)", " β€–Aβ€–β‚Š = (βˆ‘ i : m, βˆ‘ j : n, β€–A i jβ€–β‚Š ^ 2) ^ (1 / 2)", " β€–(WithLp.equiv 2 (m β†’ WithLp 2 (n β†’ Ξ±))).symm fun i => (WithLp.equiv 2 (n β†’ Ξ±)).symm ...
[ " NormedAddCommGroup (PiLp 2 fun i => PiLp 2 fun j => Ξ±)", " BoundedSMul R (PiLp 2 fun i => PiLp 2 fun j => Ξ±)", " NormedSpace R (PiLp 2 fun i => PiLp 2 fun j => Ξ±)", " β€–Aβ€–β‚Š = (βˆ‘ i : m, βˆ‘ j : n, β€–A i jβ€–β‚Š ^ 2) ^ (1 / 2)" ]
import Mathlib.Data.Nat.Choose.Basic import Mathlib.Data.List.Perm import Mathlib.Data.List.Range #align_import data.list.sublists from "leanprover-community/mathlib"@"ccad6d5093bd2f5c6ca621fc74674cce51355af6" universe u v w variable {Ξ± : Type u} {Ξ² : Type v} {Ξ³ : Type w} open Nat namespace List @[simp] theo...
Mathlib/Data/List/Sublists.lean
120
129
theorem sublistsAux_eq_array_foldl : sublistsAux = fun (a : Ξ±) (r : List (List Ξ±)) => (r.toArray.foldl (init := #[]) fun r l => (r.push l).push (a :: l)).toList := by
funext a r simp only [sublistsAux, Array.foldl_eq_foldl_data, Array.mkEmpty] have := foldl_hom Array.toList (fun r l => (r.push l).push (a :: l)) (fun (r : List (List Ξ±)) l => r ++ [l, a :: l]) r #[] (by simp) simpa using this
[ " βˆ€ (r₁ rβ‚‚ : List (List Ξ±)),\n sublists'Aux a r₁ rβ‚‚ = (Array.foldl (fun r l => r.push (a :: l)) (toArray rβ‚‚) (toArray r₁) 0).toList", " sublists'Aux a r₁ rβ‚‚ = (Array.foldl (fun r l => r.push (a :: l)) (toArray rβ‚‚) (toArray r₁) 0).toList", " foldl (fun r l => r ++ [a :: l]) rβ‚‚ r₁ = (foldl (fun r l => r.push (...
[ " βˆ€ (r₁ rβ‚‚ : List (List Ξ±)),\n sublists'Aux a r₁ rβ‚‚ = (Array.foldl (fun r l => r.push (a :: l)) (toArray rβ‚‚) (toArray r₁) 0).toList", " sublists'Aux a r₁ rβ‚‚ = (Array.foldl (fun r l => r.push (a :: l)) (toArray rβ‚‚) (toArray r₁) 0).toList", " foldl (fun r l => r ++ [a :: l]) rβ‚‚ r₁ = (foldl (fun r l => r.push (...
import Mathlib.CategoryTheory.Comma.Over import Mathlib.CategoryTheory.Limits.Shapes.Pullbacks import Mathlib.CategoryTheory.Yoneda import Mathlib.Data.Set.Lattice import Mathlib.Order.CompleteLattice #align_import category_theory.sites.sieves from "leanprover-community/mathlib"@"239d882c4fb58361ee8b3b39fb2091320edef...
Mathlib/CategoryTheory/Sites/Sieves.lean
141
148
theorem ofArrows_pUnit : (ofArrows _ fun _ : PUnit => f) = singleton f := by
funext Y ext g constructor · rintro ⟨_⟩ apply singleton.mk · rintro ⟨_⟩ exact ofArrows.mk PUnit.unit
[ " CompleteLattice (Presieve X)", " CompleteLattice (⦃Y : C⦄ β†’ Set (Y ⟢ X))", " singleton f g ↔ f = g", " singleton f g β†’ f = g", " f = f", " f = g β†’ singleton f g", " singleton f f", " pullbackArrows f (singleton g) = singleton pullback.snd", " h ∈ pullbackArrows f (singleton g) ↔ h ∈ singleton pull...
[ " CompleteLattice (Presieve X)", " CompleteLattice (⦃Y : C⦄ β†’ Set (Y ⟢ X))", " singleton f g ↔ f = g", " singleton f g β†’ f = g", " f = f", " f = g β†’ singleton f g", " singleton f f", " pullbackArrows f (singleton g) = singleton pullback.snd", " h ∈ pullbackArrows f (singleton g) ↔ h ∈ singleton pull...
import Mathlib.CategoryTheory.Sites.IsSheafFor import Mathlib.CategoryTheory.Limits.Shapes.Types import Mathlib.Tactic.ApplyFun #align_import category_theory.sites.sheaf_of_types from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" universe w v u namespace CategoryTheory open Opposite ...
Mathlib/CategoryTheory/Sites/EqualizerSheafCondition.lean
133
135
theorem w : forkMap P (S : Presieve X) ≫ firstMap P S = forkMap P S ≫ secondMap P S := by
ext simp [firstMap, secondMap, forkMap]
[ " z₁ = zβ‚‚", " βˆ€ (j : Discrete ((Y : C) Γ— { f // R f })),\n limit.Ο€ (Discrete.functor fun f => P.obj { unop := f.fst }) j z₁ =\n limit.Ο€ (Discrete.functor fun f => P.obj { unop := f.fst }) j zβ‚‚", " limit.Ο€ (Discrete.functor fun f => P.obj { unop := f.fst }) { as := ⟨Y, ⟨f, hf⟩⟩ } z₁ =\n limit.Ο€ (Discr...
[ " z₁ = zβ‚‚", " βˆ€ (j : Discrete ((Y : C) Γ— { f // R f })),\n limit.Ο€ (Discrete.functor fun f => P.obj { unop := f.fst }) j z₁ =\n limit.Ο€ (Discrete.functor fun f => P.obj { unop := f.fst }) j zβ‚‚", " limit.Ο€ (Discrete.functor fun f => P.obj { unop := f.fst }) { as := ⟨Y, ⟨f, hf⟩⟩ } z₁ =\n limit.Ο€ (Discr...
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
57
57
theorem dichotomy (b : Bool) : b = false ∨ b = true := by
cases b <;> simp
[ " b = false ∨ b = true", " false = false ∨ false = true", " true = false ∨ true = true" ]
[ " b = false ∨ b = true" ]
import Mathlib.Topology.GDelta #align_import topology.metric_space.baire from "leanprover-community/mathlib"@"b9e46fe101fc897fb2e7edaf0bf1f09ea49eb81a" noncomputable section open scoped Topology open Filter Set TopologicalSpace variable {X Ξ± : Type*} {ΞΉ : Sort*} section BaireTheorem variable [TopologicalSpace...
Mathlib/Topology/Baire/Lemmas.lean
123
126
theorem Dense.inter_of_Gδ {s t : Set X} (hs : IsGδ s) (ht : IsGδ t) (hsc : Dense s) (htc : Dense t) : Dense (s ∩ t) := by
rw [inter_eq_iInter] apply dense_iInter_of_GΞ΄ <;> simp [Bool.forall_bool, *]
[ " Dense (β‹‚β‚€ S)", " Dense (β‹‚β‚€ range f)", " Dense (β‹‚ s ∈ S, f s)", " Dense (β‹‚β‚€ ((fun s => f s) '' S))", " βˆ€ s ∈ (fun s => f s) '' S, IsOpen s", " βˆ€ s ∈ (fun s => f s) '' S, Dense s", " s ∈ residual X ↔ βˆƒ t βŠ† s, IsGΞ΄ t ∧ Dense t", " s ∈ residual X β†’ βˆƒ t βŠ† s, IsGΞ΄ t ∧ Dense t", " (βˆƒ S, (βˆ€ t ∈ S, IsOpen ...
[ " Dense (β‹‚β‚€ S)", " Dense (β‹‚β‚€ range f)", " Dense (β‹‚ s ∈ S, f s)", " Dense (β‹‚β‚€ ((fun s => f s) '' S))", " βˆ€ s ∈ (fun s => f s) '' S, IsOpen s", " βˆ€ s ∈ (fun s => f s) '' S, Dense s", " s ∈ residual X ↔ βˆƒ t βŠ† s, IsGΞ΄ t ∧ Dense t", " s ∈ residual X β†’ βˆƒ t βŠ† s, IsGΞ΄ t ∧ Dense t", " (βˆƒ S, (βˆ€ t ∈ S, IsOpen ...
import Mathlib.Order.Interval.Set.UnorderedInterval import Mathlib.Algebra.Order.Interval.Set.Monoid import Mathlib.Data.Set.Pointwise.Basic import Mathlib.Algebra.Order.Field.Basic import Mathlib.Algebra.Order.Group.MinMax #align_import data.set.pointwise.interval from "leanprover-community/mathlib"@"2196ab363eb097c...
Mathlib/Data/Set/Pointwise/Interval.lean
152
153
theorem preimage_const_add_Ico : (fun x => a + x) ⁻¹' Ico b c = Ico (b - a) (c - a) := by
simp [← Ici_inter_Iio]
[ " (fun x => a + x) ⁻¹' Icc b c = Icc (b - a) (c - a)", " (fun x => a + x) ⁻¹' Ico b c = Ico (b - a) (c - a)" ]
[ " (fun x => a + x) ⁻¹' Icc b c = Icc (b - a) (c - a)", " (fun x => a + x) ⁻¹' Ico b c = Ico (b - a) (c - a)" ]
import Mathlib.Order.Interval.Set.OrdConnectedComponent import Mathlib.Topology.Order.Basic #align_import topology.algebra.order.t5 from "leanprover-community/mathlib"@"4c19a16e4b705bf135cf9a80ac18fcc99c438514" open Filter Set Function OrderDual Topology Interval variable {X : Type*} [LinearOrder X] [Topological...
Mathlib/Topology/Order/T5.lean
74
79
theorem compl_section_ordSeparatingSet_mem_nhds (hd : Disjoint s (closure t)) (ha : a ∈ s) : (ordConnectedSection <| ordSeparatingSet s t)ᢜ ∈ 𝓝 a := by
rw [← nhds_left_sup_nhds_right, mem_sup] exact ⟨compl_section_ordSeparatingSet_mem_nhdsWithin_Iic hd ha, compl_section_ordSeparatingSet_mem_nhdsWithin_Ici hd ha⟩
[ " s.ordConnectedComponent a ∈ 𝓝 a ↔ s ∈ 𝓝 a", " s.ordConnectedComponent a ∈ 𝓝 a", " (s.ordSeparatingSet t).ordConnectedSectionᢜ ∈ 𝓝[β‰₯] a", " tᢜ ∈ 𝓝[β‰₯] a", " tᢜ ∈ 𝓝 a", " a ∈ (closure t)ᢜ", " False", " [[x, c]] βŠ† s.ordSeparatingSet t", " [[x, c]] βŠ† tᢜ.ordConnectedComponent a", " [[x, c]] βŠ† ⋃ ...
[ " s.ordConnectedComponent a ∈ 𝓝 a ↔ s ∈ 𝓝 a", " s.ordConnectedComponent a ∈ 𝓝 a", " (s.ordSeparatingSet t).ordConnectedSectionᢜ ∈ 𝓝[β‰₯] a", " tᢜ ∈ 𝓝[β‰₯] a", " tᢜ ∈ 𝓝 a", " a ∈ (closure t)ᢜ", " False", " [[x, c]] βŠ† s.ordSeparatingSet t", " [[x, c]] βŠ† tᢜ.ordConnectedComponent a", " [[x, c]] βŠ† ⋃ ...
import Mathlib.Algebra.GCDMonoid.Finset import Mathlib.Algebra.Polynomial.CancelLeads import Mathlib.Algebra.Polynomial.EraseLead import Mathlib.Algebra.Polynomial.FieldDivision #align_import ring_theory.polynomial.content from "leanprover-community/mathlib"@"7a030ab8eb5d99f05a891dccc49c5b5b90c947d3" namespace Po...
Mathlib/RingTheory/Polynomial/Content.lean
92
97
theorem content_C {r : R} : (C r).content = normalize r := by
rw [content] by_cases h0 : r = 0 Β· simp [h0] have h : (C r).support = {0} := support_monomial _ h0 simp [h]
[ " p.content ∣ p.coeff n", " p.content ∣ 0", " (C r).content = normalize r", " (C r).support.gcd (C r).coeff = normalize r" ]
[ " p.content ∣ p.coeff n", " p.content ∣ 0", " (C r).content = normalize r" ]
import Mathlib.Data.Finset.Card #align_import data.finset.option from "leanprover-community/mathlib"@"c227d107bbada5d0d9d20287e3282c0a7f1651a0" variable {Ξ± Ξ² : Type*} open Function namespace Option def toFinset (o : Option Ξ±) : Finset Ξ± := o.elim βˆ… singleton #align option.to_finset Option.toFinset @[simp] ...
Mathlib/Data/Finset/Option.lean
55
55
theorem card_toFinset (o : Option Ξ±) : o.toFinset.card = o.elim 0 1 := by
cases o <;> rfl
[ " a ∈ o.toFinset ↔ a ∈ o", " a ∈ none.toFinset ↔ a ∈ none", " a ∈ (some val✝).toFinset ↔ a ∈ some val✝", " o.toFinset.card = o.elim 0 1", " none.toFinset.card = none.elim 0 1", " (some val✝).toFinset.card = (some val✝).elim 0 1" ]
[ " a ∈ o.toFinset ↔ a ∈ o", " a ∈ none.toFinset ↔ a ∈ none", " a ∈ (some val✝).toFinset ↔ a ∈ some val✝", " o.toFinset.card = o.elim 0 1" ]
import Mathlib.Algebra.CharP.Invertible import Mathlib.Algebra.MvPolynomial.Variables import Mathlib.Algebra.MvPolynomial.CommRing import Mathlib.Algebra.MvPolynomial.Expand import Mathlib.Data.Fintype.BigOperators import Mathlib.Data.ZMod.Basic #align_import ring_theory.witt_vector.witt_polynomial from "leanprover-c...
Mathlib/RingTheory/WittVector/WittPolynomial.lean
81
86
theorem wittPolynomial_eq_sum_C_mul_X_pow (n : β„•) : wittPolynomial p R n = βˆ‘ i ∈ range (n + 1), C ((p : R) ^ i) * X i ^ p ^ (n - i) := by
apply sum_congr rfl rintro i - rw [monomial_eq, Finsupp.prod_single_index] rw [pow_zero]
[ " wittPolynomial p R n = βˆ‘ i ∈ range (n + 1), C (↑p ^ i) * X i ^ p ^ (n - i)", " βˆ€ x ∈ range (n + 1), (monomial (single x (p ^ (n - x)))) (↑p ^ x) = C (↑p ^ x) * X x ^ p ^ (n - x)", " (monomial (single i (p ^ (n - i)))) (↑p ^ i) = C (↑p ^ i) * X i ^ p ^ (n - i)", " X i ^ 0 = 1" ]
[ " wittPolynomial p R n = βˆ‘ i ∈ range (n + 1), C (↑p ^ i) * X i ^ p ^ (n - i)" ]
import Mathlib.Data.Nat.Defs import Mathlib.Tactic.GCongr.Core import Mathlib.Tactic.Common import Mathlib.Tactic.Monotonicity.Attr #align_import data.nat.factorial.basic from "leanprover-community/mathlib"@"d012cd09a9b256d870751284dd6a29882b0be105" namespace Nat def factorial : β„• β†’ β„• | 0 => 1 | succ n => s...
Mathlib/Data/Nat/Factorial/Basic.lean
113
118
theorem factorial_eq_one : n ! = 1 ↔ n ≀ 1 := by
constructor Β· intro h rw [← not_lt, ← one_lt_factorial, h] apply lt_irrefl Β· rintro (_|_|_) <;> rfl
[ " m ! ∣ n !", " m ! ∣ m !", " m ! ∣ n.succ !", " m ! * (m + 1) ^ 0 ≀ (m + 0)!", " m ! * (m + 1) ^ (n + 1) ≀ (m + (n + 1))!", " m ! * (m + 1) ^ n * (m + 1) ≀ (m + n)! * (m + n + 1)", " n ! < m ! ↔ n < m", " n ! < m !", " βˆ€ {n : β„•}, 0 < n β†’ n ! < (n + 1)!", " k ! < (k + 1)!", " 0 < k * k !", " n...
[ " m ! ∣ n !", " m ! ∣ m !", " m ! ∣ n.succ !", " m ! * (m + 1) ^ 0 ≀ (m + 0)!", " m ! * (m + 1) ^ (n + 1) ≀ (m + (n + 1))!", " m ! * (m + 1) ^ n * (m + 1) ≀ (m + n)! * (m + n + 1)", " n ! < m ! ↔ n < m", " n ! < m !", " βˆ€ {n : β„•}, 0 < n β†’ n ! < (n + 1)!", " k ! < (k + 1)!", " 0 < k * k !", " n...
import Mathlib.Analysis.NormedSpace.Basic import Mathlib.Topology.Algebra.Module.Basic #align_import analysis.normed_space.basic from "leanprover-community/mathlib"@"bc91ed7093bf098d253401e69df601fc33dde156" open Metric Set Function Filter open scoped NNReal Topology instance Real.punctured_nhds_module_neBot {E ...
Mathlib/Analysis/NormedSpace/Real.lean
40
43
theorem inv_norm_smul_mem_closed_unit_ball (x : E) : β€–x‖⁻¹ β€’ x ∈ closedBall (0 : E) 1 := by
simp only [mem_closedBall_zero_iff, norm_smul, norm_inv, norm_norm, ← div_eq_inv_mul, div_self_le_one]
[ " β€–x‖⁻¹ β€’ x ∈ closedBall 0 1" ]
[ " β€–x‖⁻¹ β€’ x ∈ closedBall 0 1" ]
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.Degree.Lemmas import Mathlib.Algebra.Polynomial.HasseDeriv #align_import data.polynomial.taylor from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" noncomputable section namespace Polynomial open Polynomial...
Mathlib/Algebra/Polynomial/Taylor.lean
130
134
theorem taylor_injective {R} [CommRing R] (r : R) : Function.Injective (taylor r) := by
intro f g h apply_fun taylor (-r) at h simpa only [taylor_apply, comp_assoc, add_comp, X_comp, C_comp, C_neg, neg_add_cancel_right, comp_X] using h
[ " { toFun := fun f => f.comp (X + C r), map_add' := β‹― }.toFun (c β€’ f) =\n (RingHom.id R) c β€’ { toFun := fun f => f.comp (X + C r), map_add' := β‹― }.toFun f", " (taylor r) X = X + C r", " (taylor r) (C x) = C x", " taylor 0 = LinearMap.id", " ((taylor 0 βˆ˜β‚— monomial n✝¹) 1).coeff n✝ = ((LinearMap.id βˆ˜β‚— mono...
[ " { toFun := fun f => f.comp (X + C r), map_add' := β‹― }.toFun (c β€’ f) =\n (RingHom.id R) c β€’ { toFun := fun f => f.comp (X + C r), map_add' := β‹― }.toFun f", " (taylor r) X = X + C r", " (taylor r) (C x) = C x", " taylor 0 = LinearMap.id", " ((taylor 0 βˆ˜β‚— monomial n✝¹) 1).coeff n✝ = ((LinearMap.id βˆ˜β‚— mono...
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.Polynomial.Degree.Lemmas #align_import data.polynomial.erase_lead from "leanprover-community/mathlib"@"fa256f00ce018e7b40e1dc756e403c86680bf448" noncomputable section open Polynomial open Polynomial Finset namespace Polynomial variable {R : Type*}...
Mathlib/Algebra/Polynomial/EraseLead.lean
89
92
theorem eraseLead_ne_zero (f0 : 2 ≀ f.support.card) : eraseLead f β‰  0 := by
rw [Ne, ← card_support_eq_zero, eraseLead_support] exact (zero_lt_one.trans_le <| (tsub_le_tsub_right f0 1).trans Finset.pred_card_le_card_erase).ne.symm
[ " f.eraseLead.support = f.support.erase f.natDegree", " f.eraseLead.coeff i = if i = f.natDegree then 0 else f.coeff i", " f.eraseLead.coeff f.natDegree = 0", " f.eraseLead.coeff i = f.coeff i", " eraseLead 0 = 0", " f.eraseLead + C f.leadingCoeff * X ^ f.natDegree = f", " f - C f.leadingCoeff * X ^ f.n...
[ " f.eraseLead.support = f.support.erase f.natDegree", " f.eraseLead.coeff i = if i = f.natDegree then 0 else f.coeff i", " f.eraseLead.coeff f.natDegree = 0", " f.eraseLead.coeff i = f.coeff i", " eraseLead 0 = 0", " f.eraseLead + C f.leadingCoeff * X ^ f.natDegree = f", " f - C f.leadingCoeff * X ^ f.n...
import Mathlib.RingTheory.WittVector.IsPoly #align_import ring_theory.witt_vector.mul_p from "leanprover-community/mathlib"@"7abfbc92eec87190fba3ed3d5ec58e7c167e7144" namespace WittVector variable {p : β„•} {R : Type*} [hp : Fact p.Prime] [CommRing R] local notation "π•Ž" => WittVector p -- type as `\bbW` open Mv...
Mathlib/RingTheory/WittVector/MulP.lean
72
80
theorem bind₁_wittMulN_wittPolynomial (n k : β„•) : bind₁ (wittMulN p n) (wittPolynomial p β„€ k) = n * wittPolynomial p β„€ k := by
induction' n with n ih Β· simp [wittMulN, Nat.cast_zero, zero_mul, bind₁_zero_wittPolynomial] Β· rw [wittMulN, ← bind₁_bind₁, wittAdd, wittStructureInt_prop] simp only [AlgHom.map_add, Nat.cast_succ, bind₁_X_right] rw [add_mul, one_mul, bind₁_rename, bind₁_rename] simp only [ih, Function.uncurry, Funct...
[ " (x * ↑n).coeff k = (aeval x.coeff) (wittMulN p n k)", " (x * ↑0).coeff k = (aeval x.coeff) (wittMulN p 0 k)", " (x * ↑(n + 1)).coeff k = (aeval x.coeff) (wittMulN p (n + 1) k)", " peval (wittAdd p k) ![(x * ↑n).coeff, x.coeff] =\n (aeval fun i => (aeval x.coeff) (Function.uncurry ![wittMulN p n, X] i)) (...
[ " (x * ↑n).coeff k = (aeval x.coeff) (wittMulN p n k)", " (x * ↑0).coeff k = (aeval x.coeff) (wittMulN p 0 k)", " (x * ↑(n + 1)).coeff k = (aeval x.coeff) (wittMulN p (n + 1) k)", " peval (wittAdd p k) ![(x * ↑n).coeff, x.coeff] =\n (aeval fun i => (aeval x.coeff) (Function.uncurry ![wittMulN p n, X] 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
188
190
theorem refl_symm {a : X} : (Path.refl a).symm = Path.refl a := by
ext rfl
[ " γ₁ = Ξ³β‚‚", " { 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.Analysis.InnerProductSpace.Spectrum import Mathlib.Data.Matrix.Rank import Mathlib.LinearAlgebra.Matrix.Diagonal import Mathlib.LinearAlgebra.Matrix.Hermitian #align_import linear_algebra.matrix.spectrum from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f6dddd2b4f5" namespace Matrix ...
Mathlib/LinearAlgebra/Matrix/Spectrum.lean
78
80
theorem eigenvectorUnitary_mulVec (j : n) : eigenvectorUnitary hA *α΅₯ Pi.single j 1 = ⇑(hA.eigenvectorBasis j) := by
simp only [mulVec_single, eigenvectorUnitary_apply, mul_one]
[ " A *α΅₯ (WithLp.equiv 2 ((i : n) β†’ (fun x => π•œ) i)) (hA.eigenvectorBasis j) =\n hA.eigenvalues j β€’ (WithLp.equiv 2 ((i : n) β†’ (fun x => π•œ) i)) (hA.eigenvectorBasis j)", " ↑hA.eigenvectorUnitary *α΅₯ Pi.single j 1 = (WithLp.equiv 2 ((i : n) β†’ (fun x => π•œ) i)) (hA.eigenvectorBasis j)" ]
[ " A *α΅₯ (WithLp.equiv 2 ((i : n) β†’ (fun x => π•œ) i)) (hA.eigenvectorBasis j) =\n hA.eigenvalues j β€’ (WithLp.equiv 2 ((i : n) β†’ (fun x => π•œ) i)) (hA.eigenvectorBasis j)", " ↑hA.eigenvectorUnitary *α΅₯ Pi.single j 1 = (WithLp.equiv 2 ((i : n) β†’ (fun x => π•œ) i)) (hA.eigenvectorBasis j)" ]
import Mathlib.Topology.Separation import Mathlib.Topology.Bases #align_import topology.dense_embedding from "leanprover-community/mathlib"@"148aefbd371a25f1cff33c85f20c661ce3155def" noncomputable section open Set Filter open scoped Topology variable {Ξ± : Type*} {Ξ² : Type*} {Ξ³ : Type*} {Ξ΄ : Type*} structure D...
Mathlib/Topology/DenseEmbedding.lean
65
72
theorem closure_image_mem_nhds {s : Set Ξ±} {a : Ξ±} (di : DenseInducing i) (hs : s ∈ 𝓝 a) : closure (i '' s) ∈ 𝓝 (i a) := by
rw [di.nhds_eq_comap a, ((nhds_basis_opens _).comap _).mem_iff] at hs rcases hs with ⟨U, ⟨haU, hUo⟩, sub : i ⁻¹' U βŠ† s⟩ refine mem_of_superset (hUo.mem_nhds haU) ?_ calc U βŠ† closure (i '' (i ⁻¹' U)) := di.dense.subset_closure_image_preimage_of_isOpen hUo _ βŠ† closure (i '' s) := closure_mono (image_subs...
[ " closure (i '' s) ∈ 𝓝 (i a)", " U βŠ† closure (i '' s)" ]
[ " closure (i '' s) ∈ 𝓝 (i a)" ]
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.Monic import Mathlib.Algebra.Ring.Action.Basic import Mathlib.GroupTheory.GroupAction.Hom import Mathlib.GroupTheory.GroupAction.Quotient #align_import algebra.polynomial.group_ring_action from "leanprover-community/mathlib"@"afad8e438d03f...
Mathlib/Algebra/Polynomial/GroupRingAction.lean
71
73
theorem eval_smul' [MulSemiringAction G S] (g : G) (f : S[X]) (x : S) : f.eval (g β€’ x) = g β€’ (g⁻¹ β€’ f).eval x := by
rw [← smul_eval_smul, smul_inv_smul]
[ " HSMul.hSMul m = map (MulSemiringAction.toRingHom M R m)", " m β€’ r = map (MulSemiringAction.toRingHom M R m) r", " DistribMulAction.toAddMonoidHom R[X] m = (mapRingHom (MulSemiringAction.toRingHom M R m)).toAddMonoidHom", " ((DistribMulAction.toAddMonoidHom R[X] m).comp (monomial n).toAddMonoidHom) r =\n ...
[ " HSMul.hSMul m = map (MulSemiringAction.toRingHom M R m)", " m β€’ r = map (MulSemiringAction.toRingHom M R m) r", " DistribMulAction.toAddMonoidHom R[X] m = (mapRingHom (MulSemiringAction.toRingHom M R m)).toAddMonoidHom", " ((DistribMulAction.toAddMonoidHom R[X] m).comp (monomial n).toAddMonoidHom) r =\n ...
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
99
103
theorem trop_sInf_image [ConditionallyCompleteLinearOrder R] (s : Finset S) (f : S β†’ WithTop R) : trop (sInf (f '' s)) = βˆ‘ i ∈ s, trop (f i) := by
rcases s.eq_empty_or_nonempty with (rfl | h) Β· simp only [Set.image_empty, coe_empty, sum_empty, WithTop.sInf_empty, trop_top] rw [← inf'_eq_csInf_image _ h, inf'_eq_inf, s.trop_inf]
[ " 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", " trop (βˆ‘ i ∈ s, f i) = ∏ i ∈ s, trop (f i)", " ∏ i ∈ s, trop (f i) = (Multiset.map trop (Multiset.map f s.val)).prod", " ...
import Mathlib.Order.Chain #align_import order.zorn from "leanprover-community/mathlib"@"46a64b5b4268c594af770c44d9e502afc6a515cb" open scoped Classical open Set variable {Ξ± Ξ² : Type*} {r : Ξ± β†’ Ξ± β†’ Prop} {c : Set Ξ±} local infixl:50 " β‰Ί " => r theorem exists_maximal_of_chains_bounded (h : βˆ€ c, IsChain r c β†’ βˆƒ...
Mathlib/Order/Zorn.lean
144
149
theorem zorn_nonempty_Iciβ‚€ (a : Ξ±) (ih : βˆ€ c βŠ† Ici a, IsChain (Β· ≀ Β·) c β†’ βˆ€ y ∈ c, βˆƒ ub, βˆ€ z ∈ c, z ≀ ub) (x : Ξ±) (hax : a ≀ x) : βˆƒ m, x ≀ m ∧ βˆ€ z, m ≀ z β†’ z ≀ m := by
let ⟨m, _, hxm, hm⟩ := zorn_nonempty_preorderβ‚€ (Ici a) (fun c hca hc y hy ↦ ?_) x hax Β· exact ⟨m, hxm, fun z hmz => hm _ (hax.trans <| hxm.trans hmz) hmz⟩ Β· have ⟨ub, hub⟩ := ih c hca hc y hy; exact ⟨ub, (hca hy).trans (hub y hy), hub⟩
[ " a ∈ maxChain r", " a ∈ insert a (maxChain r)", " IsChain (fun x x_1 => x ≀ x_1) (Subtype.val '' c)", " (fun x x_1 => x ≀ x_1) ↑p ↑q ∨ (fun x x_1 => x ≀ x_1) ↑q ↑p", " βˆƒ m ∈ s, x ≀ m ∧ βˆ€ z ∈ s, m ≀ z β†’ z ≀ m", " βˆƒ ub ∈ {y | y ∈ s ∧ x ≀ y}, βˆ€ z ∈ c, z ≀ ub", " βˆƒ ub ∈ {y | y ∈ s ∧ x ≀ y}, βˆ€ z ∈ βˆ…, z ≀ ub...
[ " a ∈ maxChain r", " a ∈ insert a (maxChain r)", " IsChain (fun x x_1 => x ≀ x_1) (Subtype.val '' c)", " (fun x x_1 => x ≀ x_1) ↑p ↑q ∨ (fun x x_1 => x ≀ x_1) ↑q ↑p", " βˆƒ m ∈ s, x ≀ m ∧ βˆ€ z ∈ s, m ≀ z β†’ z ≀ m", " βˆƒ ub ∈ {y | y ∈ s ∧ x ≀ y}, βˆ€ z ∈ c, z ≀ ub", " βˆƒ ub ∈ {y | y ∈ s ∧ x ≀ y}, βˆ€ z ∈ βˆ…, z ≀ ub...
import Mathlib.Data.List.Cycle import Mathlib.GroupTheory.Perm.Cycle.Type import Mathlib.GroupTheory.Perm.List #align_import group_theory.perm.cycle.concrete from "leanprover-community/mathlib"@"00638177efd1b2534fc5269363ebf42a7871df9a" open Equiv Equiv.Perm List variable {Ξ± : Type*} namespace List variable [D...
Mathlib/GroupTheory/Perm/Cycle/Concrete.lean
120
123
theorem formPerm_apply_mem_eq_next (hl : Nodup l) (x : α) (hx : x ∈ l) : formPerm l x = next l x hx := by
obtain ⟨k, rfl⟩ := get_of_mem hx rw [next_get _ hl, formPerm_apply_get _ hl]
[ " l.formPerm.Disjoint l'.formPerm ↔ l.Disjoint l'", " (βˆ€ (x : Ξ±), l.formPerm x = x ∨ l'.formPerm x = x) ↔ βˆ€ ⦃a : α⦄, a ∈ l β†’ a ∈ l' β†’ False", " (βˆ€ (x : Ξ±), l.formPerm x = x ∨ l'.formPerm x = x) β†’ βˆ€ ⦃a : α⦄, a ∈ l β†’ a ∈ l' β†’ False", " False", " (βˆ€ ⦃a : α⦄, a ∈ l β†’ a ∈ l' β†’ False) β†’ βˆ€ (x : Ξ±), l.formPerm x = ...
[ " l.formPerm.Disjoint l'.formPerm ↔ l.Disjoint l'", " (βˆ€ (x : Ξ±), l.formPerm x = x ∨ l'.formPerm x = x) ↔ βˆ€ ⦃a : α⦄, a ∈ l β†’ a ∈ l' β†’ False", " (βˆ€ (x : Ξ±), l.formPerm x = x ∨ l'.formPerm x = x) β†’ βˆ€ ⦃a : α⦄, a ∈ l β†’ a ∈ l' β†’ False", " False", " (βˆ€ ⦃a : α⦄, a ∈ l β†’ a ∈ l' β†’ False) β†’ βˆ€ (x : Ξ±), l.formPerm x = ...
import Mathlib.Algebra.Order.BigOperators.Ring.Finset import Mathlib.Analysis.Convex.Hull import Mathlib.LinearAlgebra.AffineSpace.Basis #align_import analysis.convex.combination from "leanprover-community/mathlib"@"92bd7b1ffeb306a89f450bee126ddd8a284c259d" open Set Function open scoped Classical open Pointwise ...
Mathlib/Analysis/Convex/Combination.lean
70
71
theorem Finset.centerMass_singleton (hw : w i β‰  0) : ({i} : Finset ΞΉ).centerMass w z = z i := by
rw [centerMass, sum_singleton, sum_singleton, ← mul_smul, inv_mul_cancel hw, one_smul]
[ " βˆ….centerMass w z = 0", " {i, j}.centerMass w z = (w i / (w i + w j)) β€’ z i + (w j / (w i + w j)) β€’ z j", " (insert i t).centerMass w z =\n (w i / (w i + βˆ‘ j ∈ t, w j)) β€’ z i + ((βˆ‘ j ∈ t, w j) / (w i + βˆ‘ j ∈ t, w j)) β€’ t.centerMass w z", " (w i / (w i + βˆ‘ i ∈ t, w i)) β€’ z i + (w i + βˆ‘ i ∈ t, w i)⁻¹ β€’ βˆ‘ i ...
[ " βˆ….centerMass w z = 0", " {i, j}.centerMass w z = (w i / (w i + w j)) β€’ z i + (w j / (w i + w j)) β€’ z j", " (insert i t).centerMass w z =\n (w i / (w i + βˆ‘ j ∈ t, w j)) β€’ z i + ((βˆ‘ j ∈ t, w j) / (w i + βˆ‘ j ∈ t, w j)) β€’ t.centerMass w z", " (w i / (w i + βˆ‘ i ∈ t, w i)) β€’ z i + (w i + βˆ‘ i ∈ t, w i)⁻¹ β€’ βˆ‘ i ...
import Mathlib.Data.DFinsupp.WellFounded import Mathlib.Data.Finsupp.Lex #align_import data.finsupp.well_founded from "leanprover-community/mathlib"@"5fd3186f1ec30a75d5f65732e3ce5e623382556f" variable {Ξ± N : Type*} namespace Finsupp variable [Zero N] {r : Ξ± β†’ Ξ± β†’ Prop} {s : N β†’ N β†’ Prop} (hbot : βˆ€ ⦃n⦄, Β¬s n 0) ...
Mathlib/Data/Finsupp/WellFounded.lean
37
42
theorem Lex.acc (x : Ξ± β†’β‚€ N) (h : βˆ€ a ∈ x.support, Acc (rᢜ βŠ“ (Β· β‰  Β·)) a) : Acc (Finsupp.Lex r s) x := by
rw [lex_eq_invImage_dfinsupp_lex] classical refine InvImage.accessible toDFinsupp (DFinsupp.Lex.acc (fun _ => hbot) (fun _ => hs) _ ?_) simpa only [toDFinsupp_support] using h
[ " Acc (Finsupp.Lex r s) x", " Acc (InvImage (DFinsupp.Lex r fun x => s) toDFinsupp) x", " βˆ€ i ∈ x.toDFinsupp.support, Acc (rᢜ βŠ“ fun x x_1 => x β‰  x_1) i" ]
[ " Acc (Finsupp.Lex r s) x" ]
import Mathlib.Algebra.Polynomial.Eval #align_import data.polynomial.degree.lemmas from "leanprover-community/mathlib"@"728baa2f54e6062c5879a3e397ac6bac323e506f" noncomputable section open Polynomial open Finsupp Finset namespace Polynomial universe u v w variable {R : Type u} {S : Type v} {ΞΉ : Type w} {a b ...
Mathlib/Algebra/Polynomial/Degree/Lemmas.lean
356
357
theorem degree_mul_C (a0 : a β‰  0) : (p * C a).degree = p.degree := by
rw [degree_mul, degree_C a0, add_zero]
[ " (p * C a).degree = p.degree" ]
[ " (p * C a).degree = p.degree" ]
import Mathlib.Order.Interval.Set.OrdConnected import Mathlib.Data.Set.Lattice #align_import data.set.intervals.ord_connected_component from "leanprover-community/mathlib"@"92ca63f0fb391a9ca5f22d2409a6080e786d99f7" open Interval Function OrderDual namespace Set variable {Ξ± : Type*} [LinearOrder Ξ±] {s t : Set Ξ±}...
Mathlib/Order/Interval/Set/OrdConnectedComponent.lean
77
79
theorem ordConnectedComponent_inter (s t : Set α) (x : α) : ordConnectedComponent (s ∩ t) x = ordConnectedComponent s x ∩ ordConnectedComponent t x := by
simp [ordConnectedComponent, setOf_and]
[ " toDual x ∈ (⇑ofDual ⁻¹' s).ordConnectedComponent (toDual x✝) ↔ toDual x ∈ ⇑ofDual ⁻¹' s.ordConnectedComponent x✝", " ⇑ofDual ⁻¹' [[x✝, x]] βŠ† ⇑ofDual ⁻¹' s ↔ toDual x ∈ ⇑ofDual ⁻¹' s.ordConnectedComponent x✝", " x ∈ s.ordConnectedComponent x ↔ x ∈ s", " s.ordConnectedComponent x = βˆ… ↔ x βˆ‰ s", " univ.ordCon...
[ " toDual x ∈ (⇑ofDual ⁻¹' s).ordConnectedComponent (toDual x✝) ↔ toDual x ∈ ⇑ofDual ⁻¹' s.ordConnectedComponent x✝", " ⇑ofDual ⁻¹' [[x✝, x]] βŠ† ⇑ofDual ⁻¹' s ↔ toDual x ∈ ⇑ofDual ⁻¹' s.ordConnectedComponent x✝", " x ∈ s.ordConnectedComponent x ↔ x ∈ s", " s.ordConnectedComponent x = βˆ… ↔ x βˆ‰ s", " univ.ordCon...
import Mathlib.Analysis.InnerProductSpace.Dual #align_import analysis.inner_product_space.lax_milgram from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f6dddd2b4f5" noncomputable section open RCLike LinearMap ContinuousLinearMap InnerProductSpace open LinearMap (ker range) open RealInnerProduct...
Mathlib/Analysis/InnerProductSpace/LaxMilgram.lean
65
71
theorem antilipschitz (coercive : IsCoercive B) : βˆƒ C : ℝβ‰₯0, 0 < C ∧ AntilipschitzWith C Bβ™― := by
rcases coercive.bounded_below with ⟨C, C_pos, below_bound⟩ refine ⟨C⁻¹.toNNReal, Real.toNNReal_pos.mpr (inv_pos.mpr C_pos), ?_⟩ refine ContinuousLinearMap.antilipschitz_of_bound Bβ™― ?_ simp_rw [Real.coe_toNNReal', max_eq_left_of_lt (inv_pos.mpr C_pos), ← inv_mul_le_iff (inv_pos.mpr C_pos)] simpa using bel...
[ " βˆƒ C, 0 < C ∧ βˆ€ (v : V), C * β€–vβ€– ≀ β€–(continuousLinearMapOfBilin B) vβ€–", " βˆ€ (v : V), C * β€–vβ€– ≀ β€–(continuousLinearMapOfBilin B) vβ€–", " C * β€–vβ€– ≀ β€–(continuousLinearMapOfBilin B) vβ€–", " C * β€–vβ€– * β€–vβ€– ≀ β€–(continuousLinearMapOfBilin B) vβ€– * β€–vβ€–", " v = 0", " βˆƒ C, 0 < C ∧ AntilipschitzWith C ⇑(continuousLinear...
[ " βˆƒ C, 0 < C ∧ βˆ€ (v : V), C * β€–vβ€– ≀ β€–(continuousLinearMapOfBilin B) vβ€–", " βˆ€ (v : V), C * β€–vβ€– ≀ β€–(continuousLinearMapOfBilin B) vβ€–", " C * β€–vβ€– ≀ β€–(continuousLinearMapOfBilin B) vβ€–", " C * β€–vβ€– * β€–vβ€– ≀ β€–(continuousLinearMapOfBilin B) vβ€– * β€–vβ€–", " v = 0", " βˆƒ C, 0 < C ∧ AntilipschitzWith C ⇑(continuousLinear...
import Mathlib.Algebra.Algebra.Tower import Mathlib.Algebra.MvPolynomial.Basic #align_import ring_theory.mv_polynomial.tower from "leanprover-community/mathlib"@"bb168510ef455e9280a152e7f31673cabd3d7496" variable (R A B : Type*) {Οƒ : Type*} namespace MvPolynomial section Semiring variable [CommSemiring R] [Com...
Mathlib/RingTheory/MvPolynomial/Tower.lean
35
37
theorem aeval_map_algebraMap (x : Οƒ β†’ B) (p : MvPolynomial Οƒ R) : aeval x (map (algebraMap R A) p) = aeval x p := by
rw [aeval_def, aeval_def, evalβ‚‚_map, IsScalarTower.algebraMap_eq R A B]
[ " (aeval x) ((map (algebraMap R A)) p) = (aeval x) p" ]
[ " (aeval x) ((map (algebraMap R A)) p) = (aeval x) p" ]
import Mathlib.Algebra.Group.Pi.Lemmas import Mathlib.Algebra.Module.Defs import Mathlib.GroupTheory.Abelianization import Mathlib.GroupTheory.FreeGroup.Basic #align_import group_theory.free_abelian_group from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988" universe u v variable (Ξ± : Ty...
Mathlib/GroupTheory/FreeAbelianGroup.lean
129
135
theorem map_hom {Ξ± Ξ² Ξ³} [AddCommGroup Ξ²] [AddCommGroup Ξ³] (a : FreeAbelianGroup Ξ±) (f : Ξ± β†’ Ξ²) (g : Ξ² β†’+ Ξ³) : g (lift f a) = lift (g ∘ f) a := by
show (g.comp (lift f)) a = lift (g ∘ f) a apply lift.unique intro a show g ((lift f) (of a)) = g (f a) simp only [(· ∘ ·), lift.of]
[ " Unique (FreeAbelianGroup Ξ±)", " Unique (Additive (Abelianization (FreeGroup Ξ±)))", " (lift f) (of x) = f x", " f x = (FreeGroup.lift f) (FreeGroup.of x)", " g ((lift f) a) = (lift (⇑g ∘ f)) a", " (g.comp (lift f)) a = (lift (⇑g ∘ f)) a", " βˆ€ (x : Ξ±), (g.comp (lift f)) (of x) = (⇑g ∘ f) x", " (g.comp...
[ " Unique (FreeAbelianGroup Ξ±)", " Unique (Additive (Abelianization (FreeGroup Ξ±)))", " (lift f) (of x) = f x", " f x = (FreeGroup.lift f) (FreeGroup.of x)", " g ((lift f) a) = (lift (⇑g ∘ f)) a" ]
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Data.Complex.Exponential import Mathlib.Data.Complex.Module import Mathlib.RingTheory.Polynomial.Chebyshev #align_import analysis.special_functions.trigonometric.chebyshev from "leanprover-community/mathlib"@"2c1d8ca2812b64f88992a5294ea3dba144755cd1" set_...
Mathlib/Analysis/SpecialFunctions/Trigonometric/Chebyshev.lean
34
35
theorem aeval_U (x : A) (n : β„€) : aeval x (U R n) = (U A n).eval x := by
rw [aeval_def, evalβ‚‚_eq_eval_map, map_U]
[ " (aeval x) (T R n) = eval x (T A n)", " (aeval x) (U R n) = eval x (U A n)" ]
[ " (aeval x) (T R n) = eval x (T A n)", " (aeval x) (U R n) = eval x (U A n)" ]
import Mathlib.Order.CompleteLattice import Mathlib.Order.Cover import Mathlib.Order.Iterate import Mathlib.Order.WellFounded #align_import order.succ_pred.basic from "leanprover-community/mathlib"@"0111834459f5d7400215223ea95ae38a1265a907" open Function OrderDual Set variable {Ξ± Ξ² : Type*} @[ext] class SuccOr...
Mathlib/Order/SuccPred/Basic.lean
290
295
theorem succ_le_succ (h : a ≀ b) : succ a ≀ succ b := by
by_cases hb : IsMax b Β· by_cases hba : b ≀ a Β· exact (hb <| hba.trans <| le_succ _).trans (le_succ _) Β· exact succ_le_of_lt ((h.lt_of_not_le hba).trans_le <| le_succ b) Β· rwa [succ_le_iff_of_not_isMax fun ha => hb <| ha.mono h, lt_succ_iff_of_not_isMax hb]
[ " βˆ€ (a : Ξ±α΅’α΅ˆ), (⇑toDual ∘ SuccOrder.succ ∘ ⇑ofDual) a ≀ a", " IsMin a✝", " βˆ€ {a b : Ξ±α΅’α΅ˆ}, a < b β†’ a ≀ (⇑toDual ∘ SuccOrder.succ ∘ ⇑ofDual) b", " a ≀ (⇑toDual ∘ SuccOrder.succ ∘ ⇑ofDual) b", " βˆ€ (a : Ξ±α΅’α΅ˆ), a ≀ (⇑toDual ∘ PredOrder.pred ∘ ⇑ofDual) a", " IsMax a✝", " βˆ€ {a b : Ξ±α΅’α΅ˆ}, a < b β†’ (⇑toDual ∘ PredO...
[ " βˆ€ (a : Ξ±α΅’α΅ˆ), (⇑toDual ∘ SuccOrder.succ ∘ ⇑ofDual) a ≀ a", " IsMin a✝", " βˆ€ {a b : Ξ±α΅’α΅ˆ}, a < b β†’ a ≀ (⇑toDual ∘ SuccOrder.succ ∘ ⇑ofDual) b", " a ≀ (⇑toDual ∘ SuccOrder.succ ∘ ⇑ofDual) b", " βˆ€ (a : Ξ±α΅’α΅ˆ), a ≀ (⇑toDual ∘ PredOrder.pred ∘ ⇑ofDual) a", " IsMax a✝", " βˆ€ {a b : Ξ±α΅’α΅ˆ}, a < b β†’ (⇑toDual ∘ PredO...
import Mathlib.GroupTheory.GroupAction.Prod import Mathlib.Algebra.Ring.Int import Mathlib.Data.Nat.Cast.Basic assert_not_exists DenselyOrdered variable {M : Type*} class NatPowAssoc (M : Type*) [MulOneClass M] [Pow M β„•] : Prop where protected npow_add : βˆ€ (k n: β„•) (x : M), x ^ (k + n) = x ^ k * x ^ n ...
Mathlib/Algebra/Group/NatPowAssoc.lean
65
67
theorem npow_mul_assoc (k m n : β„•) (x : M) : (x ^ k * x ^ m) * x ^ n = x ^ k * (x ^ m * x ^ n) := by
simp only [← npow_add, add_assoc]
[ " x ^ k * x ^ m * x ^ n = x ^ k * (x ^ m * x ^ n)" ]
[ " x ^ k * x ^ m * x ^ n = x ^ k * (x ^ m * x ^ n)" ]
import Mathlib.LinearAlgebra.Matrix.Determinant.Basic #align_import linear_algebra.matrix.reindex from "leanprover-community/mathlib"@"1cfdf5f34e1044ecb65d10be753008baaf118edf" namespace Matrix open Equiv Matrix variable {l m n o : Type*} {l' m' n' o' : Type*} {m'' n'' : Type*} variable (R A : Type*) section A...
Mathlib/LinearAlgebra/Matrix/Reindex.lean
73
77
theorem reindexLinearEquiv_comp (e₁ : m ≃ m') (eβ‚‚ : n ≃ n') (e₁' : m' ≃ m'') (eβ‚‚' : n' ≃ n'') : reindexLinearEquiv R A e₁' eβ‚‚' ∘ reindexLinearEquiv R A e₁ eβ‚‚ = reindexLinearEquiv R A (e₁.trans e₁') (eβ‚‚.trans eβ‚‚') := by
rw [← reindexLinearEquiv_trans] rfl
[ " reindexLinearEquiv R A e₁ eβ‚‚ β‰ͺ≫ₗ reindexLinearEquiv R A e₁' eβ‚‚' = reindexLinearEquiv R A (e₁.trans e₁') (eβ‚‚.trans eβ‚‚')", " (reindexLinearEquiv R A e₁ eβ‚‚ β‰ͺ≫ₗ reindexLinearEquiv R A e₁' eβ‚‚') x✝ i✝ j✝ =\n (reindexLinearEquiv R A (e₁.trans e₁') (eβ‚‚.trans eβ‚‚')) x✝ i✝ j✝", " ⇑(reindexLinearEquiv R A e₁' eβ‚‚') ∘ ⇑...
[ " reindexLinearEquiv R A e₁ eβ‚‚ β‰ͺ≫ₗ reindexLinearEquiv R A e₁' eβ‚‚' = reindexLinearEquiv R A (e₁.trans e₁') (eβ‚‚.trans eβ‚‚')", " (reindexLinearEquiv R A e₁ eβ‚‚ β‰ͺ≫ₗ reindexLinearEquiv R A e₁' eβ‚‚') x✝ i✝ j✝ =\n (reindexLinearEquiv R A (e₁.trans e₁') (eβ‚‚.trans eβ‚‚')) x✝ i✝ j✝", " ⇑(reindexLinearEquiv R A e₁' eβ‚‚') ∘ ⇑...
import Mathlib.CategoryTheory.Sites.IsSheafFor import Mathlib.CategoryTheory.Limits.Shapes.Types import Mathlib.Tactic.ApplyFun #align_import category_theory.sites.sheaf_of_types from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" universe w v u namespace CategoryTheory open Opposite ...
Mathlib/CategoryTheory/Sites/EqualizerSheafCondition.lean
216
223
theorem w : forkMap P R ≫ firstMap P R = forkMap P R ≫ secondMap P R := by
dsimp ext fg simp only [firstMap, secondMap, forkMap] simp only [limit.lift_Ο€, limit.lift_Ο€_assoc, assoc, Fan.mk_Ο€_app] haveI := Presieve.hasPullbacks.has_pullbacks fg.1.2.2 fg.2.2.2 rw [← P.map_comp, ← op_comp, pullback.condition] simp
[ " z₁ = zβ‚‚", " βˆ€ (j : Discrete ((Y : C) Γ— { f // R f })),\n limit.Ο€ (Discrete.functor fun f => P.obj { unop := f.fst }) j z₁ =\n limit.Ο€ (Discrete.functor fun f => P.obj { unop := f.fst }) j zβ‚‚", " limit.Ο€ (Discrete.functor fun f => P.obj { unop := f.fst }) { as := ⟨Y, ⟨f, hf⟩⟩ } z₁ =\n limit.Ο€ (Discr...
[ " z₁ = zβ‚‚", " βˆ€ (j : Discrete ((Y : C) Γ— { f // R f })),\n limit.Ο€ (Discrete.functor fun f => P.obj { unop := f.fst }) j z₁ =\n limit.Ο€ (Discrete.functor fun f => P.obj { unop := f.fst }) j zβ‚‚", " limit.Ο€ (Discrete.functor fun f => P.obj { unop := f.fst }) { as := ⟨Y, ⟨f, hf⟩⟩ } z₁ =\n limit.Ο€ (Discr...
import Mathlib.Tactic.Ring.Basic import Mathlib.Tactic.TryThis import Mathlib.Tactic.Conv import Mathlib.Util.Qq set_option autoImplicit true -- In this file we would like to be able to use multi-character auto-implicits. set_option relaxedAutoImplicit true namespace Mathlib.Tactic open Lean hiding Rat open Qq Me...
Mathlib/Tactic/Ring/RingNF.lean
120
120
theorem nat_rawCast_0 : (Nat.rawCast 0 : R) = 0 := by
simp
[ " a * -b = -(a * b)", " Nat.rawCast 0 = 0" ]
[ " a * -b = -(a * b)", " Nat.rawCast 0 = 0" ]
import Mathlib.Order.CompleteLattice import Mathlib.Data.Finset.Lattice import Mathlib.CategoryTheory.Limits.Shapes.Pullbacks import Mathlib.CategoryTheory.Category.Preorder import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.FiniteLimits #align_import category_theory.limi...
Mathlib/CategoryTheory/Limits/Lattice.lean
99
107
theorem finite_coproduct_eq_finset_sup [SemilatticeSup Ξ±] [OrderBot Ξ±] {ΞΉ : Type u} [Fintype ΞΉ] (f : ΞΉ β†’ Ξ±) : ∐ f = Fintype.elems.sup f := by
trans Β· exact (IsColimit.coconePointUniqueUpToIso (colimit.isColimit _) (finiteColimitCocone (Discrete.functor f)).isColimit).to_eq change Finset.univ.sup (f ∘ discreteEquiv.toEmbedding) = Fintype.elems.sup f simp only [← Finset.sup_map, Finset.univ_map_equiv_to_embedding] rfl
[ " βˆ€ (J : Type) [π’₯ : SmallCategory J] [inst : FinCategory J], HasLimitsOfShape J Ξ±", " HasLimitsOfShape J Ξ±", " βˆ€ (J : Type) [π’₯ : SmallCategory J] [inst : FinCategory J], HasColimitsOfShape J Ξ±", " HasColimitsOfShape J Ξ±", " ∏ᢜ f = Fintype.elems.inf f", " ∏ᢜ f = ?m.21382", " (finiteLimitCone (Discrete....
[ " βˆ€ (J : Type) [π’₯ : SmallCategory J] [inst : FinCategory J], HasLimitsOfShape J Ξ±", " HasLimitsOfShape J Ξ±", " βˆ€ (J : Type) [π’₯ : SmallCategory J] [inst : FinCategory J], HasColimitsOfShape J Ξ±", " HasColimitsOfShape J Ξ±", " ∏ᢜ f = Fintype.elems.inf f", " ∏ᢜ f = ?m.21382", " (finiteLimitCone (Discrete....
import Mathlib.Topology.Separation open Topology Filter Set TopologicalSpace section Basic variable {Ξ± : Type*} [TopologicalSpace Ξ±] {C : Set Ξ±} theorem AccPt.nhds_inter {x : Ξ±} {U : Set Ξ±} (h_acc : AccPt x (π“Ÿ C)) (hU : U ∈ 𝓝 x) : AccPt x (π“Ÿ (U ∩ C)) := by have : 𝓝[β‰ ] x ≀ π“Ÿ U := by rw [le_princ...
Mathlib/Topology/Perfect.lean
147
153
theorem Perfect.closure_nhds_inter {U : Set α} (hC : Perfect C) (x : α) (xC : x ∈ C) (xU : x ∈ U) (Uop : IsOpen U) : Perfect (closure (U ∩ C)) ∧ (closure (U ∩ C)).Nonempty := by
constructor · apply Preperfect.perfect_closure exact hC.acc.open_inter Uop apply Nonempty.closure exact ⟨x, ⟨xU, xC⟩⟩
[ " AccPt x (π“Ÿ (U ∩ C))", " 𝓝[β‰ ] x ≀ π“Ÿ U", " U ∈ 𝓝[β‰ ] x", " (𝓝[β‰ ] x βŠ“ π“Ÿ C).NeBot", " Preperfect C ↔ βˆ€ x ∈ C, βˆ€ U ∈ 𝓝 x, βˆƒ y ∈ U ∩ C, y β‰  x", " Preperfect (U ∩ C)", " U ∈ 𝓝 x", " Perfect (closure C)", " IsClosed (closure C)", " Preperfect (closure C)", " AccPt x (π“Ÿ (closure C))", " AccPt...
[ " AccPt x (π“Ÿ (U ∩ C))", " 𝓝[β‰ ] x ≀ π“Ÿ U", " U ∈ 𝓝[β‰ ] x", " (𝓝[β‰ ] x βŠ“ π“Ÿ C).NeBot", " Preperfect C ↔ βˆ€ x ∈ C, βˆ€ U ∈ 𝓝 x, βˆƒ y ∈ U ∩ C, y β‰  x", " Preperfect (U ∩ C)", " U ∈ 𝓝 x", " Perfect (closure C)", " IsClosed (closure C)", " Preperfect (closure C)", " AccPt x (π“Ÿ (closure C))", " AccPt...
import Mathlib.Init.Logic import Mathlib.Tactic.AdaptationNote import Mathlib.Tactic.Coe set_option autoImplicit true -- We align Lean 3 lemmas with lemmas in `Init.SimpLemmas` in Lean 4. #align band_self Bool.and_self #align band_tt Bool.and_true #align band_ff Bool.and_false #align tt_band Bool.true_and #align f...
Mathlib/Init/Data/Bool/Lemmas.lean
51
51
theorem false_eq_true_eq_False : Β¬false = true := by
decide
[ " Β¬true = false", " Β¬false = true" ]
[ " Β¬true = false", " Β¬false = true" ]
import Mathlib.Analysis.NormedSpace.lpSpace import Mathlib.Topology.Sets.Compacts #align_import topology.metric_space.kuratowski from "leanprover-community/mathlib"@"95d4f6586d313c8c28e00f36621d2a6a66893aa6" noncomputable section set_option linter.uppercaseLean3 false open Set Metric TopologicalSpace NNReal ENNR...
Mathlib/Topology/MetricSpace/Kuratowski.lean
91
102
theorem exists_isometric_embedding (Ξ± : Type u) [MetricSpace Ξ±] [SeparableSpace Ξ±] : βˆƒ f : Ξ± β†’ β„“^∞(β„•), Isometry f := by
rcases (univ : Set Ξ±).eq_empty_or_nonempty with h | h Β· use fun _ => 0; intro x; exact absurd h (Nonempty.ne_empty ⟨x, mem_univ x⟩) Β· -- We construct a map x : β„• β†’ Ξ± with dense image rcases h with ⟨basepoint⟩ haveI : Inhabited Ξ± := ⟨basepoint⟩ have : βˆƒ s : Set Ξ±, s.Countable ∧ Dense s := exists_count...
[ " (fun n => dist a (x n) - dist (x 0) (x n)) ∈ lp (fun i => ℝ) ⊀", " BddAbove (range fun i => β€–(fun n => dist a (x n) - dist (x 0) (x n)) iβ€–)", " dist a (x 0) ∈ upperBounds (range fun i => β€–(fun n => dist a (x n) - dist (x 0) (x n)) iβ€–)", " (fun i => β€–(fun n => dist a (x n) - dist (x 0) (x n)) iβ€–) n ≀ dist a ...
[ " (fun n => dist a (x n) - dist (x 0) (x n)) ∈ lp (fun i => ℝ) ⊀", " BddAbove (range fun i => β€–(fun n => dist a (x n) - dist (x 0) (x n)) iβ€–)", " dist a (x 0) ∈ upperBounds (range fun i => β€–(fun n => dist a (x n) - dist (x 0) (x n)) iβ€–)", " (fun i => β€–(fun n => dist a (x n) - dist (x 0) (x n)) iβ€–) n ≀ dist a ...
import Mathlib.Algebra.Order.Kleene import Mathlib.Algebra.Ring.Hom.Defs import Mathlib.Data.List.Join import Mathlib.Data.Set.Lattice import Mathlib.Tactic.DeriveFintype #align_import computability.language from "leanprover-community/mathlib"@"a239cd3e7ac2c7cde36c913808f9d40c411344f6" open List Set Computability...
Mathlib/Computability/Language.lean
104
104
theorem mem_one (x : List Ξ±) : x ∈ (1 : Language Ξ±) ↔ x = [] := by
rfl
[ " x ∈ 1 ↔ x = []" ]
[ " x ∈ 1 ↔ x = []" ]
import Mathlib.Geometry.Manifold.ContMDiff.Basic open Set ChartedSpace SmoothManifoldWithCorners open scoped Manifold variable {π•œ : Type*} [NontriviallyNormedField π•œ] -- declare a smooth manifold `M` over the pair `(E, H)`. {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {H : Type*} [TopologicalSpace...
Mathlib/Geometry/Manifold/ContMDiff/Atlas.lean
36
42
theorem contMDiff_model : ContMDiff I π“˜(π•œ, E) n I := by
intro x refine (contMDiffAt_iff _ _).mpr ⟨I.continuousAt, ?_⟩ simp only [mfld_simps] refine contDiffWithinAt_id.congr_of_eventuallyEq ?_ ?_ Β· exact Filter.eventuallyEq_of_mem self_mem_nhdsWithin fun xβ‚‚ => I.right_inv simp_rw [Function.comp_apply, I.left_inv, Function.id_def]
[ " ContMDiff I π“˜(π•œ, E) n ↑I", " ContMDiffAt I π“˜(π•œ, E) n (↑I) x", " ContDiffWithinAt π•œ n (↑(extChartAt π“˜(π•œ, E) (↑I x)) ∘ ↑I ∘ ↑(extChartAt I x).symm) (range ↑I) (↑(extChartAt I x) x)", " ContDiffWithinAt π•œ n (↑I ∘ ↑I.symm) (range ↑I) (↑I x)", " ↑I ∘ ↑I.symm =αΆ [nhdsWithin (↑I x) (range ↑I)] id", " (↑...
[ " ContMDiff I π“˜(π•œ, E) n ↑I" ]
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
33
33
theorem units_mul_self (u : β„€Λ£) : u * u = 1 := by
rw [← sq, units_sq]
[ " IsUnit x ↔ |x| = 1", " a ^ 2 = 1", " u ^ 2 = 1", " u * u = 1" ]
[ " IsUnit x ↔ |x| = 1", " a ^ 2 = 1", " u ^ 2 = 1", " u * u = 1" ]
import Mathlib.Data.Matrix.Invertible import Mathlib.LinearAlgebra.Matrix.NonsingularInverse import Mathlib.LinearAlgebra.Matrix.PosDef #align_import linear_algebra.matrix.schur_complement from "leanprover-community/mathlib"@"a176cb1219e300e85793d44583dede42377b51af" variable {l m n Ξ± : Type*} namespace Matrix ...
Mathlib/LinearAlgebra/Matrix/SchurComplement.lean
506
519
theorem IsHermitian.fromBlocks₁₁ [Fintype m] [DecidableEq m] {A : Matrix m m π•œ} (B : Matrix m n π•œ) (D : Matrix n n π•œ) (hA : A.IsHermitian) : (Matrix.fromBlocks A B Bα΄΄ D).IsHermitian ↔ (D - Bα΄΄ * A⁻¹ * B).IsHermitian := by
have hBAB : (Bα΄΄ * A⁻¹ * B).IsHermitian := by apply isHermitian_conjTranspose_mul_mul apply hA.inv rw [isHermitian_fromBlocks_iff] constructor Β· intro h apply IsHermitian.sub h.2.2.2 hBAB Β· intro h refine ⟨hA, rfl, conjTranspose_conjTranspose B, ?_⟩ rw [← sub_add_cancel D] apply IsHerm...
[ " A.fromBlocks B C D = fromBlocks 1 0 (C * β…ŸA) 1 * A.fromBlocks 0 0 (D - C * β…ŸA * B) * fromBlocks 1 (β…ŸA * B) 0 1", " (reindex (Equiv.sumComm l n) (Equiv.sumComm m n)) (A.fromBlocks B C D) =\n (reindex (Equiv.sumComm l n) (Equiv.sumComm m n))\n (fromBlocks 1 (B * β…ŸD) 0 1 * (A - B * β…ŸD * C).fromBlocks 0 0 D...
[ " A.fromBlocks B C D = fromBlocks 1 0 (C * β…ŸA) 1 * A.fromBlocks 0 0 (D - C * β…ŸA * B) * fromBlocks 1 (β…ŸA * B) 0 1", " (reindex (Equiv.sumComm l n) (Equiv.sumComm m n)) (A.fromBlocks B C D) =\n (reindex (Equiv.sumComm l n) (Equiv.sumComm m n))\n (fromBlocks 1 (B * β…ŸD) 0 1 * (A - B * β…ŸD * C).fromBlocks 0 0 D...
import Mathlib.Data.Set.Function import Mathlib.Order.Interval.Set.OrdConnected #align_import data.set.intervals.proj_Icc from "leanprover-community/mathlib"@"4e24c4bfcff371c71f7ba22050308aa17815626c" variable {α β : Type*} [LinearOrder α] open Function namespace Set def projIci (a x : α) : Ici a := ⟨max a x,...
Mathlib/Order/Interval/Set/ProjIcc.lean
128
128
theorem projIic_coe (x : Iic b) : projIic b x = x := by
cases x; apply projIic_of_mem
[ " projIcc a b h x = ⟨a, β‹―βŸ©", " projIcc a b h x = ⟨b, β‹―βŸ©", " projIci a x = ⟨a, β‹―βŸ© ↔ x ≀ a", " projIic b x = ⟨b, β‹―βŸ© ↔ b ≀ x", " projIcc a b β‹― x = ⟨a, β‹―βŸ© ↔ x ≀ a", " projIcc a b β‹― x = ⟨b, β‹―βŸ© ↔ b ≀ x", " projIci a x = ⟨x, hx⟩", " projIic b x = ⟨x, hx⟩", " projIcc a b h x = ⟨x, hx⟩", " projIci a ↑x = x...
[ " projIcc a b h x = ⟨a, β‹―βŸ©", " projIcc a b h x = ⟨b, β‹―βŸ©", " projIci a x = ⟨a, β‹―βŸ© ↔ x ≀ a", " projIic b x = ⟨b, β‹―βŸ© ↔ b ≀ x", " projIcc a b β‹― x = ⟨a, β‹―βŸ© ↔ x ≀ a", " projIcc a b β‹― x = ⟨b, β‹―βŸ© ↔ b ≀ x", " projIci a x = ⟨x, hx⟩", " projIic b x = ⟨x, hx⟩", " projIcc a b h x = ⟨x, hx⟩", " projIci a ↑x = x...
import Mathlib.Algebra.MonoidAlgebra.Degree import Mathlib.Algebra.MvPolynomial.Rename import Mathlib.Algebra.Order.BigOperators.Ring.Finset #align_import data.mv_polynomial.variables from "leanprover-community/mathlib"@"2f5b500a507264de86d666a5f87ddb976e2d8de4" noncomputable section open Set Function Finsupp Ad...
Mathlib/Algebra/MvPolynomial/Degrees.lean
144
146
theorem degrees_prod {ΞΉ : Type*} (s : Finset ΞΉ) (f : ΞΉ β†’ MvPolynomial Οƒ R) : (∏ i ∈ s, f i).degrees ≀ βˆ‘ i ∈ s, (f i).degrees := by
classical exact supDegree_prod_le (map_zero _) (map_add _)
[ " p.degrees = p.support.sup fun s => toMultiset s", " (p.support.sup fun s => toMultiset s) = p.support.sup fun s => toMultiset s", " ((monomial s) a).degrees ≀ toMultiset s", " (if a = 0 then βŠ₯ else toMultiset s) ≀ toMultiset s", " toMultiset s ≀ toMultiset s", " ((monomial s) a).degrees = toMultiset s",...
[ " p.degrees = p.support.sup fun s => toMultiset s", " (p.support.sup fun s => toMultiset s) = p.support.sup fun s => toMultiset s", " ((monomial s) a).degrees ≀ toMultiset s", " (if a = 0 then βŠ₯ else toMultiset s) ≀ toMultiset s", " toMultiset s ≀ toMultiset s", " ((monomial s) a).degrees = toMultiset s",...
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
110
130
theorem lintegral_mul_le_Lp_mul_Lq_of_ne_zero_of_ne_top {p q : ℝ} (hpq : p.IsConjExponent q) {f g : Ξ± β†’ ℝβ‰₯0∞} (hf : AEMeasurable f ΞΌ) (hf_nontop : (∫⁻ a, f a ^ p βˆ‚ΞΌ) β‰  ⊀) (hg_nontop : (∫⁻ a, g a ^ q βˆ‚ΞΌ) β‰  ⊀) (hf_nonzero : (∫⁻ a, f a ^ p βˆ‚ΞΌ) β‰  0) (hg_nonzero : (∫⁻ a, g a ^ q βˆ‚ΞΌ) β‰  0) : (∫⁻ a, (f * g) a βˆ‚...
let npf := (∫⁻ c : Ξ±, f c ^ p βˆ‚ΞΌ) ^ (1 / p) let nqg := (∫⁻ c : Ξ±, g c ^ q βˆ‚ΞΌ) ^ (1 / q) calc (∫⁻ a : Ξ±, (f * g) a βˆ‚ΞΌ) = ∫⁻ a : Ξ±, (funMulInvSnorm f p ΞΌ * funMulInvSnorm g q ΞΌ) a * (npf * nqg) βˆ‚ΞΌ := by refine lintegral_congr fun a => ?_ rw [Pi.mul_apply, fun_eq_funMulInvSnorm_mul_snorm f h...
[ " ∫⁻ (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...
[ " ∫⁻ (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.Data.PFunctor.Univariate.Basic #align_import data.pfunctor.univariate.M from "leanprover-community/mathlib"@"8631e2d5ea77f6c13054d9151d82b83069680cb1" universe u v w open Nat Function open List variable (F : PFunctor.{u}) -- Porting note: the β™― tactic is never used -- local prefix:0 "β™―" => cast...
Mathlib/Data/PFunctor/Univariate/M.lean
128
134
theorem P_corec (i : X) (n : β„•) : Agree (sCorec f i n) (sCorec f i (succ n)) := by
induction' n with n n_ih generalizing i constructor cases' f i with y g constructor introv apply n_ih
[ " x = CofixA.intro (head' x) (children' x)", " CofixA.intro a✝¹ a✝ = CofixA.intro (head' (CofixA.intro a✝¹ a✝)) (children' (CofixA.intro a✝¹ a✝))", " Agree x y", " Agree (children' x i) (children' y j)", " Agree (children' (CofixA.intro a✝ x✝) i) (children' (CofixA.intro a✝ x'✝) j)", " Agree (children' (C...
[ " x = CofixA.intro (head' x) (children' x)", " CofixA.intro a✝¹ a✝ = CofixA.intro (head' (CofixA.intro a✝¹ a✝)) (children' (CofixA.intro a✝¹ a✝))", " Agree x y", " Agree (children' x i) (children' y j)", " Agree (children' (CofixA.intro a✝ x✝) i) (children' (CofixA.intro a✝ x'✝) j)", " Agree (children' (C...
import Mathlib.Algebra.Algebra.Tower import Mathlib.Algebra.Module.BigOperators import Mathlib.LinearAlgebra.Basis #align_import ring_theory.algebra_tower from "leanprover-community/mathlib"@"94825b2b0b982306be14d891c4f063a1eca4f370" open Pointwise universe u v w u₁ variable (R : Type u) (S : Type v) (A : Type ...
Mathlib/RingTheory/AlgebraTower.lean
108
121
theorem linearIndependent_smul {ΞΉ : Type v₁} {b : ΞΉ β†’ S} {ΞΉ' : Type w₁} {c : ΞΉ' β†’ A} (hb : LinearIndependent R b) (hc : LinearIndependent S c) : LinearIndependent R fun p : ΞΉ Γ— ΞΉ' => b p.1 β€’ c p.2 := by
rw [linearIndependent_iff'] at hb hc; rw [linearIndependent_iff'']; rintro s g hg hsg ⟨i, k⟩ by_cases hik : (i, k) ∈ s Β· have h1 : βˆ‘ i ∈ s.image Prod.fst Γ—Λ’ s.image Prod.snd, g i β€’ b i.1 β€’ c i.2 = 0 := by rw [← hsg] exact (Finset.sum_subset Finset.subset_product fun p _ hp => show...
[ " LinearIndependent R fun p => b p.1 β€’ c p.2", " βˆ€ (s : Finset (ΞΉ Γ— ΞΉ')) (g : ΞΉ Γ— ΞΉ' β†’ R),\n (βˆ€ i βˆ‰ s, g i = 0) β†’ βˆ‘ i ∈ s, g i β€’ b i.1 β€’ c i.2 = 0 β†’ βˆ€ (i : ΞΉ Γ— ΞΉ'), g i = 0", " g (i, k) = 0", " βˆ‘ i ∈ Finset.image Prod.fst s Γ—Λ’ Finset.image Prod.snd s, g i β€’ b i.1 β€’ c i.2 = 0", " βˆ‘ i ∈ Finset.image Prod.f...
[ " LinearIndependent R fun p => b p.1 β€’ c p.2" ]
import Mathlib.Probability.Notation import Mathlib.Probability.Density import Mathlib.Probability.ConditionalProbability import Mathlib.Probability.ProbabilityMassFunction.Constructions open scoped Classical MeasureTheory NNReal ENNReal -- TODO: We can't `open ProbabilityTheory` without opening the `ProbabilityThe...
Mathlib/Probability/Distributions/Uniform.lean
66
75
theorem aemeasurable {X : Ξ© β†’ E} {s : Set E} (hns : ΞΌ s β‰  0) (hnt : ΞΌ s β‰  ∞) (hu : IsUniform X s β„™ ΞΌ) : AEMeasurable X β„™ := by
dsimp [IsUniform, ProbabilityTheory.cond] at hu by_contra h rw [map_of_not_aemeasurable h] at hu apply zero_ne_one' ℝβ‰₯0∞ calc 0 = (0 : Measure E) Set.univ := rfl _ = _ := by rw [hu, smul_apply, restrict_apply MeasurableSet.univ, Set.univ_inter, smul_eq_mul, ENNReal.inv_mul_cancel hns hnt]
[ " AEMeasurable X β„™", " False", " 0 = 1", " 0 Set.univ = 1" ]
[ " AEMeasurable X β„™" ]
import Mathlib.LinearAlgebra.FiniteDimensional import Mathlib.LinearAlgebra.FreeModule.Finite.Basic import Mathlib.LinearAlgebra.FreeModule.StrongRankCondition import Mathlib.LinearAlgebra.Projection import Mathlib.LinearAlgebra.SesquilinearForm import Mathlib.RingTheory.TensorProduct.Basic import Mathlib.RingTheory.I...
Mathlib/LinearAlgebra/Dual.lean
226
231
theorem LinearMap.dualMap_injective_of_surjective {f : M₁ β†’β‚—[R] Mβ‚‚} (hf : Function.Surjective f) : Function.Injective f.dualMap := by
intro Ο† ψ h ext x obtain ⟨y, rfl⟩ := hf x exact congr_arg (fun g : Module.Dual R M₁ => g y) h
[ " id.dualMap = id", " (id.dualMap x✝¹) x✝ = (id x✝¹) x✝", " Function.Injective ⇑f.dualMap", " Ο† = ψ", " Ο† x = ψ x", " Ο† (f y) = ψ (f y)" ]
[ " id.dualMap = id", " (id.dualMap x✝¹) x✝ = (id x✝¹) x✝", " Function.Injective ⇑f.dualMap" ]
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.MvPolynomial.Rename import Mathlib.Algebra.MvPolynomial.Degrees import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Data.Finsupp.Fin import Mathlib.Logic.Equiv.Fin #align_import data.mv_polynomial.equiv from "leanprover-community/mathlib"@"2f5b500...
Mathlib/Algebra/MvPolynomial/Equiv.lean
143
147
theorem mapAlgEquiv_trans (e : A₁ ≃ₐ[R] Aβ‚‚) (f : Aβ‚‚ ≃ₐ[R] A₃) : (mapAlgEquiv Οƒ e).trans (mapAlgEquiv Οƒ f) = mapAlgEquiv Οƒ (e.trans f) := by
ext simp only [AlgEquiv.trans_apply, mapAlgEquiv_apply, map_map] rfl
[ " LeftInverse (Polynomial.evalβ‚‚ C (X PUnit.unit)) (evalβ‚‚ Polynomial.C fun x => Polynomial.X)", " βˆ€ (p : MvPolynomial PUnit.{?u.2415 + 1} R), (f.comp g) p = p", " (f.comp g).comp C = C", " coeff m✝ (((f.comp g).comp C) a) = coeff m✝ (C a)", " coeff m✝ (Polynomial.evalβ‚‚ C (X PUnit.unit) (evalβ‚‚ Polynomial.C (f...
[ " LeftInverse (Polynomial.evalβ‚‚ C (X PUnit.unit)) (evalβ‚‚ Polynomial.C fun x => Polynomial.X)", " βˆ€ (p : MvPolynomial PUnit.{?u.2415 + 1} R), (f.comp g) p = p", " (f.comp g).comp C = C", " coeff m✝ (((f.comp g).comp C) a) = coeff m✝ (C a)", " coeff m✝ (Polynomial.evalβ‚‚ C (X PUnit.unit) (evalβ‚‚ Polynomial.C (f...
import Mathlib.RingTheory.Localization.Module import Mathlib.RingTheory.Norm import Mathlib.RingTheory.Discriminant #align_import ring_theory.localization.norm from "leanprover-community/mathlib"@"2e59a6de168f95d16b16d217b808a36290398c0a" open scoped nonZeroDivisors variable (R : Type*) {S : Type*} [CommRing R] ...
Mathlib/RingTheory/Localization/NormTrace.lean
50
56
theorem Algebra.map_leftMulMatrix_localization {ΞΉ : Type*} [Fintype ΞΉ] [DecidableEq ΞΉ] (b : Basis ΞΉ R S) (a : S) : (algebraMap R Rβ‚˜).mapMatrix (leftMulMatrix b a) = leftMulMatrix (b.localizationLocalization Rβ‚˜ M Sβ‚˜) (algebraMap S Sβ‚˜ a) := by
ext i j simp only [Matrix.map_apply, RingHom.mapMatrix_apply, leftMulMatrix_eq_repr_mul, ← map_mul, Basis.localizationLocalization_apply, Basis.localizationLocalization_repr_algebraMap]
[ " (algebraMap R Rβ‚˜).mapMatrix ((leftMulMatrix b) a) =\n (leftMulMatrix (Basis.localizationLocalization Rβ‚˜ M Sβ‚˜ b)) ((algebraMap S Sβ‚˜) a)", " (algebraMap R Rβ‚˜).mapMatrix ((leftMulMatrix b) a) i j =\n (leftMulMatrix (Basis.localizationLocalization Rβ‚˜ M Sβ‚˜ b)) ((algebraMap S Sβ‚˜) a) i j" ]
[ " (algebraMap R Rβ‚˜).mapMatrix ((leftMulMatrix b) a) =\n (leftMulMatrix (Basis.localizationLocalization Rβ‚˜ M Sβ‚˜ b)) ((algebraMap S Sβ‚˜) a)" ]
import Mathlib.RingTheory.Valuation.Basic import Mathlib.NumberTheory.Padics.PadicNorm import Mathlib.Analysis.Normed.Field.Basic #align_import number_theory.padics.padic_numbers from "leanprover-community/mathlib"@"b9b2114f7711fec1c1e055d507f082f8ceb2c3b7" noncomputable section open scoped Classical open Nat m...
Mathlib/NumberTheory/Padics/PadicNumbers.lean
121
135
theorem norm_zero_iff (f : PadicSeq p) : f.norm = 0 ↔ f β‰ˆ 0 := by
constructor Β· intro h by_contra hf unfold norm at h split_ifs at h Β· contradiction apply hf intro Ξ΅ hΞ΅ exists stationaryPoint hf intro j hj have heq := stationaryPoint_spec hf le_rfl hj simpa [h, heq] Β· intro h simp [norm, h]
[ " padicNorm p (↑f m) = padicNorm p (↑f n)", " False", " f.norm = 0 ↔ f β‰ˆ 0", " f.norm = 0 β†’ f β‰ˆ 0", " f β‰ˆ 0", " βˆƒ i, βˆ€ j β‰₯ i, padicNorm p (↑(f - 0) j) < Ξ΅", " βˆ€ j β‰₯ stationaryPoint hf, padicNorm p (↑(f - 0) j) < Ξ΅", " padicNorm p (↑(f - 0) j) < Ξ΅", " f β‰ˆ 0 β†’ f.norm = 0", " f.norm = 0" ]
[ " padicNorm p (↑f m) = padicNorm p (↑f n)", " False", " f.norm = 0 ↔ f β‰ˆ 0" ]
import Mathlib.Analysis.SpecialFunctions.Integrals #align_import data.real.pi.wallis from "leanprover-community/mathlib"@"980755c33b9168bc82f774f665eaa27878140fac" open scoped Real Topology Nat open Filter Finset intervalIntegral namespace Real namespace Wallis set_option linter.uppercaseLean3 false noncomp...
Mathlib/Data/Real/Pi/Wallis.lean
85
88
theorem W_le (k : β„•) : W k ≀ Ο€ / 2 := by
rw [← div_le_one pi_div_two_pos, div_eq_inv_mul] rw [W_eq_integral_sin_pow_div_integral_sin_pow, div_le_one (integral_sin_pow_pos _)] apply integral_sin_pow_succ_le
[ " 0 < W k", " 0 < W 0", " 0 < ∏ i ∈ range 0, (2 * ↑i + 2) / (2 * ↑i + 1) * ((2 * ↑i + 2) / (2 * ↑i + 3))", " 0 < W (k + 1)", " 0 < W k * ((2 * ↑k + 2) / (2 * ↑k + 1) * ((2 * ↑k + 2) / (2 * ↑k + 3)))", " 0 < 2 * ↑k + 2", " 0 < 2 * ↑k + 1", " 0 < 2 * ↑k + 3", " W n = 2 ^ (4 * n) * ↑n ! ^ 4 / (↑(2 * n)...
[ " 0 < W k", " 0 < W 0", " 0 < ∏ i ∈ range 0, (2 * ↑i + 2) / (2 * ↑i + 1) * ((2 * ↑i + 2) / (2 * ↑i + 3))", " 0 < W (k + 1)", " 0 < W k * ((2 * ↑k + 2) / (2 * ↑k + 1) * ((2 * ↑k + 2) / (2 * ↑k + 3)))", " 0 < 2 * ↑k + 2", " 0 < 2 * ↑k + 1", " 0 < 2 * ↑k + 3", " W n = 2 ^ (4 * n) * ↑n ! ^ 4 / (↑(2 * n)...
import Aesop import Mathlib.Algebra.Group.Defs import Mathlib.Data.Nat.Defs import Mathlib.Data.Int.Defs import Mathlib.Logic.Function.Basic import Mathlib.Tactic.Cases import Mathlib.Tactic.SimpRw import Mathlib.Tactic.SplitIfs #align_import algebra.group.basic from "leanprover-community/mathlib"@"a07d750983b94c530a...
Mathlib/Algebra/Group/Basic.lean
1,426
1,432
theorem multiplicative_of_isTotal (p : Ξ± β†’ Prop) (hswap : βˆ€ {a b}, p a β†’ p b β†’ f a b * f b a = 1) (hmul : βˆ€ {a b c}, r a b β†’ r b c β†’ p a β†’ p b β†’ p c β†’ f a c = f a b * f b c) {a b c : Ξ±} (pa : p a) (pb : p b) (pc : p c) : f a c = f a b * f b c := by
apply multiplicative_of_symmetric_of_isTotal (fun a b => p a ∧ p b) r f fun _ _ => And.symm · simp_rw [and_imp]; exact @hswap · exact fun rab rbc pab _pbc pac => hmul rab rbc pab.1 pab.2 pac.2 exacts [⟨pa, pb⟩, ⟨pb, pc⟩, ⟨pa, pc⟩]
[ " f a c = f a b * f b c", " βˆ€ {b c : Ξ±}, r b c β†’ p a b β†’ p b c β†’ p a c β†’ f a c = f a b * f b c", " f a b * (f b a * f a c) = f a b * f b c", " βˆ€ {a b : Ξ±}, p a ∧ p b β†’ f a b * f b a = 1", " βˆ€ {a b : Ξ±}, p a β†’ p b β†’ f a b * f b a = 1", " βˆ€ {a b c : Ξ±}, r a b β†’ r b c β†’ p a ∧ p b β†’ p b ∧ p c β†’ p a ∧ p c β†’ f ...
[ " f a c = f a b * f b c", " βˆ€ {b c : Ξ±}, r b c β†’ p a b β†’ p b c β†’ p a c β†’ f a c = f a b * f b c", " f a b * (f b a * f a c) = f a b * f b c" ]
import Mathlib.Data.Multiset.Basic #align_import data.multiset.range from "leanprover-community/mathlib"@"0a0ec35061ed9960bf0e7ffb0335f44447b58977" open List Nat namespace Multiset -- range def range (n : β„•) : Multiset β„• := List.range n #align multiset.range Multiset.range theorem coe_range (n : β„•) : ↑(List...
Mathlib/Data/Multiset/Range.lean
73
75
theorem range_add_eq_union (a b : β„•) : range (a + b) = range a βˆͺ (range b).map (a + Β·) := by
rw [range_add, add_eq_union_iff_disjoint] apply range_disjoint_map_add
[ " range n.succ = n ::β‚˜ range n", " ↑[n] + ↑(List.range n) = n ::β‚˜ range n", " (range a).Disjoint (map (fun x => a + x) m)", " False", " range (a + b) = range a βˆͺ map (fun x => a + x) (range b)", " (range a).Disjoint (map (fun x => a + x) (range b))" ]
[ " range n.succ = n ::β‚˜ range n", " ↑[n] + ↑(List.range n) = n ::β‚˜ range n", " (range a).Disjoint (map (fun x => a + x) m)", " False", " range (a + b) = range a βˆͺ map (fun x => a + x) (range b)" ]
import Mathlib.Algebra.Order.EuclideanAbsoluteValue import Mathlib.Algebra.Order.Group.Basic import Mathlib.Algebra.Order.Ring.Basic import Mathlib.Algebra.Polynomial.FieldDivision #align_import data.polynomial.degree.card_pow_degree from "leanprover-community/mathlib"@"85d9f2189d9489f9983c0d01536575b0233bd305" n...
Mathlib/Algebra/Polynomial/Degree/CardPowDegree.lean
79
83
theorem cardPowDegree_apply [DecidableEq Fq] (p : Fq[X]) : cardPowDegree p = if p = 0 then 0 else (Fintype.card Fq : β„€) ^ natDegree p := by
rw [cardPowDegree] dsimp convert rfl
[ " (fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree) (p * q) =\n (fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree) p *\n (fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree) q", " 0 ≀ { toFun := fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree, map_mu...
[ " (fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree) (p * q) =\n (fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree) p *\n (fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree) q", " 0 ≀ { toFun := fun p => if p = 0 then 0 else ↑(Fintype.card Fq) ^ p.natDegree, map_mu...
import Mathlib.Data.Opposite import Mathlib.Tactic.Cases #align_import combinatorics.quiver.basic from "leanprover-community/mathlib"@"56adee5b5eef9e734d82272918300fca4f3e7cef" open Opposite -- We use the same universe order as in category theory. -- See note [CategoryTheory universes] universe v v₁ vβ‚‚ u u₁ uβ‚‚ ...
Mathlib/Combinatorics/Quiver/Basic.lean
138
140
theorem congr_map {U V : Type*} [Quiver U] [Quiver V] (F : U β₯€q V) {X Y : U} {f g : X ⟢ Y} (h : f = g) : F.map f = F.map g := by
rw [h]
[ " F = G", " { obj := F_obj, map := map✝ } = G", " { obj := F_obj, map := map✝¹ } = { obj := G_obj, map := map✝ }", " F_obj = G_obj", " F_obj X = G_obj X", " { obj := F_obj, map := map✝¹ } = { obj := F_obj, map := map✝ }", " map✝¹ = map✝", " map✝¹ f = map✝ f", " F.map f = F.map g" ]
[ " F = G", " { obj := F_obj, map := map✝ } = G", " { obj := F_obj, map := map✝¹ } = { obj := G_obj, map := map✝ }", " F_obj = G_obj", " F_obj X = G_obj X", " { obj := F_obj, map := map✝¹ } = { obj := F_obj, map := map✝ }", " map✝¹ = map✝", " map✝¹ f = map✝ f", " F.map f = F.map g" ]
import Mathlib.Algebra.BigOperators.NatAntidiagonal import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Data.Nat.Choose.Sum import Mathlib.RingTheory.PowerSeries.Basic #align_import ring_theory.power_series.well_known from "leanprover-community/mathlib"@"8199f6717c150a7fe91c4534175f4cf99725978f" namespace PowerS...
Mathlib/RingTheory/PowerSeries/WellKnown.lean
218
220
theorem map_cos : map f (cos A) = cos A' := by
ext simp [cos, apply_ite f]
[ " (constantCoeff A) (exp A) = 1", " (algebraMap β„š A) (1 / ↑0!) = 1", " (coeff A (bit0 n)) (sin A) = 0", " (coeff A (bit1 n)) (sin A) = (-1) ^ n * (coeff A (bit1 n)) (exp A)", " (coeff A (bit0 n)) (cos A) = (-1) ^ n * (coeff A (bit0 n)) (exp A)", " (coeff A (bit1 n)) (cos A) = 0", " (map f) (exp A) = exp...
[ " (constantCoeff A) (exp A) = 1", " (algebraMap β„š A) (1 / ↑0!) = 1", " (coeff A (bit0 n)) (sin A) = 0", " (coeff A (bit1 n)) (sin A) = (-1) ^ n * (coeff A (bit1 n)) (exp A)", " (coeff A (bit0 n)) (cos A) = (-1) ^ n * (coeff A (bit0 n)) (exp A)", " (coeff A (bit1 n)) (cos A) = 0", " (map f) (exp A) = exp...
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
108
121
theorem restrictStalkIso_inv_eq_ofRestrict {U : TopCat} (X : PresheafedSpace.{_, _, v} C) {f : U ⟢ (X : TopCat.{v})} (h : OpenEmbedding f) (x : U) : (X.restrictStalkIso h x).inv = stalkMap (X.ofRestrict h) x := by
-- We can't use `ext` here due to https://github.com/leanprover/std4/pull/159 refine colimit.hom_ext fun V => ?_ induction V with | h V => ?_ let i : (h.isOpenMap.functorNhds x).obj ((OpenNhds.map f x).obj V) ⟢ V := homOfLE (Set.image_preimage_subset f _) erw [Iso.comp_inv_eq, colimit.ι_map_assoc, colimi...
[]
[ " Y.presheaf.germ ⟨α.base ↑x, β‹―βŸ© ≫ stalkMap Ξ± ↑x = Ξ±.c.app { unop := U } ≫ X.presheaf.germ x", " X.presheaf.germ ⟨f x, β‹―βŸ© ≫ (X.restrictStalkIso h x).inv = (X.restrict h).presheaf.germ ⟨x, hx⟩", " (X.restrictStalkIso h x).inv = stalkMap (X.ofRestrict h) x" ]
import Mathlib.Algebra.Group.Subsemigroup.Basic #align_import group_theory.subsemigroup.membership from "leanprover-community/mathlib"@"6cb77a8eaff0ddd100e87b1591c6d3ad319514ff" assert_not_exists MonoidWithZero variable {ΞΉ : Sort*} {M A B : Type*} section NonAssoc variable [Mul M] open Set namespace Subsemigr...
Mathlib/Algebra/Group/Subsemigroup/Membership.lean
109
112
theorem mem_sSup_of_mem {S : Set (Subsemigroup M)} {s : Subsemigroup M} (hs : s ∈ S) : βˆ€ {x : M}, x ∈ s β†’ x ∈ sSup S := by
have : s ≀ sSup S := le_sSup hs tauto
[ " x ∈ ⨆ i, S i ↔ βˆƒ i, x ∈ S i", " x ∈ ⨆ i, S i β†’ βˆƒ i, x ∈ S i", " x ∈ closure (⋃ i, ↑(S i)) β†’ βˆƒ i, x ∈ S i", " βˆ€ (x y : M), (βˆƒ i, x ∈ S i) β†’ (βˆƒ i, y ∈ S i) β†’ βˆƒ i, x * y ∈ S i", " βˆƒ i, x * y ∈ S i", " x ∈ ↑(⨆ i, S i) ↔ x ∈ ⋃ i, ↑(S i)", " x ∈ sSup S ↔ βˆƒ s ∈ S, x ∈ s", " x ∈ ↑(sSup S) ↔ x ∈ ⋃ s ∈ S, ↑s"...
[ " x ∈ ⨆ i, S i ↔ βˆƒ i, x ∈ S i", " x ∈ ⨆ i, S i β†’ βˆƒ i, x ∈ S i", " x ∈ closure (⋃ i, ↑(S i)) β†’ βˆƒ i, x ∈ S i", " βˆ€ (x y : M), (βˆƒ i, x ∈ S i) β†’ (βˆƒ i, y ∈ S i) β†’ βˆƒ i, x * y ∈ S i", " βˆƒ i, x * y ∈ S i", " x ∈ ↑(⨆ i, S i) ↔ x ∈ ⋃ i, ↑(S i)", " x ∈ sSup S ↔ βˆƒ s ∈ S, x ∈ s", " x ∈ ↑(sSup S) ↔ x ∈ ⋃ s ∈ S, ↑s"...
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
185
190
theorem compress_mem_compression (ha : a ∈ s) : compress u v a ∈ 𝓒 u v s := by
rw [mem_compression] by_cases h : compress u v a ∈ s · rw [compress_idem] exact Or.inl ⟨h, h⟩ · exact Or.inr ⟨h, a, ha, rfl⟩
[ " 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.Analysis.LocallyConvex.Bounded import Mathlib.Analysis.RCLike.Basic #align_import analysis.locally_convex.continuous_of_bounded from "leanprover-community/mathlib"@"3f655f5297b030a87d641ad4e825af8d9679eb0b" open TopologicalSpace Bornology Filter Topology Pointwise variable {π•œ π•œ' E F : Type*} var...
Mathlib/Analysis/LocallyConvex/ContinuousOfBounded.lean
96
166
theorem LinearMap.continuousAt_zero_of_locally_bounded (f : E β†’β‚›β‚—[Οƒ] F) (hf : βˆ€ s, IsVonNBounded π•œ s β†’ IsVonNBounded π•œ' (f '' s)) : ContinuousAt f 0 := by
-- Assume that f is not continuous at 0 by_contra h -- We use a decreasing balanced basis for 0 : E and a balanced basis for 0 : F -- and reformulate non-continuity in terms of these bases rcases (nhds_basis_balanced π•œ E).exists_antitone_subbasis with ⟨b, bE1, bE⟩ simp only [_root_.id] at bE have bE' : ...
[ " ContinuousAt (⇑f) 0", " False", " (𝓝 0).HasBasis (fun x => x β‰  0) fun n => (↑n)⁻¹ β€’ b n", " βˆ€ (i : β„•), True β†’ βˆƒ i', i' β‰  0 ∧ (↑i')⁻¹ β€’ b i' βŠ† b i", " βˆƒ i', i' β‰  0 ∧ (↑i')⁻¹ β€’ b i' βŠ† b n", " n + 1 β‰  0 ∧ (↑(n + 1))⁻¹ β€’ b (n + 1) βŠ† b n", " (↑n + 1)⁻¹ β€’ b (n + 1) βŠ† b n", " n ≀ n + 1", " (↑n + 1)⁻¹ β€’ ...
[ " ContinuousAt (⇑f) 0" ]
import Mathlib.Combinatorics.SimpleGraph.Finite import Mathlib.Data.Finset.Sym import Mathlib.Data.Matrix.Basic #align_import combinatorics.simple_graph.inc_matrix from "leanprover-community/mathlib"@"bb168510ef455e9280a152e7f31673cabd3d7496" open Finset Matrix SimpleGraph Sym2 open Matrix namespace SimpleGraph...
Mathlib/Combinatorics/SimpleGraph/IncMatrix.lean
85
89
theorem incMatrix_apply_mul_incMatrix_apply_of_not_adj (hab : a β‰  b) (h : Β¬G.Adj a b) : G.incMatrix R a e * G.incMatrix R b e = 0 := by
rw [incMatrix_apply_mul_incMatrix_apply, Set.indicator_of_not_mem] rw [G.incidenceSet_inter_incidenceSet_of_not_adj h hab] exact Set.not_mem_empty e
[ " incMatrix R G a e = if e ∈ G.incidenceSet a then 1 else 0", " (if e ∈ G.incidenceSet a then 1 e else 0) = if e ∈ G.incidenceSet a then 1 else 0", " incMatrix R G a e * incMatrix R G b e = (G.incidenceSet a ∩ G.incidenceSet b).indicator 1 e", " incMatrix R G a e * incMatrix R G b e = 0", " e βˆ‰ G.incidenceS...
[ " incMatrix R G a e = if e ∈ G.incidenceSet a then 1 else 0", " (if e ∈ G.incidenceSet a then 1 e else 0) = if e ∈ G.incidenceSet a then 1 else 0", " incMatrix R G a e * incMatrix R G b e = (G.incidenceSet a ∩ G.incidenceSet b).indicator 1 e", " incMatrix R G a e * incMatrix R G b e = 0" ]
import Mathlib.Order.Filter.AtTopBot #align_import order.filter.indicator_function from "leanprover-community/mathlib"@"8631e2d5ea77f6c13054d9151d82b83069680cb1" variable {Ξ± Ξ² M E : Type*} open Set Filter @[to_additive] theorem Monotone.mulIndicator_eventuallyEq_iUnion {ΞΉ} [Preorder ΞΉ] [One Ξ²] (s : ΞΉ β†’ Set Ξ±) ...
Mathlib/Order/Filter/IndicatorFunction.lean
89
94
theorem mulIndicator_biUnion_finset_eventuallyEq {ΞΉ} [One Ξ²] (s : ΞΉ β†’ Set Ξ±) (f : Ξ± β†’ Ξ²) (a : Ξ±) : (fun n : Finset ΞΉ => mulIndicator (⋃ i ∈ n, s i) f a) =αΆ [atTop] fun _ ↦ mulIndicator (iUnion s) f a := by
rw [iUnion_eq_iUnion_finset s] apply Monotone.mulIndicator_eventuallyEq_iUnion exact fun _ _ ↦ biUnion_subset_biUnion_left
[ " (fun i => (s i).mulIndicator f a) =αΆ [atTop] fun x => (⋃ i, s i).mulIndicator f a", " (fun i => (s i).mulIndicator f a) =αΆ [atTop] fun x => (β‹‚ i, s i).mulIndicator f a", " (fun n => (⋃ i ∈ n, s i).mulIndicator f a) =αΆ [atTop] fun x => (iUnion s).mulIndicator f a", " (fun n => (⋃ i ∈ n, s i).mulIndicator f a) =...
[ " (fun i => (s i).mulIndicator f a) =αΆ [atTop] fun x => (⋃ i, s i).mulIndicator f a", " (fun i => (s i).mulIndicator f a) =αΆ [atTop] fun x => (β‹‚ i, s i).mulIndicator f a", " (fun n => (⋃ i ∈ n, s i).mulIndicator f a) =αΆ [atTop] fun x => (iUnion s).mulIndicator f a" ]
import Mathlib.Algebra.Bounds import Mathlib.Algebra.Order.Field.Basic -- Porting note: `LinearOrderedField`, etc import Mathlib.Data.Set.Pointwise.SMul #align_import algebra.order.pointwise from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" open Function Set open Pointwise variable ...
Mathlib/Algebra/Order/Pointwise.lean
183
194
theorem smul_Ioo : r β€’ Ioo a b = Ioo (r β€’ a) (r β€’ b) := by
ext x simp only [mem_smul_set, smul_eq_mul, mem_Ioo] constructor · rintro ⟨a, ⟨a_h_left_left, a_h_left_right⟩, rfl⟩ constructor · exact (mul_lt_mul_left hr).mpr a_h_left_left · exact (mul_lt_mul_left hr).mpr a_h_left_right · rintro ⟨a_left, a_right⟩ use x / r refine ⟨⟨(lt_div_iff' hr).mpr...
[ " r β€’ Ioo a b = Ioo (r β€’ a) (r β€’ b)", " x ∈ r β€’ Ioo a b ↔ x ∈ Ioo (r β€’ a) (r β€’ b)", " (βˆƒ y, (a < y ∧ y < b) ∧ r * y = x) ↔ r * a < x ∧ x < r * b", " (βˆƒ y, (a < y ∧ y < b) ∧ r * y = x) β†’ r * a < x ∧ x < r * b", " r * a✝ < r * a ∧ r * a < r * b", " r * a✝ < r * a", " r * a < r * b", " r * a < x ∧ x < r ...
[ " r β€’ Ioo a b = Ioo (r β€’ a) (r β€’ b)" ]
import Mathlib.Analysis.MeanInequalities import Mathlib.Data.Fintype.Order import Mathlib.LinearAlgebra.Matrix.Basis import Mathlib.Analysis.NormedSpace.WithLp #align_import analysis.normed_space.pi_Lp from "leanprover-community/mathlib"@"9d013ad8430ddddd350cff5c3db830278ded3c79" set_option linter.uppercaseLean3 f...
Mathlib/Analysis/NormedSpace/PiLp.lean
247
249
theorem dist_eq_iSup (f g : PiLp ∞ Ξ±) : dist f g = ⨆ i, dist (f i) (g i) := by
dsimp [dist] exact if_neg ENNReal.top_ne_zero
[ " dist f g = ⨆ i, dist (f i) (g i)", " (if ⊀ = 0 then ↑⋯.toFinset.card\n else if ⊀ = ⊀ then ⨆ i, dist (f i) (g i) else (βˆ‘ i : ΞΉ, dist (f i) (g i) ^ 0) ^ (1 / 0)) =\n ⨆ i, dist (f i) (g i)" ]
[ " dist f g = ⨆ i, dist (f i) (g i)" ]
import Mathlib.GroupTheory.Coxeter.Length import Mathlib.Data.ZMod.Parity namespace CoxeterSystem open List Matrix Function variable {B : Type*} variable {W : Type*} [Group W] variable {M : CoxeterMatrix B} (cs : CoxeterSystem M W) local prefix:100 "s" => cs.simple local prefix:100 "Ο€" => cs.wordProd local prefi...
Mathlib/GroupTheory/Coxeter/Inversion.lean
88
93
theorem length_mul_left_ne (w : W) : β„“ (w * t) β‰  β„“ w := by
suffices cs.lengthParity (w * t) β‰  cs.lengthParity w by contrapose! this simp only [lengthParity_eq_ofAdd_length, this] rcases ht with ⟨w, i, rfl⟩ simp [lengthParity_simple]
[ " cs.IsReflection (cs.simple i)", " cs.simple i = 1 * cs.simple i * 1⁻¹", " t ^ 2 = 1", " (w * cs.simple i * w⁻¹) ^ 2 = 1", " t * t = 1", " w * cs.simple i * w⁻¹ * (w * cs.simple i * w⁻¹) = 1", " t⁻¹ = t", " (w * cs.simple i * w⁻¹)⁻¹ = w * cs.simple i * w⁻¹", " cs.IsReflection t⁻¹", " Odd (cs.leng...
[ " cs.IsReflection (cs.simple i)", " cs.simple i = 1 * cs.simple i * 1⁻¹", " t ^ 2 = 1", " (w * cs.simple i * w⁻¹) ^ 2 = 1", " t * t = 1", " w * cs.simple i * w⁻¹ * (w * cs.simple i * w⁻¹) = 1", " t⁻¹ = t", " (w * cs.simple i * w⁻¹)⁻¹ = w * cs.simple i * w⁻¹", " cs.IsReflection t⁻¹", " Odd (cs.leng...
import Mathlib.LinearAlgebra.ExteriorAlgebra.Basic import Mathlib.RingTheory.GradedAlgebra.Basic #align_import linear_algebra.exterior_algebra.grading from "leanprover-community/mathlib"@"34020e531ebc4e8aac6d449d9eecbcd1508ea8d0" namespace ExteriorAlgebra variable {R M : Type*} [CommRing R] [AddCommGroup M] [Modu...
Mathlib/LinearAlgebra/ExteriorAlgebra/Grading.lean
64
80
theorem GradedAlgebra.liftΞΉ_eq (i : β„•) (x : β‹€[R]^i M) : GradedAlgebra.liftΞΉ R M x = DirectSum.of (fun i => β‹€[R]^i M) i x := by
cases' x with x hx dsimp only [Subtype.coe_mk, DirectSum.lof_eq_of] -- Porting note: original statement was -- refine Submodule.pow_induction_on_left' _ (fun r => ?_) (fun x y i hx hy ihx ihy => ?_) -- (fun m hm i x hx ih => ?_) hx -- but it created invalid goals induction hx using Submodule.pow_indu...
[ " (ΞΉ R) m ∈ β‹€[R]^1 M", " (GradedAlgebra.ΞΉ R M) m * (GradedAlgebra.ΞΉ R M) m = 0", " (DirectSum.of (fun i => β†₯(β‹€[R]^i M)) (1 + 1)) (GradedMonoid.GMul.mul ⟨(ΞΉ R) m, β‹―βŸ© ⟨(ΞΉ R) m, β‹―βŸ©) = 0", " M β†’β‚—[R] ⨁ (i : β„•), β†₯(β‹€[R]^i M)", " (liftΞΉ R M) ↑x = (DirectSum.of (fun i => β†₯(β‹€[R]^i M)) i) x", " (liftΞΉ R M) β†‘βŸ¨x, hx⟩ ...
[ " (ΞΉ R) m ∈ β‹€[R]^1 M", " (GradedAlgebra.ΞΉ R M) m * (GradedAlgebra.ΞΉ R M) m = 0", " (DirectSum.of (fun i => β†₯(β‹€[R]^i M)) (1 + 1)) (GradedMonoid.GMul.mul ⟨(ΞΉ R) m, β‹―βŸ© ⟨(ΞΉ R) m, β‹―βŸ©) = 0", " M β†’β‚—[R] ⨁ (i : β„•), β†₯(β‹€[R]^i M)", " (liftΞΉ R M) ↑x = (DirectSum.of (fun i => β†₯(β‹€[R]^i M)) i) x" ]
import Mathlib.Algebra.Category.Ring.FilteredColimits import Mathlib.Geometry.RingedSpace.SheafedSpace import Mathlib.Topology.Sheaves.Stalks import Mathlib.Algebra.Category.Ring.Colimits import Mathlib.Algebra.Category.Ring.Limits #align_import algebraic_geometry.ringed_space from "leanprover-community/mathlib"@"5dc...
Mathlib/Geometry/RingedSpace/Basic.lean
58
79
theorem isUnit_res_of_isUnit_germ (U : Opens X) (f : X.presheaf.obj (op U)) (x : U) (h : IsUnit (X.presheaf.germ x f)) : βˆƒ (V : Opens X) (i : V ⟢ U) (_ : x.1 ∈ V), IsUnit (X.presheaf.map i.op f) := by
obtain ⟨g', heq⟩ := h.exists_right_inv obtain ⟨V, hxV, g, rfl⟩ := X.presheaf.germ_exist x.1 g' let W := U βŠ“ V have hxW : x.1 ∈ W := ⟨x.2, hxV⟩ -- Porting note: `erw` can't write into `HEq`, so this is replaced with another `HEq` in the -- desired form replace heq : (X.presheaf.germ ⟨x.val, hxW⟩) ((X.pres...
[ " βˆƒ V i, βˆƒ (_ : ↑x ∈ V), IsUnit ((X.presheaf.map i.op) f)", " (X.presheaf.germ βŸ¨β†‘x, hxW⟩) ((X.presheaf.map (U.infLELeft V).op) f * (X.presheaf.map (U.infLERight V).op) g) =\n (X.presheaf.germ βŸ¨β†‘x, hxW⟩) 1", " (Limits.colimit.ΞΉ ((OpenNhds.inclusion ↑x).op β‹™ X.presheaf) { unop := { obj := W, property := β‹― } })...
[ " βˆƒ V i, βˆƒ (_ : ↑x ∈ V), IsUnit ((X.presheaf.map i.op) f)" ]
import Mathlib.Algebra.Module.Submodule.Ker open Function Submodule namespace LinearMap variable {R N M : Type*} [Semiring R] [AddCommMonoid N] [Module R N] [AddCommMonoid M] [Module R M] (f i : N β†’β‚—[R] M) def iterateMapComap (n : β„•) := (fun K : Submodule R N ↦ (K.map i).comap f)^[n] theorem iterateMapComap...
Mathlib/Algebra/Module/Submodule/IterateMapComap.lean
65
79
theorem iterateMapComap_eq_succ (K : Submodule R N) (m : β„•) (heq : f.iterateMapComap i m K = f.iterateMapComap i (m + 1) K) (hf : Surjective f) (hi : Injective i) (n : β„•) : f.iterateMapComap i n K = f.iterateMapComap i (n + 1) K := by
induction n with | zero => contrapose! heq induction m with | zero => exact heq | succ m ih => rw [iterateMapComap, iterateMapComap, iterate_succ', iterate_succ'] exact fun H ↦ ih (map_injective_of_injective hi (comap_injective_of_surjective hf H)) | succ n ih => rw [iterateMapCom...
[ " f.iterateMapComap i n K ≀ f.iterateMapComap i (n + 1) K", " f.iterateMapComap i n K ≀ (fun K => comap f (map i K))^[n + 1] K", " map f (f.iterateMapComap i n K) ≀ map i (f.iterateMapComap i n K)", " map f (f.iterateMapComap i 0 K) ≀ map i (f.iterateMapComap i 0 K)", " map f (f.iterateMapComap i (n + 1) K)...
[ " f.iterateMapComap i n K ≀ f.iterateMapComap i (n + 1) K", " f.iterateMapComap i n K ≀ (fun K => comap f (map i K))^[n + 1] K", " map f (f.iterateMapComap i n K) ≀ map i (f.iterateMapComap i n K)", " map f (f.iterateMapComap i 0 K) ≀ map i (f.iterateMapComap i 0 K)", " map f (f.iterateMapComap i (n + 1) K)...
import Mathlib.Topology.UniformSpace.UniformEmbedding import Mathlib.Topology.UniformSpace.Equiv #align_import topology.uniform_space.abstract_completion from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988" noncomputable section attribute [local instance] Classical.propDecidable open F...
Mathlib/Topology/UniformSpace/AbstractCompletion.lean
158
161
theorem extend_unique (hf : UniformContinuous f) {g : hatΞ± β†’ Ξ²} (hg : UniformContinuous g) (h : βˆ€ a : Ξ±, f a = g (ΞΉ a)) : pkg.extend f = g := by
apply pkg.funext pkg.continuous_extend hg.continuous simpa only [pkg.extend_coe hf] using h
[ " pkg.extend f (pkg.coe a) = f a", " β‹―.extend f (pkg.coe a) = f a", " UniformContinuous (pkg.extend f)", " UniformContinuous (β‹―.extend f)", " UniformContinuous (if UniformContinuous f then β‹―.extend f else fun x => f (β‹―.some x))", " UniformContinuous fun x => f (β‹―.some x)", " f (β‹―.some a) = f (β‹―.some b)"...
[ " pkg.extend f (pkg.coe a) = f a", " β‹―.extend f (pkg.coe a) = f a", " UniformContinuous (pkg.extend f)", " UniformContinuous (β‹―.extend f)", " UniformContinuous (if UniformContinuous f then β‹―.extend f else fun x => f (β‹―.some x))", " UniformContinuous fun x => f (β‹―.some x)", " f (β‹―.some a) = f (β‹―.some b)"...
import Mathlib.Data.List.Infix #align_import data.list.rdrop from "leanprover-community/mathlib"@"26f081a2fb920140ed5bc5cc5344e84bcc7cb2b2" -- Make sure we don't import algebra assert_not_exists Monoid variable {Ξ± : Type*} (p : Ξ± β†’ Bool) (l : List Ξ±) (n : β„•) namespace List def rdrop : List Ξ± := l.take (l.leng...
Mathlib/Data/List/DropRight.lean
166
174
theorem rdropWhile_eq_self_iff : rdropWhile p l = l ↔ βˆ€ hl : l β‰  [], Β¬p (l.getLast hl) := by
simp only [rdropWhile, reverse_eq_iff, dropWhile_eq_self_iff, getLast_eq_get] refine ⟨fun h hl => ?_, fun h hl => ?_⟩ Β· rw [← length_pos, ← length_reverse] at hl have := h hl rwa [get_reverse'] at this Β· rw [length_reverse, length_pos] at hl have := h hl rwa [get_reverse']
[ " [].rdrop n = []", " l.rdrop 0 = l", " l.rdrop n = (drop n l.reverse).reverse", " take (l.length - n) l = (drop n l.reverse).reverse", " take ([].length - n) [] = (drop n [].reverse).reverse", " take ((xs ++ [x]).length - n) (xs ++ [x]) = (drop n (xs ++ [x]).reverse).reverse", " take ((xs ++ [x]).lengt...
[ " [].rdrop n = []", " l.rdrop 0 = l", " l.rdrop n = (drop n l.reverse).reverse", " take (l.length - n) l = (drop n l.reverse).reverse", " take ([].length - n) [] = (drop n [].reverse).reverse", " take ((xs ++ [x]).length - n) (xs ++ [x]) = (drop n (xs ++ [x]).reverse).reverse", " take ((xs ++ [x]).lengt...
import Mathlib.Data.List.Basic namespace List variable {Ξ± Ξ² : Type*} @[simp] theorem reduceOption_cons_of_some (x : Ξ±) (l : List (Option Ξ±)) : reduceOption (some x :: l) = x :: l.reduceOption := by simp only [reduceOption, filterMap, id, eq_self_iff_true, and_self_iff] #align list.reduce_option_cons_of_some...
Mathlib/Data/List/ReduceOption.lean
59
61
theorem reduceOption_length_le (l : List (Option Ξ±)) : l.reduceOption.length ≀ l.length := by
rw [length_eq_reduceOption_length_add_filter_none] apply Nat.le_add_right
[ " (some x :: l).reduceOption = x :: l.reduceOption", " (none :: l).reduceOption = l.reduceOption", " (map (Option.map f) l).reduceOption = map f l.reduceOption", " (map (Option.map f) []).reduceOption = map f [].reduceOption", " (map (Option.map f) (hd :: tl)).reduceOption = map f (hd :: tl).reduceOption", ...
[ " (some x :: l).reduceOption = x :: l.reduceOption", " (none :: l).reduceOption = l.reduceOption", " (map (Option.map f) l).reduceOption = map f l.reduceOption", " (map (Option.map f) []).reduceOption = map f [].reduceOption", " (map (Option.map f) (hd :: tl)).reduceOption = map f (hd :: tl).reduceOption", ...
import Mathlib.Algebra.Lie.Matrix import Mathlib.LinearAlgebra.Matrix.SesquilinearForm import Mathlib.Tactic.NoncommRing #align_import algebra.lie.skew_adjoint from "leanprover-community/mathlib"@"075b3f7d19b9da85a0b54b3e33055a74fc388dec" universe u v w w₁ section SkewAdjointMatrices open scoped Matrix variabl...
Mathlib/Algebra/Lie/SkewAdjoint.lean
103
112
theorem Matrix.isSkewAdjoint_bracket {A B : Matrix n n R} (hA : A ∈ skewAdjointMatricesSubmodule J) (hB : B ∈ skewAdjointMatricesSubmodule J) : ⁅A, B⁆ ∈ skewAdjointMatricesSubmodule J := by
simp only [mem_skewAdjointMatricesSubmodule] at * change ⁅A, B⁆ᡀ * J = J * (-⁅A, B⁆) change Aα΅€ * J = J * (-A) at hA change Bα΅€ * J = J * (-B) at hB rw [Matrix.lie_transpose, LieRing.of_associative_ring_bracket, LieRing.of_associative_ring_bracket, sub_mul, mul_assoc, mul_assoc, hA, hB, ← mul_assoc, ← ...
[ " (A * B - B * A)α΅€ = Bα΅€ * Aα΅€ - Aα΅€ * Bα΅€", " ⁅A, B⁆ ∈ skewAdjointMatricesSubmodule J", " J.IsSkewAdjoint ⁅A, B⁆", " ⁅A, B⁆ᡀ * J = J * -⁅A, B⁆", " J * -B * -A - J * -A * -B = J * -(A * B - B * A)" ]
[ " (A * B - B * A)α΅€ = Bα΅€ * Aα΅€ - Aα΅€ * Bα΅€", " ⁅A, B⁆ ∈ skewAdjointMatricesSubmodule J" ]
import Mathlib.Data.ENNReal.Inv #align_import data.real.ennreal from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520" open Set NNReal ENNReal namespace ENNReal section iInf variable {ΞΉ : Sort*} {f g : ΞΉ β†’ ℝβ‰₯0∞} variable {a b c d : ℝβ‰₯0∞} {r p q : ℝβ‰₯0} theorem toNNReal_iInf (hf : βˆ€ i, f ...
Mathlib/Data/ENNReal/Real.lean
581
582
theorem toReal_iSup (hf : βˆ€ i, f i β‰  ∞) : (iSup f).toReal = ⨆ i, (f i).toReal := by
simp only [ENNReal.toReal, toNNReal_iSup hf, NNReal.coe_iSup]
[ " (iInf f).toNNReal = β¨… i, (f i).toNNReal", " (β¨… i, ↑(f i)).toNNReal = β¨… i, ((fun i => ↑(f i)) i).toNNReal", " (sInf s).toNNReal = sInf (ENNReal.toNNReal '' s)", " (iSup f).toNNReal = ⨆ i, (f i).toNNReal", " (⨆ i, ↑(f i)).toNNReal = ⨆ i, ((fun i => ↑(f i)) i).toNNReal", " (⨆ i, ↑(f i)).toNNReal = ⨆ i, f i...
[ " (iInf f).toNNReal = β¨… i, (f i).toNNReal", " (β¨… i, ↑(f i)).toNNReal = β¨… i, ((fun i => ↑(f i)) i).toNNReal", " (sInf s).toNNReal = sInf (ENNReal.toNNReal '' s)", " (iSup f).toNNReal = ⨆ i, (f i).toNNReal", " (⨆ i, ↑(f i)).toNNReal = ⨆ i, ((fun i => ↑(f i)) i).toNNReal", " (⨆ i, ↑(f i)).toNNReal = ⨆ i, f i...
import Mathlib.LinearAlgebra.CliffordAlgebra.Grading import Mathlib.LinearAlgebra.TensorProduct.Graded.Internal import Mathlib.LinearAlgebra.QuadraticForm.Prod suppress_compilation variable {R M₁ Mβ‚‚ N : Type*} variable [CommRing R] [AddCommGroup M₁] [AddCommGroup Mβ‚‚] [AddCommGroup N] variable [Module R M₁] [Module...
Mathlib/LinearAlgebra/CliffordAlgebra/Prod.lean
101
104
theorem map_mul_map_eq_neg_of_isOrtho_of_mem_evenOdd_one (hm₁ : m₁ ∈ evenOdd Q₁ 1) (hmβ‚‚ : mβ‚‚ ∈ evenOdd Qβ‚‚ 1) : map f₁ m₁ * map fβ‚‚ mβ‚‚ = - map fβ‚‚ mβ‚‚ * map f₁ m₁ := by
simp [map_mul_map_of_isOrtho_of_mem_evenOdd _ _ hf _ _ hm₁ hmβ‚‚]
[ " (map f₁) m₁ * (map fβ‚‚) mβ‚‚ = (-1) ^ (iβ‚‚ * i₁) β€’ ((map fβ‚‚) mβ‚‚ * (map f₁) m₁)", " (map f₁) 0 * (map fβ‚‚) mβ‚‚ = (-1) ^ (iβ‚‚ * i₁) β€’ ((map fβ‚‚) mβ‚‚ * (map f₁) 0)", " (map f₁) (x✝ + y✝) * (map fβ‚‚) mβ‚‚ = (-1) ^ (iβ‚‚ * i₁) β€’ ((map fβ‚‚) mβ‚‚ * (map f₁) (x✝ + y✝))", " (map f₁) m₁' * (map fβ‚‚) mβ‚‚ = (-1) ^ (iβ‚‚ * i₁) β€’ ((map fβ‚‚) m...
[ " (map f₁) m₁ * (map fβ‚‚) mβ‚‚ = (-1) ^ (iβ‚‚ * i₁) β€’ ((map fβ‚‚) mβ‚‚ * (map f₁) m₁)", " (map f₁) 0 * (map fβ‚‚) mβ‚‚ = (-1) ^ (iβ‚‚ * i₁) β€’ ((map fβ‚‚) mβ‚‚ * (map f₁) 0)", " (map f₁) (x✝ + y✝) * (map fβ‚‚) mβ‚‚ = (-1) ^ (iβ‚‚ * i₁) β€’ ((map fβ‚‚) mβ‚‚ * (map f₁) (x✝ + y✝))", " (map f₁) m₁' * (map fβ‚‚) mβ‚‚ = (-1) ^ (iβ‚‚ * i₁) β€’ ((map fβ‚‚) m...
import Mathlib.Algebra.BigOperators.NatAntidiagonal import Mathlib.Algebra.GeomSum import Mathlib.Data.Fintype.BigOperators import Mathlib.RingTheory.PowerSeries.Inverse import Mathlib.RingTheory.PowerSeries.WellKnown import Mathlib.Tactic.FieldSimp #align_import number_theory.bernoulli from "leanprover-community/mat...
Mathlib/NumberTheory/Bernoulli.lean
78
80
theorem bernoulli'_def (n : β„•) : bernoulli' n = 1 - βˆ‘ k ∈ range n, n.choose k / (n - k + 1) * bernoulli' k := by
rw [bernoulli'_def', ← Fin.sum_univ_eq_sum_range]
[ " bernoulli' n = 1 - βˆ‘ k ∈ range n, ↑(n.choose k) / (↑n - ↑k + 1) * bernoulli' k" ]
[ " bernoulli' n = 1 - βˆ‘ k ∈ range n, ↑(n.choose k) / (↑n - ↑k + 1) * bernoulli' k" ]
import Mathlib.Data.PFunctor.Multivariate.Basic #align_import data.qpf.multivariate.basic from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988" universe u open MvFunctor class MvQPF {n : β„•} (F : TypeVec.{u} n β†’ Type*) [MvFunctor F] where P : MvPFunctor.{u} n abs : βˆ€ {Ξ±}, P Ξ± β†’ F Ξ± ...
Mathlib/Data/QPF/Multivariate/Basic.lean
164
177
theorem mem_supp {Ξ± : TypeVec n} (x : F Ξ±) (i) (u : Ξ± i) : u ∈ supp x i ↔ βˆ€ a f, abs ⟨a, f⟩ = x β†’ u ∈ f i '' univ := by
rw [supp]; dsimp; constructor · intro h a f haf have : LiftP (fun i u => u ∈ f i '' univ) x := by rw [liftP_iff] refine ⟨a, f, haf.symm, ?_⟩ intro i u exact mem_image_of_mem _ (mem_univ _) exact h this intro h p; rw [liftP_iff] rintro ⟨a, f, xeq, h'⟩ rcases h a f xeq.symm with...
[ " TypeVec.id <$$> x = x", " TypeVec.id <$$> abs (repr x) = abs (repr x)", " TypeVec.id <$$> abs ⟨a, f⟩ = abs ⟨a, f⟩", " abs (TypeVec.id <$$> ⟨a, f⟩) = abs ⟨a, f⟩", " (g ⊚ f) <$$> x = g <$$> f <$$> x", " (g ⊚ f) <$$> abs (repr x) = g <$$> f <$$> abs (repr x)", " (g ⊚ f✝) <$$> abs ⟨a, f⟩ = g <$$> f✝ <$$> ...
[ " TypeVec.id <$$> x = x", " TypeVec.id <$$> abs (repr x) = abs (repr x)", " TypeVec.id <$$> abs ⟨a, f⟩ = abs ⟨a, f⟩", " abs (TypeVec.id <$$> ⟨a, f⟩) = abs ⟨a, f⟩", " (g ⊚ f) <$$> x = g <$$> f <$$> x", " (g ⊚ f) <$$> abs (repr x) = g <$$> f <$$> abs (repr x)", " (g ⊚ f✝) <$$> abs ⟨a, f⟩ = g <$$> f✝ <$$> ...
import Mathlib.LinearAlgebra.Matrix.Gershgorin import Mathlib.NumberTheory.NumberField.CanonicalEmbedding.ConvexBody import Mathlib.NumberTheory.NumberField.Units.Basic import Mathlib.RingTheory.RootsOfUnity.Basic #align_import number_theory.number_field.units from "leanprover-community/mathlib"@"00f91228655eecdcd3ac...
Mathlib/NumberTheory/NumberField/Units/DirichletTheorem.lean
100
106
theorem mult_log_place_eq_zero {x : (π“ž K)Λ£} {w : InfinitePlace K} : mult w * Real.log (w x) = 0 ↔ w x = 1 := by
rw [mul_eq_zero, or_iff_right, Real.log_eq_zero, or_iff_right, or_iff_left] Β· linarith [(apply_nonneg _ _ : 0 ≀ w x)] Β· simp only [ne_eq, map_eq_zero, coe_ne_zero x, not_false_eq_true] Β· refine (ne_of_gt ?_) rw [mult]; split_ifs <;> norm_num
[ " (fun x w => ↑(↑w).mult * (↑w ((algebraMap (π“ž K) K) ↑(Additive.toMul x))).log) 0 = 0", " (fun w => 0) = 0", " { toFun := fun x w => ↑(↑w).mult * (↑w ((algebraMap (π“ž K) K) ↑(Additive.toMul x))).log, map_zero' := β‹― }.toFun\n (x✝¹ + x✝) =\n { toFun := fun x w => ↑(↑w).mult * (↑w ((algebraMap (π“ž K) K) ↑...
[ " (fun x w => ↑(↑w).mult * (↑w ((algebraMap (π“ž K) K) ↑(Additive.toMul x))).log) 0 = 0", " (fun w => 0) = 0", " { toFun := fun x w => ↑(↑w).mult * (↑w ((algebraMap (π“ž K) K) ↑(Additive.toMul x))).log, map_zero' := β‹― }.toFun\n (x✝¹ + x✝) =\n { toFun := fun x w => ↑(↑w).mult * (↑w ((algebraMap (π“ž K) K) ↑...
import Mathlib.Topology.Connected.Basic open Set Function universe u v variable {Ξ± : Type u} {Ξ² : Type v} {ΞΉ : Type*} {Ο€ : ΞΉ β†’ Type*} [TopologicalSpace Ξ±] {s t u v : Set Ξ±} section TotallyDisconnected def IsTotallyDisconnected (s : Set Ξ±) : Prop := βˆ€ t, t βŠ† s β†’ IsPreconnected t β†’ t.Subsingleton #align is_t...
Mathlib/Topology/Connected/TotallyDisconnected.lean
123
128
theorem totallyDisconnectedSpace_iff_connectedComponent_singleton : TotallyDisconnectedSpace Ξ± ↔ βˆ€ x : Ξ±, connectedComponent x = {x} := by
rw [totallyDisconnectedSpace_iff_connectedComponent_subsingleton] refine forall_congr' fun x => ?_ rw [subsingleton_iff_singleton] exact mem_connectedComponent
[ " TotallyDisconnectedSpace (Ξ± βŠ• Ξ²)", " s.Subsingleton", " (Sum.inl '' t).Subsingleton", " (Sum.inr '' t).Subsingleton", " TotallyDisconnectedSpace ((i : ΞΉ) Γ— Ο€ i)", " βˆ….Subsingleton", " (Sigma.mk a '' t).Subsingleton", " IsTotallyDisconnected univ", " S.Subsingleton", " βˆ€ ⦃x : X⦄, x ∈ S β†’ βˆ€ ⦃y : X...
[ " TotallyDisconnectedSpace (Ξ± βŠ• Ξ²)", " s.Subsingleton", " (Sum.inl '' t).Subsingleton", " (Sum.inr '' t).Subsingleton", " TotallyDisconnectedSpace ((i : ΞΉ) Γ— Ο€ i)", " βˆ….Subsingleton", " (Sigma.mk a '' t).Subsingleton", " IsTotallyDisconnected univ", " S.Subsingleton", " βˆ€ ⦃x : X⦄, x ∈ S β†’ βˆ€ ⦃y : X...
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
156
158
theorem mem_compression : a ∈ 𝓒 u v s ↔ a ∈ s ∧ compress u v a ∈ s ∨ a βˆ‰ s ∧ βˆƒ b ∈ s, compress u v b = a := by
simp_rw [compression, mem_union, mem_filter, mem_image, and_comm]
[ " 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.Topology.Constructions #align_import topology.continuous_on from "leanprover-community/mathlib"@"d4f691b9e5f94cfc64639973f3544c95f8d5d494" open Set Filter Function Topology Filter variable {Ξ± : Type*} {Ξ² : Type*} {Ξ³ : Type*} {Ξ΄ : Type*} variable [TopologicalSpace Ξ±] @[simp] theorem nhds_bind_nhdsW...
Mathlib/Topology/ContinuousOn.lean
104
107
theorem diff_mem_nhdsWithin_diff {x : Ξ±} {s t : Set Ξ±} (hs : s ∈ 𝓝[t] x) (t' : Set Ξ±) : s \ t' ∈ 𝓝[t \ t'] x := by
rw [nhdsWithin, diff_eq, diff_eq, ← inf_principal, ← inf_assoc] exact inter_mem_inf hs (mem_principal_self _)
[ " (βˆƒαΆ  (x : Ξ±) in 𝓝 z, x ∈ s ∧ p x) ↔ βˆƒαΆ  (x : Ξ±) in 𝓝 z, p x ∧ x ∈ s", " z ∈ closure (s \\ {z}) ↔ βˆƒαΆ  (x : Ξ±) in 𝓝[β‰ ] z, x ∈ s", " (βˆ€αΆ  (y : Ξ±) in 𝓝[s] a, βˆ€αΆ  (x : Ξ±) in 𝓝[s] y, p x) ↔ βˆ€αΆ  (x : Ξ±) in 𝓝[s] a, p x", " βˆ€αΆ  (x : Ξ±) in 𝓝[s] a, p x", " βˆ€αΆ  (x : Ξ±) in 𝓝 a, x ∈ s β†’ p x", " 𝓝[univ] a = 𝓝 a", ...
[ " (βˆƒαΆ  (x : Ξ±) in 𝓝 z, x ∈ s ∧ p x) ↔ βˆƒαΆ  (x : Ξ±) in 𝓝 z, p x ∧ x ∈ s", " z ∈ closure (s \\ {z}) ↔ βˆƒαΆ  (x : Ξ±) in 𝓝[β‰ ] z, x ∈ s", " (βˆ€αΆ  (y : Ξ±) in 𝓝[s] a, βˆ€αΆ  (x : Ξ±) in 𝓝[s] y, p x) ↔ βˆ€αΆ  (x : Ξ±) in 𝓝[s] a, p x", " βˆ€αΆ  (x : Ξ±) in 𝓝[s] a, p x", " βˆ€αΆ  (x : Ξ±) in 𝓝 a, x ∈ s β†’ p x", " 𝓝[univ] a = 𝓝 a", ...
import Mathlib.Data.Real.Irrational import Mathlib.Data.Nat.Fib.Basic import Mathlib.Data.Fin.VecNotation import Mathlib.Algebra.LinearRecurrence import Mathlib.Tactic.NormNum.NatFib import Mathlib.Tactic.NormNum.Prime #align_import data.real.golden_ratio from "leanprover-community/mathlib"@"2196ab363eb097c008d449712...
Mathlib/Data/Real/GoldenRatio.lean
129
131
theorem neg_one_lt_goldConj : -1 < ψ := by
rw [neg_lt, ← inv_gold] exact inv_lt_one one_lt_gold
[ " φ⁻¹ = -ψ", " 0 < 1", " 0 < 5", " 2 * 2 = 5 - 1", " ψ⁻¹ = -Ο†", " -ψ = φ⁻¹", " Ο† * ψ = -1", " (1 + √5) * (1 - √5) = -(2 * 2)", " 1 ^ 2 - √5 ^ 2 = -(2 * 2)", " ψ * Ο† = -1", " Ο† + ψ = 1", " (1 + √5) / 2 + (1 - √5) / 2 = 1", " 1 - Ο† = ψ", " 1 - ψ = Ο†", " Ο† - ψ = √5", " Ο† ^ (n + 2) - Ο† ^ (...
[ " φ⁻¹ = -ψ", " 0 < 1", " 0 < 5", " 2 * 2 = 5 - 1", " ψ⁻¹ = -Ο†", " -ψ = φ⁻¹", " Ο† * ψ = -1", " (1 + √5) * (1 - √5) = -(2 * 2)", " 1 ^ 2 - √5 ^ 2 = -(2 * 2)", " ψ * Ο† = -1", " Ο† + ψ = 1", " (1 + √5) / 2 + (1 - √5) / 2 = 1", " 1 - Ο† = ψ", " 1 - ψ = Ο†", " Ο† - ψ = √5", " Ο† ^ (n + 2) - Ο† ^ (...
import Mathlib.Analysis.SpecialFunctions.Pow.Real #align_import analysis.special_functions.pow.nnreal from "leanprover-community/mathlib"@"4fa54b337f7d52805480306db1b1439c741848c8" noncomputable section open scoped Classical open Real NNReal ENNReal ComplexConjugate open Finset Function Set namespace NNReal var...
Mathlib/Analysis/SpecialFunctions/Pow/NNReal.lean
108
109
theorem rpow_inv_rpow_self {y : ℝ} (hy : y β‰  0) (x : ℝβ‰₯0) : (x ^ y) ^ (1 / y) = x := by
field_simp [← rpow_mul]
[ " x ^ y = 0 ↔ x = 0 ∧ y β‰  0", " ↑x ^ y = ↑0 ↔ ↑x = 0 ∧ y β‰  0", " x ^ w = x ^ y * x ^ z", " y + z β‰  0", " x ^ (-1) = x⁻¹", " (x ^ y) ^ (1 / y) = x" ]
[ " x ^ y = 0 ↔ x = 0 ∧ y β‰  0", " ↑x ^ y = ↑0 ↔ ↑x = 0 ∧ y β‰  0", " x ^ w = x ^ y * x ^ z", " y + z β‰  0", " x ^ (-1) = x⁻¹", " (x ^ y) ^ (1 / y) = x" ]
import Mathlib.Data.Finset.Lattice #align_import combinatorics.set_family.compression.down from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" variable {Ξ± : Type*} [DecidableEq Ξ±] {π’œ ℬ : Finset (Finset Ξ±)} {s : Finset Ξ±} {a : Ξ±} open Finset -- The namespace is here to distinguish fro...
Mathlib/Combinatorics/SetFamily/Compression/Down.lean
258
261
theorem erase_mem_compression_of_mem_compression : s ∈ 𝓓 a π’œ β†’ s.erase a ∈ 𝓓 a π’œ := by
simp_rw [mem_compression, erase_idem] refine Or.imp (fun h => ⟨h.2, h.2⟩) fun h => ?_ rwa [erase_eq_of_not_mem (insert_ne_self.1 <| ne_of_mem_of_not_mem h.2 h.1)]
[ " False", " s ∈ 𝓓 a π’œ ↔ s ∈ π’œ ∧ s.erase a ∈ π’œ ∨ s βˆ‰ π’œ ∧ insert a s ∈ π’œ", " s ∈ π’œ ∧ s.erase a ∈ π’œ ∨ (βˆƒ a_1 ∈ π’œ, a_1.erase a = s) ∧ s βˆ‰ π’œ ↔ s ∈ π’œ ∧ s.erase a ∈ π’œ ∨ insert a s ∈ π’œ ∧ s βˆ‰ π’œ", " (βˆƒ a_1 ∈ π’œ, a_1.erase a = s) β†’ insert a s ∈ π’œ", " insert a (t.erase a) ∈ π’œ", " s.erase a ∈ 𝓓 a π’œ",...
[ " False", " s ∈ 𝓓 a π’œ ↔ s ∈ π’œ ∧ s.erase a ∈ π’œ ∨ s βˆ‰ π’œ ∧ insert a s ∈ π’œ", " s ∈ π’œ ∧ s.erase a ∈ π’œ ∨ (βˆƒ a_1 ∈ π’œ, a_1.erase a = s) ∧ s βˆ‰ π’œ ↔ s ∈ π’œ ∧ s.erase a ∈ π’œ ∨ insert a s ∈ π’œ ∧ s βˆ‰ π’œ", " (βˆƒ a_1 ∈ π’œ, a_1.erase a = s) β†’ insert a s ∈ π’œ", " insert a (t.erase a) ∈ π’œ", " s.erase a ∈ 𝓓 a π’œ",...
import Mathlib.Algebra.Algebra.Prod import Mathlib.LinearAlgebra.Basic import Mathlib.LinearAlgebra.Span import Mathlib.Order.PartialSups #align_import linear_algebra.prod from "leanprover-community/mathlib"@"cd391184c85986113f8c00844cfe6dda1d34be3d" universe u v w x y z u' v' w' y' variable {R : Type u} {K : Ty...
Mathlib/LinearAlgebra/Prod.lean
148
155
theorem range_inl : range (inl R M Mβ‚‚) = ker (snd R M Mβ‚‚) := by
ext x simp only [mem_ker, mem_range] constructor · rintro ⟨y, rfl⟩ rfl · intro h exact ⟨x.fst, Prod.ext rfl h.symm⟩
[ " Pi.prod (⇑f) (⇑g) (x + y) = Pi.prod (⇑f) (⇑g) x + Pi.prod (⇑f) (⇑g) y", " { toFun := Pi.prod ⇑f ⇑g, map_add' := β‹― }.toFun (c β€’ x) =\n (RingHom.id R) c β€’ { toFun := Pi.prod ⇑f ⇑g, map_add' := β‹― }.toFun x", " (fun f => (fst R Mβ‚‚ M₃ βˆ˜β‚— f, snd R Mβ‚‚ M₃ βˆ˜β‚— f))\n ({ toFun := fun f => f.1.prod f.2, map_add' :...
[ " Pi.prod (⇑f) (⇑g) (x + y) = Pi.prod (⇑f) (⇑g) x + Pi.prod (⇑f) (⇑g) y", " { toFun := Pi.prod ⇑f ⇑g, map_add' := β‹― }.toFun (c β€’ x) =\n (RingHom.id R) c β€’ { toFun := Pi.prod ⇑f ⇑g, map_add' := β‹― }.toFun x", " (fun f => (fst R Mβ‚‚ M₃ βˆ˜β‚— f, snd R Mβ‚‚ M₃ βˆ˜β‚— f))\n ({ toFun := fun f => f.1.prod f.2, map_add' :...
import Mathlib.Algebra.Bounds import Mathlib.Algebra.Order.Field.Basic -- Porting note: `LinearOrderedField`, etc import Mathlib.Data.Set.Pointwise.SMul #align_import algebra.order.pointwise from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" open Function Set open Pointwise variable ...
Mathlib/Algebra/Order/Pointwise.lean
167
169
theorem csInf_div (hsβ‚€ : s.Nonempty) (hs₁ : BddBelow s) (htβ‚€ : t.Nonempty) (ht₁ : BddAbove t) : sInf (s / t) = sInf s / sSup t := by
rw [div_eq_mul_inv, csInf_mul hsβ‚€ hs₁ htβ‚€.inv ht₁.inv, csInf_inv htβ‚€ ht₁, div_eq_mul_inv]
[ " sSup s⁻¹ = (sInf s)⁻¹", " sSup (Inv.inv '' s) = (sInf s)⁻¹", " sInf s⁻¹ = (sSup s)⁻¹", " sInf (Inv.inv '' s) = (sSup s)⁻¹", " sSup (s / t) = sSup s / sInf t", " sInf (s / t) = sInf s / sSup t" ]
[ " sSup s⁻¹ = (sInf s)⁻¹", " sSup (Inv.inv '' s) = (sInf s)⁻¹", " sInf s⁻¹ = (sSup s)⁻¹", " sInf (Inv.inv '' s) = (sSup s)⁻¹", " sSup (s / t) = sSup s / sInf t", " sInf (s / t) = sInf s / sSup t" ]
import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics import Mathlib.NumberTheory.Liouville.Basic import Mathlib.Topology.Instances.Irrational #align_import number_theory.liouville.liouville_with from "leanprover-community/mathlib"@"0b9eaaa7686280fad8cce467f5c3c57ee6ce77f8" open Filter Metric Real Set open sc...
Mathlib/NumberTheory/Liouville/LiouvilleWith.lean
99
110
theorem frequently_lt_rpow_neg (h : LiouvilleWith p x) (hlt : q < p) : βˆƒαΆ  n : β„• in atTop, βˆƒ m : β„€, x β‰  m / n ∧ |x - m / n| < n ^ (-q) := by
rcases h.exists_pos with ⟨C, _hCβ‚€, hC⟩ have : βˆ€αΆ  n : β„• in atTop, C < n ^ (p - q) := by simpa only [(Β· ∘ Β·), neg_sub, one_div] using ((tendsto_rpow_atTop (sub_pos.2 hlt)).comp tendsto_natCast_atTop_atTop).eventually (eventually_gt_atTop C) refine (this.and_frequently hC).mono ?_ rintro n ⟨hnC,...
[ " LiouvilleWith 1 x", " βˆƒαΆ  (n : β„•) in atTop, βˆƒ m, x β‰  ↑m / ↑n ∧ |x - ↑m / ↑n| < 2 / ↑n ^ 1", " βˆƒ m, x β‰  ↑m / ↑n ∧ |x - ↑m / ↑n| < 2 / ↑n ^ 1", " 0 < ↑n", " x < ↑(⌊x * ↑nβŒ‹ + 1) / ↑n", " x * ↑n < β†‘βŒŠx * ↑nβŒ‹ + 1", " |x - ↑(⌊x * ↑nβŒ‹ + 1) / ↑n| < 2 / ↑n ^ 1", " ↑(⌊x * ↑nβŒ‹ + 1) / ↑n < (x * ↑n + 2) / ↑n", "...
[ " LiouvilleWith 1 x", " βˆƒαΆ  (n : β„•) in atTop, βˆƒ m, x β‰  ↑m / ↑n ∧ |x - ↑m / ↑n| < 2 / ↑n ^ 1", " βˆƒ m, x β‰  ↑m / ↑n ∧ |x - ↑m / ↑n| < 2 / ↑n ^ 1", " 0 < ↑n", " x < ↑(⌊x * ↑nβŒ‹ + 1) / ↑n", " x * ↑n < β†‘βŒŠx * ↑nβŒ‹ + 1", " |x - ↑(⌊x * ↑nβŒ‹ + 1) / ↑n| < 2 / ↑n ^ 1", " ↑(⌊x * ↑nβŒ‹ + 1) / ↑n < (x * ↑n + 2) / ↑n", "...
import Mathlib.Data.Sigma.Lex import Mathlib.Order.BoundedOrder import Mathlib.Mathport.Notation import Mathlib.Data.Sigma.Basic #align_import data.sigma.order from "leanprover-community/mathlib"@"1fc36cc9c8264e6e81253f88be7fb2cb6c92d76a" namespace Sigma variable {ΞΉ : Type*} {Ξ± : ΞΉ β†’ Type*} -- Porting note: I...
Mathlib/Data/Sigma/Order.lean
89
96
theorem lt_def [βˆ€ i, LT (Ξ± i)] {a b : Ξ£i, Ξ± i} : a < b ↔ βˆƒ h : a.1 = b.1, h.rec a.2 < b.2 := by
constructor · rintro ⟨i, a, b, h⟩ exact ⟨rfl, h⟩ · obtain ⟨i, a⟩ := a obtain ⟨j, b⟩ := b rintro ⟨rfl : i = j, h⟩ exact lt.fiber _ _ _ h
[ " a ≀ b ↔ βˆƒ h, h β–Έ a.snd ≀ b.snd", " a ≀ b β†’ βˆƒ h, h β–Έ a.snd ≀ b.snd", " βˆƒ h, h β–Έ ⟨i, a⟩.snd ≀ ⟨i, b⟩.snd", " (βˆƒ h, h β–Έ a.snd ≀ b.snd) β†’ a ≀ b", " (βˆƒ h, h β–Έ ⟨i, a⟩.snd ≀ b.snd) β†’ ⟨i, a⟩ ≀ b", " (βˆƒ h, h β–Έ ⟨i, a⟩.snd ≀ ⟨j, b⟩.snd) β†’ ⟨i, a⟩ ≀ ⟨j, b⟩", " ⟨i, a⟩ ≀ ⟨i, b⟩", " a < b ↔ βˆƒ h, h β–Έ a.snd < b.snd",...
[ " a ≀ b ↔ βˆƒ h, h β–Έ a.snd ≀ b.snd", " a ≀ b β†’ βˆƒ h, h β–Έ a.snd ≀ b.snd", " βˆƒ h, h β–Έ ⟨i, a⟩.snd ≀ ⟨i, b⟩.snd", " (βˆƒ h, h β–Έ a.snd ≀ b.snd) β†’ a ≀ b", " (βˆƒ h, h β–Έ ⟨i, a⟩.snd ≀ b.snd) β†’ ⟨i, a⟩ ≀ b", " (βˆƒ h, h β–Έ ⟨i, a⟩.snd ≀ ⟨j, b⟩.snd) β†’ ⟨i, a⟩ ≀ ⟨j, b⟩", " ⟨i, a⟩ ≀ ⟨i, b⟩", " a < b ↔ βˆƒ h, h β–Έ a.snd < b.snd" ...
import Mathlib.Data.List.Cycle import Mathlib.GroupTheory.Perm.Cycle.Type import Mathlib.GroupTheory.Perm.List #align_import group_theory.perm.cycle.concrete from "leanprover-community/mathlib"@"00638177efd1b2534fc5269363ebf42a7871df9a" open Equiv Equiv.Perm List variable {Ξ± : Type*} namespace List variable [D...
Mathlib/GroupTheory/Perm/Cycle/Concrete.lean
58
70
theorem formPerm_disjoint_iff (hl : Nodup l) (hl' : Nodup l') (hn : 2 ≀ l.length) (hn' : 2 ≀ l'.length) : Perm.Disjoint (formPerm l) (formPerm l') ↔ l.Disjoint l' := by
rw [disjoint_iff_eq_or_eq, List.Disjoint] constructor · rintro h x hx hx' specialize h x rw [formPerm_apply_mem_eq_self_iff _ hl _ hx, formPerm_apply_mem_eq_self_iff _ hl' _ hx'] at h omega · intro h x by_cases hx : x ∈ l on_goal 1 => by_cases hx' : x ∈ l' · exact (h hx hx').elim al...
[ " l.formPerm.Disjoint l'.formPerm ↔ l.Disjoint l'", " (βˆ€ (x : Ξ±), l.formPerm x = x ∨ l'.formPerm x = x) ↔ βˆ€ ⦃a : α⦄, a ∈ l β†’ a ∈ l' β†’ False", " (βˆ€ (x : Ξ±), l.formPerm x = x ∨ l'.formPerm x = x) β†’ βˆ€ ⦃a : α⦄, a ∈ l β†’ a ∈ l' β†’ False", " False", " (βˆ€ ⦃a : α⦄, a ∈ l β†’ a ∈ l' β†’ False) β†’ βˆ€ (x : Ξ±), l.formPerm x = ...
[ " l.formPerm.Disjoint l'.formPerm ↔ l.Disjoint l'" ]
import Mathlib.Algebra.IsPrimePow import Mathlib.NumberTheory.ArithmeticFunction import Mathlib.Analysis.SpecialFunctions.Log.Basic #align_import number_theory.von_mangoldt from "leanprover-community/mathlib"@"c946d6097a6925ad16d7ec55677bbc977f9846de" namespace ArithmeticFunction open Finset Nat open scoped Arit...
Mathlib/NumberTheory/VonMangoldt.lean
79
79
theorem vonMangoldt_apply_one : Ξ› 1 = 0 := by
simp [vonMangoldt_apply]
[ " (fun n => (↑n).log) 0 = 0", " Ξ› 1 = 0" ]
[ " (fun n => (↑n).log) 0 = 0", " Ξ› 1 = 0" ]
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
133
135
theorem mem_vsub_const_affineSegment {x y z : P} (p : P) : z -α΅₯ p ∈ affineSegment R (x -α΅₯ p) (y -α΅₯ p) ↔ z ∈ affineSegment R x y := by
rw [← affineSegment_vsub_const_image, (vsub_left_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.Intervals import Mathlib.Algebra.GeomSum import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Data.Nat.Bitwise import Mathlib.Data.Nat.Log import Mathlib.Data.Nat.Prime import Mathlib.Data.Nat.Digits import Mathlib.RingTheory.Multiplicity #align_import data.nat.multiplicity from "l...
Mathlib/Data/Nat/Multiplicity.lean
61
77
theorem multiplicity_eq_card_pow_dvd {m n b : β„•} (hm : m β‰  1) (hn : 0 < n) (hb : log m n < b) : multiplicity m n = ↑((Finset.Ico 1 b).filter fun i => m ^ i ∣ n).card := calc multiplicity m n = ↑(Ico 1 <| (multiplicity m n).get (finite_nat_iff.2 ⟨hm, hn⟩) + 1).card := by
simp _ = ↑((Finset.Ico 1 b).filter fun i => m ^ i ∣ n).card := congr_arg _ <| congr_arg card <| Finset.ext fun i => by rw [mem_filter, mem_Ico, mem_Ico, Nat.lt_succ_iff, ← @PartENat.coe_le_coe i, PartENat.natCast_get, ← pow_dvd_iff_le_multiplicity, and_right_...
[ " multiplicity m n = ↑(Ico 1 ((multiplicity m n).get β‹― + 1)).card", " i ∈ Ico 1 ((multiplicity m n).get β‹― + 1) ↔ i ∈ filter (fun i => m ^ i ∣ n) (Ico 1 b)", " 1 ≀ i ∧ m ^ i ∣ n ↔ (1 ≀ i ∧ m ^ i ∣ n) ∧ i < b", " i ≀ m.log n", " i ≀ log 0 n", " i β‰  0", " i ≀ (m + 1).log n" ]
[ " multiplicity m n = ↑(Ico 1 ((multiplicity m n).get β‹― + 1)).card" ]
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
65
88
theorem schwarz_aux {f : β„‚ β†’ β„‚} (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⟩ suffices βˆ€αΆ  r in 𝓝[<] R₁, β€–dslope f c zβ€– ≀ Rβ‚‚ / r by refine ge_of_tendsto ?_ this exact (tendsto_const_nhds.div tendsto_id hR₁.ne').mono_left nhdsWithin_le_nhds rw [mem_ball] at hz filter_upwards [Ioo_mem_nhdsWithin_Iio ⟨hz, le_rfl⟩] with r hr have hrβ‚€ : ...
[ " β€–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₁" ]
import Mathlib.MeasureTheory.SetSemiring open MeasurableSpace Set namespace MeasureTheory variable {Ξ± : Type*} {π’œ : Set (Set Ξ±)} {s t : Set Ξ±} structure IsSetAlgebra (π’œ : Set (Set Ξ±)) : Prop where empty_mem : βˆ… ∈ π’œ compl_mem : βˆ€ ⦃s⦄, s ∈ π’œ β†’ sᢜ ∈ π’œ union_mem : βˆ€ ⦃s t⦄, s ∈ π’œ β†’ t ∈ π’œ β†’ s βˆͺ t ∈ π’œ ...
Mathlib/MeasureTheory/SetAlgebra.lean
122
134
theorem generateFrom_generateSetAlgebra_eq : generateFrom (generateSetAlgebra π’œ) = generateFrom π’œ := by
refine le_antisymm (fun s ms ↦ ?_) (generateFrom_mono self_subset_generateSetAlgebra) refine @generateFrom_induction _ _ (generateSetAlgebra π’œ) (fun t ht ↦ ?_) (@MeasurableSet.empty _ (generateFrom π’œ)) (fun t ↦ MeasurableSet.compl) (fun f hf ↦ MeasurableSet.iUnion hf) s ms induction ht with |...
[ " generateFrom (generateSetAlgebra π’œ) = generateFrom π’œ", " MeasurableSet s", " MeasurableSet t", " MeasurableSet u", " MeasurableSet βˆ…", " MeasurableSet uᢜ", " MeasurableSet (u βˆͺ v)" ]
[ " generateFrom (generateSetAlgebra π’œ) = generateFrom π’œ" ]
import Mathlib.Algebra.Polynomial.Expand import Mathlib.Algebra.Polynomial.Laurent import Mathlib.LinearAlgebra.Matrix.Charpoly.Basic import Mathlib.LinearAlgebra.Matrix.Reindex import Mathlib.RingTheory.Polynomial.Nilpotent #align_import linear_algebra.matrix.charpoly.coeff from "leanprover-community/mathlib"@"9745b...
Mathlib/LinearAlgebra/Matrix/Charpoly/Coeff.lean
260
276
theorem matPolyEquiv_eq_X_pow_sub_C {K : Type*} (k : β„•) [Field K] (M : Matrix n n K) : matPolyEquiv ((expand K k : K[X] β†’+* K[X]).mapMatrix (charmatrix (M ^ k))) = X ^ k - C (M ^ k) := by
-- Porting note: `i` and `j` are used later on, but were not mentioned in mathlib3 ext m i j rw [coeff_sub, coeff_C, matPolyEquiv_coeff_apply, RingHom.mapMatrix_apply, Matrix.map_apply, AlgHom.coe_toRingHom, DMatrix.sub_apply, coeff_X_pow] by_cases hij : i = j Β· rw [hij, charmatrix_apply_eq, AlgHom.map_s...
[ " matPolyEquiv ((↑(expand K k)).mapMatrix (M ^ k).charmatrix) = X ^ k - C (M ^ k)", " (matPolyEquiv ((↑(expand K k)).mapMatrix (M ^ k).charmatrix)).coeff m i j = (X ^ k - C (M ^ k)).coeff m i j", " ((expand K k) ((M ^ k).charmatrix i j)).coeff m = (if m = k then 1 else 0) i j - (if m = 0 then M ^ k else 0) i j"...
[ " matPolyEquiv ((↑(expand K k)).mapMatrix (M ^ k).charmatrix) = X ^ k - C (M ^ k)" ]
import Mathlib.Topology.Defs.Induced import Mathlib.Topology.Basic #align_import topology.order from "leanprover-community/mathlib"@"bcfa726826abd57587355b4b5b7e78ad6527b7e4" open Function Set Filter Topology universe u v w namespace TopologicalSpace variable {Ξ± : Type u} inductive GenerateOpen (g : Set (Set ...
Mathlib/Topology/Order.lean
129
138
theorem nhds_mkOfNhds_single [DecidableEq Ξ±] {aβ‚€ : Ξ±} {l : Filter Ξ±} (h : pure aβ‚€ ≀ l) (b : Ξ±) : @nhds Ξ± (TopologicalSpace.mkOfNhds (update pure aβ‚€ l)) b = (update pure aβ‚€ l : Ξ± β†’ Filter Ξ±) b := by
refine nhds_mkOfNhds _ _ (le_update_iff.mpr ⟨h, fun _ _ => le_rfl⟩) fun a s hs => ?_ rcases eq_or_ne a aβ‚€ with (rfl | ha) Β· filter_upwards [hs] with b hb rcases eq_or_ne b a with (rfl | hb) Β· exact hs Β· rwa [update_noteq hb] Β· simpa only [update_noteq ha, mem_pure, eventually_pure] using hs
[ " 𝓝 a = β¨… s ∈ {s | a ∈ s ∧ s ∈ g}, π“Ÿ s", " β¨… s ∈ {s | a ∈ s ∧ IsOpen s}, π“Ÿ s = β¨… s ∈ {s | a ∈ s ∧ s ∈ g}, π“Ÿ s", " βˆ€ i ∈ {s | a ∈ s ∧ IsOpen s}, β¨… s ∈ {s | a ∈ s ∧ s ∈ g}, π“Ÿ s ≀ π“Ÿ i", " β¨… s ∈ {s | a ∈ s ∧ s ∈ g}, π“Ÿ s ≀ π“Ÿ s", " β¨… s ∈ {s | a ∈ s ∧ s ∈ g}, π“Ÿ s ≀ π“Ÿ s✝", " β¨… s ∈ {s | a ∈ s ∧ s ∈ g}, οΏ½...
[ " 𝓝 a = β¨… s ∈ {s | a ∈ s ∧ s ∈ g}, π“Ÿ s", " β¨… s ∈ {s | a ∈ s ∧ IsOpen s}, π“Ÿ s = β¨… s ∈ {s | a ∈ s ∧ s ∈ g}, π“Ÿ s", " βˆ€ i ∈ {s | a ∈ s ∧ IsOpen s}, β¨… s ∈ {s | a ∈ s ∧ s ∈ g}, π“Ÿ s ≀ π“Ÿ i", " β¨… s ∈ {s | a ∈ s ∧ s ∈ g}, π“Ÿ s ≀ π“Ÿ s", " β¨… s ∈ {s | a ∈ s ∧ s ∈ g}, π“Ÿ s ≀ π“Ÿ s✝", " β¨… s ∈ {s | a ∈ s ∧ s ∈ g}, οΏ½...