Foundations of Human-AI Synergy