∀ {m : Type u_3} {R : Type v} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m] (M : Matrix m m R)
  {p q : m → Prop} [inst_3 : DecidablePred p] [inst_4 : DecidablePred q],
  (∀ (x : m), q x ↔ p x) → (M.toSquareBlockProp p).det = (M.toSquareBlockProp q).det