Skip to content

Commit

Permalink
chore(number_theory/ramification_inertia): make an argument explicit (#…
Browse files Browse the repository at this point in the history
…17890)

This makes it slightly easier to use the `ideal.factors.pi_quotient_linear_equiv` definition, as otherwise all the typeclass search on properties of `S` is postponed till after the proof argument `hp : map (algebra_map R S) p ≠ ⊥` is provided.
  • Loading branch information
eric-wieser committed Dec 10, 2022
1 parent 60fa54e commit 68f41d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/number_theory/ramification_inertia.lean
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,8 @@ rfl
λ P, ideal.quotient.mk _ (algebra_map _ _ x) :=
rfl

variables (S)

/-- **Chinese remainder theorem** for a ring of integers: if the prime ideal `p : ideal R`
factors in `S` as `∏ i, P i ^ e i`,
then `S ⧸ I` factors `R ⧸ I`-linearly as `Π i, R ⧸ (P i ^ e i)`. -/
Expand All @@ -781,6 +783,8 @@ noncomputable def factors.pi_quotient_linear_equiv
end,
.. factors.pi_quotient_equiv p hp }

variables {S}

open_locale big_operators

/-- The **fundamental identity** of ramification index `e` and inertia degree `f`:
Expand Down Expand Up @@ -817,7 +821,7 @@ begin
{ rw ← finset.sum_attach,
refine finset.sum_congr rfl (λ P _, _),
rw factors.finrank_pow_ramification_idx },
{ refine linear_equiv.finrank_eq (factors.pi_quotient_linear_equiv p _).symm,
{ refine linear_equiv.finrank_eq (factors.pi_quotient_linear_equiv S p _).symm,
rwa [ne.def, ideal.map_eq_bot_iff_le_ker, (ring_hom.injective_iff_ker_eq_bot _).mp inj_RS,
le_bot_iff] },
{ exact finrank_quotient_map p K L },
Expand Down

0 comments on commit 68f41d3

Please sign in to comment.