id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,merged,author,reviewer,upstream,work_issues,branch,commit,dependencies,stopgaps
18695,propagate the variable domain to the assumptions database,rws,,"While this works as expected:
{{{
sage: n = var('n')
sage: assume(n, 'integer')
sage: solve([n^2 == 3],n)
[]
}}}
this does not:
{{{
sage: forget()
sage: n = var('n', domain='integer')
sage: solve([n^2 == 3],n)
[n == -sqrt(3), n == sqrt(3)]
}}}
So, either `solve` should also look at the variable domain, or better, let's propagate domain settings to the assumption list.
Also:
{{{
sage: _ = var('n', domain='integer')
sage: n.is_integer()
False
}}}
Creating a non-complex var will invoke Maxima with this. I think this is acceptable for now. Alternatively, examine if assumptions can be done lazily, i.e., before any call to Maxima.",defect,closed,major,sage-6.9,symbolics,fixed,,,,Ralf Stephan,Vincent Delecroix,N/A,,c142a5f27a64f5f371d678d33c5facc746d8106b,c142a5f27a64f5f371d678d33c5facc746d8106b,#18877,