Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(perfectoid_space): beautification #34

Merged
merged 22 commits into from
May 3, 2019

Conversation

jcommelin
Copy link
Member

No description provided.

Copy link
Member

@PatrickMassot PatrickMassot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Johan! I left some comments about style and organization.

src/for_mathlib/sheaves/presheaf_of_rings.lean Outdated Show resolved Hide resolved
src/Spa.lean Outdated Show resolved Hide resolved
src/Spa.lean Outdated Show resolved Hide resolved
src/Spa.lean Outdated Show resolved Hide resolved

namespace sheaf_of_topological_rings

instance topological_space {X : Type*} [topological_space X] (𝒪X : sheaf_of_topological_rings X)
instance topological_space {X : Type u} [topological_space X] (𝒪X : sheaf_of_topological_rings X)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why those changes from Type* to Type u? Is it faster to elaborate?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know anymore... but I guess it doesn't hurt.

src/adic_space.lean Outdated Show resolved Hide resolved
src/for_mathlib/sheaves/presheaf.lean Outdated Show resolved Hide resolved
src/for_mathlib/sheaves/presheaf_of_topological_rings.lean Outdated Show resolved Hide resolved
src/perfectoid_space.lean Outdated Show resolved Hide resolved
@@ -76,16 +80,16 @@ A morphism in 𝒞 is a map of top spaces, an f-map of presheaves, such that the
map on the stalks pulls one valuation back to the other.
-/

instance presheaf_of_rings.comm_ring {X : Type*} [topological_space X]
instance presheaf_of_rings.comm_ring {X : Type u} [topological_space X]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is all this in adic_space.lean? I feel like this file should be split a lot

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do that in a follow-up PR.

Copy link
Member

@kbuzzard kbuzzard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the project again after the break I had this week, I feel like I want to add a bunch of comments about what is going on in some of the files. Maybe I should try and find the time to do this before my two weeks of marking hell starts..

noncomputable def 𝒞.Spa (A : Huber_pair) : 𝒞 (Spa A) :=
{ F := Spa.presheaf_of_topological_rings A,
valuation := λ x, Spv.mk (Spa.presheaf.stalk_valuation x) }
noncomputable def 𝒞.Spa (A : Huber_pair) : 𝒞 (spa A) :=
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. I just needed a name and McC was short.

(F : presheaf_of_topological_rings X) (U : opens X) : comm_ring (F U) :=
F.Fring U

structure presheaf_of_rings.f_map
{X : Type*} [topological_space X] {Y : Type*} [topological_space Y]
{X : Type u} [topological_space X] {Y : Type u} [topological_space Y]
(F : presheaf_of_rings X) (G : presheaf_of_rings Y) :=
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this is an actual change in our code right? We're going down to one universe. Was this forced upon us by other choices? My instinct would be to use one universe when it was convenient but not worry otherwise. I am still unclear about all of this. From a mathematical perspective it still seems absurd to come up with two topological spaces in different universes -- but these CS people know a whole lot more about writing libraries than us.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aah, right. This change was made because we were surprised that Huber_pair depended on three universe variables 😃

src/adic_space.lean Outdated Show resolved Hide resolved
src/adic_space.lean Outdated Show resolved Hide resolved
src/adic_space.lean Outdated Show resolved Hide resolved
and (an equivalence class of) valuations on the stalks (which are required to be local rings).
Wedhorn calls this category `𝒱`.-/
structure CLVRS :=
(space : Type) -- change this to (Type u) to enable universes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think computer scientists would be equally unhappy with that name though. Should we call it something long and stupid, or maybe even comp_loc_val_ringed_space or something?

@@ -14,42 +14,42 @@ import for_mathlib.sheaves.stalk_of_rings -- for defining valuations on stalks

variable {A : Huber_pair}

open topological_space valuation Spv Spa
open topological_space valuation Spv spa

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the actual name of this file need to be changed? I want to call it "A<T/s>" because that's what it's about.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do that in another PR

@PatrickMassot PatrickMassot merged commit 9384997 into master May 3, 2019
@PatrickMassot PatrickMassot deleted the PreValuedRingedSpace branch May 3, 2019 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants