After a Pronominal aṅga (stem) ending in a , smāt is substituted for the Dative -4th Case ending as and smin for the Locative -7th case ending i,
Thus सर्वस्मात्, विश्वस्मात्, यस्मात्, तस्मात् and कस्मात् ॥ सर्वस्मिन्, विश्वस्मिन्, यस्मिन्, तस्मिन् and अन्यस्मिन् ॥ But भवतः and भवति from भवत् ending in a non-अ, and वृक्षात् and वृक्षे in non-pronouns. See 7.2.102 for यद् तद् &c.,
