Nondeterminantal Hartree-Fock theory