how to calculate a1, a2, a3 in lattice custom command?

Please post to the list, not to me.

The doc pages I sent are for defining the simulation
box, which is similar geometrically to defining a lattice,
but not the same thing in LAMMPS. See the create_box
command versus the lattice command.