-- Mathlib/RingTheory/RingHom/FinitePresentation.lean
theorem finitePresentation_isStableUnderBaseChange :
    IsStableUnderBaseChange @FinitePresentation

Proof state:
case h₁

⊢ RespectsIso @FinitePresentation

Tactic:
exact finitePresentation_respectsIso

Result:
no goals

Proof state:
case h₂
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : (algebraMap R T).FinitePresentation
⊢ Algebra.TensorProduct.includeLeftRingHom.FinitePresentation

Tactic:
replace h : Algebra.FinitePresentation R T := by
  rw [RingHom.FinitePresentation] at h; convert h; ext; simp_rw [Algebra.smul_def]; rfl

Result:
case h₂
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
⊢ Algebra.TensorProduct.includeLeftRingHom.FinitePresentation

Proof state:
⊢ IsStableUnderBaseChange @FinitePresentation

Tactic:
apply IsStableUnderBaseChange.mk

Result:
case h₁

⊢ RespectsIso @FinitePresentation

case h₂

⊢ ∀ ⦃R S T : Type u_1⦄ [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T] [inst_3 : Algebra R S]
    [inst_4 : Algebra R T],
    (algebraMap R T).FinitePresentation → Algebra.TensorProduct.includeLeftRingHom.FinitePresentation

Proof state:
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
⊢ Algebra.FinitePresentation R T

Tactic:
convert h

Result:
case h.e'_5
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
⊢ inst✝ = (algebraMap R T).toAlgebra

Proof state:
case h.e'_5
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
⊢ inst✝ = (algebraMap R T).toAlgebra

Tactic:
ext

Result:
case h.e'_5.h
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
r✝ : R
x✝ : T
⊢ (let_fun I := inst✝;
    r✝ • x✝) =
    r✝ • x✝

Proof state:
case h.e'_5.h
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
r✝ : R
x✝ : T
⊢ (algebraMap R T) r✝ * x✝ = (algebraMap R T) r✝ * x✝

Tactic:
rfl

Result:
no goals

Proof state:
case h.e'_5.h
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
r✝ : R
x✝ : T
⊢ (let_fun I := inst✝;
    r✝ • x✝) =
    r✝ • x✝

Tactic:
simp_rw [Algebra.smul_def]

Result:
case h.e'_5.h
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
r✝ : R
x✝ : T
⊢ (algebraMap R T) r✝ * x✝ = (algebraMap R T) r✝ * x✝

Proof state:
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
this : Algebra.FinitePresentation S (S ⊗[R] T)
⊢ Algebra.FinitePresentation S (S ⊗[R] T)

Tactic:
convert this

Result:
case h.e'_5.h
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
this : Algebra.FinitePresentation S (S ⊗[R] T)
e_4✝ : CommSemiring.toSemiring = Algebra.TensorProduct.instSemiring
⊢ Algebra.TensorProduct.includeLeftRingHom.toAlgebra = Algebra.TensorProduct.leftAlgebra

Proof state:
case h₂
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
⊢ Algebra.TensorProduct.includeLeftRingHom.FinitePresentation

Tactic:
suffices Algebra.FinitePresentation S (S ⊗[R] T) by
  rw [RingHom.FinitePresentation]; convert this; ext; simp_rw [Algebra.smul_def]; rfl

Result:
case h₂
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
⊢ Algebra.FinitePresentation S (S ⊗[R] T)

Proof state:
case h.e'_5.h.h
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
this : Algebra.FinitePresentation S (S ⊗[R] T)
e_4✝ : CommSemiring.toSemiring = Algebra.TensorProduct.instSemiring
r✝ : S
x✝ : S ⊗[R] T
⊢ (algebraMap S (S ⊗[R] T)) r✝ * x✝ = (algebraMap S (S ⊗[R] T)) r✝ * x✝

Tactic:
rfl

Result:
no goals

Proof state:
case h.e'_5.h
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
this : Algebra.FinitePresentation S (S ⊗[R] T)
e_4✝ : CommSemiring.toSemiring = Algebra.TensorProduct.instSemiring
⊢ Algebra.TensorProduct.includeLeftRingHom.toAlgebra = Algebra.TensorProduct.leftAlgebra

Tactic:
ext

Result:
case h.e'_5.h.h
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
this : Algebra.FinitePresentation S (S ⊗[R] T)
e_4✝ : CommSemiring.toSemiring = Algebra.TensorProduct.instSemiring
r✝ : S
x✝ : S ⊗[R] T
⊢ (let_fun I := Algebra.TensorProduct.includeLeftRingHom.toAlgebra;
    r✝ • x✝) =
    r✝ • x✝

Proof state:
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : (algebraMap R T).FinitePresentation
⊢ Algebra.FinitePresentation R T

Tactic:
rw [RingHom.FinitePresentation] at h

Result:
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
⊢ Algebra.FinitePresentation R T

Proof state:
case h₂
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
⊢ Algebra.FinitePresentation S (S ⊗[R] T)

Tactic:
infer_instance

Result:
no goals

Proof state:
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
this : Algebra.FinitePresentation S (S ⊗[R] T)
⊢ Algebra.TensorProduct.includeLeftRingHom.FinitePresentation

Tactic:
rw [RingHom.FinitePresentation]

Result:
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : Algebra.FinitePresentation R T
this : Algebra.FinitePresentation S (S ⊗[R] T)
⊢ Algebra.FinitePresentation S (S ⊗[R] T)

Proof state:
case h₂

⊢ ∀ ⦃R S T : Type u_1⦄ [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T] [inst_3 : Algebra R S]
    [inst_4 : Algebra R T],
    (algebraMap R T).FinitePresentation → Algebra.TensorProduct.includeLeftRingHom.FinitePresentation

Tactic:
introv h

Result:
case h₂
R S T : Type u_1
inst✝⁴ : CommRing R
inst✝³ : CommRing S
inst✝² : CommRing T
inst✝¹ : Algebra R S
inst✝ : Algebra R T
h : (algebraMap R T).FinitePresentation
⊢ Algebra.TensorProduct.includeLeftRingHom.FinitePresentation