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

sage.combinat.root_system: Modularization fixes, # needs #36136

Merged
merged 39 commits into from
Sep 1, 2023

Conversation

mkoeppe
Copy link
Member

@mkoeppe mkoeppe commented Aug 25, 2023

Most of the package sage.combinat.root_system is intended to be shipped by the distribution sagemath-modules, and much of the functionality can be tested in the modularized setting.

  • Some functionality depends on other distributions, in particular sagemath-graphs (via Dynkin diagrams). The doctests are marked as # needs sage.graphs.
  • Other doctests that depend on combinatorics functionality such as Tableaux are marked # needs sage.combinat.
  • Use of Weyl and Coxeter groups is marked # needs sage.libs.gap, # needs sage.rings.number_field, # needs sage.symbolic, or # needs sage.groups.
  • Some imports are changed to lazy_import; in some places, the changed code uses the fact that isinstance(x, cls) gives False for unresolved lazy import cls.
  • Some _test_... and some_elements methods are changed so that ImportErrors do not lead to test failures.
  • The hardcoded dependence of CartanMatrix on Matrix_integer_sparse (which has complicated compile-time dependencies) is relaxed.
  • doctest cosmetics: Breaking long lines in doctest input and output so that it can be read in the HTML documentation without (or with less) horizontal scrolling

📝 Checklist

  • The title is concise, informative, and self-explanatory.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation accordingly.

⌛ Dependencies

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

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

a few remarks

src/sage/combinat/root_system/cartan_type.py Outdated Show resolved Hide resolved
src/sage/combinat/root_system/cartan_type.py Outdated Show resolved Hide resolved
sage: import sage.combinat.sf.ns_macdonald as NS
sage: EE([0,0])
1
sage: NS.E([0,0])
sage: NS.E([0,0]) # needs sage.groups
Copy link
Contributor

Choose a reason for hiding this comment

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

could use block scope for sage.groups too

Copy link
Member Author

Choose a reason for hiding this comment

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

Here doctests that need sage.groups are alternating with doctests that don't; this information would be lost with a block tag

0

sage: E = NonSymmetricMacdonaldPolynomials(["BC",3,2], q=q, q1=t^2, q2=-1)
sage: omega=E.keys().fundamental_weights()
sage: mu = -3*omega[1] + 3*omega[2] - omega[3]; mu
(-1, 2, -1)
sage: expected = (t-1)^2*(t+1)^2*(3*q^2+q^4+1+t^2*q^4+q^2*t^2-3*t^4*q^2-5*t^6*q^4+2*t^8*q^4-4*t^8*q^6-q^8*t^10+2*t^10*q^6-2*q^8*t^12+t^14*q^8-t^14*q^10+q^10*t^16+q^8*t^16+q^10*t^18+t^18*q^12)*x2*x1/((q^3*t^5+1)*(q^3*t^5-1)*(t*q-1)*(t*q+1)*(t^3*q^2+1)*(t^3*q^2-1)*(t^2*q-1)*(t^2*q+1))+(t-1)^2*(t+1)^2*(q^2*t^6+2*t^6*q^4-q^4*t^4+t^4*q^2-q^2*t^2+t^2-2-q^2)*q^2*x1/((t^3*q^2-1)*(t^3*q^2+1)*(t*q+1)*(t*q-1)*(q^3*t^5-1)*(q^3*t^5+1)*x2)+(t-1)^2*(t+1)^2*(-q^2-1+t^4*q^2-q^4*t^4+2*t^6*q^4)*x1^2/((t^3*q^2-1)*(t^3*q^2+1)*(t*q+1)*(t*q-1)*(q^3*t^5-1)*(q^3*t^5+1))+(t+1)*(t-1)*x2^2*x3/((t*q-1)*(t*q+1)*x1)+(t-1)^2*(t+1)^2*(3*q^2+q^4+2+t^2*q^4+2*q^2*t^2-4*t^4*q^2+q^4*t^4-6*t^6*q^4+t^8*q^4-4*t^8*q^6-q^8*t^10+t^10*q^6-3*q^8*t^12-2*t^14*q^10+2*t^14*q^8+2*q^10*t^16+q^8*t^16+t^18*q^12+2*q^10*t^18)*q*x2/((q^3*t^5+1)*(q^3*t^5-1)*(t*q-1)*(t*q+1)*(t^3*q^2+1)*(t^3*q^2-1)*(t^2*q-1)*(t^2*q+1))+(t-1)^2*(t+1)^2*(1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1)^2*(t+1)^2*q^4/((t*q+1)*(t*q-1)*(q^3*t^5+1)*(q^3*t^5-1)*x1*x2)+(t-1)^2*(t+1)^2*(-q^2-1-q^2*t^2-q^4*t^4+t^6*q^4+t^10*q^6+q^8*t^12+t^14*q^10)*q*x3*x2/((t^3*q^2-1)*(t^3*q^2+1)*(t*q+1)*(t*q-1)*(q^3*t^5-1)*(q^3*t^5+1)*x1) # needs sage.symbolic
Copy link
Contributor

Choose a reason for hiding this comment

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

Waouh, this one is long.

src/sage/combinat/root_system/root_space.py Outdated Show resolved Hide resolved
src/sage/combinat/root_system/root_space.py Outdated Show resolved Hide resolved
src/sage/combinat/root_system/type_B_affine.py Outdated Show resolved Hide resolved
Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

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

LGTM.

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 27, 2023

Thank you!

@vbraun
Copy link
Member

vbraun commented Aug 29, 2023

pdf docs fail

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 29, 2023

Sorry, fixed now

@github-actions
Copy link

Documentation preview for this PR (built with commit f72f263; changes) is ready! 🎉

@vbraun vbraun merged commit d52db9f into sagemath:develop Sep 1, 2023
7 of 10 checks passed
@mkoeppe mkoeppe added this to the sage-10.2 milestone Sep 1, 2023
@mkoeppe mkoeppe deleted the needs_for_sage_combinat_root_system branch September 1, 2023 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants