Wormhole theory