Yes you can provably document your progress, but it doesn't solve the problem that someone else may have published overlapping ideas earlier and you can't prove that you didn't read what they published.
Basically, if you could show that you had already made significant progress before the publication date, then you might be granted the patent as well.