chore(*): fix some Decidable*/Fintype assumptions (#24400) Cherry-picked from #10235
Decidable*
Fintype