You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-38986: Allow CRT_list() to be called with one argument
As in the title.
Opinion: should we allow `crt()` / `CRT()` to be called with one list
also? Note that currently it is callable with two lists and does the
exact same thing as `CRT_list()`.
Opinion: is returning `Mod(0, 1)` for empty list a sane idea? Problem is
later we may want to implement (pseudocode)
```python
CRT_list([mod(x-1, x^2+1), mod(x+1, x^2-1)])
```
and in that case the correct thing to return is not clear when the list
is empty.
More generally, if it's given elements `x₁ ∈ R/I₁, …, xₙ ∈ R/Iₙ` where
`Iᵢ = xᵢ.parent().defining_ideal()` and all `R = xᵢ.parent()` are the
same for all `i`, it should returns `x ∈
R/(I₁.intersection(I₂).intersection(I₃).….intersection(Iₙ))`. But this
is not well-defined when `values` is empty.
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion. (not aware of one)
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.
URL: #38986
Reported by: user202729
Reviewer(s): Travis Scrimshaw, user202729
0 commit comments