# Correlation of irreps (crystod-group --correlate, --correlate-kpath); testsuite section 02-09
# (a) With --correlate --supergroup-poscar P --subgroup-poscar C: for every special k point
#     of the space group G of P, the small irreps of the space group H of C that every
#     irrep of G becomes (DCORREL of the Bilbao server). One block per parent star and
#     star of H, with the arms that fall onto it; "m x" when m parent arms fall onto one
#     arm of H (the special points of H reached from parent lines only, N and P of I4/mcm,
#     L and T of R-3c). The labels of H refer to the ISO-IR frame of the subgroup file
#     printed under * Subgroup *; [..] is the Mulliken symbol at GM. The rows equal those
#     of DCORREL_Pm-3m_I4mcm, _P4mm and _R-3c (DCORREL omits the M arms that fall onto X
#     of I4/mcm). The six POSCARs are those of the DCORREL comparison. With --spinor
#     the double-valued irreps follow in every block (names of crystod --spinor; A/B a
#     time-reversal pair, A/A an irrep doubled by time reversal); Bilbao numbers them
#     otherwise (Pm-3m GM6..GM11 = -GM6+, -GM7+, -GM6-, -GM7-, -GM8+, -GM8-).
#     Every run also saves what it prints as CORREL_<formula>_<G>_<H> (symbols without
#     _ and /; _spinor appended with --spinor), e.g. CORREL_SrTiO3_Pm-3m_I4mcm;
#     --output-dir DIR / --no-files act as for --supergroup-cif.
# (b) With --correlate-kpath --sg SG --kpoint K0 K1 [--line L]: the compatibility
#     relations of the small irreps at K0 and at K1 along the line joining them (one name:
#     every line from K0). In Pm-3m, DT1/DT2/DT3/DT4/DT5 are Delta1/Delta2/Delta2'/
#     Delta1'/Delta5 of Bouckaert, Smoluchowski and Wigner (by the characters of
#     crystod-group --table --sg Pm-3m --kpoint 0 1/4 0).
# (c) With --correlate --pg G --subgroup H: the correlation table of the point group G, one
#     column per inequivalent orientation (conjugacy class) of the subgroup type H.
#     Mulliken symbols from phonopy's tables; B1/B2/B3 follow the classes of H listed
#     under * Subgroup * (2_d: twofold rotation about d, m_d: mirror normal to d, in the
#     axes of the table of G).

$ crystod-group --correlate --supergroup-poscar POSCAR_SrTiO3_Pm-3m --subgroup-poscar POSCAR_SrTiO3_I4mcm

* Supergroup *
Pm-3m (No. 221): POSCAR_SrTiO3_Pm-3m

* Subgroup *
I4/mcm (No. 140): POSCAR_SrTiO3_I4mcm
cell size 2, index 6
sublattice basis (parent primitive units): (0,1,1), (0,-1,1), (1,0,-1)
labels of I4/mcm in its ISO-IR frame (that of the subgroup structure file):
basis (parent conventional units): (1,-1,0), (1,1,0), (0,0,2)
origin: (0,0,0)

* Transformation matrix (parent -> child) *
Pm-3m (No. 221) -> I4/mcm (No. 140), conventional settings of the input files
  [     1     1     0 ] [     0 ]
  [    -1     1     0 ] [     0 ]
  [     0     0     2 ] [     0 ]
(columns of P: the child basis vectors a', b', c' in parent units, (a', b', c') = (a, b, c) P;
 last column: the child origin p in parent fractional coordinates, x_parent = P x_child + p;
 the AMPLIMODES / Bilbao convention)

* Correlation of the irreps at the special k points *
GM (0, 0, 0) of Pm-3m -> GM (0, 0, 0) of I4/mcm
  GM1+(1) [A1g] -> GM1+(1) [A1g]
  GM2+(1) [A2g] -> GM4+(1) [B2g]
  GM3+(2) [Eg]  -> GM1+(1) [A1g] + GM4+(1) [B2g]
  GM4+(3) [T1g] -> GM3+(1) [A2g] + GM5+(2) [Eg]
  GM5+(3) [T2g] -> GM2+(1) [B1g] + GM5+(2) [Eg]
  GM1-(1) [A1u] -> GM1-(1) [A1u]
  GM2-(1) [A2u] -> GM4-(1) [B2u]
  GM3-(2) [Eu]  -> GM1-(1) [A1u] + GM4-(1) [B2u]
  GM4-(3) [T1u] -> GM3-(1) [A2u] + GM5-(2) [Eu]
  GM5-(3) [T2u] -> GM2-(1) [B1u] + GM5-(2) [Eu]

R (1/2, 1/2, 1/2) of Pm-3m -> GM (0, 0, 0) of I4/mcm
  R1+(1) -> GM3+(1) [A2g]
  R2+(1) -> GM2+(1) [B1g]
  R3+(2) -> GM2+(1) [B1g] + GM3+(1) [A2g]
  R4+(3) -> GM1+(1) [A1g] + GM5+(2) [Eg]
  R5+(3) -> GM4+(1) [B2g] + GM5+(2) [Eg]
  R1-(1) -> GM3-(1) [A2u]
  R2-(1) -> GM2-(1) [B1u]
  R3-(2) -> GM2-(1) [B1u] + GM3-(1) [A2u]
  R4-(3) -> GM1-(1) [A1u] + GM5-(2) [Eu]
  R5-(3) -> GM4-(1) [B2u] + GM5-(2) [Eu]

X (1/2, 0, 0) of Pm-3m, 2 of 3 arms -> X (0, 0, 1/2) [conventional (1/2, 1/2, 0)] of I4/mcm, 2 arms
  X1+(1) -> X1+(1)
  X2+(1) -> X1+(1)
  X3+(1) -> X4+(1)
  X4+(1) -> X4+(1)
  X5+(2) -> X2+(1) + X3+(1)
  X1-(1) -> X1-(1)
  X2-(1) -> X1-(1)
  X3-(1) -> X4-(1)
  X4-(1) -> X4-(1)
  X5-(2) -> X2-(1) + X3-(1)

X (0, 0, 1/2) of Pm-3m, 1 of 3 arms -> M (1/2, 1/2, 1/2) [conventional (1, 1, 1)] of I4/mcm, 1 arm
  X1+(1) -> M3+(1)
  X2+(1) -> M2+(1)
  X3+(1) -> M1+(1)
  X4+(1) -> M4+(1)
  X5+(2) -> M5+(2)
  X1-(1) -> M3-(1)
  X2-(1) -> M2-(1)
  X3-(1) -> M1-(1)
  X4-(1) -> M4-(1)
  X5-(2) -> M5-(2)

M (0, 1/2, 1/2) of Pm-3m, 2 of 3 arms ->
    X (0, 0, 1/2) [conventional (1/2, 1/2, 0)] of I4/mcm, 2 arms
  M1+(1) -> X2+(1)
  M2+(1) -> X2+(1)
  M3+(1) -> X3+(1)
  M4+(1) -> X3+(1)
  M5+(2) -> X1+(1) + X4+(1)
  M1-(1) -> X2-(1)
  M2-(1) -> X2-(1)
  M3-(1) -> X3-(1)
  M4-(1) -> X3-(1)
  M5-(2) -> X1-(1) + X4-(1)

M (1/2, 1/2, 0) of Pm-3m, 1 of 3 arms -> M (1/2, 1/2, 1/2) [conventional (1, 1, 1)] of I4/mcm, 1 arm
  M1+(1) -> M1+(1)
  M2+(1) -> M4+(1)
  M3+(1) -> M3+(1)
  M4+(1) -> M2+(1)
  M5+(2) -> M5+(2)
  M1-(1) -> M1-(1)
  M2-(1) -> M4-(1)
  M3-(1) -> M3-(1)
  M4-(1) -> M2-(1)
  M5-(2) -> M5-(2)

LD (1/4, -1/4, 1/4) of Pm-3m (symmetry line), 8 arms ->
    N (0, 1/2, 0) [conventional (1/2, 0, 1/2)] of I4/mcm, 4 arms (2 arms of Pm-3m per arm of I4/mcm)
  2 x LD1(1) -> N1(2)
  2 x LD2(1) -> N1(2)
  2 x LD3(2) -> 2 N1(2)

Z (1/2, 0, 1/4) of Pm-3m (symmetry line), 4 of 12 arms ->
    P (1/4, 1/4, 1/4) [conventional (1/2, 1/2, 1/2)] of I4/mcm, 2 arms
    (2 arms of Pm-3m per arm of I4/mcm)
  2 x Z1(1) -> P5(2)
  2 x Z2(1) -> P5(2)
  2 x Z3(1) -> P1P3(2)
  2 x Z4(1) -> P2P4(2)

note: the labels of I4/mcm refer to its ISO-IR frame printed under * Subgroup *; [..] is the
      Mulliken symbol of an irrep at GM; m x: m arms of Pm-3m fall onto one arm of I4/mcm.

* Output files *
  Report written to: CORREL_SrTiO3_Pm-3m_I4mcm (this output)

$ crystod-group --correlate --supergroup-poscar POSCAR_BaTiO3_Pm-3m --subgroup-poscar POSCAR_BaTiO3_P4mm

* Supergroup *
Pm-3m (No. 221): POSCAR_BaTiO3_Pm-3m

* Subgroup *
P4mm (No. 99): POSCAR_BaTiO3_P4mm
cell size 1, index 6
sublattice basis (parent primitive units): (1,0,0), (0,1,0), (0,0,1)
labels of P4mm in its ISO-IR frame (that of the subgroup structure file):
basis (parent conventional units): (1,0,0), (0,1,0), (0,0,1)
origin: (0,0,0.5108)

* Transformation matrix (parent -> child) *
Pm-3m (No. 221) -> P4mm (No. 99), conventional settings of the input files
  [     1     0     0 ] [     0 ]
  [     0     1     0 ] [     0 ]
  [     0     0     1 ] [ 0.5108 ]
(columns of P: the child basis vectors a', b', c' in parent units, (a', b', c') = (a, b, c) P;
 last column: the child origin p in parent fractional coordinates, x_parent = P x_child + p;
 the AMPLIMODES / Bilbao convention)

* Correlation of the irreps at the special k points *
GM (0, 0, 0) of Pm-3m -> GM (0, 0, 0) of P4mm
  GM1+(1) [A1g] -> GM1(1) [A1]
  GM2+(1) [A2g] -> GM2(1) [B1]
  GM3+(2) [Eg]  -> GM1(1) [A1] + GM2(1) [B1]
  GM4+(3) [T1g] -> GM4(1) [A2] + GM5(2) [E]
  GM5+(3) [T2g] -> GM3(1) [B2] + GM5(2) [E]
  GM1-(1) [A1u] -> GM4(1) [A2]
  GM2-(1) [A2u] -> GM3(1) [B2]
  GM3-(2) [Eu]  -> GM3(1) [B2] + GM4(1) [A2]
  GM4-(3) [T1u] -> GM1(1) [A1] + GM5(2) [E]
  GM5-(3) [T2u] -> GM2(1) [B1] + GM5(2) [E]

R (1/2, 1/2, 1/2) of Pm-3m -> A (1/2, 1/2, 1/2) of P4mm
  R1+(1) -> A1(1)
  R2+(1) -> A2(1)
  R3+(2) -> A1(1) + A2(1)
  R4+(3) -> A4(1) + A5(2)
  R5+(3) -> A3(1) + A5(2)
  R1-(1) -> A4(1)
  R2-(1) -> A3(1)
  R3-(2) -> A3(1) + A4(1)
  R4-(3) -> A1(1) + A5(2)
  R5-(3) -> A2(1) + A5(2)

X (0, 1/2, 0) of Pm-3m, 2 of 3 arms -> X (0, 1/2, 0) of P4mm, 2 arms
  X1+(1) -> X1(1)
  X2+(1) -> X1(1)
  X3+(1) -> X4(1)
  X4+(1) -> X4(1)
  X5+(2) -> X2(1) + X3(1)
  X1-(1) -> X2(1)
  X2-(1) -> X2(1)
  X3-(1) -> X3(1)
  X4-(1) -> X3(1)
  X5-(2) -> X1(1) + X4(1)

X (0, 0, 1/2) of Pm-3m, 1 of 3 arms -> Z (0, 0, 1/2) of P4mm, 1 arm
  X1+(1) -> Z1(1)
  X2+(1) -> Z2(1)
  X3+(1) -> Z4(1)
  X4+(1) -> Z3(1)
  X5+(2) -> Z5(2)
  X1-(1) -> Z4(1)
  X2-(1) -> Z3(1)
  X3-(1) -> Z1(1)
  X4-(1) -> Z2(1)
  X5-(2) -> Z5(2)

M (1/2, 1/2, 0) of Pm-3m, 1 of 3 arms -> M (1/2, 1/2, 0) of P4mm, 1 arm
  M1+(1) -> M1(1)
  M2+(1) -> M2(1)
  M3+(1) -> M4(1)
  M4+(1) -> M3(1)
  M5+(2) -> M5(2)
  M1-(1) -> M4(1)
  M2-(1) -> M3(1)
  M3-(1) -> M1(1)
  M4-(1) -> M2(1)
  M5-(2) -> M5(2)

M (0, 1/2, 1/2) of Pm-3m, 2 of 3 arms -> R (0, 1/2, 1/2) of P4mm, 2 arms
  M1+(1) -> R1(1)
  M2+(1) -> R1(1)
  M3+(1) -> R3(1)
  M4+(1) -> R3(1)
  M5+(2) -> R2(1) + R4(1)
  M1-(1) -> R2(1)
  M2-(1) -> R2(1)
  M3-(1) -> R4(1)
  M4-(1) -> R4(1)
  M5-(2) -> R1(1) + R3(1)

note: the labels of P4mm refer to its ISO-IR frame printed under * Subgroup *; [..] is the Mulliken
      symbol of an irrep at GM.

* Output files *
  Report written to: CORREL_BaTiO3_Pm-3m_P4mm (this output)

$ crystod-group --correlate --supergroup-poscar POSCAR_AlF3_Pm-3m --subgroup-poscar POSCAR_AlF3_R-3c

* Supergroup *
Pm-3m (No. 221): POSCAR_AlF3_Pm-3m

* Subgroup *
R-3c (No. 167): POSCAR_AlF3_R-3c
cell size 2, index 8
sublattice basis (parent primitive units): (1,1,0), (0,1,1), (1,0,1)
labels of R-3c in its ISO-IR frame (that of the subgroup structure file):
basis (parent conventional units): (1,0,-1), (-1,1,0), (2,2,2)
origin: (1,1,1)

* Transformation matrix (parent -> child) *
Pm-3m (No. 221) -> R-3c (No. 167), conventional settings of the input files
  [     1    -1     2 ] [     0 ]
  [     0     1     2 ] [     0 ]
  [    -1     0     2 ] [     0 ]
(columns of P: the child basis vectors a', b', c' in parent units, (a', b', c') = (a, b, c) P;
 last column: the child origin p in parent fractional coordinates, x_parent = P x_child + p;
 the AMPLIMODES / Bilbao convention)

* Correlation of the irreps at the special k points *
GM (0, 0, 0) of Pm-3m -> GM (0, 0, 0) of R-3c
  GM1+(1) [A1g] -> GM1+(1) [A1g]
  GM2+(1) [A2g] -> GM2+(1) [A2g]
  GM3+(2) [Eg]  -> GM3+(2) [Eg]
  GM4+(3) [T1g] -> GM2+(1) [A2g] + GM3+(2) [Eg]
  GM5+(3) [T2g] -> GM1+(1) [A1g] + GM3+(2) [Eg]
  GM1-(1) [A1u] -> GM1-(1) [A1u]
  GM2-(1) [A2u] -> GM2-(1) [A2u]
  GM3-(2) [Eu]  -> GM3-(2) [Eu]
  GM4-(3) [T1u] -> GM2-(1) [A2u] + GM3-(2) [Eu]
  GM5-(3) [T2u] -> GM1-(1) [A1u] + GM3-(2) [Eu]

R (1/2, 1/2, 1/2) of Pm-3m -> GM (0, 0, 0) of R-3c
  R1+(1) -> GM2+(1) [A2g]
  R2+(1) -> GM1+(1) [A1g]
  R3+(2) -> GM3+(2) [Eg]
  R4+(3) -> GM1+(1) [A1g] + GM3+(2) [Eg]
  R5+(3) -> GM2+(1) [A2g] + GM3+(2) [Eg]
  R1-(1) -> GM2-(1) [A2u]
  R2-(1) -> GM1-(1) [A1u]
  R3-(2) -> GM3-(2) [Eu]
  R4-(3) -> GM1-(1) [A1u] + GM3-(2) [Eu]
  R5-(3) -> GM2-(1) [A2u] + GM3-(2) [Eu]

X (0, 1/2, 0) of Pm-3m, 3 arms -> F (1/2, 1/2, 0) [conventional (0, 1/2, 1)] of R-3c, 3 arms
  X1+(1) -> F2+(1)
  X2+(1) -> F1+(1)
  X3+(1) -> F1+(1)
  X4+(1) -> F2+(1)
  X5+(2) -> F1+(1) + F2+(1)
  X1-(1) -> F2-(1)
  X2-(1) -> F1-(1)
  X3-(1) -> F1-(1)
  X4-(1) -> F2-(1)
  X5-(2) -> F1-(1) + F2-(1)

M (1/2, 0, 1/2) of Pm-3m, 3 arms -> F (1/2, 1/2, 0) [conventional (0, 1/2, 1)] of R-3c, 3 arms
  M1+(1) -> F1+(1)
  M2+(1) -> F2+(1)
  M3+(1) -> F2+(1)
  M4+(1) -> F1+(1)
  M5+(2) -> F1+(1) + F2+(1)
  M1-(1) -> F1-(1)
  M2-(1) -> F2-(1)
  M3-(1) -> F2-(1)
  M4-(1) -> F1-(1)
  M5-(2) -> F1-(1) + F2-(1)

LD (-1/4, 1/4, 1/4) of Pm-3m (symmetry line), 6 of 8 arms ->
    L (0, 1/2, 0) [conventional (-1/2, 1/2, 1/2)] of R-3c, 3 arms (2 arms of Pm-3m per arm of R-3c)
  2 x LD1(1) -> L1(2)
  2 x LD2(1) -> L1(2)
  2 x LD3(2) -> 2 L1(2)

LD (1/4, 1/4, 1/4) of Pm-3m (symmetry line), 2 of 8 arms ->
    T (1/2, 1/2, 1/2) [conventional (0, 0, 3/2)] of R-3c, 1 arm (2 arms of Pm-3m per arm of R-3c)
  2 x LD1(1) -> T3(2)
  2 x LD2(1) -> T3(2)
  2 x LD3(2) -> T1T2(4)

note: the labels of R-3c refer to its ISO-IR frame printed under * Subgroup *; [..] is the Mulliken
      symbol of an irrep at GM; m x: m arms of Pm-3m fall onto one arm of R-3c.

* Output files *
  Report written to: CORREL_AlF3_Pm-3m_R-3c (this output)

$ crystod-group --correlate --supergroup-poscar POSCAR_SrTiO3_Pm-3m --subgroup-poscar POSCAR_SrTiO3_I4mcm --spinor

* Supergroup *
Pm-3m (No. 221): POSCAR_SrTiO3_Pm-3m

* Subgroup *
I4/mcm (No. 140): POSCAR_SrTiO3_I4mcm
cell size 2, index 6
sublattice basis (parent primitive units): (0,1,1), (0,-1,1), (1,0,-1)
labels of I4/mcm in its ISO-IR frame (that of the subgroup structure file):
basis (parent conventional units): (1,-1,0), (1,1,0), (0,0,2)
origin: (0,0,0)

* Transformation matrix (parent -> child) *
Pm-3m (No. 221) -> I4/mcm (No. 140), conventional settings of the input files
  [     1     1     0 ] [     0 ]
  [    -1     1     0 ] [     0 ]
  [     0     0     2 ] [     0 ]
(columns of P: the child basis vectors a', b', c' in parent units, (a', b', c') = (a, b, c) P;
 last column: the child origin p in parent fractional coordinates, x_parent = P x_child + p;
 the AMPLIMODES / Bilbao convention)

* Correlation of the irreps at the special k points *
GM (0, 0, 0) of Pm-3m -> GM (0, 0, 0) of I4/mcm
  GM1+(1) [A1g] -> GM1+(1) [A1g]
  GM2+(1) [A2g] -> GM4+(1) [B2g]
  GM3+(2) [Eg]  -> GM1+(1) [A1g] + GM4+(1) [B2g]
  GM4+(3) [T1g] -> GM3+(1) [A2g] + GM5+(2) [Eg]
  GM5+(3) [T2g] -> GM2+(1) [B1g] + GM5+(2) [Eg]
  GM1-(1) [A1u] -> GM1-(1) [A1u]
  GM2-(1) [A2u] -> GM4-(1) [B2u]
  GM3-(2) [Eu]  -> GM1-(1) [A1u] + GM4-(1) [B2u]
  GM4-(3) [T1u] -> GM3-(1) [A2u] + GM5-(2) [Eu]
  GM5-(3) [T2u] -> GM2-(1) [B1u] + GM5-(2) [Eu]
  -GM6+(2) -> -GM6+(2)
  -GM6-(2) -> -GM6-(2)
  -GM7+(2) -> -GM7+(2)
  -GM7-(2) -> -GM7-(2)
  -GM8+(4) -> -GM6+(2) + -GM7+(2)
  -GM8-(4) -> -GM6-(2) + -GM7-(2)

R (1/2, 1/2, 1/2) of Pm-3m -> GM (0, 0, 0) of I4/mcm
  R1+(1) -> GM3+(1) [A2g]
  R2+(1) -> GM2+(1) [B1g]
  R3+(2) -> GM2+(1) [B1g] + GM3+(1) [A2g]
  R4+(3) -> GM1+(1) [A1g] + GM5+(2) [Eg]
  R5+(3) -> GM4+(1) [B2g] + GM5+(2) [Eg]
  R1-(1) -> GM3-(1) [A2u]
  R2-(1) -> GM2-(1) [B1u]
  R3-(2) -> GM2-(1) [B1u] + GM3-(1) [A2u]
  R4-(3) -> GM1-(1) [A1u] + GM5-(2) [Eu]
  R5-(3) -> GM4-(1) [B2u] + GM5-(2) [Eu]
  -R6+(2) -> -GM6+(2)
  -R6-(2) -> -GM6-(2)
  -R7+(2) -> -GM7+(2)
  -R7-(2) -> -GM7-(2)
  -R8+(4) -> -GM6+(2) + -GM7+(2)
  -R8-(4) -> -GM6-(2) + -GM7-(2)

X (1/2, 0, 0) of Pm-3m, 2 of 3 arms -> X (0, 0, 1/2) [conventional (1/2, 1/2, 0)] of I4/mcm, 2 arms
  X1+(1) -> X1+(1)
  X2+(1) -> X1+(1)
  X3+(1) -> X4+(1)
  X4+(1) -> X4+(1)
  X5+(2) -> X2+(1) + X3+(1)
  X1-(1) -> X1-(1)
  X2-(1) -> X1-(1)
  X3-(1) -> X4-(1)
  X4-(1) -> X4-(1)
  X5-(2) -> X2-(1) + X3-(1)
  -X6+(2) -> -X5+(2)
  -X6-(2) -> -X5-(2)
  -X7+(2) -> -X5+(2)
  -X7-(2) -> -X5-(2)

X (0, 0, 1/2) of Pm-3m, 1 of 3 arms -> M (1/2, 1/2, 1/2) [conventional (1, 1, 1)] of I4/mcm, 1 arm
  X1+(1) -> M3+(1)
  X2+(1) -> M2+(1)
  X3+(1) -> M1+(1)
  X4+(1) -> M4+(1)
  X5+(2) -> M5+(2)
  X1-(1) -> M3-(1)
  X2-(1) -> M2-(1)
  X3-(1) -> M1-(1)
  X4-(1) -> M4-(1)
  X5-(2) -> M5-(2)
  -X6+(2) -> -M6+(2)
  -X6-(2) -> -M6-(2)
  -X7+(2) -> -M7+(2)
  -X7-(2) -> -M7-(2)

M (0, 1/2, 1/2) of Pm-3m, 2 of 3 arms ->
    X (0, 0, 1/2) [conventional (1/2, 1/2, 0)] of I4/mcm, 2 arms
  M1+(1) -> X2+(1)
  M2+(1) -> X2+(1)
  M3+(1) -> X3+(1)
  M4+(1) -> X3+(1)
  M5+(2) -> X1+(1) + X4+(1)
  M1-(1) -> X2-(1)
  M2-(1) -> X2-(1)
  M3-(1) -> X3-(1)
  M4-(1) -> X3-(1)
  M5-(2) -> X1-(1) + X4-(1)
  -M6+(2) -> -X5+(2)
  -M6-(2) -> -X5-(2)
  -M7+(2) -> -X5+(2)
  -M7-(2) -> -X5-(2)

M (1/2, 1/2, 0) of Pm-3m, 1 of 3 arms -> M (1/2, 1/2, 1/2) [conventional (1, 1, 1)] of I4/mcm, 1 arm
  M1+(1) -> M1+(1)
  M2+(1) -> M4+(1)
  M3+(1) -> M3+(1)
  M4+(1) -> M2+(1)
  M5+(2) -> M5+(2)
  M1-(1) -> M1-(1)
  M2-(1) -> M4-(1)
  M3-(1) -> M3-(1)
  M4-(1) -> M2-(1)
  M5-(2) -> M5-(2)
  -M6+(2) -> -M6+(2)
  -M6-(2) -> -M6-(2)
  -M7+(2) -> -M7+(2)
  -M7-(2) -> -M7-(2)

LD (1/4, -1/4, 1/4) of Pm-3m (symmetry line), 8 arms ->
    N (0, 1/2, 0) [conventional (1/2, 0, 1/2)] of I4/mcm, 4 arms (2 arms of Pm-3m per arm of I4/mcm)
  2 x LD1(1) -> N1(2)
  2 x LD2(1) -> N1(2)
  2 x LD3(2) -> 2 N1(2)
  2 x -LD4/-LD5(2) -> -N2/-N2(4)
  2 x -LD6(2)      -> -N2/-N2(4)

Z (1/2, 0, 1/4) of Pm-3m (symmetry line), 4 of 12 arms ->
    P (1/4, 1/4, 1/4) [conventional (1/2, 1/2, 1/2)] of I4/mcm, 2 arms
    (2 arms of Pm-3m per arm of I4/mcm)
  2 x Z1(1) -> P5(2)
  2 x Z2(1) -> P5(2)
  2 x Z3(1) -> P1P3(2)
  2 x Z4(1) -> P2P4(2)
  2 x -Z5(2) -> -P6/-P7(4)

NOTE: LD of Pm-3m: Bradley & Cracknell (1972) number the two-dimensional irrep LD4 and the pair LD5,
      LD6 (Table 6.5); here the pair is -LD4, -LD5 and the two-dimensional irrep -LD6
note: the labels of I4/mcm refer to its ISO-IR frame printed under * Subgroup *; [..] is the
      Mulliken symbol of an irrep at GM; m x: m arms of Pm-3m fall onto one arm of I4/mcm.
note: double-valued rows (--spinor): A/B is a pair of irreps that time reversal makes
      degenerate, A/A an irrep doubled by it.
 (Double-valued irreps: overbar as a leading '-', index after the single-valued irreps, parity suffix;
  Bradley & Cracknell (1972) Table 6.5 (Koster) numbering, except that the 2-D irrep of 32, 3m, -3m
  is last (Miller & Love order) and complex pairs of cyclic co-groups follow ISO-IR labels; see the manual.)

* Output files *
  Report written to: CORREL_SrTiO3_Pm-3m_I4mcm_spinor (this output)

$ crystod-group --correlate --supergroup-poscar POSCAR_BaTiO3_Pm-3m --subgroup-poscar POSCAR_BaTiO3_P4mm --spinor

* Supergroup *
Pm-3m (No. 221): POSCAR_BaTiO3_Pm-3m

* Subgroup *
P4mm (No. 99): POSCAR_BaTiO3_P4mm
cell size 1, index 6
sublattice basis (parent primitive units): (1,0,0), (0,1,0), (0,0,1)
labels of P4mm in its ISO-IR frame (that of the subgroup structure file):
basis (parent conventional units): (1,0,0), (0,1,0), (0,0,1)
origin: (0,0,0.5108)

* Transformation matrix (parent -> child) *
Pm-3m (No. 221) -> P4mm (No. 99), conventional settings of the input files
  [     1     0     0 ] [     0 ]
  [     0     1     0 ] [     0 ]
  [     0     0     1 ] [ 0.5108 ]
(columns of P: the child basis vectors a', b', c' in parent units, (a', b', c') = (a, b, c) P;
 last column: the child origin p in parent fractional coordinates, x_parent = P x_child + p;
 the AMPLIMODES / Bilbao convention)

* Correlation of the irreps at the special k points *
GM (0, 0, 0) of Pm-3m -> GM (0, 0, 0) of P4mm
  GM1+(1) [A1g] -> GM1(1) [A1]
  GM2+(1) [A2g] -> GM2(1) [B1]
  GM3+(2) [Eg]  -> GM1(1) [A1] + GM2(1) [B1]
  GM4+(3) [T1g] -> GM4(1) [A2] + GM5(2) [E]
  GM5+(3) [T2g] -> GM3(1) [B2] + GM5(2) [E]
  GM1-(1) [A1u] -> GM4(1) [A2]
  GM2-(1) [A2u] -> GM3(1) [B2]
  GM3-(2) [Eu]  -> GM3(1) [B2] + GM4(1) [A2]
  GM4-(3) [T1u] -> GM1(1) [A1] + GM5(2) [E]
  GM5-(3) [T2u] -> GM2(1) [B1] + GM5(2) [E]
  -GM6+(2) -> -GM6(2)
  -GM6-(2) -> -GM6(2)
  -GM7+(2) -> -GM7(2)
  -GM7-(2) -> -GM7(2)
  -GM8+(4) -> -GM6(2) + -GM7(2)
  -GM8-(4) -> -GM6(2) + -GM7(2)

R (1/2, 1/2, 1/2) of Pm-3m -> A (1/2, 1/2, 1/2) of P4mm
  R1+(1) -> A1(1)
  R2+(1) -> A2(1)
  R3+(2) -> A1(1) + A2(1)
  R4+(3) -> A4(1) + A5(2)
  R5+(3) -> A3(1) + A5(2)
  R1-(1) -> A4(1)
  R2-(1) -> A3(1)
  R3-(2) -> A3(1) + A4(1)
  R4-(3) -> A1(1) + A5(2)
  R5-(3) -> A2(1) + A5(2)
  -R6+(2) -> -A6(2)
  -R6-(2) -> -A6(2)
  -R7+(2) -> -A7(2)
  -R7-(2) -> -A7(2)
  -R8+(4) -> -A6(2) + -A7(2)
  -R8-(4) -> -A6(2) + -A7(2)

X (0, 1/2, 0) of Pm-3m, 2 of 3 arms -> X (0, 1/2, 0) of P4mm, 2 arms
  X1+(1) -> X1(1)
  X2+(1) -> X1(1)
  X3+(1) -> X4(1)
  X4+(1) -> X4(1)
  X5+(2) -> X2(1) + X3(1)
  X1-(1) -> X2(1)
  X2-(1) -> X2(1)
  X3-(1) -> X3(1)
  X4-(1) -> X3(1)
  X5-(2) -> X1(1) + X4(1)
  -X6+(2) -> -X5(2)
  -X6-(2) -> -X5(2)
  -X7+(2) -> -X5(2)
  -X7-(2) -> -X5(2)

X (0, 0, 1/2) of Pm-3m, 1 of 3 arms -> Z (0, 0, 1/2) of P4mm, 1 arm
  X1+(1) -> Z1(1)
  X2+(1) -> Z2(1)
  X3+(1) -> Z4(1)
  X4+(1) -> Z3(1)
  X5+(2) -> Z5(2)
  X1-(1) -> Z4(1)
  X2-(1) -> Z3(1)
  X3-(1) -> Z1(1)
  X4-(1) -> Z2(1)
  X5-(2) -> Z5(2)
  -X6+(2) -> -Z6(2)
  -X6-(2) -> -Z6(2)
  -X7+(2) -> -Z7(2)
  -X7-(2) -> -Z7(2)

M (1/2, 1/2, 0) of Pm-3m, 1 of 3 arms -> M (1/2, 1/2, 0) of P4mm, 1 arm
  M1+(1) -> M1(1)
  M2+(1) -> M2(1)
  M3+(1) -> M4(1)
  M4+(1) -> M3(1)
  M5+(2) -> M5(2)
  M1-(1) -> M4(1)
  M2-(1) -> M3(1)
  M3-(1) -> M1(1)
  M4-(1) -> M2(1)
  M5-(2) -> M5(2)
  -M6+(2) -> -M6(2)
  -M6-(2) -> -M6(2)
  -M7+(2) -> -M7(2)
  -M7-(2) -> -M7(2)

M (0, 1/2, 1/2) of Pm-3m, 2 of 3 arms -> R (0, 1/2, 1/2) of P4mm, 2 arms
  M1+(1) -> R1(1)
  M2+(1) -> R1(1)
  M3+(1) -> R3(1)
  M4+(1) -> R3(1)
  M5+(2) -> R2(1) + R4(1)
  M1-(1) -> R2(1)
  M2-(1) -> R2(1)
  M3-(1) -> R4(1)
  M4-(1) -> R4(1)
  M5-(2) -> R1(1) + R3(1)
  -M6+(2) -> -R5(2)
  -M6-(2) -> -R5(2)
  -M7+(2) -> -R5(2)
  -M7-(2) -> -R5(2)

note: the labels of P4mm refer to its ISO-IR frame printed under * Subgroup *; [..] is the Mulliken
      symbol of an irrep at GM.
note: double-valued rows (--spinor): A/B is a pair of irreps that time reversal makes
      degenerate, A/A an irrep doubled by it.
 (Double-valued irreps: overbar as a leading '-', index after the single-valued irreps, parity suffix;
  Bradley & Cracknell (1972) Table 6.5 (Koster) numbering, except that the 2-D irrep of 32, 3m, -3m
  is last (Miller & Love order) and complex pairs of cyclic co-groups follow ISO-IR labels; see the manual.)

* Output files *
  Report written to: CORREL_BaTiO3_Pm-3m_P4mm_spinor (this output)

$ crystod-group --correlate --supergroup-poscar POSCAR_AlF3_Pm-3m --subgroup-poscar POSCAR_AlF3_R-3c --spinor

* Supergroup *
Pm-3m (No. 221): POSCAR_AlF3_Pm-3m

* Subgroup *
R-3c (No. 167): POSCAR_AlF3_R-3c
cell size 2, index 8
sublattice basis (parent primitive units): (1,1,0), (0,1,1), (1,0,1)
labels of R-3c in its ISO-IR frame (that of the subgroup structure file):
basis (parent conventional units): (1,0,-1), (-1,1,0), (2,2,2)
origin: (1,1,1)

* Transformation matrix (parent -> child) *
Pm-3m (No. 221) -> R-3c (No. 167), conventional settings of the input files
  [     1    -1     2 ] [     0 ]
  [     0     1     2 ] [     0 ]
  [    -1     0     2 ] [     0 ]
(columns of P: the child basis vectors a', b', c' in parent units, (a', b', c') = (a, b, c) P;
 last column: the child origin p in parent fractional coordinates, x_parent = P x_child + p;
 the AMPLIMODES / Bilbao convention)

* Correlation of the irreps at the special k points *
GM (0, 0, 0) of Pm-3m -> GM (0, 0, 0) of R-3c
  GM1+(1) [A1g] -> GM1+(1) [A1g]
  GM2+(1) [A2g] -> GM2+(1) [A2g]
  GM3+(2) [Eg]  -> GM3+(2) [Eg]
  GM4+(3) [T1g] -> GM2+(1) [A2g] + GM3+(2) [Eg]
  GM5+(3) [T2g] -> GM1+(1) [A1g] + GM3+(2) [Eg]
  GM1-(1) [A1u] -> GM1-(1) [A1u]
  GM2-(1) [A2u] -> GM2-(1) [A2u]
  GM3-(2) [Eu]  -> GM3-(2) [Eu]
  GM4-(3) [T1u] -> GM2-(1) [A2u] + GM3-(2) [Eu]
  GM5-(3) [T2u] -> GM1-(1) [A1u] + GM3-(2) [Eu]
  -GM6+(2) -> -GM6+(2)
  -GM6-(2) -> -GM6-(2)
  -GM7+(2) -> -GM6+(2)
  -GM7-(2) -> -GM6-(2)
  -GM8+(4) -> -GM4+/-GM5+(2) + -GM6+(2)
  -GM8-(4) -> -GM4-/-GM5-(2) + -GM6-(2)

R (1/2, 1/2, 1/2) of Pm-3m -> GM (0, 0, 0) of R-3c
  R1+(1) -> GM2+(1) [A2g]
  R2+(1) -> GM1+(1) [A1g]
  R3+(2) -> GM3+(2) [Eg]
  R4+(3) -> GM1+(1) [A1g] + GM3+(2) [Eg]
  R5+(3) -> GM2+(1) [A2g] + GM3+(2) [Eg]
  R1-(1) -> GM2-(1) [A2u]
  R2-(1) -> GM1-(1) [A1u]
  R3-(2) -> GM3-(2) [Eu]
  R4-(3) -> GM1-(1) [A1u] + GM3-(2) [Eu]
  R5-(3) -> GM2-(1) [A2u] + GM3-(2) [Eu]
  -R6+(2) -> -GM6+(2)
  -R6-(2) -> -GM6-(2)
  -R7+(2) -> -GM6+(2)
  -R7-(2) -> -GM6-(2)
  -R8+(4) -> -GM4+/-GM5+(2) + -GM6+(2)
  -R8-(4) -> -GM4-/-GM5-(2) + -GM6-(2)

X (0, 1/2, 0) of Pm-3m, 3 arms -> F (1/2, 1/2, 0) [conventional (0, 1/2, 1)] of R-3c, 3 arms
  X1+(1) -> F2+(1)
  X2+(1) -> F1+(1)
  X3+(1) -> F1+(1)
  X4+(1) -> F2+(1)
  X5+(2) -> F1+(1) + F2+(1)
  X1-(1) -> F2-(1)
  X2-(1) -> F1-(1)
  X3-(1) -> F1-(1)
  X4-(1) -> F2-(1)
  X5-(2) -> F1-(1) + F2-(1)
  -X6+(2) -> -F3+/-F4+(2)
  -X6-(2) -> -F3-/-F4-(2)
  -X7+(2) -> -F3+/-F4+(2)
  -X7-(2) -> -F3-/-F4-(2)

M (1/2, 0, 1/2) of Pm-3m, 3 arms -> F (1/2, 1/2, 0) [conventional (0, 1/2, 1)] of R-3c, 3 arms
  M1+(1) -> F1+(1)
  M2+(1) -> F2+(1)
  M3+(1) -> F2+(1)
  M4+(1) -> F1+(1)
  M5+(2) -> F1+(1) + F2+(1)
  M1-(1) -> F1-(1)
  M2-(1) -> F2-(1)
  M3-(1) -> F2-(1)
  M4-(1) -> F1-(1)
  M5-(2) -> F1-(1) + F2-(1)
  -M6+(2) -> -F3+/-F4+(2)
  -M6-(2) -> -F3-/-F4-(2)
  -M7+(2) -> -F3+/-F4+(2)
  -M7-(2) -> -F3-/-F4-(2)

LD (-1/4, 1/4, 1/4) of Pm-3m (symmetry line), 6 of 8 arms ->
    L (0, 1/2, 0) [conventional (-1/2, 1/2, 1/2)] of R-3c, 3 arms (2 arms of Pm-3m per arm of R-3c)
  2 x LD1(1) -> L1(2)
  2 x LD2(1) -> L1(2)
  2 x LD3(2) -> 2 L1(2)
  2 x -LD4/-LD5(2) -> -L2/-L2(4)
  2 x -LD6(2)      -> -L2/-L2(4)

LD (1/4, 1/4, 1/4) of Pm-3m (symmetry line), 2 of 8 arms ->
    T (1/2, 1/2, 1/2) [conventional (0, 0, 3/2)] of R-3c, 1 arm (2 arms of Pm-3m per arm of R-3c)
  2 x LD1(1) -> T3(2)
  2 x LD2(1) -> T3(2)
  2 x LD3(2) -> T1T2(4)
  2 x -LD4/-LD5(2) -> -T4/-T4(4)
  2 x -LD6(2)      -> -T5/-T6(4)

NOTE: GM of R-3c: Bradley & Cracknell (1972) number the two-dimensional irrep GM4+- and the pair
      GM5+-, GM6+- (Table 6.5); here the pair is -GM4+-, -GM5+- and the two-dimensional irrep -GM6+-
NOTE: LD of Pm-3m: Bradley & Cracknell (1972) number the two-dimensional irrep LD4 and the pair LD5,
      LD6 (Table 6.5); here the pair is -LD4, -LD5 and the two-dimensional irrep -LD6
note: the labels of R-3c refer to its ISO-IR frame printed under * Subgroup *; [..] is the Mulliken
      symbol of an irrep at GM; m x: m arms of Pm-3m fall onto one arm of R-3c.
note: double-valued rows (--spinor): A/B is a pair of irreps that time reversal makes
      degenerate, A/A an irrep doubled by it.
 (Double-valued irreps: overbar as a leading '-', index after the single-valued irreps, parity suffix;
  Bradley & Cracknell (1972) Table 6.5 (Koster) numbering, except that the 2-D irrep of 32, 3m, -3m
  is last (Miller & Love order) and complex pairs of cyclic co-groups follow ISO-IR labels; see the manual.)

* Output files *
  Report written to: CORREL_AlF3_Pm-3m_R-3c_spinor (this output)

$ crystod-group --correlate-kpath --sg Pm-3m --kpoint GM X

* Space group *
Pm-3m (No. 221)

* Compatibility relations *
line DT between GM (0, 0, 0) and X (0, 1/2, 0), labeled at kdelta = (0, 1/24, 0) (primitive basis)
  GM1+ (dim 1) -> DT1
  GM2+ (dim 1) -> DT2
  GM3+ (dim 2) -> DT1 + DT2
  GM4+ (dim 3) -> DT4 + DT5
  GM5+ (dim 3) -> DT3 + DT5
  GM1- (dim 1) -> DT4
  GM2- (dim 1) -> DT3
  GM3- (dim 2) -> DT3 + DT4
  GM4- (dim 3) -> DT1 + DT5
  GM5- (dim 3) -> DT2 + DT5
  X1+  (dim 1) -> DT1
  X2+  (dim 1) -> DT2
  X3+  (dim 1) -> DT4
  X4+  (dim 1) -> DT3
  X5+  (dim 2) -> DT5
  X1-  (dim 1) -> DT4
  X2-  (dim 1) -> DT3
  X3-  (dim 1) -> DT1
  X4-  (dim 1) -> DT2
  X5-  (dim 2) -> DT5

$ crystod-group --correlate-kpath --sg Fd-3m --kpoint GM X

* Space group *
Fd-3m (No. 227)

* Compatibility relations *
line DT between GM (0, 0, 0) and X (1/2, 0, 1/2), labeled at kdelta = (1/24, 0, 1/24) (primitive basis)
  GM1+ (dim 1) -> DT1
  GM2+ (dim 1) -> DT2
  GM3+ (dim 2) -> DT1 + DT2
  GM4+ (dim 3) -> DT4 + DT5
  GM5+ (dim 3) -> DT3 + DT5
  GM1- (dim 1) -> DT4
  GM2- (dim 1) -> DT3
  GM3- (dim 2) -> DT3 + DT4
  GM4- (dim 3) -> DT1 + DT5
  GM5- (dim 3) -> DT2 + DT5
  X1   (dim 2) -> DT1 + DT3
  X2   (dim 2) -> DT2 + DT4
  X3   (dim 2) -> DT5
  X4   (dim 2) -> DT5

$ crystod-group --correlate-kpath --sg Pm-3m --kpoint X M

* Space group *
Pm-3m (No. 221)

* Compatibility relations *
line Z between X (0, 1/2, 0) and M (1/2, 1/2, 0), labeled at kdelta = (1/24, 1/2, 0) (primitive basis)
  X1+ (dim 1) -> Z1
  X2+ (dim 1) -> Z1
  X3+ (dim 1) -> Z3
  X4+ (dim 1) -> Z3
  X5+ (dim 2) -> Z2 + Z4
  X1- (dim 1) -> Z2
  X2- (dim 1) -> Z2
  X3- (dim 1) -> Z4
  X4- (dim 1) -> Z4
  X5- (dim 2) -> Z1 + Z3
  M1+ (dim 1) -> Z1
  M2+ (dim 1) -> Z1
  M3+ (dim 1) -> Z4
  M4+ (dim 1) -> Z4
  M5+ (dim 2) -> Z2 + Z3
  M1- (dim 1) -> Z2
  M2- (dim 1) -> Z2
  M3- (dim 1) -> Z3
  M4- (dim 1) -> Z3
  M5- (dim 2) -> Z1 + Z4

$ crystod-group --correlate --pg m-3m --subgroup 4/mmm

* Point group *
m-3m (order 48)

* Subgroup *
4/mmm (order 16, index 3): 1 inequivalent orientation
  4/mmm (4 || z): 3 conjugate subgroups; C2' = 2_x, 2_y; C2'' = 2_[110], 2_[1-10]

* Correlation table *
irrep  4/mmm (4 || z)
A1g    A1g
A2g    B1g
Eg     A1g + B1g
T1g    A2g + Eg
T2g    B2g + Eg
A1u    A1u
A2u    B1u
Eu     A1u + B1u
T1u    A2u + Eu
T2u    B2u + Eu

note: x, y, z are the axes [100], [010], [001] of the table of m-3m; 2_d is
      the twofold rotation about d, m_d the mirror normal to d; the symbols of
      H are those of phonopy's table of H with its classes as listed under
      * Subgroup * (B1/B2/B3 follow them).

$ crystod-group --correlate --pg m-3m --subgroup -3m

* Point group *
m-3m (order 48)

* Subgroup *
-3m (order 12, index 4): 1 inequivalent orientation
  -3m (-3 || [111]): 4 conjugate subgroups; C2' = 2_[1-10], 2_[10-1], 2_[01-1]

* Correlation table *
irrep  -3m (-3 || [111])
A1g    A1g
A2g    A2g
Eg     Eg
T1g    A2g + Eg
T2g    A1g + Eg
A1u    A1u
A2u    A2u
Eu     Eu
T1u    A2u + Eu
T2u    A1u + Eu

note: x, y, z are the axes [100], [010], [001] of the table of m-3m; 2_d is
      the twofold rotation about d, m_d the mirror normal to d; the symbols of
      H are those of phonopy's table of H with its classes as listed under
      * Subgroup * (B1/B2/B3 follow them).

$ crystod-group --correlate --pg -43m --subgroup 3m

* Point group *
-43m (order 24)

* Subgroup *
3m (order 6, index 4): 1 inequivalent orientation
  3m (3 || [111]): 4 conjugate subgroups; sgv = m_[1-10], m_[10-1], m_[01-1]

* Correlation table *
irrep  3m (3 || [111])
A1     A1
A2     A2
E      E
T1     A2 + E
T2     A1 + E

note: x, y, z are the axes [100], [010], [001] of the table of -43m; 2_d is
      the twofold rotation about d, m_d the mirror normal to d; the symbols of
      H are those of phonopy's table of H with its classes as listed under
      * Subgroup * (B1/B2/B3 follow them).

$ crystod-group --correlate --pg m-3m --subgroup mm2

* Point group *
m-3m (order 48)

* Subgroup *
mm2 (order 4, index 12): 3 inequivalent orientations
  mm2 (2 || z, m_y): 3 conjugate subgroups; sgvxz = m_y; sgvyz = m_x
  mm2 (2 || z, m_[110]): 3 conjugate subgroups; sgvxz = m_[110]; sgvyz = m_[1-10]
  mm2 (2 || [110]): 6 conjugate subgroups; sgvxz = m_[1-10]; sgvyz = m_z

* Correlation table *
irrep  mm2 (2 || z, m_y)  mm2 (2 || z, m_[110])  mm2 (2 || [110])
A1g    A1                 A1                     A1
A2g    A1                 A2                     B2
Eg     2 A1               A1 + A2                A1 + B2
T1g    A2 + B1 + B2       A2 + B1 + B2           A2 + B1 + B2
T2g    A2 + B1 + B2       A1 + B1 + B2           A1 + A2 + B1
A1u    A2                 A2                     A2
A2u    A2                 A1                     B1
Eu     2 A2               A1 + A2                A2 + B1
T1u    A1 + B1 + B2       A1 + B1 + B2           A1 + B1 + B2
T2u    A1 + B1 + B2       A2 + B1 + B2           A1 + A2 + B2

note: x, y, z are the axes [100], [010], [001] of the table of m-3m; 2_d is
      the twofold rotation about d, m_d the mirror normal to d; the symbols of
      H are those of phonopy's table of H with its classes as listed under
      * Subgroup * (B1/B2/B3 follow them).

$ crystod-group --correlate --pg 6/mmm --subgroup mmm

* Point group *
6/mmm (order 24)

* Subgroup *
mmm (order 8, index 3): 1 inequivalent orientation
  mmm (2 || [001]): 3 conjugate subgroups; C2x = 2_[100]; C2y = 2_[120]

* Correlation table *
irrep  mmm (2 || [001])
A1g    Ag
A2g    B1g
B1g    B3g
B2g    B2g
E1g    B2g + B3g
E2g    Ag + B1g
A1u    Au
A2u    B1u
B1u    B3u
B2u    B2u
E1u    B2u + B3u
E2u    Au + B1u

note: directions [uvw] are in the hexagonal axes a, b, c of the table of
      6/mmm; 2_d is the twofold rotation about d, m_d the mirror normal to d;
      the symbols of H are those of phonopy's table of H with its classes as
      listed under * Subgroup * (B1/B2/B3 follow them).

$ crystod-group --correlate --pg 4/mmm --subgroup 2/m

* Point group *
4/mmm (order 16)

* Subgroup *
2/m (order 4, index 4): 3 inequivalent orientations
  2/m (2 || z): 1 conjugate subgroup
  2/m (2 || x): 2 conjugate subgroups
  2/m (2 || [110]): 2 conjugate subgroups

* Correlation table *
irrep  2/m (2 || z)  2/m (2 || x)  2/m (2 || [110])
A1g    Ag            Ag            Ag
A2g    Ag            Bg            Bg
B1g    Ag            Ag            Bg
B2g    Ag            Bg            Ag
Eg     2 Bg          Ag + Bg       Ag + Bg
A1u    Au            Au            Au
A2u    Au            Bu            Bu
B1u    Au            Au            Bu
B2u    Au            Bu            Au
Eu     2 Bu          Au + Bu       Au + Bu

note: x, y, z are the axes [100], [010], [001] of the table of 4/mmm; 2_d is
      the twofold rotation about d, m_d the mirror normal to d; the symbols of
      H are those of phonopy's table of H.

$ crystod-group --correlate --pg 4/mmm --subgroup -42m

* Point group *
4/mmm (order 16)

* Subgroup *
-42m (order 8, index 2): 2 inequivalent orientations
  -42m (-4 || z, -42m setting): 1 conjugate subgroup; C2' = 2_x, 2_y
  -42m (-4 || z, -4m2 setting): 1 conjugate subgroup; C2'' = 2_[110], 2_[1-10]

* Correlation table *
irrep  -42m (-4 || z, -42m setting)  -42m (-4 || z, -4m2 setting)
A1g    A1                            A1
A2g    A2                            A2
B1g    B1                            B2
B2g    B2                            B1
Eg     E                             E
A1u    B1                            B1
A2u    B2                            B2
B1u    A1                            A2
B2u    A2                            A1
Eu     E                             E

note: x, y, z are the axes [100], [010], [001] of the table of 4/mmm; 2_d is
      the twofold rotation about d, m_d the mirror normal to d; the symbols of
      H are those of phonopy's table of H with its classes as listed under
      * Subgroup * (B1/B2/B3 follow them).
