Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
leanprover-community-mathlib4-bot committed Nov 25, 2024
2 parents a854a42 + f44426d commit 350af24
Show file tree
Hide file tree
Showing 333 changed files with 6,598 additions and 3,398 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/discover-lean-pr-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- nightly-testing
paths:
- lean-toolchain

jobs:
discover-lean-pr-testing:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/maintainer_bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ jobs:
python -m pip install --upgrade pip
pip install zulip
- uses: actions/checkout@v4
with:
sparse-checkout: |
scripts/zulip_emoji_merge_delegate.py
- name: Run Zulip Emoji Merge Delegate Script
if: ${{ ! steps.merge_or_delegate.outputs.mOrD == '' &&
( steps.user_permission.outputs.require-result == 'true' ||
Expand Down
3 changes: 2 additions & 1 deletion Archive/Hairer.lean
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ noncomputable section
open Metric Set MeasureTheory
open MvPolynomial hiding support
open Function hiding eval
open scoped ContDiff

variable {ι : Type*} [Fintype ι]

Expand Down Expand Up @@ -110,7 +111,7 @@ lemma inj_L : Injective (L ι) :=
apply subset_closure

lemma hairer (N : ℕ) (ι : Type*) [Fintype ι] :
∃ (ρ : EuclideanSpace ℝ ι → ℝ), tsupport ρ ⊆ closedBall 0 1 ∧ ContDiff ℝ ρ ∧
∃ (ρ : EuclideanSpace ℝ ι → ℝ), tsupport ρ ⊆ closedBall 0 1 ∧ ContDiff ℝ ρ ∧
∀ (p : MvPolynomial ι ℝ), p.totalDegree ≤ N →
∫ x : EuclideanSpace ℝ ι, eval x p • ρ x = eval 0 p := by
have := (inj_L ι).comp (restrictTotalDegree ι ℝ N).injective_subtype
Expand Down
2 changes: 1 addition & 1 deletion Archive/Imo/Imo2024Q5.lean
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ lemma Strategy.play_two (s : Strategy N) (m : MonsterData N) {k : ℕ} (hk : 2 <
fin_cases i
· rfl
· have h : (1 : Fin 2) = Fin.last 1 := rfl
simp only [Fin.snoc_zero, Nat.reduceAdd, Fin.mk_one, Fin.isValue, Matrix.cons_val_one,
simp only [Fin.snoc_zero, Nat.reduceAdd, Fin.mk_one, Fin.isValue, id_eq, Matrix.cons_val_one,
Matrix.head_cons]
simp only [h, Fin.snoc_last]
convert rfl
Expand Down
8 changes: 4 additions & 4 deletions Counterexamples/DirectSumIsInternal.lean
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import Mathlib.Tactic.FinCases
# Not all complementary decompositions of a module over a semiring make up a direct sum
This shows that while `ℤ≤0` and `ℤ≥0` are complementary `ℕ`-submodules of `ℤ`, which in turn
implies as a collection they are `CompleteLattice.Independent` and that they span all of `ℤ`, they
implies as a collection they are `iSupIndep` and that they span all of `ℤ`, they
do not form a decomposition into a direct sum.
This file demonstrates why `DirectSum.isInternal_submodule_of_independent_of_iSup_eq_top` must
This file demonstrates why `DirectSum.isInternal_submodule_of_iSupIndep_of_iSup_eq_top` must
take `Ring R` and not `Semiring R`.
-/

Expand Down Expand Up @@ -57,9 +57,9 @@ theorem withSign.isCompl : IsCompl ℤ≥0 ℤ≤0 := by
· exact Submodule.mem_sup_left (mem_withSign_one.mpr hp)
· exact Submodule.mem_sup_right (mem_withSign_neg_one.mpr hn)

def withSign.independent : CompleteLattice.Independent withSign := by
def withSign.independent : iSupIndep withSign := by
apply
(CompleteLattice.independent_pair UnitsInt.one_ne_neg_one _).mpr withSign.isCompl.disjoint
(iSupIndep_pair UnitsInt.one_ne_neg_one _).mpr withSign.isCompl.disjoint
intro i
fin_cases i <;> simp

Expand Down
15 changes: 13 additions & 2 deletions Mathlib.lean
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ import Mathlib.Algebra.Group.Fin.Basic
import Mathlib.Algebra.Group.Fin.Tuple
import Mathlib.Algebra.Group.FiniteSupport
import Mathlib.Algebra.Group.ForwardDiff
import Mathlib.Algebra.Group.Graph
import Mathlib.Algebra.Group.Hom.Basic
import Mathlib.Algebra.Group.Hom.CompTypeclasses
import Mathlib.Algebra.Group.Hom.Defs
Expand All @@ -287,6 +288,7 @@ import Mathlib.Algebra.Group.Nat.Even
import Mathlib.Algebra.Group.Nat.TypeTags
import Mathlib.Algebra.Group.Nat.Units
import Mathlib.Algebra.Group.NatPowAssoc
import Mathlib.Algebra.Group.Operations
import Mathlib.Algebra.Group.Opposite
import Mathlib.Algebra.Group.PNatPowAssoc
import Mathlib.Algebra.Group.Pi.Basic
Expand Down Expand Up @@ -518,6 +520,7 @@ import Mathlib.Algebra.Module.Equiv.Basic
import Mathlib.Algebra.Module.Equiv.Defs
import Mathlib.Algebra.Module.Equiv.Opposite
import Mathlib.Algebra.Module.FinitePresentation
import Mathlib.Algebra.Module.FreeLocus
import Mathlib.Algebra.Module.GradedModule
import Mathlib.Algebra.Module.Hom
import Mathlib.Algebra.Module.Injective
Expand Down Expand Up @@ -652,6 +655,7 @@ import Mathlib.Algebra.Order.Group.CompleteLattice
import Mathlib.Algebra.Order.Group.Cone
import Mathlib.Algebra.Order.Group.Defs
import Mathlib.Algebra.Order.Group.DenselyOrdered
import Mathlib.Algebra.Order.Group.Finset
import Mathlib.Algebra.Order.Group.Indicator
import Mathlib.Algebra.Order.Group.InjSurj
import Mathlib.Algebra.Order.Group.Instances
Expand All @@ -675,6 +679,7 @@ import Mathlib.Algebra.Order.Group.Unbundled.Int
import Mathlib.Algebra.Order.Group.Units
import Mathlib.Algebra.Order.GroupWithZero.Action.Synonym
import Mathlib.Algebra.Order.GroupWithZero.Canonical
import Mathlib.Algebra.Order.GroupWithZero.Finset
import Mathlib.Algebra.Order.GroupWithZero.Submonoid
import Mathlib.Algebra.Order.GroupWithZero.Synonym
import Mathlib.Algebra.Order.GroupWithZero.Unbundled
Expand Down Expand Up @@ -735,7 +740,6 @@ import Mathlib.Algebra.Order.Ring.Canonical
import Mathlib.Algebra.Order.Ring.Cast
import Mathlib.Algebra.Order.Ring.Cone
import Mathlib.Algebra.Order.Ring.Defs
import Mathlib.Algebra.Order.Ring.Finset
import Mathlib.Algebra.Order.Ring.InjSurj
import Mathlib.Algebra.Order.Ring.Int
import Mathlib.Algebra.Order.Ring.Nat
Expand Down Expand Up @@ -928,6 +932,7 @@ import Mathlib.AlgebraicGeometry.AffineScheme
import Mathlib.AlgebraicGeometry.AffineSpace
import Mathlib.AlgebraicGeometry.Cover.MorphismProperty
import Mathlib.AlgebraicGeometry.Cover.Open
import Mathlib.AlgebraicGeometry.Cover.Over
import Mathlib.AlgebraicGeometry.EllipticCurve.Affine
import Mathlib.AlgebraicGeometry.EllipticCurve.DivisionPolynomial.Basic
import Mathlib.AlgebraicGeometry.EllipticCurve.DivisionPolynomial.Degree
Expand Down Expand Up @@ -1029,6 +1034,7 @@ import Mathlib.AlgebraicTopology.FundamentalGroupoid.PUnit
import Mathlib.AlgebraicTopology.FundamentalGroupoid.Product
import Mathlib.AlgebraicTopology.FundamentalGroupoid.SimplyConnected
import Mathlib.AlgebraicTopology.MooreComplex
import Mathlib.AlgebraicTopology.Quasicategory.Basic
import Mathlib.AlgebraicTopology.SimplexCategory
import Mathlib.AlgebraicTopology.SimplicialCategory.Basic
import Mathlib.AlgebraicTopology.SimplicialCategory.SimplicialObject
Expand All @@ -1038,7 +1044,6 @@ import Mathlib.AlgebraicTopology.SimplicialSet.KanComplex
import Mathlib.AlgebraicTopology.SimplicialSet.Monoidal
import Mathlib.AlgebraicTopology.SimplicialSet.Nerve
import Mathlib.AlgebraicTopology.SimplicialSet.Path
import Mathlib.AlgebraicTopology.SimplicialSet.Quasicategory
import Mathlib.AlgebraicTopology.SimplicialSet.StrictSegal
import Mathlib.AlgebraicTopology.SingularSet
import Mathlib.AlgebraicTopology.SplitSimplicialObject
Expand Down Expand Up @@ -1768,6 +1773,7 @@ import Mathlib.CategoryTheory.Limits.Connected
import Mathlib.CategoryTheory.Limits.Constructions.BinaryProducts
import Mathlib.CategoryTheory.Limits.Constructions.EpiMono
import Mathlib.CategoryTheory.Limits.Constructions.Equalizers
import Mathlib.CategoryTheory.Limits.Constructions.EventuallyConstant
import Mathlib.CategoryTheory.Limits.Constructions.Filtered
import Mathlib.CategoryTheory.Limits.Constructions.FiniteProductsOfBinaryProducts
import Mathlib.CategoryTheory.Limits.Constructions.LimitsOfProductsAndEqualizers
Expand Down Expand Up @@ -2447,6 +2453,7 @@ import Mathlib.Data.Finsupp.Fintype
import Mathlib.Data.Finsupp.Indicator
import Mathlib.Data.Finsupp.Interval
import Mathlib.Data.Finsupp.Lex
import Mathlib.Data.Finsupp.MonomialOrder
import Mathlib.Data.Finsupp.Multiset
import Mathlib.Data.Finsupp.NeLocus
import Mathlib.Data.Finsupp.Notation
Expand Down Expand Up @@ -3916,6 +3923,7 @@ import Mathlib.Order.CompletePartialOrder
import Mathlib.Order.CompleteSublattice
import Mathlib.Order.Concept
import Mathlib.Order.ConditionallyCompleteLattice.Basic
import Mathlib.Order.ConditionallyCompleteLattice.Defs
import Mathlib.Order.ConditionallyCompleteLattice.Finset
import Mathlib.Order.ConditionallyCompleteLattice.Group
import Mathlib.Order.ConditionallyCompleteLattice.Indexed
Expand Down Expand Up @@ -3952,6 +3960,7 @@ import Mathlib.Order.Filter.ENNReal
import Mathlib.Order.Filter.EventuallyConst
import Mathlib.Order.Filter.Extr
import Mathlib.Order.Filter.FilterProduct
import Mathlib.Order.Filter.Finite
import Mathlib.Order.Filter.Germ.Basic
import Mathlib.Order.Filter.Germ.OrderedMonoid
import Mathlib.Order.Filter.IndicatorFunction
Expand Down Expand Up @@ -4319,6 +4328,7 @@ import Mathlib.RingTheory.LaurentSeries
import Mathlib.RingTheory.LinearDisjoint
import Mathlib.RingTheory.LittleWedderburn
import Mathlib.RingTheory.LocalProperties.Basic
import Mathlib.RingTheory.LocalProperties.Exactness
import Mathlib.RingTheory.LocalProperties.IntegrallyClosed
import Mathlib.RingTheory.LocalProperties.Projective
import Mathlib.RingTheory.LocalProperties.Reduced
Expand Down Expand Up @@ -4379,6 +4389,7 @@ import Mathlib.RingTheory.Nakayama
import Mathlib.RingTheory.Nilpotent.Basic
import Mathlib.RingTheory.Nilpotent.Defs
import Mathlib.RingTheory.Nilpotent.Lemmas
import Mathlib.RingTheory.Noetherian.Basic
import Mathlib.RingTheory.Noetherian.Defs
import Mathlib.RingTheory.Noetherian.Filter
import Mathlib.RingTheory.Noetherian.Nilpotent
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Algebra/BigOperators/Group/List.lean
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ end MonoidHom
end MonoidHom

set_option linter.deprecated false in
@[simp, deprecated (since := "2024-10-17")]
@[simp, deprecated "No deprecation message was provided." (since := "2024-10-17")]
lemma Nat.sum_eq_listSum (l : List ℕ) : Nat.sum l = l.sum := rfl

namespace List
Expand Down
Loading

0 comments on commit 350af24

Please sign in to comment.