@@ -33,32 +33,16 @@ section missing_instances
33
33
34
34
variable {R D A : Type *} [CommSemiring R] [Semiring D] [CommSemiring A] [Algebra R D] [Algebra R A]
35
35
36
- -- Algebra.TensorProduct.rightAlgebra has unnecessary commutativity assumptions
37
- -- This should be fixed in mathlib; ideally it should be an exact mirror of leftAlgebra but
38
- -- I ignore S as I don't need it.
39
- def Algebra.TensorProduct.rightAlgebra' : Algebra A (D ⊗[R] A) :=
40
- Algebra.TensorProduct.includeRight.toRingHom.toAlgebra' (by
41
- simp only [AlgHom.toRingHom_eq_coe, RingHom.coe_coe, Algebra.TensorProduct.includeRight_apply]
42
- intro a b
43
- apply TensorProduct.induction_on (motive := fun b ↦ 1 ⊗ₜ[R] a * b = b * 1 ⊗ₜ[R] a)
44
- · simp only [mul_zero, zero_mul]
45
- · intro d a'
46
- simp only [Algebra.TensorProduct.tmul_mul_tmul, one_mul, mul_one,
47
- NonUnitalCommSemiring.mul_comm]
48
- · intro x y hx hy
49
- rw [left_distrib, hx, hy, right_distrib]
50
- )
51
-
52
36
-- this makes a diamond for Algebra A (A ⊗[ R ] A) which will never happen here
53
- attribute [local instance] Algebra.TensorProduct.rightAlgebra'
37
+ attribute [local instance] Algebra.TensorProduct.rightAlgebra
54
38
55
39
-- These seem to be missing
56
40
instance [Module.Finite R D] : Module.Finite A (D ⊗[R] A) := sorry
57
41
instance [Module.Free R D] : Module.Free A (D ⊗[R] A) := sorry
58
42
59
43
end missing_instances
60
44
61
- attribute [local instance] Algebra.TensorProduct.rightAlgebra'
45
+ attribute [local instance] Algebra.TensorProduct.rightAlgebra
62
46
63
47
variable (K : Type *) [Field K] [NumberField K]
64
48
variable (D : Type *) [DivisionRing D] [Algebra K D]
@@ -81,7 +65,7 @@ noncomputable abbrev incl₁ : Dˣ →* Dfx K D :=
81
65
Units.map Algebra.TensorProduct.includeLeftRingHom.toMonoidHom
82
66
83
67
noncomputable abbrev incl₂ : (FiniteAdeleRing (𝓞 K) K)ˣ →* Dfx K D :=
84
- Units.map Algebra.TensorProduct.rightAlgebra' .toMonoidHom
68
+ Units.map Algebra.TensorProduct.rightAlgebra.toMonoidHom
85
69
86
70
-- Voight "Main theorem 27.6.14(b) (Fujisaki's lemma)"
87
71
/-!
0 commit comments