Mean Field Theories and Dual Variation - Mathematical Structures of the Mesoscopic Model