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
{{ message }}
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
This doesn't work, because the translation to python forgets to promote 2 and 0 to sage polynomial objects
import tactic.polyrith
import algebra.char_p.basic
example {R} [comm_ring R] [char_p R 2] (x : R) : x + x = 0 :=
beginhave : (2 : R) = 0,
{ convert char_p.cast_eq_zero R 2, norm_cast },
polyrith,
end
polyrith failed to retrieve a solution from Sage! TypeError: object of type 'Ideal_pid' has no len()
state:
R : Type ?,
_inst_1 : comm_ring R,
_inst_2 : char_p R 2,
x : R,
this : 2 = 0
⊢ x + x = 0
Adding a silly *x term resolves the issue
import tactic.polyrith
import algebra.char_p.basic
example {R} [comm_ring R] [char_p R 2] (x : R) : x + x = 0 :=
beginhave : (2 : R) = 0*x,
{ simp, convert char_p.cast_eq_zero R 2, norm_cast },
polyrith,
end
The text was updated successfully, but these errors were encountered:
This doesn't work, because the translation to python forgets to promote
2
and0
to sage polynomial objectsAdding a silly
*x
term resolves the issueThe text was updated successfully, but these errors were encountered: