Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle symbolic degree dim-k when canonicalizing Wedge products #4

Open
duetosymmetry opened this issue May 16, 2019 · 1 comment
Open

Comments

@duetosymmetry
Copy link
Member

As reported by Alejandro Jiménez Cano in this thread. Haven't had a chance to think about how to allow this.

@wtbgagoa
Copy link
Member

This is an issue about the way xTensor deals with graded algebras. Apparently, it is not designed to work with symbolic grades. For the example of the thread, the following workaround seems to solve the problem (I didn't fully tested it yet) .

(* Definition of forms with symbolic grade *)
xAct`xTensor`Private`checkgrade[Wedge -> dimM - 1] := Null
DefDiffForm[dfC[], M, dimM - 1, PrintAs -> "C"]  
(* Canonicalization of expressions containing objects with symbolic grade *)
xAct`xTensor`Private`ToObject[
  xAct`xTensor`Private`AddedSign[(-1)^(dimM), expr_]] := 
 MapAt[xAct`xTensor`Private`VerbatimProduct[Times][(-1)^(dimM), #1] &,
   xAct`xTensor`Private`ToObject[expr], 1]
(* After executing the previous code the following gives the expected result *)
Hodge[metricg][dfA0[a]]\[Wedge]dfB1[b]
% // ToCanonical

I will post a comment about this in the xAct group after doing some more tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants