We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0f6447 commit c38ebf0Copy full SHA for c38ebf0
1 file changed
Mathlib/Algebra/Polynomial/Roots.lean
@@ -278,6 +278,17 @@ theorem roots_multiset_prod_X_sub_C (s : Multiset R) : (s.map fun a => X - C a).
278
rintro ⟨a, -, h⟩
279
exact X_sub_C_ne_zero a h
280
281
+theorem roots_ofMultiset (s : Multiset R) : (ofMultiset s).roots = s := by
282
+ simp
283
+
284
+variable (R) in
285
+theorem rightInverse_ofMultiset_roots : Function.RightInverse (α := R[X]) ofMultiset roots :=
286
+ roots_ofMultiset
287
288
289
+theorem ofMultiset_injective : Function.Injective (ofMultiset (R := R)) :=
290
+ rightInverse_ofMultiset_roots R |>.injective
291
292
theorem card_roots_X_pow_sub_C {n : ℕ} (hn : 0 < n) (a : R) :
293
Multiset.card (roots ((X : R[X]) ^ n - C a)) ≤ n :=
294
WithBot.coe_le_coe.1 <|
0 commit comments