login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for The Algebra of Complex Numbers Is Frobenius In Many Ways revision 8 of 11

1 2 3 4 5 6 7 8 9 10 11
Editor: Bill Page
Time: 2011/05/25 13:46:37 GMT-7
Note: update

changed:
-macro Σ(x,f,i)==reduce(+,[x*f.i for i in 1..#f])
--- scripts
macro Σ(x,i,n)==reduce(+,[x for i in n])
-- list
macro Ξ(f,i,n)==[f for i in n]
-- subscript and superscripts

added:
macro ℒ == List

changed:
-𝐞:List 𝐋      := basisOut()
-𝐝:List 𝐋      := basisIn()
𝐞:ℒ 𝐋      := basisOut()
𝐝:ℒ 𝐋      := basisIn()

changed:
-V:𝐋:=ev(1) -- evalutation
-Λ:𝐋:=co(1) -- co-evalutation
-\end{axiom}
-
-Now generate structure constants for Quaternion Algebra
-
-The basis consists of the real and imaginary units. We use quaternion multiplication to form the "multiplication table" as a matrix. Then the structure constants can be obtained by dividing each matrix entry by the list of basis vectors.
V:𝐋:=ev(1) -- evaluation
Λ:𝐋:=co(1) -- co-evaluation
equate(eq)==map((x,y)+->(x=y),ravel lhs eq, ravel rhs eq);
\end{axiom}

Now generate structure constants for Complex Algebra

The basis consists of the real and imaginary units. We use complex multiplication to form the "multiplication table" as a matrix. Then the structure constants can be obtained by dividing each matrix entry by the list of basis vectors.

added:
q:=sp('i,[2])

changed:
-B:List QQ := map(x +-> hyper x,1$SQMATRIX(dim,ℚ)::List List ℚ)
B:ℒ QQ := map(x +-> hyper x,1$SQMATRIX(dim,ℚ)::ℒ ℒ ℚ)

changed:
-M:Matrix QQ := matrix [[ B.i*B.j for i in 1..#B] for j in 1..#B]
M:Matrix QQ := matrix Ξ(Ξ(B.i*B.j, i,1..dim), j,1..dim)

changed:
-S(y) == map(x +-> real(x/y),M)
S(y) == map(x +-> real real(x/y),M)

changed:
-ѕ :=map(S,B)::List List List ℚ
ѕ :=map(S,B)::ℒ ℒ ℒ ℚ

changed:
-Y := Σ(Σ(Σ(ѕ(i)(k)(j), 𝐞,i), 𝐝,j), 𝐝,k)
-matrix [[ (𝐞.i,𝐞.j)/Y for i in 1..#𝐞] for j in 1..#𝐞]
-\end{axiom}
Y := Σ(Σ(Σ(ѕ(i)(k)(j)*𝐞.i*𝐝.j*𝐝.k, i,1..dim), j,1..dim), k,1..dim)
arity Y
matrix Ξ(Ξ((𝐞.i*𝐞.j)/Y, i,1..dim), j,1..dim)
\end{axiom}

changed:
-a:=Σ(sb('a,[i]), 𝐞,i)
-b:=Σ(sb('b,[i]), 𝐞,i)
a:=Σ(sb('a,[i])*𝐞.i, i,1..dim)
b:=Σ(sb('b,[i])*𝐞.i, i,1..dim)

changed:
-Multiplication of complex numbers is associative
-\begin{axiom}
-
Multiplication is Associative
\begin{axiom}

changed:
-
-\end{axiom}
-
-Cartan-Killing Trace Form
-\begin{axiom}
-
-Ũ:=
-  (  Y Λ  ) / _
-  (   Y I ) / _
-       V
-
-\end{axiom}
\end{axiom}

changed:
-U:=Σ(Σ(sp('u,[i,j]), 𝐝,i), 𝐝,j)
-\end{axiom}
U:=Σ(Σ(script('u,[[],[i,j]])*𝐝.i*𝐝.j, i,1..dim), j,1..dim)
\end{axiom}

changed:
-     (    Y I    ) /
-           U       -
-     (    I Y    ) /
     (    Y I    )  /
           U        -
     (    I Y    )  /

added:
The Cartan-Killing Trace
\begin{axiom}

Ú:=
   (  Y Λ  ) / _
   (   Y I ) / _
        V
Ù:=
   (  Λ Y  ) / _
   ( I Y   ) / _
      V

test(Ù=Ú)

\end{axiom}
forms a non-degenerate associative scalar product for Y
\begin{axiom}
Ũ := Ù
test
     (    Y I    )  /
           Ũ        =
     (    I Y    )  /
           Ũ
determinant Ξ(Ξ(retract((𝐞.i * 𝐞.j)/Ũ), j,1..dim), i,1..dim)
\end{axiom}

General Solution


changed:
-J := jacobian(ravel ω,concat map(variables,ravel U)::List Symbol);
-u := transpose matrix [concat map(variables,ravel U)::List Symbol];
J := jacobian(ravel ω,concat map(variables,ravel U)::ℒ Symbol);
u := transpose matrix [concat map(variables,ravel U)::ℒ Symbol];

changed:
-       map(variables,ravel U), entries Σ(sb('p,[i]), Ñ,i) )
-\end{axiom}
       map(variables,ravel U), entries Σ(sb('p,[i])*Ñ.i, i,1..#Ñ) )
\end{axiom}

changed:
-In two dimensions the pairing is necessarily symmetric!
In general the pairing is symmetric!

changed:
-matrix [[ (𝐞.i 𝐞.j)/Ų for i in 1..#𝐞] for j in 1..#𝐞]
-\end{axiom}
-
-This is the most general form of the "dot product" of two
-complex numbers
matrix Ξ(Ξ((𝐞.i 𝐞.j)/Ų, i,1..dim), j,1..dim)
\end{axiom}

This is the most general form of the "dot product" of two quaternions

added:
Cartan-Killing is a special case
\begin{axiom}
ck:=solve(equate(Ũ=Ų),Ξ(sb('p,[i]), i,1..#Ñ)).1
\end{axiom}


changed:
-Ů:=determinant [[ retract((𝐞.i * 𝐞.j)/Ų) for j in 1..#𝐞] for i in 1..#𝐞]
-factor Ů
-\end{axiom}
Ů:=determinant Ξ(Ξ(retract((𝐞.i * 𝐞.j)/Ų), j,1..dim), i,1..dim)
factor(numer Ů)/factor(denom Ů)
\end{axiom}

changed:
-Ω:𝐋:=Σ(Σ(sb('u,[i,j]), 𝐞,i), 𝐞,j)
-s1:=(I*Ω)/(Ų*I);
-s2:=(Ω*I)/(I*Ų);
-equate(eq)==map((x,y)+->(x=y),ravel lhs eq, ravel rhs eq);
-snake:=solve(concat(equate(s1=I),equate(s2=I)), _
-             concat map(variables,ravel Ω));
Ω:𝐋:=Σ(Σ(script('u,[[i,j]])*𝐞.i*𝐞.j, i,1..dim), j,1..dim)
d1:=(I*Ω)/(Ų*I);
d2:=(Ω*I)/(I*Ų);
eq1:=equate(d1=I);
eq2:=equate(d2=I);
snake:=solve(concat(eq1,eq2),concat Ξ(Ξ(script('u,[[i,j]]), i,1..dim), j,1..dim));

changed:
-matrix [[ Ω/(𝐝.i*𝐝.j) for i in 1..#𝐝] for j in 1..#𝐝]
-\end{axiom}
matrix Ξ(Ξ(Ω/(𝐝.i*𝐝.j), i,1..dim), j,1..dim)
\end{axiom}

changed:
-Θ:𝐋:=
d:𝐋:=

changed:
-
-W:=
-  (Y,I) /
-    Ų
-
-λ:=
-  ( Ω,I,Ω ) /
-  (I, W ,I)
-
-\end{axiom}
-
-\begin{axiom}
W:=(Y,I)/Ų
λ:=(Ω,I,Ω)/(I,W,I)
\end{axiom}

\begin{axiom}

changed:
-Frobenius Condition
-\begin{axiom}
Frobenius Condition (fork)
\begin{axiom}


added:

The Cartan-Killing form makes H of the Frobenius condition idempotent
\begin{axiom}
test( eval(H,ck)=eval(H/H,ck) )
\end{axiom}

And it is unique.
\begin{axiom}
h1:=map(numer,ravel(H-H/H)::List FRAC POLY INT);
h2:=groebner h1
ck4:=solve(h2,[p[1],p[2]])
test( eval(H,ck4.2)=eval(H/H,ck4.2) )
determinant Ξ(Ξ(retract( (𝐞.i * 𝐞.j)/eval(Ų,ck4.2) ), j,1..dim), i,1..dim)
\end{axiom}

Handle
\begin{axiom}

Φ:𝐋 :=
         λ     /
         Y

\end{axiom}

The Cartan-Killing form makes Φ of the identity
\begin{axiom}
test( eval(Φ,ck)=I )
\end{axiom}
and it can be the identity in only this one way.
\begin{axiom}
solve(equate(Φ=I),[p[1],p[2]])
\end{axiom}

If handle is identity then fork is idempotent but the converse is not true
\begin{axiom}
Φ1:=map(numer,ravel(Φ-I)::List FRAC POLY INT);
Φ2:=groebner Φ1
in?(ideal h2, ideal Φ2)
in?(ideal Φ2, ideal h2)
\end{axiom}

added:
bi1:=map(numer,ravel(ΦΦ-H)::List FRAC POLY INT);
bi2:=groebner bi1

changed:
-i = Unit of the algebra
-\begin{axiom}
Scalars for figure 12 (only 1 non-zero for Cartan-Killing form)

\begin{axiom}

φφ:=          _
  (  Ω Ω  ) / _
  ( I X I ) / _
  (  Y Y  );
φφ1:=map((x:ℚ):ℚ+->numer x,φφ)
φφ2:=denom(ravel(φφ).1)
test(φφ=(1/φφ2)*φφ1)
eval(φφ,ck)
\end{axiom}

Definition 5

  i = Unit of the algebra

\begin{axiom}

changed:
-Handle
-\begin{axiom}
-
-Φ:𝐋 :=
-         λ     /
-         X     /
-         Y     
-
-\end{axiom}
-
-Definition 5
-
-  <center>Co-unit<pre>
-  i 
-  U
-  </pre></center>
-
-\begin{axiom}
-
-j:𝐋:=
-    (   i I   ) /
-         Ų 
-
-\end{axiom}
-
-\begin{axiom}
-i / j
-\end{axiom}
-
Co-unit

<center><pre>
i 
U
</pre></center>

\begin{axiom}

ι:𝐋:=
    (    i I   ) /
          Ų

\end{axiom}

changed:
-j  
ι  

changed:
-        j     =  Ų
-
-\end{axiom}
        ι     =  Ų

\end{axiom}

changed:
-ex1:=[q[0]=1,p[1]=0,p[2]=1]
ex1:=[q=1,p[1]=0,p[2]=1]

The Algebra of Complex Numbers Is Frobenius In Many Ways

Linear operators over a 2-dimensional vector space representing the algebra of complex numbers

Ref:

We need the Axiom LinearOperator? library.

fricas
(1) -> )library CARTEN ARITY CMONAL CPROP CLOP CALEY
CartesianTensor is now explicitly exposed in frame initial CartesianTensor will be automatically loaded when needed from /var/aw/var/LatexWiki/CARTEN.NRLIB/CARTEN Arity is now explicitly exposed in frame initial Arity will be automatically loaded when needed from /var/aw/var/LatexWiki/ARITY.NRLIB/ARITY ClosedMonoidal is now explicitly exposed in frame initial ClosedMonoidal will be automatically loaded when needed from /var/aw/var/LatexWiki/CMONAL.NRLIB/CMONAL ClosedProp is now explicitly exposed in frame initial ClosedProp will be automatically loaded when needed from /var/aw/var/LatexWiki/CPROP.NRLIB/CPROP ClosedLinearOperator is now explicitly exposed in frame initial ClosedLinearOperator will be automatically loaded when needed from /var/aw/var/LatexWiki/CLOP.NRLIB/CLOP CaleyDickson is now explicitly exposed in frame initial CaleyDickson will be automatically loaded when needed from /var/aw/var/LatexWiki/CALEY.NRLIB/CALEY

Use the following macros for convenient notation

fricas
-- summation
macro Σ(x,i,n)==reduce(+,[x for i in n])
Type: Void
fricas
-- list
macro Ξ(f,i,n)==[f for i in n]
Type: Void
fricas
-- subscript and superscripts
macro sb == subscript
Type: Void
fricas
macro sp == superscript
Type: Void

𝐋 is the domain of 2-dimensional linear operators over the rational functions ℚ (Expression Integer), i.e. ratio of polynomials with integer coefficients.

fricas
dim:=2

\label{eq1}2(1)
Type: PositiveInteger?
fricas
macro ℒ == List
Type: Void
fricas
macro ℂ == CaleyDickson
Type: Void
fricas
macro ℚ == Expression Integer
Type: Void
fricas
𝐋 := ClosedLinearOperator(OVAR ['1,'2], ℚ)

\label{eq2}\hbox{\axiomType{ClosedLinearOperator}\ } \left({{\hbox{\axiomType{OrderedVariableList}\ } \left({\left[ 1, \: 2 \right]}\right)}, \:{\hbox{\axiomType{Expression}\ } \left({\hbox{\axiomType{Integer}\ }}\right)}}\right)(2)
Type: Type
fricas
𝐞:ℒ 𝐋      := basisOut()

\label{eq3}\left[{|_{\  1}}, \:{|_{\  2}}\right](3)
Type: List(ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer)))
fricas
𝐝:ℒ 𝐋      := basisIn()

\label{eq4}\left[{|^{\  1}}, \:{|^{\  2}}\right](4)
Type: List(ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer)))
fricas
I:𝐋:=[1]   -- identity for composition

\label{eq5}{|_{\  1}^{\  1}}+{|_{\  2}^{\  2}}(5)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
X:𝐋:=[2,1] -- twist

\label{eq6}{|_{\  1 \  1}^{\  1 \  1}}+{|_{\  2 \  1}^{\  1 \  2}}+{|_{\  1 \  2}^{\  2 \  1}}+{|_{\  2 \  2}^{\  2 \  2}}(6)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
V:𝐋:=ev(1) -- evaluation

\label{eq7}{|^{\  1 \  1}}+{|^{\  2 \  2}}(7)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
Λ:𝐋:=co(1) -- co-evaluation

\label{eq8}{|_{\  1 \  1}}+{|_{\  2 \  2}}(8)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
equate(eq)==map((x,y)+->(x=y),ravel lhs eq, ravel rhs eq);
Type: Void

Now generate structure constants for Complex Algebra

The basis consists of the real and imaginary units. We use complex multiplication to form the "multiplication table" as a matrix. Then the structure constants can be obtained by dividing each matrix entry by the list of basis vectors.

Split-complex can be specified by Caley-Dickson parameter (q0 = -1)

fricas
--q:=1  -- split-complex
q:=sp('i,[2])

\label{eq9}i^{2}(9)
Type: Symbol
fricas
QQ := ℂ(ℚ,'i,q);
Type: Type

Basis: Each B.i is a quaternion number

fricas
B:ℒ QQ := map(x +-> hyper x,1$SQMATRIX(dim,ℚ)::ℒ ℒ ℚ)

\label{eq10}\left[ 1, \: i \right](10)
Type: List(CaleyDickson?(Expression(Integer),i,i[;2]))
fricas
-- Multiplication table:
M:Matrix QQ := matrix Ξ(Ξ(B.i*B.j, i,1..dim), j,1..dim)

\label{eq11}\left[ 
\begin{array}{cc}
1 & i 
\
i & -{i^{2}}
(11)
Type: Matrix(CaleyDickson?(Expression(Integer),i,i[;2]))
fricas
-- Function to divide the matrix entries by a basis element
S(y) == map(x +-> real real(x/y),M)
Type: Void
fricas
-- The result is a nested list
ѕ :=map(S,B)::ℒ ℒ ℒ ℚ
fricas
Compiling function S with type CaleyDickson(Expression(Integer),i,i[
      ;2]) -> Matrix(Expression(Integer))

\label{eq12}\left[{\left[{\left[ 1, \: 0 \right]}, \:{\left[ 0, \: -{i^{2}}\right]}\right]}, \:{\left[{\left[ 0, \:{\frac{i^{2}}{\overline{i^{2}}}}\right]}, \:{\left[{\frac{i^{2}}{\overline{i^{2}}}}, \: 0 \right]}\right]}\right](12)
Type: List(List(List(Expression(Integer))))
fricas
-- structure constants form a tensor operator
Y := Σ(Σ(Σ(ѕ(i)(k)(j)*𝐞.i*𝐝.j*𝐝.k, i,1..dim), j,1..dim), k,1..dim)

\label{eq13}{|_{\  1}^{\  1 \  1}}+{{\frac{i^{2}}{\overline{i^{2}}}}\ {|_{\  2}^{\  1 \  2}}}+{{\frac{i^{2}}{\overline{i^{2}}}}\ {|_{\  2}^{\  2 \  1}}}-{{i^{2}}\ {|_{\  1}^{\  2 \  2}}}(13)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
arity Y

\label{eq14}\frac{{+}^{2}}{+}(14)
Type: ClosedProp?(ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer)))
fricas
matrix Ξ(Ξ((𝐞.i*𝐞.j)/Y, i,1..dim), j,1..dim)

\label{eq15}\left[ 
\begin{array}{cc}
{|_{\  1}}&{{\frac{i^{2}}{\overline{i^{2}}}}\ {|_{\  2}}}
\
{{\frac{i^{2}}{\overline{i^{2}}}}\ {|_{\  2}}}& -{{i^{2}}\ {|_{\  1}}}
(15)
Type: Matrix(ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer)))

Multiplication of arbitrary quaternions a and b

fricas
a:=Σ(sb('a,[i])*𝐞.i, i,1..dim)

\label{eq16}{{a_{1}}\ {|_{\  1}}}+{{a_{2}}\ {|_{\  2}}}(16)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
b:=Σ(sb('b,[i])*𝐞.i, i,1..dim)

\label{eq17}{{b_{1}}\ {|_{\  1}}}+{{b_{2}}\ {|_{\  2}}}(17)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
(a*b)/Y

\label{eq18}{{\left(-{{i^{2}}\ {a_{2}}\ {b_{2}}}+{{a_{1}}\ {b_{1}}}\right)}\ {|_{\  1}}}+{{\frac{{{i^{2}}\ {a_{1}}\ {b_{2}}}+{{i^{2}}\ {a_{2}}\ {b_{1}}}}{\overline{i^{2}}}}\ {|_{\  2}}}(18)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))

Multiplication is Associative

fricas
test(
  ( I Y ) / _
  (  Y  ) = _
  ( Y I ) / _
  (  Y  ) )

\label{eq19} \mbox{\rm false} (19)
Type: Boolean

A scalar product is denoted by the (2,0)-tensor U = \{ u_{ij} \}

fricas
U:=Σ(Σ(script('u,[[],[i,j]])*𝐝.i*𝐝.j, i,1..dim), j,1..dim)

\label{eq20}{{u^{1, \: 1}}\ {|^{\  1 \  1}}}+{{u^{1, \: 2}}\ {|^{\  1 \  2}}}+{{u^{2, \: 1}}\ {|^{\  2 \  1}}}+{{u^{2, \: 2}}\ {|^{\  2 \  2}}}(20)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))

Definition 1

We say that the scalar product is associative if the tensor equation holds:

    Y   =   Y
     U     U

In other words, if the (3,0)-tensor:


\scalebox{1} % Change this value to rescale the drawing.
{
\begin{pspicture}(0,-0.92)(4.82,0.92)
\psbezier[linewidth=0.04](2.2,0.9)(2.2,0.1)(2.6,0.1)(2.6,0.9)
\psline[linewidth=0.04cm](2.4,0.3)(2.4,-0.1)
\psbezier[linewidth=0.04](2.4,-0.1)(2.4,-0.9)(3.0,-0.9)(3.0,-0.1)
\psline[linewidth=0.04cm](3.0,-0.1)(3.0,0.9)
\psbezier[linewidth=0.04](4.8,0.9)(4.8,0.1)(4.4,0.1)(4.4,0.9)
\psline[linewidth=0.04cm](4.6,0.3)(4.6,-0.1)
\psbezier[linewidth=0.04](4.6,-0.1)(4.6,-0.9)(4.0,-0.9)(4.0,-0.1)
\psline[linewidth=0.04cm](4.0,-0.1)(4.0,0.9)
\usefont{T1}{ptm}{m}{n}
\rput(3.4948437,0.205){-}
\psline[linewidth=0.04cm](0.6,-0.7)(0.6,0.9)
\psbezier[linewidth=0.04](0.0,-0.1)(0.0,-0.9)(1.2,-0.9)(1.2,-0.1)
\psline[linewidth=0.04cm](0.0,-0.1)(0.0,0.9)
\psline[linewidth=0.04cm](1.2,-0.1)(1.2,0.9)
\usefont{T1}{ptm}{m}{n}
\rput(1.6948438,0.205){=}
\end{pspicture} 
}
 


\label{eq21}
  \Phi = \{ \phi^{ijk} = {y^e}_{ij} u_{ek} - u_{ie} {y_e}^{jk} \}
  (21)
(three-point function) is zero.

Using the LinearOperator? domain in Axiom and some carefully chosen symbols we can easily enter expressions that are both readable and interpreted by Axiom as "graphical calculus" diagrams describing complex products and compositions of linear operators.

fricas
ω:𝐋 :=
     (    Y I    )  /
           U        -
     (    I Y    )  /
           U

\label{eq22}\begin{array}{@{}l}
\displaystyle
{{\frac{{{u^{1, \: 2}}\ {\overline{i^{2}}}}-{{i^{2}}\ {u^{1, \: 2}}}}{\overline{i^{2}}}}\ {|^{\  1 \  1 \  2}}}+ 
\
\
\displaystyle
{{\frac{{{i^{2}}\ {u^{2, \: 1}}}-{{i^{2}}\ {u^{1, \: 2}}}}{\overline{i^{2}}}}\ {|^{\  1 \  2 \  1}}}+ 
\
\
\displaystyle
{{\frac{{{i^{2}}\ {u^{1, \: 1}}\ {\overline{i^{2}}}}+{{i^{2}}\ {u^{2, \: 2}}}}{\overline{i^{2}}}}\ {|^{\  1 \  2 \  2}}}+ 
\
\
\displaystyle
{{\frac{-{{u^{2, \: 1}}\ {\overline{i^{2}}}}+{{i^{2}}\ {u^{2, \: 1}}}}{\overline{i^{2}}}}\ {|^{\  2 \  1 \  1}}}+ 
\
\
\displaystyle
{{\frac{-{{i^{2}}\ {u^{1, \: 1}}\ {\overline{i^{2}}}}-{{i^{2}}\ {u^{2, \: 2}}}}{\overline{i^{2}}}}\ {|^{\  2 \  2 \  1}}}+ 
\
\
\displaystyle
{{\left({{i^{2}}\ {u^{2, \: 1}}}-{{i^{2}}\ {u^{1, \: 2}}}\right)}\ {|^{\  2 \  2 \  2}}}
(22)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))

Definition 2

An algebra with a non-degenerate associative scalar product is called a [Frobenius Algebra]?.

The Cartan-Killing Trace

fricas
Ú:=
   (  Y Λ  ) / _
   (   Y I ) / _
        V

\label{eq23}{{\frac{{\overline{i^{2}}}+{i^{2}}}{\overline{i^{2}}}}\ {|^{\  1 \  1}}}+{{\frac{-{{i^{2}}\ {\overline{i^{2}}}}-{{i^{2}}^{2}}}{\overline{i^{2}}}}\ {|^{\  2 \  2}}}(23)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
Ù:=
   (  Λ Y  ) / _
   ( I Y   ) / _
      V

\label{eq24}{{\frac{{\overline{i^{2}}}+{i^{2}}}{\overline{i^{2}}}}\ {|^{\  1 \  1}}}+{{\frac{-{{i^{2}}\ {\overline{i^{2}}}}-{{i^{2}}^{2}}}{\overline{i^{2}}}}\ {|^{\  2 \  2}}}(24)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
test(Ù=Ú)

\label{eq25} \mbox{\rm true} (25)
Type: Boolean

forms a non-degenerate associative scalar product for Y

fricas
Ũ := Ù

\label{eq26}{{\frac{{\overline{i^{2}}}+{i^{2}}}{\overline{i^{2}}}}\ {|^{\  1 \  1}}}+{{\frac{-{{i^{2}}\ {\overline{i^{2}}}}-{{i^{2}}^{2}}}{\overline{i^{2}}}}\ {|^{\  2 \  2}}}(26)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
test
     (    Y I    )  /
           Ũ        =
     (    I Y    )  /
           Ũ

\label{eq27} \mbox{\rm false} (27)
Type: Boolean
fricas
determinant Ξ(Ξ(retract((𝐞.i * 𝐞.j)/Ũ), j,1..dim), i,1..dim)

\label{eq28}\frac{-{{i^{2}}\ {{\overline{i^{2}}}^{2}}}-{2 \ {{i^{2}}^{2}}\ {\overline{i^{2}}}}-{{i^{2}}^{3}}}{{\overline{i^{2}}}^{2}}(28)
Type: Expression(Integer)

General Solution

We may consider the problem where multiplication Y is given, and look for all associative scalar products U = U(Y)

This problem can be solved using linear algebra.

fricas
)expose MCALCFN
MultiVariableCalculusFunctions is now explicitly exposed in frame initial J := jacobian(ravel ω,concat map(variables,ravel U)::ℒ Symbol);
Type: Matrix(Expression(Integer))
fricas
u := transpose matrix [concat map(variables,ravel U)::ℒ Symbol];
Type: Matrix(Polynomial(Integer))
fricas
J::OutputForm * u::OutputForm = 0

\label{eq29}\begin{array}{@{}l}
\displaystyle
{{\left[ 
\begin{array}{cccc}
0 & 0 & 0 & 0 
\
0 &{\frac{{\overline{i^{2}}}-{i^{2}}}{\overline{i^{2}}}}& 0 & 0 
\
0 & -{\frac{i^{2}}{\overline{i^{2}}}}&{\frac{i^{2}}{\overline{i^{2}}}}& 0 
\
{i^{2}}& 0 & 0 &{\frac{i^{2}}{\overline{i^{2}}}}
\
0 & 0 &{\frac{-{\overline{i^{2}}}+{i^{2}}}{\overline{i^{2}}}}& 0 
\
0 & 0 & 0 & 0 
\
-{i^{2}}& 0 & 0 & -{\frac{i^{2}}{\overline{i^{2}}}}
\
0 & -{i^{2}}&{i^{2}}& 0 
(29)
Type: Equation(OutputForm?)
fricas
nrows(J),ncols(J)

\label{eq30}\left[ 8, \: 4 \right](30)
Type: Tuple(PositiveInteger?)

The matrix J transforms the coefficients of the tensor U into coefficients of the tensor \Phi. We are looking for the general linear family of tensors U=U(Y,p_i) such that J transforms U into \Phi=0 for any such U.

If the null space of the J matrix is not empty we can use the basis to find all non-trivial solutions for U:

fricas
Ñ:=nullSpace(J)

\label{eq31}\left[{\left[ -{\frac{1}{\overline{i^{2}}}}, \: 0, \: 0, \: 1 \right]}\right](31)
Type: List(Vector(Expression(Integer)))
fricas
ℰ:=map((x,y)+->x=y, concat
       map(variables,ravel U), entries Σ(sb('p,[i])*Ñ.i, i,1..#Ñ) )

\label{eq32}\left[{{u^{1, \: 1}}= -{\frac{p_{1}}{\overline{i^{2}}}}}, \:{{u^{1, \: 2}}= 0}, \:{{u^{2, \: 1}}= 0}, \:{{u^{2, \: 2}}={p_{1}}}\right](32)
Type: List(Equation(Expression(Integer)))

This defines a family of pre-Frobenius algebras:

fricas
zero? eval(ω,ℰ)

\label{eq33} \mbox{\rm true} (33)
Type: Boolean

In general the pairing is symmetric!

fricas
Ų:𝐋 := eval(U,ℰ)

\label{eq34}-{{\frac{p_{1}}{\overline{i^{2}}}}\ {|^{\  1 \  1}}}+{{p_{1}}\ {|^{\  2 \  2}}}(34)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
matrix Ξ(Ξ((𝐞.i 𝐞.j)/Ų, i,1..dim), j,1..dim)

\label{eq35}\left[ 
\begin{array}{cc}
-{\frac{p_{1}}{\overline{i^{2}}}}& 0 
\
0 &{p_{1}}
(35)
Type: Matrix(ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer)))

This is the most general form of the "dot product" of two quaternions

fricas
(a*b)/Ų

\label{eq36}\frac{{{a_{2}}\ {b_{2}}\ {p_{1}}\ {\overline{i^{2}}}}-{{a_{1}}\ {b_{1}}\ {p_{1}}}}{\overline{i^{2}}}(36)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
(a*a)/Ų

\label{eq37}\frac{{{{a_{2}}^{2}}\ {p_{1}}\ {\overline{i^{2}}}}-{{{a_{1}}^{2}}\ {p_{1}}}}{\overline{i^{2}}}(37)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))

Cartan-Killing is a special case

fricas
ck:=solve(equate(Ũ=Ų),Ξ(sb('p,[i]), i,1..#Ñ)).1
fricas
Compiling function equate with type Equation(ClosedLinearOperator(
      OrderedVariableList([1,2]),Expression(Integer))) -> List(Equation
      (Expression(Integer))) 
>> Error detected within library code: index out of range

The scalar product must be non-degenerate:

fricas
Ů:=determinant Ξ(Ξ(retract((𝐞.i * 𝐞.j)/Ų), j,1..dim), i,1..dim)

\label{eq38}-{\frac{{p_{1}}^{2}}{\overline{i^{2}}}}(38)
Type: Expression(Integer)
fricas
factor(numer Ů)/factor(denom Ů)

\label{eq39}-{\frac{{p_{1}}^{2}}{\overline{i^{2}}}}(39)
Type: Fraction(Factored(SparseMultivariatePolynomial?(Integer,Kernel(Expression(Integer)))))

Definition 3

Co-pairing

Solve the [Snake Relation]? as a system of linear equations.

fricas
Ω:𝐋:=Σ(Σ(script('u,[[i,j]])*𝐞.i*𝐞.j, i,1..dim), j,1..dim)

\label{eq40}{{u_{1, \: 1}}\ {|_{\  1 \  1}}}+{{u_{1, \: 2}}\ {|_{\  1 \  2}}}+{{u_{2, \: 1}}\ {|_{\  2 \  1}}}+{{u_{2, \: 2}}\ {|_{\  2 \  2}}}(40)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
d1:=(I*Ω)/(Ų*I);
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
d2:=(Ω*I)/(I*Ų);
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
eq1:=equate(d1=I);
Type: List(Equation(Expression(Integer)))
fricas
eq2:=equate(d2=I);
Type: List(Equation(Expression(Integer)))
fricas
snake:=solve(concat(eq1,eq2),concat Ξ(Ξ(script('u,[[i,j]]), i,1..dim), j,1..dim));
Type: List(List(Equation(Expression(Integer))))
fricas
if #snake ~= 1 then error "no solution"
Type: Void
fricas
Ω:=eval(Ω,snake(1))

\label{eq41}-{{\frac{\overline{i^{2}}}{p_{1}}}\ {|_{\  1 \  1}}}+{{\frac{1}{p_{1}}}\ {|_{\  2 \  2}}}(41)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
matrix Ξ(Ξ(Ω/(𝐝.i*𝐝.j), i,1..dim), j,1..dim)

\label{eq42}\left[ 
\begin{array}{cc}
-{\frac{\overline{i^{2}}}{p_{1}}}& 0 
\
0 &{\frac{1}{p_{1}}}
(42)
Type: Matrix(ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer)))

Check "dimension" and the snake relations.

fricas
d:𝐋:=
       Ω    /
       X    /
       Ų

\label{eq43}2(43)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
test
    (    I Ω     )  /
    (     Ų I    )  =  I

\label{eq44} \mbox{\rm true} (44)
Type: Boolean
fricas
test
    (     Ω I    )  /
    (    I Ų     )  =  I

\label{eq45} \mbox{\rm true} (45)
Type: Boolean

Definition 4

Co-algebra

Compute the "three-point" function and use it to define co-multiplication.

fricas
W:=(Y,I)/Ų

\label{eq46}\begin{array}{@{}l}
\displaystyle
-{{\frac{p_{1}}{\overline{i^{2}}}}\ {|^{\  1 \  1 \  1}}}+{{\frac{{i^{2}}\ {p_{1}}}{\overline{i^{2}}}}\ {|^{\  1 \  2 \  2}}}+ 
\
\
\displaystyle
{{\frac{{i^{2}}\ {p_{1}}}{\overline{i^{2}}}}\ {|^{\  2 \  1 \  2}}}+{{\frac{{i^{2}}\ {p_{1}}}{\overline{i^{2}}}}\ {|^{\  2 \  2 \  1}}}
(46)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
λ:=(Ω,I,Ω)/(I,W,I)

\label{eq47}\begin{array}{@{}l}
\displaystyle
-{{\frac{\overline{i^{2}}}{p_{1}}}\ {|_{\  1 \  1}^{\  1}}}+{{\frac{i^{2}}{{p_{1}}\ {\overline{i^{2}}}}}\ {|_{\  2 \  2}^{\  1}}}-{{\frac{i^{2}}{p_{1}}}\ {|_{\  1 \  2}^{\  2}}}- 
\
\
\displaystyle
{{\frac{i^{2}}{p_{1}}}\ {|_{\  2 \  1}^{\  2}}}
(47)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))

fricas
test
     (    I Ω     )  /
     (     Y I    )  =  λ

\label{eq48} \mbox{\rm true} (48)
Type: Boolean
fricas
test
     (     Ω I    )  /
     (    I Y     )  =  λ

\label{eq49} \mbox{\rm true} (49)
Type: Boolean

Co-associativity

fricas
test(
  (  λ  ) / _
  ( I λ ) = _
  (  λ  ) / _
  ( λ I ) )

\label{eq50} \mbox{\rm false} (50)
Type: Boolean

Frobenius Condition (fork)

fricas
H :=
         Y    /
         λ

\label{eq51}\begin{array}{@{}l}
\displaystyle
-{{\frac{\overline{i^{2}}}{p_{1}}}\ {|_{\  1 \  1}^{\  1 \  1}}}+{{\frac{i^{2}}{{p_{1}}\ {\overline{i^{2}}}}}\ {|_{\  2 \  2}^{\  1 \  1}}}- 
\
\
\displaystyle
{{\frac{{i^{2}}^{2}}{{p_{1}}\ {\overline{i^{2}}}}}\ {|_{\  1 \  2}^{\  1 \  2}}}-{{\frac{{i^{2}}^{2}}{{p_{1}}\ {\overline{i^{2}}}}}\ {|_{\  2 \  1}^{\  1 \  2}}}- 
\
\
\displaystyle
{{\frac{{i^{2}}^{2}}{{p_{1}}\ {\overline{i^{2}}}}}\ {|_{\  1 \  2}^{\  2 \  1}}}-{{\frac{{i^{2}}^{2}}{{p_{1}}\ {\overline{i^{2}}}}}\ {|_{\  2 \  1}^{\  2 \  1}}}+ 
\
\
\displaystyle
{{\frac{{i^{2}}\ {\overline{i^{2}}}}{p_{1}}}\ {|_{\  1 \  1}^{\  2 \  2}}}-{{\frac{{i^{2}}^{2}}{{p_{1}}\ {\overline{i^{2}}}}}\ {|_{\  2 \  2}^{\  2 \  2}}}
(51)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
test
     (   λ I   )  /
     (  I Y    )  =  H

\label{eq52} \mbox{\rm false} (52)
Type: Boolean
fricas
test
     (   I λ   )  /
     (    Y I  )  =  H

\label{eq53} \mbox{\rm false} (53)
Type: Boolean

The Cartan-Killing form makes H of the Frobenius condition idempotent

fricas
test( eval(H,ck)=eval(H/H,ck) )
There are 10 exposed and 6 unexposed library operations named eval having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op eval 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 eval with argument type(s) ClosedLinearOperator(OrderedVariableList([1,2]),Expression(Integer)) Variable(ck)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

And it is unique.

fricas
h1:=map(numer,ravel(H-H/H)::List FRAC POLY INT);
Cannot convert the value from type List(Expression(Integer)) to List (Fraction(Polynomial(Integer))) .

Handle

fricas
Φ:𝐋 :=
         λ     /
         Y

\label{eq54}{{\frac{-{{\overline{i^{2}}}^{2}}-{{i^{2}}^{2}}}{{p_{1}}\ {\overline{i^{2}}}}}\ {|_{\  1}^{\  1}}}-{{\frac{2 \ {{i^{2}}^{2}}}{{p_{1}}\ {\overline{i^{2}}}}}\ {|_{\  2}^{\  2}}}(54)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))

The Cartan-Killing form makes Φ of the identity

fricas
test( eval(Φ,ck)=I )
There are 10 exposed and 6 unexposed library operations named eval having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op eval 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 eval with argument type(s) ClosedLinearOperator(OrderedVariableList([1,2]),Expression(Integer)) Variable(ck)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

and it can be the identity in only this one way.

fricas
solve(equate(Φ=I),[p[1],p[2]])

\label{eq55}\left[ \right](55)
Type: List(List(Equation(Expression(Integer))))

If handle is identity then fork is idempotent but the converse is not true

fricas
Φ1:=map(numer,ravel(Φ-I)::List FRAC POLY INT);
Cannot convert the value from type List(Expression(Integer)) to List (Fraction(Polynomial(Integer))) .

Bi-algebra conditions

fricas
ΦΦ:=         _
  (  λ λ  ) / _
  ( I X I ) / _
  (  Y Y  );
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
test( H/H = ΦΦ )

\label{eq56} \mbox{\rm false} (56)
Type: Boolean

The Cartan Killing form is a bi-algebra

fricas
bi1:=map(numer,ravel(ΦΦ-H)::List FRAC POLY INT);
Cannot convert the value from type List(Expression(Integer)) to List (Fraction(Polynomial(Integer))) .

Scalars for figure 12 (only 1 non-zero for Cartan-Killing form)

fricas
φφ:=          _
  (  Ω Ω  ) / _
  ( I X I ) / _
  (  Y Y  );
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
φφ1:=map((x:ℚ):ℚ+->numer x,φφ)

\label{eq57}{{\left({{\overline{i^{2}}}^{2}}+{{i^{2}}^{2}}\right)}\ {|_{\  1 \  1}}}-{2 \ {{i^{2}}^{2}}\ {|_{\  2 \  2}}}(57)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
φφ2:=denom(ravel(φφ).1)

\label{eq58}{p_{1}}^{2}(58)
Type: SparseMultivariatePolynomial?(Integer,Kernel(Expression(Integer)))
fricas
test(φφ=(1/φφ2)*φφ1)

\label{eq59} \mbox{\rm false} (59)
Type: Boolean
fricas
eval(φφ,ck)
There are 10 exposed and 6 unexposed library operations named eval having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op eval 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 eval with argument type(s) ClosedLinearOperator(OrderedVariableList([1,2]),Expression(Integer)) Variable(ck)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

Definition 5

i = Unit of the algebra

fricas
i:=𝐞.1

\label{eq60}|_{\  1}(60)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
test
         i     /
         λ     =    Ω

\label{eq61} \mbox{\rm false} (61)
Type: Boolean

Co-unit

i 
U

fricas
ι:𝐋:=
    (    i I   ) /
          Ų

\label{eq62}-{{\frac{p_{1}}{\overline{i^{2}}}}\ {|^{\  1}}}(62)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))

Y=U
ι  
fricas
test
        Y     /
        ι     =  Ų

\label{eq63} \mbox{\rm false} (63)
Type: Boolean

For example:

fricas
ex1:=[q=1,p[1]=0,p[2]=1]

\label{eq64}\left[{{i^{2}}= 1}, \:{{p_{1}}= 0}, \:{{p_{2}}= 1}\right](64)
Type: List(Equation(Polynomial(Integer)))
fricas
Ų0:𝐋  :=eval(Ų,ex1)

\label{eq65}0(65)
Type: ClosedLinearOperator?(OrderedVariableList?([1,2]),Expression(Integer))
fricas
Ω0:𝐋  :=eval(Ω,ex1)$𝐋
>> Error detected within library code: catdef: division by zero