Skip to content

Pynac comparison functions do not provide a SWO #9880

@jpflori

Description

@jpflori

Here is a short example found by Burcin and reproducing the bug:

b = [var('b_%s'%i) for i in range(4)]

precomp = (2^b_2 + 2)*(2^b_1 + 2^(-b_1) + 2^b_1*2^b_0 - 2^b_1*2^(-b_0)
- 2^(-b_1)*2^b_0 - 2^(-b_1)*2^(-b_0) + 2^b_0 + 2^(-b_0) - 9) + (2^b_1 +
2^(-b_1) + 2^b_1*2^b_0 - 2^b_1*2^(-b_0) - 2^(-b_1)*2^b_0 -
2^(-b_1)*2^(-b_0) + 2^b_0 + 2^(-b_0) - 9)/2^b_2

repl_dict = {b_0: b_0, b_3: b_1, b_2: b_3, b_1: b_2}
P = precomp.substitute(repl_dict)
P.expand() 

This is already being discussed here: http://groups.google.com/group/sage-support/browse_thread/thread/7c85f02c76012722

The following patches are for the Sage library to enable access to the PyNaC order and randomly test that it is a SWO:

Install the package from here: http://boxen.math.washington.edu/home/jpflori/spkg/pynac-0.3.0.spkg

Then apply

  1. attachment: trac_9880_pynac_order-sage_5_10_beta2.patch
  2. attachment: trac_9880_randomized_testing-sage_5_10_beta2.patch
  3. attachment: trac_9880-doctest_for_9046-sage_5_10_beta2.patch
  4. attachment: trac_9880-add_doctests-sage_5_10_beta2.patch
  5. attachment: trac_9880-fix_doctests-sage_5_10_beta2.take3.patch
  6. attachment: trac_9880-review.patch

Depends on #13213
Depends on #9890
Depends on #14550

CC: @kcrisman @zimmermann6

Component: symbolics

Keywords: pynac spkg

Author: Burcin Erocal, Jean-Pierre Flori, Volker Braun

Reviewer: Burcin Erocal, Jean-Pierre Flori

Merged: sage-5.11.beta0

Issue created by migration from https://trac.sagemath.org/ticket/9880

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions