فَإِنْ كَانَ الْفِعْلُ لَفْظًا، وَجَازَ الْعَطْفُ، يَجُوزُ فِيهِ الْوَجْهَانِ: النَّصْبُ وَالرَّفْعُ، نَحْوُ: «جِئْتُ أَنَا وَزَيْدًا، وَزَيْدٌ».
Translation: If a verb is explicitly present and coordination is allowed, two analyses are possible: accusative accompaniment or nominative coordination, as in the two forms of “I came, with/and Zayd.”
This is case one. The distinction is syntactic as well as formal: accompaniment in the accusative, coordination of subjects in the nominative.