« first day (315 days earlier)      last day (4632 days later) » 

9:50 AM
Would one of the mathematically-inclined people mind taking a look at bitbucket.org/rivanvx/beamer/issue/96/… and suggesting what I should change :-)
 
 
1 hour later…
11:17 AM
@AlanMunn, @egreg: I have to confess:
"Brute force - if it doesn't work, you're just not using enough."
 
 
1 hour later…
12:21 PM
@JosephWright Change where?
 
1:02 PM
@AndreyVihrov In the proof to make it correct!
 
 
1 hour later…
2:19 PM
I wrote down the proof as I knew it since school: mathbin.net/67375  But I still can't see the mistake (2·3·5·…·13+1 is not prime). Would this be a suitable quiestion for math.tex.sx?
Oh, I somewhat see it now…
 
 
1 hour later…
3:52 PM
Simple questions can sometimes be turned into simple packages
Just committed two new packages that do very simple stuff
in the spirit of "Do one thing and do it well"
 
4:08 PM
Nice! Which ones?
 
4:22 PM
Correct proof: mathbin.net/67395
 
4:39 PM
It can be rephrased as follows (without making it too formal):

1. Suppose p were the largest prime number.
2. Let q be the product of the first p numbers.
3. Then q + 1 is not divisible by any of them.
4. But q + 1 is greater than 1, thus divisible by some prime number not in the first p numbers.
I don't fully like how it sounds, so please make better suggestions.
 
5:13 PM
@AndreyVihrov Great: That will help close another bug :-)
 
6:05 PM
@AndreyVihrov Every (finite) set of primes cannot contain all primes. Proof. We know that every number bigger than 1 is divisible by a prime; let n be the product of the numbers in the set; if the set is empty, then clearly it doesn't contain all primes, so we can assume that n>1; then n+1 > 1 and so it's divisible by a prime which cannot be in the set. QED
Note that (1) this is not a proof by contradiction, because it constructs a prime not in the set, namely the minimal divisor (bigger than 1) of n+1; (2) it's not claimed that n+1 is prime.
 
 
1 hour later…
7:14 PM
@Werner w.r.t. the hyphenation question: My original comment was about your pre-edit version of the answer. (I can delete the comment.) But I guess the focus of the problem isn't really lack of hyphenation points for the word (which TeX does seem to know) but with the fact that the word is a compound containing a hyphen.
 
 
1 hour later…
8:21 PM
Whilst I agree that it isn't phrased well, then I don't see a problem with the proof as it stands in the current beamer manual. It starts with Suppose p were the largest prime number.. Then it constructs a number which is not divisible by any of the prime numbers up to p. In the universe in which p is the largest prime number then this number must be prime. Reason: it is not divisible by any prime smaller than it, since p was the largest prime, (ctd)
(ctd) and a composite number is always divisible by a prime smaller than it.
This is the problem with "proof by contradiction". We set up a universe that (we shall show) cannot exist. We then show that it cannot exist by finding some proposition that is both true and false that holds within it. But while we are in that between stage, we work within the imagined universe and have to pretend that it is real. So if we assume that p is the largest prime number, we have to play by those rules. In that universe, p! + 1 is prime and that is the desired
contradiction.
But far better to have a positive proof, such as that by egreg above. To have it in a list, maybe the following would work:
1. Let `p` be a prime number.
2. Consider `q = p! + 1`.
3. If `k | q` and `k \ne 1` then `k > p`.
4. Hence there is a prime number bigger than `p`.
5. Thus `p` is not the largest prime number.
 
8:37 PM
@AndrewStacey: pardon my ignorance, but I'm curious: what does k | q mean?
 
@AndrewStacey This proof assumes that a number p > 1 is prime if it is not divisible by any number from a certain set S ⊂ { n | 1 < n < p }. The real definition of a prime is that it has no divisors in the set { n | 1 < n < p }. The definitions are not equivalent, and you can't necessarily call p prime in the sense of its proper definition.
@PauloCereda Just k divides q.
 
@AndreyVihrov Wow, thanks. I feel like an idiot. I'm used to see | like in the set description you wrote (I use / for division).
 
@AndrewStacey, @egreg. Remember that what I need is Euclid's proof, not just any proof, otherwise the fun is spoiled :-)
 
@AndreyVihrov The proof I presented doesn't actually require such definitions; but it uses a fact proved previously that all numbers greater than 1 are divisible by a prime number and also (which actually is a key point) that n+1 is not invertible.
 
@PauloCereda Note that / is an operator, but | denotes a relation. "k | q" is either true or false. This notation is uneasy for me, too, because I'm used to the "q <three vertical dots> k" notation that is widespread in Eastern Europe.
 
8:49 PM
@AndreyVihrov aaah thanks! I got it now. ;-)
 
@JosephWright So the proof I presented is what you need: also Euclid constructed a new prime from any given multitude of primes.
 
@egreg I thought his was by contradiction (in general terms)?
As Euclid wrote his work well before modern proof methods, I realise it's not quite the same as you'd do today :-)
 
@egreg I think you use the definition of a prime number through the fundamental theorem of arithmetic.
 
@AndreyVihrov The usual definition is: p is prime if it's > 1 and from a | p it follows that a=1 or a=p.
 
 
1 hour later…
10:19 PM
friends, which tool should I try for converting my tex files to html? Probably TeX4ht?
 
@PauloCereda Yes, definitely. It works pretty well as long as you don't have lots of uncommon packages.
 
and as long as you stick to pdftex
 
thanks, I'll take a look. Let's hope for the best. =)
 
@PauloCereda: @AndrewStacey also has a new package to generate web contents from TeX
Haven't tried it yet, but that's what he uses to publish on the TeX.SX blog.
 
10:26 PM
@Raphink: Cool! I'd like to try it too.
 
He mentioned it on here a few days back. You might find it in the history.
 
@Raphink Yes. Karl Berry has the following in the tex4ht bug tracker: "We need to write fontspec.4ht for use with xelatex. This is a big job! " So they are aware of it. We should understand that tex4ht was the creation of one person (Eitan Gurari) who died very unexpectedly in 2009 and so it will take a while before re-development is up to speed.
 
yes
@AndrewStacey's internet.cls makes use of fontspec as far as I understood.
 
Found the link!
 
Sep 6 at 12:13, by Andrew Stacey
@Raphink It's a class that I'm developing. It's really for putting articles on the nLab, but since the main difficulty is getting TeX to produce something sensible as text then once I'd gotten a system for one then it wasn't hard to do the other. There's a slightly old version on my homepage at http://www.math.ntnu.no/~stacey/HowDidIDoThat/LaTeX/internet.html but as I'm actively using it, I keep encountering new issues and don't update that page very often (at all!).
 
10:31 PM
I need to try xelatex or even lualatex.
 
Oh you certainly do
see my post on the subject on the blog (and the comments, they're interesting, too).
@PauloCereda if you want to discover fontspec, you can try building babyloniannum.
It makes a big use of fontspec and shows the kind of things you can do with it.
Also, github.com/raphink/geneve_1564 shows the kind of advanced OTF features you can use.
 
@Raphink Thanks, I'll certainly try. =)
 
the code is rather simple and you'll probably spot the fontspec specific parts easily.
 
@PauloCereda They're really not that mysterious. See tex.stackexchange.com/questions/21736/… Many things that work with XeLaTeX also work with LuaLaTeX. On the differences: tex.stackexchange.com/q/36/2693 and tex.stackexchange.com/q/23598/2693 Of course, LuaLaTeX has the full power of Lua as well, which makes it interesting for all sorts of other reasons. See tex.stackexchange.com/q/70/2693.
(Maybe all these questions are linked in Raphink's blog post too.)
 
@AlanMunn I should probably have linked the questions in my blog post, indeed, but I don't think I did.
 
10:59 PM
@AlanMunn Great resources, thanks. I'll read them.
 
Alright, off to bed
laters
 
see ya!
 

« first day (315 days earlier)      last day (4632 days later) »