Gustave Flaubert said this quote

All one's inventions are true, you can be sure of that. Poetry is as exact a science as geometry.