Ab initio electronic structure of PtH+, PtH, Pt2, and Pt2H from a oneelectron pseudopotential approach Within the scope of the electron group functions ͑EGF͒ theory, the concept of gauge transformations ͑GT͒ of EGFs is introduced as such transformations that leave the state of the entire system invariant. The variational equations for EGFs should contain additional terms representing the Pauli repulsion part of the pseudopotential and being consistent with the choice of EGFs ͑the requirement of gauge consistency͒. The GTs present a natural way of ab initio defining the generalized many-electron pseudopotentials produced by an internally correlated subsystem. Some specific, but rather general forms of GTs are proposed. One of the form is defined using properties of group functions with odd number of electrons. The GTs belonging to another class are defined using properties of antisymmetrically annulling ͑ASA͒ functions introduced in our earlier work and studied further in the present work. In particular, we introduce the ASA kernel basis set for a given group function and show that any function ASA the given group function can be expanded in terms of this set. The algebraic properties of GTs and of their sets are studied, both general ones and specific for the mentioned forms. In general case, the proposed GTs depend on a set of parameters which are functions rather than numbers, that can provide improved transferability of pseudopotentials. The linear transformations of one-electron functions of a determinant as well as the procedures of strong orthogonalization of a group function to a determinant ͑by Fock, Veselov, and Petrashen', and by Szasz͒ are shown to be special cases of the GTs considered.