Various Hamiltonian formulations of f (R) gravity and their canonical relationships