∀ {M : Type u_1} {N : Type u_2} [inst : AddZeroClass M] [inst_1 : AddZeroClass N] {S : Type u_5} [inst_2 : SetLike S N]
  [inst_3 : AddSubmonoidClass S N] (f : M →+ N) (s : S) (h : ∀ (x : M), f x ∈ s),
  f.codRestrict s h = { toFun := fun n => ⟨f n, ⋯⟩, map_zero' := ⋯, map_add' := ⋯ }