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

[Merged by Bors] - chore(ring_theory): split localization.lean and dedekind_domain.lean #12206

Closed
wants to merge 6 commits into from

Conversation

Vierkantor
Copy link
Collaborator

These files were rather long and had hundreds-deep dependency graphs. I split them into smaller files with less imports, so that they are easier to build and modify.

Proof nothing was lost:

$ cat src/ring_theory/localization/*.lean | sort | comm -23 <(sort src/ring_theory/localization.lean) - | grep -E 'lemma|theorem|def|instance|class'
$ cat src/ring_theory/dedekind_domain/*.lean | sort | comm -23 <(sort src/ring_theory/dedekind_domain.lean) - | grep -E 'lemma|theorem|def|instance|class'
giving three equivalent definitions (TODO: and shows that they are equivalent).

Zulip thread: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Splitting.20.60localization.2Elean.60.20and.20.60dedekind_domain.2Elean


Open in Gitpod

All the lines in `localization.lean` are nearly identically available in the other files:

```bash
$ src/ring_theory/localization/*.lean | sort | comm -23 <(sort src/ring_theory/localization.lean) -
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston
end
is_domain_localization (le_non_zero_divisors_of_no_zero_divisors
is_domain_of_le_non_zero_divisors K (le_refl (non_zero_divisors A))
 * `is_localization.is_integer` is a predicate stating that `x : S` is in the image of `R`
open_locale big_operators
section
variables (A K) (C : Type*)
variables (A) [unique_factorization_monoid A]
variables (K : Type*)
variables (M N)
variables (M) {S}
variables (R)
variables (R) {A : Type*} [comm_ring A] [is_domain A]
variables {R M} (S) {K : Type*}
variables {Rₘ Sₘ}
variables (S Q M)
```
@Vierkantor Vierkantor added awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. labels Feb 22, 2022
@fpvandoorn
Copy link
Member

This clearly shouldn't wait in the queue too long. I haven't reviewed it carefully, but here is the
bors d+

@bors
Copy link

bors bot commented Feb 22, 2022

✌️ Vierkantor can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. labels Feb 22, 2022
@Vierkantor
Copy link
Collaborator Author

Build just passed, so I'll go ahead and

bors merge

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Feb 22, 2022
bors bot pushed a commit that referenced this pull request Feb 22, 2022
…an` (#12206)

These files were rather long and had hundreds-deep dependency graphs. I split them into smaller files with less imports, so that they are easier to build and modify.

Proof nothing was lost:
```bash
$ cat src/ring_theory/localization/*.lean | sort | comm -23 <(sort src/ring_theory/localization.lean) - | grep -E 'lemma|theorem|def|instance|class'
$ cat src/ring_theory/dedekind_domain/*.lean | sort | comm -23 <(sort src/ring_theory/dedekind_domain.lean) - | grep -E 'lemma|theorem|def|instance|class'
giving three equivalent definitions (TODO: and shows that they are equivalent).
```

Zulip thread: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Splitting.20.60localization.2Elean.60.20and.20.60dedekind_domain.2Elean
@bors
Copy link

bors bot commented Feb 22, 2022

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Feb 22, 2022
…an` (#12206)

These files were rather long and had hundreds-deep dependency graphs. I split them into smaller files with less imports, so that they are easier to build and modify.

Proof nothing was lost:
```bash
$ cat src/ring_theory/localization/*.lean | sort | comm -23 <(sort src/ring_theory/localization.lean) - | grep -E 'lemma|theorem|def|instance|class'
$ cat src/ring_theory/dedekind_domain/*.lean | sort | comm -23 <(sort src/ring_theory/dedekind_domain.lean) - | grep -E 'lemma|theorem|def|instance|class'
giving three equivalent definitions (TODO: and shows that they are equivalent).
```

Zulip thread: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Splitting.20.60localization.2Elean.60.20and.20.60dedekind_domain.2Elean
@bors
Copy link

bors bot commented Feb 22, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(ring_theory): split localization.lean and dedekind_domain.lean [Merged by Bors] - chore(ring_theory): split localization.lean and dedekind_domain.lean Feb 22, 2022
@bors bors bot closed this Feb 22, 2022
@bors bors bot deleted the split-localization-dedekind branch February 22, 2022 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions. ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants