Skip to content

Commit 9487d74

Browse files
committed
Merge branch 'master' into ci-dev/marcelo/2026/01/PushCacheSeparateJob
2 parents ac5eea1 + 1b7f970 commit 9487d74

File tree

670 files changed

+11612
-5621
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

670 files changed

+11612
-5621
lines changed

.github/workflows/auto_assign_reviewers.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/build_template.yml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ jobs:
5151
shell: bash # there is no script body, so this is safe to "run" outside landrun.
5252
run: |
5353
# We just populate the env vars for this step to make them viewable in the logs
54-
- name: Generate lean-pr-testing app token
55-
id: lean-pr-testing-token
56-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
57-
with:
58-
app-id: ${{ secrets.MATHLIB_LEAN_PR_TESTING_APP_ID }}
59-
private-key: ${{ secrets.MATHLIB_LEAN_PR_TESTING_PRIVATE_KEY }}
60-
owner: leanprover
61-
repositories: lean4
6254
- name: cleanup
6355
shell: bash # This *just* deletes old files, so is safe to run outside landrun.
6456
run: |
@@ -583,6 +575,17 @@ jobs:
583575
exit 1
584576
fi
585577
578+
# Generate a fresh token just before posting comments.
579+
# GitHub App tokens expire after 1 hour, and the build can take longer than that.
580+
- name: Generate lean-pr-testing app token
581+
if: always()
582+
id: lean-pr-testing-token
583+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
584+
with:
585+
app-id: ${{ secrets.MATHLIB_LEAN_PR_TESTING_APP_ID }}
586+
private-key: ${{ secrets.MATHLIB_LEAN_PR_TESTING_PRIVATE_KEY }}
587+
owner: leanprover
588+
repositories: lean4
586589
# The create-github-app-token README states that this token is masked and will not be logged accidentally.
587590
- name: Post comments for lean-pr-testing-NNNN and batteries-pr-testing-NNNN branches
588591
if: always()
@@ -840,7 +843,10 @@ jobs:
840843
echo "username=$USERNAME" >> "$GITHUB_OUTPUT"
841844
echo "Found label actor: $USERNAME"
842845
843-
- if: contains(steps.PR.outputs.pr_labels, 'auto-merge-after-CI')
846+
- if: >- # bot usernames will cause this step to error with "Could not resolve to a User..."
847+
contains(steps.PR.outputs.pr_labels, 'auto-merge-after-CI') &&
848+
steps.get-label-actor.outputs.username != 'mathlib-nolints' &&
849+
steps.get-label-actor.outputs.username != 'mathlib-update-dependencies'
844850
name: check team membership
845851
uses: tspascoal/get-user-teams-membership@57e9f42acd78f4d0f496b3be4368fc5f62696662 # v3.0.0
846852
id: actorTeams
@@ -850,11 +856,18 @@ jobs:
850856
username: ${{ steps.get-label-actor.outputs.username }}
851857
GITHUB_TOKEN: ${{ secrets.MATHLIB_REVIEWERS_TEAM_KEY }} # (Requires scope: `read:org`)
852858
853-
# The create-github-app-token README states that this token is masked and will not be logged accidentally.
854-
- if: ${{ contains(steps.PR.outputs.pr_labels, 'auto-merge-after-CI') && (contains(steps.actorTeams.outputs.teams, 'mathlib-maintainers') || contains(steps.actorTeams.outputs.teams, 'bot-users')) }}
859+
- if: >-
860+
contains(steps.PR.outputs.pr_labels, 'auto-merge-after-CI') &&
861+
(
862+
steps.get-label-actor.outputs.username == 'mathlib-nolints' ||
863+
steps.get-label-actor.outputs.username == 'mathlib-update-dependencies' ||
864+
contains(steps.actorTeams.outputs.teams, 'mathlib-maintainers') ||
865+
contains(steps.actorTeams.outputs.teams, 'bot-users')
866+
)
855867
name: If `auto-merge-after-CI` is present, add a `bors merge` comment.
856868
uses: GrantBirki/comment@608e41b19bc973020ec0e189ebfdae935d7fe0cc # v2.1.1
857869
with:
870+
# The create-github-app-token README states that this token is masked and will not be logged accidentally.
858871
token: ${{ steps.auto-merge-app-token.outputs.token }}
859872
issue-number: ${{ steps.PR.outputs.number }}
860873
body: |

.github/workflows/export_telemetry.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Export workflow telemetry
22-
uses: corentinmusard/otel-cicd-action@7e307f7baefcf4929d94d2844bc72d87566a75c3 # v3.0.0
23-
with:
24-
otlpEndpoint: ${{ secrets.OTLP_ENDPOINT }}
25-
otlpHeaders: ${{ secrets.OTLP_HEADERS }}
26-
githubToken: ${{ secrets.GITHUB_TOKEN }}
27-
runId: ${{ github.event.workflow_run.id }}
28-
29-
- name: Export workflow telemetry (alt endpoint)
3022
uses: corentinmusard/otel-cicd-action@7e307f7baefcf4929d94d2844bc72d87566a75c3 # v3.0.0
3123
with:
3224
otlpEndpoint: ${{ secrets.OTLP_ENDPOINT_ALT }}

.github/workflows/nightly_detect_failure.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,22 @@ jobs:
326326
if: steps.check_branch.outputs.result == 'false'
327327
run: |
328328
sudo rm -rf -- *
329+
# Regenerate the app token just before use.
330+
# GitHub App tokens expire after 1 hour, and the preceding steps can take longer than that.
331+
- name: Regenerate app token for Mathlib4 checkout
332+
if: steps.check_branch.outputs.result == 'false'
333+
id: app-token-2
334+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
335+
with:
336+
app-id: ${{ secrets.MATHLIB_NIGHTLY_TESTING_APP_ID }}
337+
private-key: ${{ secrets.MATHLIB_NIGHTLY_TESTING_PRIVATE_KEY }}
329338
- name: Checkout Mathlib4 repository
330339
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
331340
if: steps.check_branch.outputs.result == 'false'
332341
with:
333342
ref: nightly-testing # checkout nightly-testing branch (shouldn't matter which)
334343
fetch-depth: 0 # checkout all branches
335-
token: ${{ steps.app-token.outputs.token }}
344+
token: ${{ steps.app-token-2.outputs.token }}
336345

337346
- name: Attempt automatic PR creation
338347
id: auto_pr
@@ -342,7 +351,7 @@ jobs:
342351
BUMP_VERSION: ${{ steps.bump_version.outputs.result }}
343352
BUMP_BRANCH: ${{ steps.latest_bump_branch.outputs.result }}
344353
SHA: ${{ env.SHA }}
345-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
354+
GH_TOKEN: ${{ steps.app-token-2.outputs.token }}
346355
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
347356
run: |
348357
echo "Current version: ${NIGHTLY}"

Mathlib.lean

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ public import Mathlib.Algebra.Category.ModuleCat.Subobject
206206
public import Mathlib.Algebra.Category.ModuleCat.Tannaka
207207
public import Mathlib.Algebra.Category.ModuleCat.Topology.Basic
208208
public import Mathlib.Algebra.Category.ModuleCat.Topology.Homology
209+
public import Mathlib.Algebra.Category.ModuleCat.Ulift
209210
public import Mathlib.Algebra.Category.MonCat.Adjunctions
210211
public import Mathlib.Algebra.Category.MonCat.Basic
211212
public import Mathlib.Algebra.Category.MonCat.Colimits
@@ -586,6 +587,7 @@ public import Mathlib.Algebra.Homology.Embedding.TruncGE
586587
public import Mathlib.Algebra.Homology.Embedding.TruncGEHomology
587588
public import Mathlib.Algebra.Homology.Embedding.TruncLE
588589
public import Mathlib.Algebra.Homology.Embedding.TruncLEHomology
590+
public import Mathlib.Algebra.Homology.EulerCharacteristic
589591
public import Mathlib.Algebra.Homology.ExactSequence
590592
public import Mathlib.Algebra.Homology.ExactSequenceFour
591593
public import Mathlib.Algebra.Homology.Factorizations.Basic
@@ -1396,6 +1398,7 @@ public import Mathlib.AlgebraicTopology.FundamentalGroupoid.Product
13961398
public import Mathlib.AlgebraicTopology.FundamentalGroupoid.SimplyConnected
13971399
public import Mathlib.AlgebraicTopology.ModelCategory.Basic
13981400
public import Mathlib.AlgebraicTopology.ModelCategory.Bifibrant
1401+
public import Mathlib.AlgebraicTopology.ModelCategory.BifibrantObjectHomotopy
13991402
public import Mathlib.AlgebraicTopology.ModelCategory.BrownLemma
14001403
public import Mathlib.AlgebraicTopology.ModelCategory.CategoryWithCofibrations
14011404
public import Mathlib.AlgebraicTopology.ModelCategory.CofibrantObjectHomotopy
@@ -1964,6 +1967,7 @@ public import Mathlib.Analysis.Normed.Group.Completion
19641967
public import Mathlib.Analysis.Normed.Group.Constructions
19651968
public import Mathlib.Analysis.Normed.Group.Continuity
19661969
public import Mathlib.Analysis.Normed.Group.ControlledClosure
1970+
public import Mathlib.Analysis.Normed.Group.Defs
19671971
public import Mathlib.Analysis.Normed.Group.FunctionSeries
19681972
public import Mathlib.Analysis.Normed.Group.Hom
19691973
public import Mathlib.Analysis.Normed.Group.HomCompletion
@@ -1975,6 +1979,7 @@ public import Mathlib.Analysis.Normed.Group.NullSubmodule
19751979
public import Mathlib.Analysis.Normed.Group.Pointwise
19761980
public import Mathlib.Analysis.Normed.Group.Quotient
19771981
public import Mathlib.Analysis.Normed.Group.Rat
1982+
public import Mathlib.Analysis.Normed.Group.Real
19781983
public import Mathlib.Analysis.Normed.Group.SemiNormedGrp
19791984
public import Mathlib.Analysis.Normed.Group.SemiNormedGrp.Completion
19801985
public import Mathlib.Analysis.Normed.Group.SemiNormedGrp.Kernels
@@ -2431,6 +2436,7 @@ public import Mathlib.CategoryTheory.ConcreteCategory.Bundled
24312436
public import Mathlib.CategoryTheory.ConcreteCategory.BundledHom
24322437
public import Mathlib.CategoryTheory.ConcreteCategory.Elementwise
24332438
public import Mathlib.CategoryTheory.ConcreteCategory.EpiMono
2439+
public import Mathlib.CategoryTheory.ConcreteCategory.Forget
24342440
public import Mathlib.CategoryTheory.ConcreteCategory.ReflectsIso
24352441
public import Mathlib.CategoryTheory.ConcreteCategory.UnbundledHom
24362442
public import Mathlib.CategoryTheory.Conj
@@ -2629,6 +2635,7 @@ public import Mathlib.CategoryTheory.Limits.Final.Type
26292635
public import Mathlib.CategoryTheory.Limits.FinallySmall
26302636
public import Mathlib.CategoryTheory.Limits.FintypeCat
26312637
public import Mathlib.CategoryTheory.Limits.FormalCoproducts
2638+
public import Mathlib.CategoryTheory.Limits.FormalCoproducts.Basic
26322639
public import Mathlib.CategoryTheory.Limits.Fubini
26332640
public import Mathlib.CategoryTheory.Limits.FullSubcategory
26342641
public import Mathlib.CategoryTheory.Limits.FunctorCategory.Basic
@@ -2735,6 +2742,7 @@ public import Mathlib.CategoryTheory.Limits.Shapes.Pullback.Connected
27352742
public import Mathlib.CategoryTheory.Limits.Shapes.Pullback.Cospan
27362743
public import Mathlib.CategoryTheory.Limits.Shapes.Pullback.Equalizer
27372744
public import Mathlib.CategoryTheory.Limits.Shapes.Pullback.Equifibered
2745+
public import Mathlib.CategoryTheory.Limits.Shapes.Pullback.EquifiberedLimits
27382746
public import Mathlib.CategoryTheory.Limits.Shapes.Pullback.HasPullback
27392747
public import Mathlib.CategoryTheory.Limits.Shapes.Pullback.IsPullback.Basic
27402748
public import Mathlib.CategoryTheory.Limits.Shapes.Pullback.IsPullback.BicartesianSq
@@ -3410,6 +3418,7 @@ public import Mathlib.Computability.PostTuringMachine
34103418
public import Mathlib.Computability.Primrec
34113419
public import Mathlib.Computability.Primrec.Basic
34123420
public import Mathlib.Computability.Primrec.List
3421+
public import Mathlib.Computability.RecursiveIn
34133422
public import Mathlib.Computability.Reduce
34143423
public import Mathlib.Computability.RegularExpressions
34153424
public import Mathlib.Computability.TMComputable
@@ -4198,6 +4207,7 @@ public import Mathlib.FieldTheory.IsAlgClosed.Basic
41984207
public import Mathlib.FieldTheory.IsAlgClosed.Classification
41994208
public import Mathlib.FieldTheory.IsAlgClosed.Spectrum
42004209
public import Mathlib.FieldTheory.IsPerfectClosure
4210+
public import Mathlib.FieldTheory.IsRealClosed.Basic
42014211
public import Mathlib.FieldTheory.IsSepClosed
42024212
public import Mathlib.FieldTheory.Isaacs
42034213
public import Mathlib.FieldTheory.JacobsonNoether
@@ -4393,6 +4403,7 @@ public import Mathlib.GroupTheory.EckmannHilton
43934403
public import Mathlib.GroupTheory.Exponent
43944404
public import Mathlib.GroupTheory.FiniteAbelian.Basic
43954405
public import Mathlib.GroupTheory.FiniteAbelian.Duality
4406+
public import Mathlib.GroupTheory.FiniteIndexNormalSubgroup
43964407
public import Mathlib.GroupTheory.Finiteness
43974408
public import Mathlib.GroupTheory.FixedPointFree
43984409
public import Mathlib.GroupTheory.Frattini
@@ -4871,6 +4882,7 @@ public import Mathlib.LinearAlgebra.TensorProduct.Basic
48714882
public import Mathlib.LinearAlgebra.TensorProduct.Basis
48724883
public import Mathlib.LinearAlgebra.TensorProduct.DirectLimit
48734884
public import Mathlib.LinearAlgebra.TensorProduct.Finiteness
4885+
public import Mathlib.LinearAlgebra.TensorProduct.Free
48744886
public import Mathlib.LinearAlgebra.TensorProduct.Graded.External
48754887
public import Mathlib.LinearAlgebra.TensorProduct.Graded.Internal
48764888
public import Mathlib.LinearAlgebra.TensorProduct.Matrix
@@ -5009,6 +5021,7 @@ public import Mathlib.MeasureTheory.Function.LpSeminorm.ChebyshevMarkov
50095021
public import Mathlib.MeasureTheory.Function.LpSeminorm.CompareExp
50105022
public import Mathlib.MeasureTheory.Function.LpSeminorm.Defs
50115023
public import Mathlib.MeasureTheory.Function.LpSeminorm.Indicator
5024+
public import Mathlib.MeasureTheory.Function.LpSeminorm.LpNorm
50125025
public import Mathlib.MeasureTheory.Function.LpSeminorm.Monotonicity
50135026
public import Mathlib.MeasureTheory.Function.LpSeminorm.Prod
50145027
public import Mathlib.MeasureTheory.Function.LpSeminorm.SMul
@@ -5320,7 +5333,7 @@ public import Mathlib.NumberTheory.Harmonic.GammaDeriv
53205333
public import Mathlib.NumberTheory.Harmonic.Int
53215334
public import Mathlib.NumberTheory.Harmonic.ZetaAsymp
53225335
public import Mathlib.NumberTheory.Height.Basic
5323-
public import Mathlib.NumberTheory.Height.Instances
5336+
public import Mathlib.NumberTheory.Height.NumberField
53245337
public import Mathlib.NumberTheory.JacobiSum.Basic
53255338
public import Mathlib.NumberTheory.KummerDedekind
53265339
public import Mathlib.NumberTheory.LSeries.AbstractFuncEq
@@ -5752,6 +5765,7 @@ public import Mathlib.Order.Synonym
57525765
public import Mathlib.Order.TeichmullerTukey
57535766
public import Mathlib.Order.TransfiniteIteration
57545767
public import Mathlib.Order.TypeTags
5768+
public import Mathlib.Order.Types.Arithmetic
57555769
public import Mathlib.Order.Types.Defs
57565770
public import Mathlib.Order.ULift
57575771
public import Mathlib.Order.UpperLower.Basic
@@ -6347,6 +6361,7 @@ public import Mathlib.RingTheory.Polynomial.Selmer
63476361
public import Mathlib.RingTheory.Polynomial.SeparableDegree
63486362
public import Mathlib.RingTheory.Polynomial.ShiftedLegendre
63496363
public import Mathlib.RingTheory.Polynomial.SmallDegreeVieta
6364+
public import Mathlib.RingTheory.Polynomial.Subring
63506365
public import Mathlib.RingTheory.Polynomial.Tower
63516366
public import Mathlib.RingTheory.Polynomial.UniqueFactorization
63526367
public import Mathlib.RingTheory.Polynomial.UniversalFactorizationRing
@@ -6379,6 +6394,7 @@ public import Mathlib.RingTheory.Prime
63796394
public import Mathlib.RingTheory.PrincipalIdealDomain
63806395
public import Mathlib.RingTheory.PrincipalIdealDomainOfPrime
63816396
public import Mathlib.RingTheory.QuasiFinite.Basic
6397+
public import Mathlib.RingTheory.QuasiFinite.Polynomial
63826398
public import Mathlib.RingTheory.QuotSMulTop
63836399
public import Mathlib.RingTheory.Radical
63846400
public import Mathlib.RingTheory.ReesAlgebra
@@ -6486,6 +6502,7 @@ public import Mathlib.RingTheory.TwoSidedIdeal.Kernel
64866502
public import Mathlib.RingTheory.TwoSidedIdeal.Lattice
64876503
public import Mathlib.RingTheory.TwoSidedIdeal.Operations
64886504
public import Mathlib.RingTheory.UniqueFactorizationDomain.Basic
6505+
public import Mathlib.RingTheory.UniqueFactorizationDomain.ClassGroup
64896506
public import Mathlib.RingTheory.UniqueFactorizationDomain.Defs
64906507
public import Mathlib.RingTheory.UniqueFactorizationDomain.FactorSet
64916508
public import Mathlib.RingTheory.UniqueFactorizationDomain.Finite
@@ -6501,6 +6518,7 @@ public import Mathlib.RingTheory.Unramified.Basic
65016518
public import Mathlib.RingTheory.Unramified.Field
65026519
public import Mathlib.RingTheory.Unramified.Finite
65036520
public import Mathlib.RingTheory.Unramified.LocalRing
6521+
public import Mathlib.RingTheory.Unramified.LocalStructure
65046522
public import Mathlib.RingTheory.Unramified.Locus
65056523
public import Mathlib.RingTheory.Unramified.Pi
65066524
public import Mathlib.RingTheory.Valuation.AlgebraInstances
@@ -6868,6 +6886,7 @@ public import Mathlib.Tactic.RewriteSearch
68686886
public import Mathlib.Tactic.Rify
68696887
public import Mathlib.Tactic.Ring
68706888
public import Mathlib.Tactic.Ring.Basic
6889+
public import Mathlib.Tactic.Ring.Common
68716890
public import Mathlib.Tactic.Ring.Compare
68726891
public import Mathlib.Tactic.Ring.NamePolyVars
68736892
public import Mathlib.Tactic.Ring.PNat
@@ -6942,6 +6961,7 @@ public import Mathlib.Topology.Algebra.Algebra.Equiv
69426961
public import Mathlib.Topology.Algebra.Algebra.Rat
69436962
public import Mathlib.Topology.Algebra.AsymptoticCone
69446963
public import Mathlib.Topology.Algebra.Category.ProfiniteGrp.Basic
6964+
public import Mathlib.Topology.Algebra.Category.ProfiniteGrp.Completion
69456965
public import Mathlib.Topology.Algebra.Category.ProfiniteGrp.Limits
69466966
public import Mathlib.Topology.Algebra.ClopenNhdofOne
69476967
public import Mathlib.Topology.Algebra.ConstMulAction
@@ -7148,6 +7168,7 @@ public import Mathlib.Topology.Category.TopCat.Adjunctions
71487168
public import Mathlib.Topology.Category.TopCat.Basic
71497169
public import Mathlib.Topology.Category.TopCat.EffectiveEpi
71507170
public import Mathlib.Topology.Category.TopCat.EpiMono
7171+
public import Mathlib.Topology.Category.TopCat.GrothendieckTopology
71517172
public import Mathlib.Topology.Category.TopCat.Limits.Basic
71527173
public import Mathlib.Topology.Category.TopCat.Limits.Cofiltered
71537174
public import Mathlib.Topology.Category.TopCat.Limits.Konig

Mathlib/Algebra/ArithmeticGeometric.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module
1+
module -- shake: keep-all
22

33
public import Mathlib.Algebra.Order.Module.Field
44
public import Mathlib.Data.EReal.Inv

Mathlib/Algebra/Category/AlgCat/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ instance : Inhabited (AlgCat R) :=
151151
lemma forget_obj {A : AlgCat.{v} R} : (forget (AlgCat.{v} R)).obj A = A := rfl
152152

153153
lemma forget_map {A B : AlgCat.{v} R} (f : A ⟶ B) :
154-
(forget (AlgCat.{v} R)).map f = f :=
154+
(forget (AlgCat.{v} R)).map f = (f : _ → _) :=
155155
rfl
156156

157157
instance {S : AlgCat.{v} R} : Ring ((forget (AlgCat R)).obj S) :=

Mathlib/Algebra/Category/AlgCat/Monoidal.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ instance : MonoidalCategoryStruct (AlgCat.{u} R) where
5353
whiskerRight {X₁ X₂} (f : X₁ ⟶ X₂) Y := tensorHom f (𝟙 Y)
5454
tensorHom := tensorHom
5555
tensorUnit := of R R
56-
associator X Y Z := (Algebra.TensorProduct.assoc R R X Y Z).toAlgebraIso
56+
associator X Y Z := (Algebra.TensorProduct.assoc R R R X Y Z).toAlgebraIso
5757
leftUnitor X := (Algebra.TensorProduct.lid R X).toAlgebraIso
5858
rightUnitor X := (Algebra.TensorProduct.rid R R X).toAlgebraIso
5959

@@ -86,11 +86,11 @@ theorem hom_inv_rightUnitor {M : AlgCat.{u} R} :
8686
rfl
8787

8888
theorem hom_hom_associator {M N K : AlgCat.{u} R} :
89-
(α_ M N K).hom.hom = (Algebra.TensorProduct.assoc R R M N K).toAlgHom :=
89+
(α_ M N K).hom.hom = (Algebra.TensorProduct.assoc R R R M N K).toAlgHom :=
9090
rfl
9191

9292
theorem hom_inv_associator {M N K : AlgCat.{u} R} :
93-
(α_ M N K).inv.hom = (Algebra.TensorProduct.assoc R R M N K).symm.toAlgHom :=
93+
(α_ M N K).inv.hom = (Algebra.TensorProduct.assoc R R R M N K).symm.toAlgHom :=
9494
rfl
9595

9696
noncomputable instance instMonoidalCategory : MonoidalCategory (AlgCat.{u} R) :=

Mathlib/Algebra/Category/BialgCat/Basic.lean

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,6 @@ lemma hom_ext {X Y : BialgCat.{v} R} (f g : X ⟶ Y) (h : f.toBialgHom = g.toBia
104104
Hom.toBialgHom (𝟙 M) = BialgHom.id _ _ :=
105105
rfl
106106

107-
instance hasForget : HasForget.{v} (BialgCat.{v} R) where
108-
forget :=
109-
{ obj := fun M => M
110-
map := fun f => f.toBialgHom }
111-
forget_faithful :=
112-
{ map_injective := fun {_ _} => DFunLike.coe_injective.comp <| Hom.toBialgHom_injective _ _ }
113-
114107
instance hasForgetToAlgebra : HasForget₂ (BialgCat R) (AlgCat R) where
115108
forget₂ :=
116109
{ obj := fun X => AlgCat.of R X

Mathlib/Algebra/Category/CommAlgCat/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ instance : Inhabited (CommAlgCat R) := ⟨of R R⟩
122122

123123
lemma forget_obj (A : CommAlgCat.{v} R) : (forget (CommAlgCat.{v} R)).obj A = A := rfl
124124

125-
lemma forget_map (f : A ⟶ B) : (forget (CommAlgCat.{v} R)).map f = f := rfl
125+
lemma forget_map (f : A ⟶ B) : (forget (CommAlgCat.{v} R)).map f = (f : _ → _) := rfl
126126

127127
instance : CommRing ((forget (CommAlgCat R)).obj A) := inferInstanceAs <| CommRing A
128128

0 commit comments

Comments
 (0)