@@ -165,19 +165,23 @@ open Sum
165
165
166
166
namespace Function
167
167
168
- theorem Injective.sum_elim {f : α → γ} {g : β → γ} (hf : Injective f) (hg : Injective g)
168
+ theorem Injective.sumElim {f : α → γ} {g : β → γ} (hf : Injective f) (hg : Injective g)
169
169
(hfg : ∀ a b, f a ≠ g b) : Injective (Sum.elim f g)
170
170
| inl _, inl _, h => congr_arg inl <| hf h
171
171
| inl _, inr _, h => (hfg _ _ h).elim
172
172
| inr _, inl _, h => (hfg _ _ h.symm).elim
173
173
| inr _, inr _, h => congr_arg inr <| hg h
174
174
175
- theorem Injective.sum_map {f : α → β} {g : α' → β'} (hf : Injective f) (hg : Injective g) :
175
+ @[deprecated (since := "2025-02-20")] alias Injective.sum_elim := Injective.sumElim
176
+
177
+ theorem Injective.sumMap {f : α → β} {g : α' → β'} (hf : Injective f) (hg : Injective g) :
176
178
Injective (Sum.map f g)
177
179
| inl _, inl _, h => congr_arg inl <| hf <| inl.inj h
178
180
| inr _, inr _, h => congr_arg inr <| hg <| inr.inj h
179
181
180
- theorem Surjective.sum_map {f : α → β} {g : α' → β'} (hf : Surjective f) (hg : Surjective g) :
182
+ @[deprecated (since := "2025-02-20")] alias Injective.sum_map := Injective.sumMap
183
+
184
+ theorem Surjective.sumMap {f : α → β} {g : α' → β'} (hf : Surjective f) (hg : Surjective g) :
181
185
Surjective (Sum.map f g)
182
186
| inl y =>
183
187
let ⟨x, hx⟩ := hf y
@@ -186,9 +190,13 @@ theorem Surjective.sum_map {f : α → β} {g : α' → β'} (hf : Surjective f)
186
190
let ⟨x, hx⟩ := hg y
187
191
⟨inr x, congr_arg inr hx⟩
188
192
189
- theorem Bijective.sum_map {f : α → β} {g : α' → β'} (hf : Bijective f) (hg : Bijective g) :
193
+ @[deprecated (since := "2025-02-20")] alias Surjective.sum_map := Surjective.sumMap
194
+
195
+ theorem Bijective.sumMap {f : α → β} {g : α' → β'} (hf : Bijective f) (hg : Bijective g) :
190
196
Bijective (Sum.map f g) :=
191
- ⟨hf.injective.sum_map hg.injective, hf.surjective.sum_map hg.surjective⟩
197
+ ⟨hf.injective.sumMap hg.injective, hf.surjective.sumMap hg.surjective⟩
198
+
199
+ @[deprecated (since := "2025-02-20")] alias Bijective.sum_map := Bijective.sumMap
192
200
193
201
end Function
194
202
@@ -202,7 +210,7 @@ theorem map_injective {f : α → γ} {g : β → δ} :
202
210
⟨fun h =>
203
211
⟨fun a₁ a₂ ha => inl_injective <| @h (inl a₁) (inl a₂) (congr_arg inl ha :), fun b₁ b₂ hb =>
204
212
inr_injective <| @h (inr b₁) (inr b₂) (congr_arg inr hb :)⟩,
205
- fun h => h.1 .sum_map h.2 ⟩
213
+ fun h => h.1 .sumMap h.2 ⟩
206
214
207
215
@[simp]
208
216
theorem map_surjective {f : α → γ} {g : β → δ} :
@@ -216,7 +224,7 @@ theorem map_surjective {f : α → γ} {g : β → δ} :
216
224
obtain ⟨a | b, h⟩ := h (inr d)
217
225
· cases h
218
226
· exact ⟨b, inr_injective h⟩)⟩,
219
- fun h => h.1 .sum_map h.2 ⟩
227
+ fun h => h.1 .sumMap h.2 ⟩
220
228
221
229
@[simp]
222
230
theorem map_bijective {f : α → γ} {g : β → δ} :
0 commit comments