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

Add Frobenius elements #18

Merged
merged 12 commits into from
May 6, 2024
Merged

Add Frobenius elements #18

merged 12 commits into from
May 6, 2024

Conversation

jouglasheen
Copy link
Contributor

@jouglasheen jouglasheen commented Mar 21, 2024

Frobenius elements

@kbuzzard kbuzzard changed the title Crazy!!!!!!!!!!!!!!!!!!!! Add Frobenius elements Apr 30, 2024
@kbuzzard
Copy link
Collaborator

kbuzzard commented May 2, 2024

@jjaassoonn @jouglasheen can you clarify why there are two files here? My instinct is to merge this PR (but ideally with the file in for_mathlib) and then refactor it until it's appropriate to go into mathlib.

@jouglasheen
Copy link
Contributor Author

@kbuzzard @jjaassoonn CrazyFrobenius.lean is an obsolete version of ExistsFrobenius.lean. We can delete CrazyFrobenius.lean.

@kbuzzard
Copy link
Collaborator

kbuzzard commented May 3, 2024

Can you delete it and bump to current main? Or is this hard?

@jouglasheen
Copy link
Contributor Author

I tried to delete the file by right-clicking this:
image
but apparently that's not the way to do it. I don't know how to delete it or bump to the main branch.

to an element in the orbit of `Q` under the action of the Galois group `L ≃ₐ[K] L`.
We will consider the orbit to be a 'Fintype', as used in the statement of
the Chinese Remainder Theorem. -/
noncomputable def f :
Copy link

Choose a reason for hiding this comment

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

@kim-em
Copy link
Contributor

kim-em commented May 6, 2024

I tried to delete the file by right-clicking this:

@jouglasheen, to delete the file, do it on the command line: git rm FLT/CrazyFrobenius.lean and then commit and push as usual.

@kim-em
Copy link
Contributor

kim-em commented May 6, 2024

@jouglasheen:

I don't know how to ... bump to the main branch.

You can just do:

git checkout CrazyFrobenius
git fetch
git merge origin/main

If the merge works, then just git push. Otherwise, learn how to deal with git conflicts. :-)

[IsDedekindDomain A] [IsDedekindDomain B]

/-- re-definition of `Ideal B` in terms of 'AKLB setup'. -/
@[nolint unusedArguments] abbrev Ideal' (A K L B : Type*) [CommRing A]
Copy link
Contributor

Choose a reason for hiding this comment

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

Naming things with ' is rarely a good idea. Can you think up a name that gives the human a hint? Even AKLB_Ideal?

Copy link
Contributor

Choose a reason for hiding this comment

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

Alternatively can you make it private??

Copy link
Collaborator

Choose a reason for hiding this comment

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

The file compiles fine with

@[nolint unusedArguments] abbrev Ideal' (A K L B : Type*) [CommSemiring A]
  [CommSemiring B] [Algebra A B] [CommSemiring K] [Semiring L]
  [Algebra A K] [Algebra B L]
  [Algebra K L] [Algebra A L] [IsScalarTower A B L]
  [IsScalarTower A K L] := Ideal B

which confirms that Ideal' B only needs to know "it's in an A K L B set-up" which might be code for a commutative square (with the diagonal filled in) in the same way that three Algebra instances and an IsScalarTower is code for a commutative triangle.

erw[map_prod]
simp only [map_sub, coe_mapRingHom, map_X, map_C]

lemma quotient_F_is_root_iff_is_conjugate (x : (B ⧸ Q)) :
Copy link

Choose a reason for hiding this comment

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

It seems to me that many lemmas and definitions until here would apply to any element in B instead of the carefully chosen β. It may be worth generalizing the construction of F, etc, in that generality.

@jouglasheen
Copy link
Contributor Author

@semorrison @joelriou Thank you very much for the reviews and help with github. I have succeeded in deleting the obsolete file and I think I have succeeded in merging to the main branch.

Please, excuse some delay in responding to your reviews (I am currently studying for exams).

Copy link
Collaborator

@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.

Thanks!

[IsDedekindDomain A] [IsDedekindDomain B]

/-- re-definition of `Ideal B` in terms of 'AKLB setup'. -/
@[nolint unusedArguments] abbrev Ideal' (A K L B : Type*) [CommRing A]
Copy link
Collaborator

Choose a reason for hiding this comment

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

The file compiles fine with

@[nolint unusedArguments] abbrev Ideal' (A K L B : Type*) [CommSemiring A]
  [CommSemiring B] [Algebra A B] [CommSemiring K] [Semiring L]
  [Algebra A K] [Algebra B L]
  [Algebra K L] [Algebra A L] [IsScalarTower A B L]
  [IsScalarTower A K L] := Ideal B

which confirms that Ideal' B only needs to know "it's in an A K L B set-up" which might be code for a commutative square (with the diagonal filled in) in the same way that three Algebra instances and an IsScalarTower is code for a commutative triangle.

@kbuzzard kbuzzard merged commit 1fcff2a into main May 6, 2024
1 check passed
@kbuzzard kbuzzard deleted the CrazyFrobenius branch May 6, 2024 18:15
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.

5 participants