This is probably just me being nit picky but... Einstein didn’t invent relativity. It existed before he was born. He discovered it... and told other people about it... in a formal manner.
He invented an accurate and useful description of it. Which is as much as anybody does to invent something.
I think it’s safe to say that the cotton gin did not exist before Eli Whitney.
Who invented a table? What even is a table? Or a cotton gin for that matter? A patent? because that sounds awfully like a theory...
Newton discovered certain patterns that worked. He invented a theory, a way to speak about them. They are indeed an invention, though, because they aren't accurate at very small distances or relatively fast speeds. pun intended.
He invented a plan for how to build a cotton gin, and that's all anybody needed of him. That was the invention. The rest is just manufacturing.