I finally read the book and Forrest is not mentally deficient at all in the book.
In the book, he's a very aware, intelligent person who's good at focusing on and solving problems but has a speech impediment.
Maybe the movie tried to do that, but I don't think they tried to do that.
He also goes to space with a chimpanzee.
The book is pretty crazy.