One-dimensional (1D) solids exhibit a number of striking electronic structures including charge-density wave (CDW) and spin-density wave (SDW). Also, the Peierls theorem states that at zero temperature, a 1D system predicted by simple band theory to be a metal will spontaneously dimerize and open a finite fundamental bandgap, while at higher temperatures, it will assume the equidistant geometry with zero bandgap (a Peierls transition). We computationally study these unique electronic structures and transition in polyyne and all-trans polyacetylene using finite-temperature generalizations of ab initio spin-unrestricted Hartree-Fock (UHF) and spin-restricted coupled-cluster doubles (CCD) theories, extending upon previous work [He et al., J. Chem. Phys. 140, 024702 (2014)] that is based on spin-restricted Hartree-Fock (RHF) and second-order many-body perturbation (MP2) theories. Unlike RHF, UHF can predict SDW as well as CDW and metallic states, and unlike MP2, CCD does not diverge even if the underlying RHF reference wave function is metallic. UHF predicts a gapped SDW state with no dimerization at low temperatures, which gradually becomes metallic as the temperature is raised. CCD, meanwhile, confirms that electron correlation lowers the Peierls transition temperature. Furthermore, we show that the results from all theories for both polymers are subject to a unified interpretation in terms of the UHF solutions to the Hubbard-Peierls model using different values of the electron-electron interaction strength, U/t, in its Hamiltonian. The CCD wave function is shown to encompass the form of the exact solution of the Tomonaga-Luttinger model and is thus expected to describe accurately the electronic structure of Luttinger liquids.