Skip to content

Commit

Permalink
feat(data/mv_polynomial/basic): map_map_range_eq_iff (#4438)
Browse files Browse the repository at this point in the history
Split off from #4268
  • Loading branch information
jcommelin committed Oct 5, 2020
1 parent 39f5d6b commit 7f74e6b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/data/mv_polynomial/basic.lean
Expand Up @@ -864,6 +864,16 @@ begin
simp only [coeff_map, ring_hom.coe_of, coeff_zero, hr],
end

lemma map_map_range_eq_iff (f : R →+* S₁) (g : S₁ → R) (hg : g 0 = 0) (φ : mv_polynomial σ S₁) :
map f (finsupp.map_range g hg φ) = φ ↔ ∀ d, f (g (coeff d φ)) = coeff d φ :=
begin
rw mv_polynomial.ext_iff,
apply forall_congr, intro m,
rw [coeff_map],
apply eq_iff_eq_cancel_right.mpr,
refl
end

end map


Expand Down

0 comments on commit 7f74e6b

Please sign in to comment.