AlgebraicCurves.Geometry.Schemes.Proofs.Scheme_TwoAffineOpenCover_exists_linearEquiv_overlap_quotient_baseChange_of_lift_of_compat.transportAndApply_exists
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace Scheme_TwoAffineOpenCover_exists_linearEquiv_overlap_quotient_baseChange_of_lift_of_compat
universe u
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry AlgebraicGeometry.RelPicard
NeronModelInfra TensorProduct
noncomputable section
section N4Transport
variable {R R' : Type u} [CommRing R] [CommRing R']
variable {S S' : Type u} [CommRing S] [CommRing S']Lean source · full declaration
theorem transportAndApply_exists (φR : R ≃+* R') (φS : S ≃+* S')
(ψ : R →+* S) (ρ : R' →+* S')
(hcompat : ∀ r, φS (ψ r) = ρ (φR r))
(M N : Type u) [AddCommGroup M] [Module R' M] [AddCommGroup N] [Module S' N]
(e : letI : Algebra R' S' := ρ.toAlgebra; S' ⊗[R'] M ≃ₗ[S'] N) :
let : Algebra R S := ψ.toAlgebra
let : Algebra R' S' := ρ.toAlgebra
let : Module R M := Module.compHom M φR.toRingHom
let : Module S N := Module.compHom N φS.toRingHom
∃ ta : (S ⊗[R] M) ≃ₗ[S] N, ∀ m : M, ta ((1:S) ⊗ₜ[R] m) = e ((1:S') ⊗ₜ[R'] m) := by
intro sharedOwner1 sharedOwner2 sharedOwner3 sharedOwner4
have : RingHomInvPair (φR : R →+* R') (φR.symm : R' →+* R) :=
RingHomInvPair.of_ringEquiv φR
have : RingHomInvPair (φR.symm : R' →+* R) (φR : R →+* R') :=
RingHomInvPair.of_ringEquiv_symm φR
let e1 : S ≃ₛₗ[(φR : R →+* R')] S' :=
{ toFun := φS, map_add' := φS.map_add,
map_smul' := fun r s => by
change φS (ψ r * s) = ρ (φR r) * φS s
rw [map_mul, hcompat],
invFun := φS.symm, left_inv := φS.symm_apply_apply,
right_inv := φS.apply_symm_apply }
let e2 : M ≃ₛₗ[(φR : R →+* R')] M :=
{ toFun := id, map_add' := fun _ _ => rfl,
map_smul' := fun r m => rfl,
invFun := id, left_inv := fun _ => rfl, right_inv := fun _ => rfl }
let tc := TensorProduct.congr e1 e2
have htc_tmul : ∀ (t : S) (m : M), tc (t ⊗ₜ[R] m) = (φS t) ⊗ₜ[R'] m := fun t m => rfl
have hta_one_tmul : ∀ m : M, e (tc ((1:S) ⊗ₜ[R] m)) = e ((1:S') ⊗ₜ[R'] m) := fun m => by
rw [htc_tmul, map_one]
refine ⟨⟨⟨⟨fun x => e (tc x), fun x y => by simp only [map_add]⟩, fun s x => ?_⟩,
fun n => tc.symm (e.symm n),
fun x => (congrArg tc.symm (e.symm_apply_apply (tc x))).trans (tc.symm_apply_apply x),
fun n => (congrArg e (tc.apply_symm_apply (e.symm n))).trans
(e.apply_symm_apply n)⟩, hta_one_tmul⟩
change e (tc (s • x)) = s • e (tc x)
induction x using TensorProduct.inductionOn with
| add x y hx hy => simp only [smul_add, map_add, hx, hy]
| tmul t m =>
change e (tc ((s * t) ⊗ₜ[R] m)) = φS s • e (tc (t ⊗ₜ[R] m))
rw [htc_tmul, htc_tmul, ← e.map_smul, TensorProduct.smul_tmul', smul_eq_mul, ← map_mul]