Triality
In mathematics, triality is a relationship among three vector spaces, analogous to the duality relation between dual vector spaces. Most commonly, it describes those special features of the Dynkin diagram D4 and the associated Lie group Spin(8), the double cover of 8-dimensional rotation group SO(8), arising because the group has an outer automorphism of order three. There is a geometrical version of triality, analogous to duality in projective geometry.
Of all simple Lie groups, Spin(8) has the most symmetrical Dynkin diagram, D4. The diagram has four nodes with one node located at the center, and the other three attached symmetrically. The symmetry group of the diagram is the symmetric group S3 which acts by permuting the three legs. This gives rise to an S3 group of outer automorphisms of Spin(8). This automorphism group permutes the three 8-dimensional irreducible representations of Spin(8); these being the vector representation and two chiral spin representations. These automorphisms do not project to automorphisms of SO(8). The vector representation—the natural action of SO(8) (hence Spin(8)) on F8—consists over the real numbers of Euclidean 8-vectors and is generally known as the "defining module", while the chiral spin representations are also known as "half-spin representations", and all three of these are fundamental representations.
No other connected Dynkin diagram has an automorphism group of order greater than 2; for other Dn (corresponding to other even Spin groups, Spin(2n)), there is still the automorphism corresponding to switching the two half-spin representations, but these are not isomorphic to the vector representation.
Roughly speaking, symmetries of the Dynkin diagram lead to automorphisms of the Tits building associated with the group.  For special linear groups, one obtains projective duality.  For Spin(8), one finds a curious phenomenon involving 1-, 2-, and 4-dimensional subspaces of 8-dimensional space, historically known as "geometric triality".
The exceptional 3-fold symmetry of the D4 diagram also gives rise to the Steinberg group 3D4.

General formulation
A duality between two vector spaces over a field F is a non-degenerate bilinear form

  
    
      
        
          V
          
            1
          
        
        ×
        
          V
          
            2
          
        
        →
        F
        ,
      
    
    {\displaystyle V_{1}\times V_{2}\to F,}
  i.e., for each non-zero vector v in one of the two vector spaces, the pairing with v is a non-zero linear functional on the other.
Similarly, a triality between three vector spaces over a field F is a non-degenerate trilinear form

  
    
      
        
          V
          
            1
          
        
        ×
        
          V
          
            2
          
        
        ×
        
          V
          
            3
          
        
        →
        F
        ,
      
    
    {\displaystyle V_{1}\times V_{2}\times V_{3}\to F,}
  i.e., each non-zero vector in one of the three vector spaces induces a duality between the other two.
By choosing vectors ei in each Vi on which the trilinear form evaluates to 1, we find that the three vector spaces are all isomorphic to each other, and to their duals. Denoting this common vector space by V, the triality may be re-expressed as a bilinear multiplication

  
    
      
        V
        ×
        V
        →
        V
      
    
    {\displaystyle V\times V\to V}
  where each ei corresponds to the identity element in V. The non-degeneracy condition now implies that V is a composition algebra. It follows that V has dimension 1, 2, 4 or 8. If further F = R and the form used to identify V with its dual is positively definite, then V is a Euclidean Hurwitz algebra, and is therefore isomorphic to R, C, H or O.
Conversely, composition algebras immediately give rise to trialities by taking each Vi equal to the algebra, and contracting the multiplication with the inner product on the algebra to make a trilinear form.
An alternative construction of trialities uses spinors in dimensions 1, 2, 4 and 8. The eight-dimensional case corresponds to the triality property of Spin(8).

See also
Triple product, may be related to the 4-dimensional triality (on quaternions)

References
John Frank Adams (1981), Spin(8), Triality, F4 and all that, in "Superspace and supergravity", edited by Stephen Hawking and Martin Roček, Cambridge University Press, pages 435–445.
John Frank Adams (1996), Lectures on Exceptional Lie Groups (Chicago Lectures in Mathematics), edited by Zafer Mahmud and Mamora Mimura, University of Chicago Press, ISBN 0-226-00527-5.

Further reading
Knus, Max-Albert; Merkurjev, Alexander; Rost, Markus; Tignol, Jean-Pierre (1998). The book of involutions. Colloquium Publications. Vol. 44. With a preface by J. Tits. Providence, RI: American Mathematical Society. ISBN 0-8218-0904-0. Zbl 0955.16001.
Wilson, Robert (2009). The Finite Simple Groups. Graduate Texts in Mathematics. Vol. 251. Springer-Verlag. ISBN 1-84800-987-9. Zbl 1203.20012.

External links
Spinors and Trialities by John Baez
Triality with Zometool by David Richter