(* ::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|h), __],y_]:=Expand[c B[x,y]];
B[y_,c_*x:Subscript[(e|h), __]]:=Expand[c B[y,x]];
B[x_Plus,y_] := B[#,y]& /@ x;
B[x_,y_Plus] := B[x,#]& /@ y;


(* ::Input::Initialization:: *)
B[Subscript[e, i_,j_],Subscript[e, j_,i_]] := Subscript[\[Chi], i<j] Subscript[h, i,j]-Subscript[\[Chi], j<i] Subscript[h, j,i];
B[Subscript[h, i_,j_],Subscript[e, i_,j_]] := 2Subscript[e, i,j];
B[Subscript[h, j_,i_],Subscript[e, i_,j_]] := -2 Subscript[e, i,j];

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[h, i_,j_],Subscript[e, k_,l_]] := Expand[\[Eta](Subscript[\[Chi], i==k] Subscript[e, i,l]-Subscript[\[Chi], i==l] Subscript[e, k,i]-Subscript[\[Chi], j==k] Subscript[e, j,l]+Subscript[\[Chi], j==l] Subscript[e, k,j])];
B[Subscript[h, __],Subscript[h, __]] =0;


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


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



