Page 3 of 3
Re: A junior high school level of understanding of logic
Posted: Sat May 25, 2019 4:40 pm
by PeteOlcott
Univalence wrote: ↑Sat May 25, 2019 4:21 pm
PeteOlcott wrote: ↑Sat May 25, 2019 4:06 pm
Univalence wrote: ↑Sat May 25, 2019 2:49 pm
Infinities..... OK.
How do you parse an infinitely-long string?
They are excluded from consideration.
How?
How do you make sure that one of the strings in your infinite set aren’t infinite-length?
How do you check that the length of a string is infinite?
There is no actual way to specify an infinite string and if there was such a way I could use that as a criterion measure.
Re: A junior high school level of understanding of logic
Posted: Sat May 25, 2019 4:43 pm
by Univalence
PeteOlcott wrote: ↑Sat May 25, 2019 4:40 pm
There is no actual way to specify an infinite string and if there was such a way I could use that as a criterion measure.
Nonsense. A string is a character array. A set.
If you have an infinite set of strings, you have an infinite set of characters also. Pick the first element of every string.
Code: Select all
a = ['abc', 'def', 'ghi','jkl', 'mno']
print(''.join([ x[0] for x in a ]))
>>> adgjm
PeteOlcott wrote: ↑Sat May 25, 2019 4:40 pm
and if there was such a way I could use that as a criterion measure.
How? For the sake of argument - you have an infinite string.
cat /dev/random
Show me the algorithm which determines that it's an infinite string.