Are there plans to try to reduce the inner inconsistencies in sage?

123 views
Skip to first unread message

Georgi Guninski

unread,
Jan 3, 2025, 3:01:05 AM1/3/25
to sage-...@googlegroups.com
In sage 10.4, I can prove $-1 = -oo$ and I am concerned about citing
CAS with this inconsistency.

Are there plans to try to reduce the inner inconsistencies in sage?

sage: Kx.<x>=QQ[];f=Kx(0);f.degree()
-1
sage: gp(f).poldegree()
-oo

Dima Pasechnik

unread,
Jan 3, 2025, 10:07:10 AM1/3/25
to sage-...@googlegroups.com
All you see here is gp taking a less standard choice of deg(0).

It's hardly an inner Sage's inconsistency.


>

William Stein

unread,
Jan 3, 2025, 10:11:36 AM1/3/25
to sage-...@googlegroups.com
Georgi,

Also, you can browse all of the currently 5006 open "plans" for Sage here:


 -- William

--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sage-devel/3CD656F5-63F3-4650-8967-CC792EDD8F7B%40gmail.com.


--

kcrisman

unread,
Jan 4, 2025, 1:23:47 PM1/4/25
to sage-devel
>
>Are there plans to try to reduce the inner inconsistencies in sage?
>
>sage: Kx.<x>=QQ[];f=Kx(0);f.degree()
>-1
>sage: gp(f).poldegree()
>-oo


All you see here is gp taking a less standard choice of deg(0). 

To expand slightly, 

sage: Kx.<x>=QQ[];f=Kx(0)
sage: type(gp(f))

yields

<class 'sage.interfaces.gp.GpElement'>

which isn't a Sage element.  Unfortunately, to alert the user to this every time would be very noisy; it probably suffices to remind oneself that using maxima() or gp() or the like does not give one Sage elements, per se, and sometimes behavior will be different.

That doesn't mean we don't have inner inconsistencies, and likely some are in the list of open tickets William pointed to!  We welcome work on them.  Just that this particular thing isn't an example thereof.
Reply all
Reply to author
Forward
0 new messages