What is the definition of a boat versus a ship?

The Historic Ships Committee have designated a vessel below 40 tons and 40 ft in length as a boat. However, submarines and fishing vessels are always known as boats whatever their size.