chore(hott) fix the types and algebra