Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 5a56e46

Browse files
committed
chore(data/polynomial/monic): remove useless lemma (#12364)
There is a `nontrivial` version of this lemma (`ne_zero_of_monic`) which actually has uses in the library, unlike this deleted lemma. We also tidy the proof of the lemma below.
1 parent a4e936c commit 5a56e46

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/data/polynomial/monic.lean

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ begin
3535
exact congr_arg C hp
3636
end
3737

38-
lemma ne_zero_of_monic_of_zero_ne_one (hp : monic p) (h : (0 : R) ≠ 1) :
39-
p ≠ 0 := mt (congr_arg leading_coeff) $ by rw [monic.def.1 hp, leading_coeff_zero]; cc
40-
4138
lemma ne_zero_of_ne_zero_of_monic (hp : p ≠ 0) (hq : monic q) : q ≠ 0 :=
4239
begin
43-
intro h, rw [h, monic.def, leading_coeff_zero] at hq,
40+
rintro rfl,
41+
rw [monic.def, leading_coeff_zero] at hq,
4442
rw [← mul_one p, ← C_1, ← hq, C_0, mul_zero] at hp,
4543
exact hp rfl
4644
end

0 commit comments

Comments
 (0)