File size: 1,962 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import Mathlib.RingTheory.IntegralClosure.Algebra.Basic
import Mathlib.RingTheory.TensorProduct.Maps

/-! # Tensor Maps -/

namespace OAI.AlgebraicGeometry.CycleClass.Thom.Integral.TensorMaps.Constructions

noncomputable section

/-! The tensor product of actual integral algebra homomorphisms is integral. -/

open scoped TensorProduct

variable {k P Q A B : Type*} [CommRing k]
  [CommRing P] [CommRing Q] [CommRing A] [CommRing B]
  [Algebra k P] [Algebra k Q] [Algebra k A] [Algebra k B]

theorem tensorMap_isIntegral (f : P →ₐ[k] A) (g : Q →ₐ[k] B)
    (hf : f.IsIntegral) (hg : g.IsIntegral) : (Algebra.TensorProduct.map f g).IsIntegral := by
  let : Algebra P A := f.toRingHom.toAlgebra
  let : Algebra Q B := g.toRingHom.toAlgebra
  let : Algebra (P βŠ—[k] Q) (A βŠ—[k] B) := (Algebra.TensorProduct.map f g).toRingHom.toAlgebra
  have hA (a : A) : IsIntegral (P βŠ—[k] Q) (a βŠ—β‚œ[k] (1 : B)) := by
    apply IsIntegral.map_of_comp_eq
      (Algebra.TensorProduct.includeLeft : P →ₐ[k] P βŠ—[k] Q).toRingHom
      (Algebra.TensorProduct.includeLeft : A →ₐ[k] A βŠ—[k] B).toRingHom
      (a := a) _ (hf a)
    ext r
    change (Algebra.TensorProduct.map f g) (r βŠ—β‚œ[k] (1 : Q)) = f r βŠ—β‚œ[k] (1 : B)
    simp
  have hB (b : B) : IsIntegral (P βŠ—[k] Q) ((1 : A) βŠ—β‚œ[k] b) := by
    apply IsIntegral.map_of_comp_eq
      (Algebra.TensorProduct.includeRight : Q →ₐ[k] P βŠ—[k] Q).toRingHom
      (Algebra.TensorProduct.includeRight : B →ₐ[k] A βŠ—[k] B).toRingHom
      (a := b) _ (hg b)
    ext r
    change (Algebra.TensorProduct.map f g) ((1 : P) βŠ—β‚œ[k] r) = (1 : A) βŠ—β‚œ[k] g r
    simp
  intro x
  change IsIntegral (P βŠ—[k] Q) x
  induction x using TensorProduct.inductionOn with
  | tmul a b =>
      simpa only [Algebra.TensorProduct.tmul_mul_tmul, mul_one, one_mul] using (hA a).mul (hB b)
  | add x y hx hy => exact hx.add hy

end

end OAI.AlgebraicGeometry.CycleClass.Thom.Integral.TensorMaps.Constructions