[sage-devel] Re: [sage-combinat-devel] how to cure TestSuite failures involving Homs

2014-03-18 Thread Mark Shimozono
Nicolas, > This __main__ trick is only for when you define python > functions "interactively" (e.g. in doctests), and you want to fake > them being picklable for TestSuite's pickling tests. Yes, but there are cases in which it is desirable for the code to create pure "orphan" functions, say, to h

[sage-devel] Re: [sage-combinat-devel] how to cure TestSuite failures involving Homs

2014-03-17 Thread Mark Shimozono
Nicolas, There needs to be some serious thought about computability in Hom categories.. In what categories can one automatically compute the inverse of an invertible map, tell whether a morphism is zero, optimize composition of morphisms, etc. The TestSuites should be smart enough to automatica

[sage-devel] Re: [sage-combinat-devel] how to cure TestSuite failures involving Homs

2014-03-17 Thread Mark Shimozono
Hi Nicolas! > > sage: f._test_pickling() > > Traceback (most recent call last): > > ... > > PicklingError: Can't pickle : attribute lookup > > __builtin__.function failed > > For this one, you can fake ``on_basis'' to be picklable using: > > sage: import __ma

[sage-devel] how to cure TestSuite failures involving Homs

2014-03-16 Thread Mark Shimozono
Is there an easy way to get rid of the following TestSuite failures? Or does it require an overhaul of how sage handles morphisms? I understand why the first two tests fail. --Mark sage: F=CombinatorialFreeModule(ZZ,[1]) sage: def on_basis(x): ... return x sa

Re: [sage-combinat-devel] Re: [sage-devel] Re: Call for vote about ticket #10963: axioms and more functorial constructions

2014-03-11 Thread Mark Shimozono
Paul, > Instead, I would advocate using a declarative domain specific language built > for semi-formalizing > mathematics The appeal of this paradigm is evident. It addresses a fundamentally important issue: how to structure the development process to encourage the code to reflect the mathemati

[sage-devel] problem building 5.2 from source

2012-08-08 Thread Mark Shimozono
Tried to build version 5.2 from source. The make failed. Computer: Fujitsu Lifebook T900 Operating System: uname -a returns 3.5.0-2.fc17.x86_64 #1 SMP Mon Jul 30 14:48:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux (part of the error log follows) --

[sage-devel] Re: More bugs in Laurent polynomials?

2012-03-31 Thread Mark Shimozono
Simon, Many thanks for your patient answers. > > However if all coercion maps involved are injective then > > can't I expect == to be preserved? > > Why do you think that all coercions are injective? The coercion from ZZ > to GF(2) is certainly not injective. I meant not that all coercions were

[sage-devel] Re: More bugs in Laurent polynomials?

2012-03-30 Thread Mark Shimozono
Thanks, Simon, for the explanation of coercions. > > I encountered some weird behavior in LaurentPolynomialRing, such as > > the nontransitivity of the '==' relation. > > Note that it is virtually impossible to have a transitive ==-relation > that at the same time provides certain mathematical fea

[sage-devel] More bugs in Laurent polynomials?

2012-03-29 Thread Mark Shimozono
Bug report: I encountered some weird behavior in LaurentPolynomialRing, such as the nontransitivity of the '==' relation. Also, factoring in the fraction field caused an error. See below. Feature request: I would like elements of the fraction field F of a Laurent polynomial ring S (say with base

[sage-devel] creating custom subclasses of polynomial rings

2012-03-28 Thread Mark Shimozono
Suppose I want to create a custom subclass of a polynomial ring. >From which class should it inherit? It should not care so much about the eventual base ring. I'm a sage development newbie. Where can I read about the class hierarchy for sage polynomials? I'm a little confused at the organizational

[sage-devel] consistent trouble building sage from source

2012-03-13 Thread Mark Shimozono
Sorry to be spamming everyone. I have had very consistent trouble building sage from source: versions 4.8, 5.0beta7, and 5.0beta8 all failed to build in the same kind of way. I can build and run the prepackaged version of sage-4.8-linux-64bit-fedora_release_15_lovelock_-x86_64-Linux Any help wi