https://github.com/leanprover/cslib/blob/b55a6073c8d000f59c6db812a6974017d1be0858/Cslib/Computability/Automata/NA/Total.lean#L35