(* ::Package:: *)

(************************************************************************)
(* This file was generated automatically by the Mathematica front end.  *)
(* It contains Initialization cells from a Notebook file, which         *)
(* typically will have the same name as this file except ending in      *)
(* ".nb" instead of ".m".                                               *)
(*                                                                      *)
(* This file is intended to be loaded into the Mathematica kernel using *)
(* the package loading commands Get or Needs.  Doing so is equivalent   *)
(* to using the Evaluate Initialization Cells menu command in the front *)
(* end.                                                                 *)
(*                                                                      *)
(* DO NOT EDIT THIS FILE.  This entire file is regenerated              *)
(* automatically each time the parent Notebook file is saved in the     *)
(* Mathematica front end.  Any changes you make to this file will be    *)
(* overwritten.                                                         *)
(************************************************************************)



(* ::Input::Initialization:: *)
Subscript[\[Chi], cond_] := If[TrueQ@cond, 1, 0];
B[0,_]=0; B[_,0]=0;
B[c_*x:Subscript[(e|f|g|h), __],y_]:=Expand[c B[x,y]];
B[y_,c_*x:Subscript[(e|f|g|h), __]]:=Expand[c B[y,x]];
B[x_Plus,y_] := B[#,y]& /@ x;
B[x_,y_Plus] := B[x,#]& /@ y;


(* ::Input::Initialization:: *)
B[Subscript[h, _],_] = 0; B[Subscript[g, _],Subscript[g, _]]= 0; 

B[Subscript[e, i_,j_],Subscript[e, k_,l_]] := \[Eta] Subscript[\[Chi], j==k] Subscript[e, i,l]-\[Eta] Subscript[\[Chi], l==i] Subscript[e, k,j];
B[Subscript[f, i_,j_],Subscript[f, k_,l_]] := \[Eta] \[Epsilon] Subscript[\[Chi], j==k] Subscript[f, i,l]-\[Eta] \[Epsilon] Subscript[\[Chi], l==i] Subscript[f, k,j];
B[Subscript[e, i_,j_],Subscript[f, k_,l_]] := Expand[Subscript[\[Chi], j==k]\[Eta](\[Epsilon] Subscript[\[Chi], i<l] Subscript[e, i,l]+Subscript[\[Chi], i>l] Subscript[f, i,l]) - Subscript[\[Chi], l==i]\[Eta](\[Epsilon] Subscript[\[Chi], k<j] Subscript[e, k,j]+Subscript[\[Chi], k>j] Subscript[f, k,j])+Subscript[\[Chi], j==k\[And]i==l](1/2 (Subscript[h, i]-Subscript[h, j])+\[Epsilon] (Subscript[g, i]-Subscript[g, j]))];

B[Subscript[g, i_],Subscript[e, j_,k_]] := (Subscript[\[Chi], i==j]-Subscript[\[Chi], i==k])Subscript[e, j,k];
B[Subscript[g, i_],Subscript[f, j_,k_]] := (Subscript[\[Chi], i==j]-Subscript[\[Chi], i==k])Subscript[f, j,k];


(* ::Input::Initialization:: *)
B[y_,x_] := Expand[-B[x,y]];


(* ::Input::Initialization:: *)
SuperPlus[Basis][n_] := Union@Flatten@{Table[Subscript[e, i,j], {i,n-1}, {j,i+1,n}],Table[Subscript[g, i], {i,n}]};
SuperMinus[Basis][n_] := Union@Flatten@{Table[Subscript[f, i,j], {i,2,n}, {j,i-1}],Table[Subscript[h, i], {i,n}]};
Basis[n_] := Union[SuperPlus[Basis][n], SuperMinus[Basis][n]];



