Most people probably find my answer extremely contrary to their beliefs here:
What is the meaning of the reference to 'stones' in Ecclesiastes 3?.
To me Ecclesiastes is a mathematical thesis. Where, קהלת/Aggregator/Assembler is the ancient term that relates to being mathematician.
It is accepted history that ancient Hindu priests in India invented the zero, and Arab traders incorporated it and thenceforth spread the good news of the concept of zero.
To say that Solomon had written a thesis about the concept zero, before priests in India ever did would be a travesty against accepted modern history.
To say that Solomon defined Nash Equilibrium before John Nash himself did would also be a great travesty to the honour of John Nash himself.
First, it would be a horrid terrible mistake to read Ecclesiastes in English, or in any language but Hebrew.
2ndly, imagine an ancient mathematician, expressing his thesis in old Hebrew - how would he have written it?
What does Ecclesiastes 1:9 - 11 actually have in Hebrew:
Before that, he allegorises his state-machine with the ecological surroundings that would be familiar to the readers of the thesis. He has invented a computation machine that is programmable such that what is worked on is repeatable.
1:9
מה שהיה הוא שיהיה
What has happened it will happen
ומה שנעשה
and what is worked on
ואין כל חדש תחת השמש
and nothing/zero all new under the sun/trunk.
(that is, reset all to new under the shamesh / entry point)
1:10
יש דבר שיאמר
Are there things of which is said
ראה זה חדש
See here new
הוא כבר היה לעולמים
It already exists in past/antiquity
אשר היה מלפננו
whose existence we face.
The Mathematician starts defining a state machine module/subroutine in 1:11. It does not keep computation memory of previous invocations, or even the subsequent invocations.
אין זכרון לראשנים
Null/zero memory to the first/former ones
וגם לאחרנים שיהיו
and also the ones that becomes afterwards
לא יהיה להם זכרון
no memory shall become to them
עם שיהיו לאחרונה
with which that comes thereafter
The Mathematician says that, this {state-machine/programming} {module/subroutine} is invoked such that the current call will not be affected by previous calls, or any subsequent calls.
He then says, I a Mathematician became king upon Israel in Jerusalem.