Re: removing the old assumption system - help request
Ondrej Certik <
ondrej@...>
2009-11-01 17:27:55 GMT
On Sun, Nov 1, 2009 at 9:16 AM, Ronan Lamy <ronan.lamy@...> wrote:
>
> Le samedi 31 octobre 2009 à 21:50 -0700, Ondrej Certik a écrit :
>> On Sat, Oct 31, 2009 at 9:22 PM, Ronan Lamy <ronan.lamy@...> wrote:
>> >
>> > Le jeudi 29 octobre 2009 à 18:12 -0700, Ondrej Certik a écrit :
>> >> On Thu, Oct 29, 2009 at 5:49 PM, Aaron S. Meurer
<asmeurer@...> wrote:
>> >> > Is this just a matter or replacing .is_real type assumptions with ask
>> >> > (x, Q.Real), or are there bugs that need working out?
>> >>
>> >> I think it's just this.
>> >
>> > No, I think it's more complicated than that and that a significant
>> > amount of nontrivial work is needed. For example, in a_removal (282bb5),
>> > Or(Assume(x, 'a'), Assume(x, 'b')) raises (that's the first failure in
>> > bin/test) because Or sorts its arguments. In master, this works thanks
>> > to the following bit of nonsense:
>> > (Assume(x, 'b') - Assume(x, 'a')).is_negative == False
>> >
>> > I don't know what is the best way to proceed but I think that attempting
>> > to solve the problem by directly removing the old assumptions will fail.
>> > IMHO, the only way is to refactor the core and the logic modules first.
>>
>> I think the only way to proceed is to take Fabian's work, and make it
>> usable, so that all tests pass. That's the very first step, unless we
>> have this starting point, we can't get nowhere. After that, we should
>> just remove stuff that can be removed and replace it with the new
>> assumptions system. If something has to be refactored, then it should
(Continue reading)