Skip to content

Commit aedee22

Browse files
authored
feat: bump to v4.25.0-rc2 (#35)
1 parent 0e7edc2 commit aedee22

10 files changed

Lines changed: 27 additions & 45 deletions

File tree

Poly.lean

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import Poly.ForMathlib.CategoryTheory.LocallyCartesianClosed.Basic
22
import Poly.ForMathlib.CategoryTheory.LocallyCartesianClosed.BeckChevalley
33
import Poly.ForMathlib.CategoryTheory.LocallyCartesianClosed.Distributivity
44
import Poly.ForMathlib.CategoryTheory.LocallyCartesianClosed.Presheaf
5-
-- import Poly.LCCC.BeckChevalley
6-
-- import Poly.LCCC.Presheaf
7-
-- import Poly.Type.Univariate
8-
-- import Poly.Exponentiable
9-
import Poly.UvPoly.Basic
5+
import Poly.Type.Univariate
6+
import Poly.UvPoly.Limits
7+
import Poly.UvPoly.UPIso
108
import Poly.MvPoly.Basic

Poly/Bifunctor/Sigma.lean

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ Authors: Wojciech Nawrocki
55
-/
66
import Mathlib.CategoryTheory.Comma.Over.Basic
77
import Mathlib.CategoryTheory.Functor.Currying
8-
9-
import SEq.Tactic.DepRewrite
8+
import Mathlib.Tactic.DepRewrite
109

1110
import Poly.ForMathlib.CategoryTheory.Elements
1211
import Poly.ForMathlib.CategoryTheory.Comma.Over.Basic
@@ -178,5 +177,3 @@ def forget_iso_Sigma (A : 𝒞) :
178177
simp
179178

180179
end CategoryTheory.Over
181-
182-
#min_imports

Poly/ForMathlib/CategoryTheory/Elements.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ theorem map_homMk_id {X : 𝒞} (a : F.obj X) (eq : F.map (𝟙 X) a = a) :
2222
theorem map_homMk_comp {X Y Z : 𝒞} (f : X ⟶ Y) (g : Y ⟶ Z) (a : F.obj X) eq :
2323
G.map (Y := ⟨Z, F.map g (F.map f a)⟩) (Subtype.mk (α := X ⟶ Z) (f ≫ g) eq) =
2424
G.map (X := ⟨X, a⟩) (Y := ⟨Y, F.map f a⟩) (Subtype.mk (α := X ⟶ Y) f rfl) ≫
25-
G.map (Subtype.mk (α := Y ⟶ Z) g (rfl)) := by
25+
G.map (Subtype.mk g rfl) := by
2626
set X : F.Elements := ⟨X, a⟩
2727
set Y : F.Elements := ⟨Y, F.map f a⟩
2828
set Z : F.Elements := ⟨Z, F.map g (F.map f a)⟩

Poly/ForMathlib/CategoryTheory/LocallyCartesianClosed/BeckChevalley.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,12 @@ theorem pullbackMapTwoSquare_app :
315315
aesop
316316

317317
theorem forget_map_pullbackMapTwoSquare :
318-
(forget Z).map ((pullbackMapTwoSquare h f g k sq).app A) =
318+
(Over.forget Z).map ((pullbackMapTwoSquare h f g k sq).app A) =
319319
pullback.map _ _ _ _ (𝟙 _) h k (id_comp _).symm sq.w.symm := by
320320
simp only [forget_map, pullbackMapTwoSquare_app, homMk_left]
321321

322322
theorem isIso_forgetMappullbackMapTwoSquare_of_isPullback (pb : IsPullback h f g k) :
323-
IsIso ((forget Z).map ((pullbackMapTwoSquare h f g k pb.toCommSq).app A)) := by
323+
IsIso ((Over.forget Z).map ((pullbackMapTwoSquare h f g k pb.toCommSq).app A)) := by
324324
rw [forget_map_pullbackMapTwoSquare (sq:= pb.toCommSq)]
325325
let paste_horiz_pb := paste_horiz (IsPullback.of_hasPullback f A.hom) pb
326326
apply pullback.map_isIso_of_pullback_right_of_comm_cube
@@ -333,7 +333,7 @@ instance pullbackMapTwoSquare_of_isPullback_isIso (pb : IsPullback h f g k) :
333333
apply (config := { allowSynthFailures:= true}) NatIso.isIso_of_isIso_app
334334
intro A
335335
have := isIso_forgetMappullbackMapTwoSquare_of_isPullback A pb
336-
exact ReflectsIsomorphisms.reflects (forget Z)
336+
exact ReflectsIsomorphisms.reflects (Over.forget Z)
337337
((pullbackMapTwoSquare h f g k pb.toCommSq).app A)
338338

339339
/-- The pullback-map exchange isomorphism. -/

Poly/ForMathlib/CategoryTheory/Types.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
44
Authors: Wojciech Nawrocki
55
-/
66

7-
import Mathlib.CategoryTheory.Types
7+
import Mathlib.CategoryTheory.Types.Basic
88

99
namespace CategoryTheory.FunctorToTypes
1010

Poly/Type/Univariate.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
44
Authors: Sina Hazratpour
55
-/
66

7-
import Mathlib.CategoryTheory.Types
7+
import Mathlib.CategoryTheory.Types.Basic
88

99
open CategoryTheory Category Functor
1010

Poly/UvPoly/UPIso.lean

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This is equivalent to the type of partial product cones with apex `Γ` over `X`.
2020
def partProdsOver : Cᵒᵖ ⥤ C ⥤ Type v :=
2121
Functor.Sigma
2222
((Over.equivalence_Elements B).functor ⋙ (Over.pullback P.p).op ⋙
23-
(forget E).op ⋙ coyoneda (C := C))
23+
(Over.forget E).op ⋙ coyoneda (C := C))
2424

2525
@[simp]
2626
theorem partProdsOver_obj_map {X Y : C} (Γ : Cᵒᵖ) (f : X ⟶ Y) (x : (P.partProdsOver.obj Γ).obj X) :
@@ -40,7 +40,7 @@ def iso_Sigma (P : UvPoly E B) :
4040
P.functor ⋙₂ coyoneda (C := C) ≅ P.partProdsOver :=
4141
calc
4242
P.functor ⋙₂ coyoneda (C := C) ≅
43-
(star E ⋙ pushforward P.p) ⋙₂ (forget B ⋙₂ coyoneda (C := C)) :=
43+
(star E ⋙ pushforward P.p) ⋙₂ (Over.forget B ⋙₂ coyoneda (C := C)) :=
4444
Iso.refl _
4545

4646
_ ≅ (star E ⋙ pushforward P.p) ⋙₂ Functor.Sigma
@@ -63,7 +63,7 @@ def iso_Sigma (P : UvPoly E B) :
6363
_ ≅ (Over.pullback P.p).op ⋙ star E ⋙₂ coyoneda (C := Over E) :=
6464
Iso.refl _
6565

66-
_ ≅ (Over.pullback P.p).op ⋙ (forget E).op ⋙ coyoneda (C := C) :=
66+
_ ≅ (Over.pullback P.p).op ⋙ (Over.forget E).op ⋙ coyoneda (C := C) :=
6767
isoWhiskerLeft (Over.pullback P.p).op (Adjunction.coyoneda_iso <| forgetAdjStar E).symm;
6868

6969
Functor.Sigma.isoCongrRight (isoWhiskerLeft _ i)
@@ -75,7 +75,6 @@ theorem equiv_app (Γ X : C) (be : Γ ⟶ P.functor.obj X) :
7575
P.equiv Γ X be = (P.iso_Sigma.hom.app <| .op Γ).app X be := by
7676
dsimp [equiv]
7777

78-
-- TODO(WN): Checking the theorem statement takes 5s, and kernel typechecking 10s!
7978
lemma equiv_naturality_left {Δ Γ : C} (σ : Δ ⟶ Γ) (X : C) (be : Γ ⟶ P.functor.obj X) :
8079
P.equiv Δ X (σ ≫ be) =
8180
let p := P.equiv Γ X be
@@ -84,7 +83,7 @@ lemma equiv_naturality_left {Δ Γ : C} (σ : Δ ⟶ Γ) (X : C) (be : Γ ⟶ P.
8483
conv_lhs => rw [equiv_app, coyoneda.comp₂_naturality₂_left, ← equiv_app]
8584
simp
8685

87-
-- TODO(WN): Kernel typechecking takes 10s!
86+
-- NOTE(WN): As of Lean 4.25, kernel typechecking time is down to 1s from 10s?!
8887
lemma equiv_naturality_right {Γ X Y : C} (be : Γ ⟶ P.functor.obj X) (f : X ⟶ Y) :
8988
equiv P Γ Y (be ≫ P.functor.map f) =
9089
let p := equiv P Γ X be

lake-manifest.json

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,11 @@
1111
"inputRev": null,
1212
"inherited": false,
1313
"configFile": "lakefile.lean"},
14-
{"url": "https://github.com/Vtec234/lean4-seq",
15-
"type": "git",
16-
"subDir": null,
17-
"scope": "",
18-
"rev": "7279fc299b10681b00aefe1edd0668766cead87c",
19-
"name": "seq",
20-
"manifestFile": "lake-manifest.json",
21-
"inputRev": null,
22-
"inherited": false,
23-
"configFile": "lakefile.lean"},
2414
{"url": "https://github.com/leanprover-community/mathlib4.git",
2515
"type": "git",
2616
"subDir": null,
2717
"scope": "",
28-
"rev": "839e741740619e20759a7153fd93b5c7d8df13e0",
18+
"rev": "32bd6c7c8ca4a4be1c71bc04df0c9cf929d04818",
2919
"name": "mathlib",
3020
"manifestFile": "lake-manifest.json",
3121
"inputRev": null,
@@ -35,7 +25,7 @@
3525
"type": "git",
3626
"subDir": null,
3727
"scope": "leanprover-community",
38-
"rev": "240eddc1bb31420fbbc57fe5cc579435c2522493",
28+
"rev": "8864a73bf79aad549e34eff972c606343935106d",
3929
"name": "plausible",
4030
"manifestFile": "lake-manifest.json",
4131
"inputRev": "main",
@@ -45,7 +35,7 @@
4535
"type": "git",
4636
"subDir": null,
4737
"scope": "leanprover-community",
48-
"rev": "99657ad92e23804e279f77ea6dbdeebaa1317b98",
38+
"rev": "2ed4ba69b6127de8f5c2af83cccacd3c988b06bf",
4939
"name": "LeanSearchClient",
5040
"manifestFile": "lake-manifest.json",
5141
"inputRev": "main",
@@ -55,7 +45,7 @@
5545
"type": "git",
5646
"subDir": null,
5747
"scope": "leanprover-community",
58-
"rev": "7c02243c07b61d493d7607ede432026781a3e47c",
48+
"rev": "451499ea6e97cee4c8979b507a9af5581a849161",
5949
"name": "importGraph",
6050
"manifestFile": "lake-manifest.json",
6151
"inputRev": "main",
@@ -65,17 +55,17 @@
6555
"type": "git",
6656
"subDir": null,
6757
"scope": "leanprover-community",
68-
"rev": "6e47cc88cfbf1601ab364e9a4de5f33f13401ff8",
58+
"rev": "fb8ed0a85a96e3176f6e94b20d413ea72d92576d",
6959
"name": "proofwidgets",
7060
"manifestFile": "lake-manifest.json",
71-
"inputRev": "v0.0.71",
61+
"inputRev": "v0.0.77",
7262
"inherited": true,
7363
"configFile": "lakefile.lean"},
7464
{"url": "https://github.com/leanprover-community/aesop",
7565
"type": "git",
7666
"subDir": null,
7767
"scope": "leanprover-community",
78-
"rev": "3b779e9d1c73837a3764d516d81f942de391b6f0",
68+
"rev": "1fa48c6a63b4c4cda28be61e1037192776e77ac0",
7969
"name": "aesop",
8070
"manifestFile": "lake-manifest.json",
8171
"inputRev": "master",
@@ -85,7 +75,7 @@
8575
"type": "git",
8676
"subDir": null,
8777
"scope": "leanprover-community",
88-
"rev": "f85ad59c9b60647ef736719c23edd4578f723806",
78+
"rev": "95c2f8afe09d9e49d3cacca667261da04f7f93f7",
8979
"name": "Qq",
9080
"manifestFile": "lake-manifest.json",
9181
"inputRev": "master",
@@ -95,7 +85,7 @@
9585
"type": "git",
9686
"subDir": null,
9787
"scope": "leanprover-community",
98-
"rev": "a9a0cb7672b7134497c9d813e53999c9311f4037",
88+
"rev": "c44068fa1b40041e6df42bd67639b690eb2764ca",
9989
"name": "batteries",
10090
"manifestFile": "lake-manifest.json",
10191
"inputRev": "main",
@@ -105,10 +95,10 @@
10595
"type": "git",
10696
"subDir": null,
10797
"scope": "leanprover",
108-
"rev": "cacb481a1eaa4d7d4530a27b606c60923da21caf",
98+
"rev": "72ae7004d9f0ddb422aec5378204fdd7828c5672",
10999
"name": "Cli",
110100
"manifestFile": "lake-manifest.json",
111-
"inputRev": "main",
101+
"inputRev": "v4.25.0-rc2",
112102
"inherited": true,
113103
"configFile": "lakefile.toml"}],
114104
"name": "Poly",

lakefile.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ package Poly where
1111
require mathlib from git
1212
"https://github.com/leanprover-community/mathlib4.git"
1313

14-
require seq from git "https://github.com/Vtec234/lean4-seq"
15-
1614
@[default_target]
1715
lean_lib Poly where
1816
-- add any library configuration options here
@@ -21,4 +19,4 @@ require checkdecls from git "https://github.com/PatrickMassot/checkdecls.git"
2119

2220
meta if get_config? env = some "dev" then
2321
require «doc-gen4» from git
24-
"https://github.com/leanprover/doc-gen4" @ "v4.23.0-rc2"
22+
"https://github.com/leanprover/doc-gen4" @ "v4.25.0-rc2"

lean-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leanprover/lean4:v4.23.0-rc2
1+
leanprover/lean4:v4.25.0-rc2

0 commit comments

Comments
 (0)