Dirac–Bergmann algorithm and canonical quantization of k-essence cosmology | Synapse