Gravar e-mail: Hamiltonian dynamics: four dimensional BF-like theories with a compact dimension