We have developed a mathematical theory of the topological vertexa theory that was originally proposed by M Aganagic, A Klemm, M Mario and C Vafa on effectively computing GromovWitten invariants of smooth toric CalabiYau threefolds derived from duality between open string theory of smooth CalabiYau threefolds and ChernSimons theory on three-manifolds.