extend cs_to_inner to also produce relevant theorems