|
1 | 1 |
|
2 | | -{m,n,p}::Indices(spacetime, position=fixed); |
3 | | -{a,b,c,d,e,f,g,h}::Indices(spinor, position=fixed); |
4 | | -\sigma^{p}::ImplicitIndex(\sigma^{p a}_{b}); |
5 | | -\psi::ImplicitIndex(\psi_{a}); |
6 | | -\chi::ImplicitIndex(\chi_{a}); |
7 | | -\bpsi::ImplicitIndex(\bpsi^{a}); |
8 | | -\bchi::ImplicitIndex(\bchi^{a}); |
| 2 | +def test01(): |
| 3 | + __cdbkernel__=create_scope() |
| 4 | + {m,n,p}::Indices(spacetime, position=fixed); |
| 5 | + {a,b,c,d,e,f,g,h}::Indices(spinor, position=fixed); |
| 6 | + \sigma^{p}::ImplicitIndex(\sigma^{p a}_{b}); |
| 7 | + \psi::ImplicitIndex(\psi_{a}); |
| 8 | + \chi::ImplicitIndex(\chi^{a}); |
| 9 | + ex:= \psi \sigma^{m} \sigma^{n} \chi \lambda^{a} + \lambda_{b} \chi^{b} T^{m n}\chi^{a}; |
| 10 | + explicit_indices(_) |
| 11 | + tst:= \psi_{c} \sigma^{m c}_{d} \sigma^{n d}_{e} \chi^{e} \lambda^{a} + \lambda_{b} \chi^{b} T^{m n}\chi^{a} - @(ex); |
| 12 | + assert(tst==0) |
| 13 | + print("Test 01a passed") |
| 14 | + ex:= \psi \sigma^{m} \chi; |
| 15 | + explicit_indices(_) |
| 16 | + tst:= \psi_{a} \sigma^{m a}_{b} \chi^{b} - @(ex); |
| 17 | + assert(tst==0) |
| 18 | + print("Test 01b passed") |
9 | 19 |
|
10 | | - |
11 | | -ex:= \psi \sigma^{m} \sigma^{n} \chi \lambda^{a} + \lambda_{b} \chi^{b} T^{m n}\chi^{a}; |
12 | | -explicit_indices(_); |
13 | | - |
14 | | -ex:= \psi \sigma^{m} \chi + \chi \sigma^{m} \chi; |
15 | | -explicit_indices(_); |
| 20 | +test01() |
16 | 21 |
|
0 commit comments