I'm defining the class:
class countably_infinite =
assumes "infinite (UNIV :: 'a set)"
and the output includes the following warning:
Additional type variable(s) in locale specification "countably_infinite": 'a
class countably_infinite = type +
assumes "infinite UNIV"
I saw the same warning in HOL-Library.Countable
, is there a general way of overcoming it or is it always ignored?
Robert Soeldner said:
I'm defining the class:
class countably_infinite = assumes "infinite (UNIV :: 'a set)"
and the output includes the following warning:
Additional type variable(s) in locale specification "countably_infinite": 'a class countably_infinite = type + assumes "infinite UNIV"
I saw the same warning in
HOL-Library.Countable
, is there a general way of overcoming it or is it always ignored?
bump
class countably_infinite =
fixes ty_p :: "'a itself"
assumes "infinite (UNIV :: 'a set)"
For explicit instantiations you can then use TYPE('a)
Last updated: Dec 21 2024 at 16:20 UTC