typedef t(i:int) = [i > 3] int(i)
typedef u = [i: int] t(i)
--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/7f31b1d0-9d5c-4fe9-9917-d2c5dcab4073%40googlegroups.com.
typedef u = [a:type] list(a)In your example, both t and u are predicative. Here is an example of impredicative definition:(since all the sets satisfying P contains the one being defined).of all the sets satisfying P. This definition is often classified as being impredicativeFor instance, we can define the smallest set satisfying a property P as the intersectionMy understanding is that 'impredicativity' usually involves some form of circularity.
I think the word 'impredicativity' was coined by Poincare:
https://en.wikipedia.org/wiki/Henri_Poincar%C3%A9
Le jeudi 10 décembre 2015 03:58:05 UTC+1, gmhwxi a écrit :typedef u = [a:type] list(a)In your example, both t and u are predicative. Here is an example of impredicative definition:(since all the sets satisfying P contains the one being defined).of all the sets satisfying P. This definition is often classified as being impredicativeFor instance, we can define the smallest set satisfying a property P as the intersectionMy understanding is that 'impredicativity' usually involves some form of circularity.
I think the word 'impredicativity' was coined by Poincare:
https://en.wikipedia.org/wiki/Henri_Poincar%C3%A9I feel to see better: this one impredicative because (the reason is important) there is anyway, not `list` set and `[a:type] list(a)` defines a new whole set.I've seen a definition at Wolfram, which is very terse:“Definitions about a set which depend on the entire set.”Do you agree with their definition?
Seems it depends on the proposition. Another site give this:“Let n be the least natural number such that n cannot be written as the sum of at most four cubes.”They says this is one impredicative because it generalize over all natural numbers, but it's ambiguous to me, due to “Let n be the least”. Or may be a sentence may have both predicative and impredicative parts and if is has an impredicative part, then the whole sentence is said impredicative.
Poincare was vehemently against anything infinite. He would simply reject the very EXISTENCE of the set of numbers that cannot be
written as the sum of at least for cubes.
The above definition can be given in a predicative form:
Let n be a number satisfying P(n) such that P(n2) implies n <= n2 for any natural number n2.
* Only the predicative sorts have a covariant/contravariant aspect.