|
|
|
last edited 4 years ago by Bill Page |
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ||
|
Editor: Bill Page
Time: 2014/05/21 19:05:42 GMT+0 |
||
| Note: nilpotent from idempotent | ||
added: pq*pq changed: -\end{axiom} trace(pq) \end{axiom}
Obs(3) is a 9 dimensional Frobenius Algrebra
(1) -> )set output abbreviate on
V := OrderedVariableList [p,q, r]
| (1) |
M := FreeMonoid V
| (2) |
gens:List M := enumerate()$V
| (3) |
divisible := Record(lm: M,rm: M)
| (4) |
leftDiv(k:Union(divisible,"failed")):M == (k::divisible).lm
Function declaration leftDiv : Union(Record(lm: FMONOID(OVAR([p,q, r] )), rm: FMONOID(OVAR([p, q, r]))), "failed") -> FMONOID(OVAR([p, q, r]) ) has been added to workspace.
rightDiv(k:Union(divisible,"failed")):M == (k::divisible).rm
Function declaration rightDiv : Union(Record(lm: FMONOID(OVAR([p,q, r ])), rm: FMONOID(OVAR([p, q, r]))), "failed") -> FMONOID(OVAR([p, q, r] )) has been added to workspace.
K := FRAC POLY INT
| (5) |
MK := FreeModule(K,M)
| (6) |
coeff(x:MK):K == leadingCoefficient(x)
Function declaration coeff : FM(FRAC(POLY(INT)),FMONOID(OVAR([p, q, r] ))) -> FRAC(POLY(INT)) has been added to workspace.
monomial(x:MK):M == leadingMonomial(x)
Function declaration monomial : FM(FRAC(POLY(INT)),FMONOID(OVAR([p, q , r]))) -> FMONOID(OVAR([p, q, r])) has been added to workspace.
m(x:M):K == subscript('m, [retract(x)::Symbol])
Function declaration m : FMONOID(OVAR([p, q, r])) -> FRAC(POLY(INT))
has been added to workspace.
γ(x:M,y:M):K == subscript('γ, [concat(string retract x, string retract y)::Symbol])
Function declaration γ : (FMONOID(OVAR([p,q, r])), FMONOID(OVAR([p, q, r]))) -> FRAC(POLY(INT)) has been added to workspace.
Basis
basis := concat(gens,concat [[j*i for i in gens | i~=j] for j in gens])
| (7) |
Idempotent
rule1(ij:MK):MK ==
for k in gens repeat
kk := divide(monomial(ij), k*k)
if kk case divisible then
ij:=(coeff(ij) * m(k)*γ(k, k)) * (leftDiv(kk) * k * rightDiv(kk))
return(ij)
Function declaration rule1 : FM(FRAC(POLY(INT)), FMONOID(OVAR([p, q, r]
))) -> FM(FRAC(POLY(INT)), FMONOID(OVAR([p, q, r]))) has been added
to workspace.
Reduction
rule2(ij:MK):MK ==
for i in gens repeat
for j in gens | j ~= i repeat
for k in gens | k ~= j repeat
ijk:=divide(leadingMonomial(ij), i*j*k)
if ijk case divisible then
if i=k then
ij := (coeff(ij)*m(i)*m(j)*γ(i, j)*γ(j, i) ) * _
(leftDiv(ijk)*i*rightDiv(ijk))
else
ij := (coeff(ij)*m(j)*γ(i, j)*γ(j, k) / γ(i, k) ) * _
(leftDiv(ijk)*i*k*rightDiv(ijk))
return(ij)
Function declaration rule2 : FM(FRAC(POLY(INT)), FMONOID(OVAR([p, q, r]
))) -> FM(FRAC(POLY(INT)), FMONOID(OVAR([p, q, r]))) has been added
to workspace.
Modulo fixed point of applied rules
mod(ij:MK):MK ==
ijFix:MK := 1
while ijFix~=ij repeat
ijFix := ij
ij := rule1(ij)
ij := rule2(ij)
return(ij)
Function declaration mod : FM(FRAC(POLY(INT)), FMONOID(OVAR([p, q, r]))
) -> FM(FRAC(POLY(INT)), FMONOID(OVAR([p, q, r]))) has been added to
workspace.
Matrix
Multiplication is monoidal concatenation modulo the fixed point
--MT := [[mod(i*j) for j in basis] for i in basis] -- idempotent MT := [[monomial(eval(coeff(mod(i*j)),[γ(gens(1), gens(1))=1, γ(gens(2), gens(2))=1, γ(gens(3), gens(3))=1, γ(gens(2), gens(1))=γ(gens(1), gens(2)), γ(gens(3), gens(2))=γ(gens(2), gens(3)), γ(gens(3), gens(1))=γ(gens(1), gens(3))]), monomial(mod(i*j)))$MK for j in basis] for i in basis]
There are 1 exposed and 3 unexposed library operations named leadingMonomial having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse,or issue )display op leadingMonomial to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. Cannot find a definition or applicable library operation named leadingMonomial with argument type(s) FM(FRAC(POLY(INT)), FMONOID(OVAR([p, q, r])))
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code.
Compiling function monomial with type FM(FRAC(POLY(INT)),FMONOID( OVAR([p, q, r]))) -> FMONOID(OVAR([p, q, r]))
Compiling function coeff with type FM(FRAC(POLY(INT)),FMONOID(OVAR([ p, q, r]))) -> FRAC(POLY(INT))
Compiling function m with type FMONOID(OVAR([p,q, r])) -> FRAC(POLY( INT))
Compiling function γ with type (FMONOID(OVAR([p,q, r])), FMONOID(OVAR ([p, q, r]))) -> FRAC(POLY(INT))
Compiling function leftDiv with type Union(Record(lm: FMONOID(OVAR([
p, q, r])), rm: FMONOID(OVAR([p, q, r]))), "failed") -> FMONOID(OVAR([p
, q, r]))Compiling function rightDiv with type Union(Record(lm: FMONOID(OVAR(
[p, q, r])), rm: FMONOID(OVAR([p, q, r]))), "failed") -> FMONOID(OVAR([
p, q, r]))Compiling function rule1 with type FM(FRAC(POLY(INT)),FMONOID(OVAR([ p, q, r]))) -> FM(FRAC(POLY(INT)), FMONOID(OVAR([p, q, r]))) There are 2 exposed and 2 unexposed library operations named divide having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op divide to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. Cannot find a definition or applicable library operation named divide with argument type(s) FM(FRAC(POLY(INT)), FMONOID(OVAR([p, q, r]))) FMONOID(OVAR([p, q, r]))
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code.
Compiling function rule2 with type FM(FRAC(POLY(INT)),FMONOID(OVAR([ p, q, r]))) -> FM(FRAC(POLY(INT)), FMONOID(OVAR([p, q, r])))
Compiling function mod with type FM(FRAC(POLY(INT)),FMONOID(OVAR([p, q, r]))) -> FM(FRAC(POLY(INT)), FMONOID(OVAR([p, q, r]))) There are 1 exposed and 3 unexposed library operations named leadingMonomial having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op leadingMonomial to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation.
Cannot find a definition or applicable library operation named leadingMonomial with argument type(s) FM(FRAC(POLY(INT)),FMONOID(OVAR([p, q, r])))
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need.
Structure Constants
R:=FRAC DMP(concat [[x1,x2, x3, x4, x5, x6, x7, x8, x9, x10], [m(i) for i in gens], concat [[γ(j, i) for i in gens] for j in gens]], INT)
![]() | (8) |
mat3(y:M):List List R == map(z+->map(x+->coefficient(x,y)::FRAC POLY INT, z), MT)
Function declaration mat3 : FMONOID(OVAR([p,q, r])) -> LIST(LIST(FRAC (DMP([x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, m[p], m[q], m[r], γ[pp], γ[pq], γ [pr], γ[qp], γ[qq], γ[qr], γ[rp], γ[rq], γ[rr]], INT)))) has been added to workspace.
ss:=map(mat3,basis)
There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse,or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 66 exposed and 13 unexposed library operations named map having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op map to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are no library operations named *01000m Use HyperDoc Browse or issue )what op *01000m to learn if there is any operation containing " *01000m " in its name. There are no library operations named *01000m Use HyperDoc Browse or issue )what op *01000m to learn if there is any operation containing " *01000m " in its name. There are no library operations named *01000m Use HyperDoc Browse or issue )what op *01000m to learn if there is any operation containing " *01000m " in its name. There are 66 exposed and 13 unexposed library operations named map having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op map to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. Cannot find a definition or applicable library operation named map with argument type(s) ANON VARIABLE(MT)
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code.
Compiling function mat3 with type FMONOID(OVAR([p,q, r])) -> LIST( LIST(FRAC(DMP([x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, m[p], m[q], m[r], γ[pp ], γ[pq], γ[pr], γ[qp], γ[qq], γ[qr], γ[rp], γ[rq], γ[rr]], INT)))) There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 66 exposed and 13 unexposed library operations named map having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op map to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. There are no library operations named *01000m Use HyperDoc Browse or issue )what op *01000m to learn if there is any operation containing " *01000m " in its name.
Cannot find a definition or applicable library operation named *01000m with argument type(s) VARIABLE(p)
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need.
Algebra
cats(m:M):Symbol==concat(map(x+->string(x.gen::Symbol),factors m))::Symbol
Function declaration cats : FMONOID(OVAR([p,q, r])) -> SYMBOL has been added to workspace.
A:=AlgebraGivenByStructuralConstants(R,#(basis)::PI, map(cats, basis), ss::Vector(Matrix R))
Compiling function cats with type FMONOID(OVAR([p,q, r])) -> SYMBOL
Cannot convert the value from type VARIABLE(ss) to VECTOR(MATRIX( FRAC(DMP([x1,x2, x3, x4, x5, x6, x7, x8, x9, x10, m[p], m[q], m[r], γ[pp], γ[ pq], γ[pr], γ[qp], γ[qq], γ[qr], γ[rp], γ[rq], γ[rr]], INT)))) .
Check Multiplication
AB := entries basis()$A
A is not a valid type.
Trace
[rightTrace(i)$A for i in AB]
FriCAS cannot iterate with i over your form now. Perhaps you should try using a conversion to make sure your form is a list or stream,for example.
Scalar Product
matrix [[trace(i*j) for j in [AB.1,AB.2, AB.3]] for i in [AB.1, AB.2, AB.3]]
There are no library operations named AB Use HyperDoc Browse or issue )what op AB to learn if there is any operation containing " AB " in its name.
Cannot find a definition or applicable library operation named AB with argument type(s) PI
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need.
Center
C:=basisOfCenter()$AlgebraPackage(R,A); # C
A is not a valid type.
Unit
rightTrace(c)
There are 1 exposed and 0 unexposed library operations named rightTrace having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse,or issue )display op rightTrace to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation.
Cannot find a definition or applicable library operation named rightTrace with argument type(s) VARIABLE(c)
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need.
test(n=unit()$A)
A is not a valid type.
Orthogonal Observers
p' := n - (1/trace(p))*p
There are 2 exposed and 0 unexposed library operations named trace having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse,or issue )display op trace to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation.
Cannot find a definition or applicable library operation named trace with argument type(s) VARIABLE(p)
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need.
Momentum
P:=reduce(+,concat [[(1/ ( i<j=>γ(basis(i), basis(j)); i>j=>γ(basis(j), basis(i));1) )::R*AB(i)*AB(j) for j in 1..size()$V] for i in 1..size()$V])
There are no library operations named AB Use HyperDoc Browse or issue )what op AB to learn if there is any operation containing " AB " in its name. Cannot find a definition or applicable library operation named AB with argument type(s) NNI
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code. There are no library operations named AB Use HyperDoc Browse or issue )what op AB to learn if there is any operation containing " AB " in its name.
Cannot find a definition or applicable library operation named AB with argument type(s) PI
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need.
P' := n - (1/trace(P))*P;
There are 2 exposed and 0 unexposed library operations named trace having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse,or issue )display op trace to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation.
Cannot find a definition or applicable library operation named trace with argument type(s) VARIABLE(P)
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need.