awhecmu/canonical-drafter-extract-mathlib huggingface dataset:
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
Aₘ : Type u_9
Bₘ : Type u_10
inst_3 : CommRing Aₘ
inst_4 : CommRing Bₘ
inst_5 : Algebra Aₘ Bₘ
inst_6 : Algebra A Aₘ
inst_7 : Algebra B Bₘ
inst_8 : Algebra A Bₘ
inst_9 : IsScalarTower A Aₘ Bₘ
inst_10 : IsScalarTower A B Bₘ
M : Submonoid A
inst_11 : IsLocalization M Aₘ
inst_12 : IsLocalization (algebraMapSubmonoid B M) Bₘ
inst_13 : IsDomain A
inst_14 : IsIntegrallyClosed A
inst_15 : IsDomain B
inst_16 : IsIntegrallyClosed B
inst_17 : Module.Finite A B
inst_18 : IsTorsionFree A B
inst_19 : IsDomain Aₘ
inst_20 : IsIntegrallyClosed Aₘ
inst_21 : IsDomain Bₘ
inst_22 : IsIntegrallyClosed Bₘ
inst_23 : IsTorsionFree Aₘ Bₘ
inst_24 : Module.Finite Aₘ Bₘ
x : B
hM : M ≤ A⁰
K : Type u_1 := FractionRing A
L : Type u_6 := FractionRing B
this_1 : IsIntegralClosure B A L
this_2 : Algebra.IsAlgebraic.{u_1, u_6} (FractionRing A) (FractionRing B)
this_3 : IsLocalization (algebraMapSubmonoid.{u_1, u_6} (R := A) B A⁰) L
f : Aₘ →+* K := IsLocalization.map (M := M) (T := A⁰) K (RingHom.id A) hM
this_4 : Algebra Aₘ K := f.toAlgebra
this_5 : IsScalarTower A Aₘ K
this_6 : IsFractionRing Aₘ K := ⋯
g : Bₘ →+* L :=
  IsLocalization.map (M := algebraMapSubmonoid B M) (T := algebraMapSubmonoid.{u_1, u_6} (R := A) B A⁰) L (RingHom.id B)
    ⋯
this_7 : Algebra Bₘ L := g.toAlgebra
this_8 : IsScalarTower B Bₘ L
this_9 : Algebra Aₘ L := RingHom.toAlgebra (RingHom.comp (algebraMap K L) f)
this_10 : IsScalarTower Aₘ K L
this_11 : IsScalarTower Aₘ Bₘ L
this_12 : IsFractionRing Bₘ L := ⋯
this_13 : FiniteDimensional K L
this : IsIntegralClosure Bₘ Aₘ L
neg :
  Eq (α := K) ((algebraMap A K : (a : A) → K) ((intTrace A B : (a : B) → A) x) : K)
    (((algebraMap Aₘ K : Aₘ →+* K) : (a : Aₘ) → K)
        ((intTrace Aₘ Bₘ : (a : Bₘ) → Aₘ) ((algebraMap B Bₘ : (a : B) → Bₘ) x : Bₘ)) :
      K)
neg₁ :
  Eq.{u_1 + 1} (α := K)
    ((trace (FractionRing A) (FractionRing B) : (a : FractionRing B) → FractionRing A)
        ((algebraMap B (FractionRing B) : (a : B) → FractionRing B) x) :
      FractionRing A)
    (((algebraMap Aₘ K : Aₘ →+* K) : (a : Aₘ) → K)
        ((intTrace Aₘ Bₘ : (a : Bₘ) → Aₘ) ((algebraMap B Bₘ : (a : B) → Bₘ) x : Bₘ)) :
      K)
⊢ Eq.{u_1 + 1} (α := K)
    (((algebraMap Aₘ K : Aₘ →+* K) : (a : Aₘ) → K)
        ((algebraMap A Aₘ : (a : A) → Aₘ) ((intTrace A B : (a : B) → A) x : A)) :
      K)
    (((algebraMap Aₘ K : Aₘ →+* K) : (a : Aₘ) → K)
        ((intTrace Aₘ Bₘ : (a : Bₘ) → Aₘ) ((algebraMap B Bₘ : (a : B) → Bₘ) x : Bₘ)) :
      K)
have neg₂ : Eq.{u_1 + 1} (α := K)
  ((trace (FractionRing A) (FractionRing B) : (a : FractionRing B) → FractionRing A)
      ((algebraMap B (FractionRing B) : (a : B) → FractionRing B) x) :
    FractionRing A)
  (((trace K L : L →ₗ[K] K) : (a : L) → K)
      (((algebraMap Bₘ L : Bₘ →+* L) : (a : Bₘ) → L) ((algebraMap B Bₘ : (a : B) → Bₘ) x)) :
    K)
Tactic: rw [← IsScalarTower.algebraMap_apply, Algebra.algebraMap_intTrace_fractionRing,
    Algebra.algebraMap_intTrace (L := L), ← IsScalarTower.algebraMap_apply]
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
K : Type u_2
L : Type u_3
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : Field K
inst_4 : Field L
inst_5 : Algebra A K
inst_6 : IsFractionRing A K
inst_7 : Algebra K L
inst_8 : Algebra A L
inst_9 : IsScalarTower A K L
inst_10 : Algebra B L
inst_11 : IsScalarTower A B L
inst_12 : IsIntegralClosure B A L
inst_13 : IsIntegrallyClosed A
x : B
⊢ Eq.{u_2 + 1} (α := K) ((algebraMap A K : (a : A) → K) ((intNormAux A K L B : (a : B) → A) x : A) : K)
    ((norm K : (a : L) → K) ((algebraMap B L : (a : B) → L) x : L) : K)
have dsimp : Eq.{u_2 + 1} (α := K)
  ((algebraMap A K : (a : A) → K)
      (IsIntegralClosure.mk'.{u_1, u_1, u_2} (R := A) A (B := K)
        ((norm K : (a : L) → K) ((algebraMap B L : (a : B) → L) x : L) : K) sorry) :
    K)
  ((norm K : (a : L) → K) ((algebraMap B L : (a : B) → L) x : L) : K)
Tactic: dsimp [Algebra.intNormAux]
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (hypothesis)
Goal:
A : Type u_1
K : Type u_2
L : Type u_3
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : Field K
inst_4 : Field L
inst_5 : Algebra A K
inst_6 : IsFractionRing A K
inst_7 : Algebra K L
inst_8 : Algebra A L
inst_9 : IsScalarTower A K L
inst_10 : Algebra B L
inst_11 : IsScalarTower A B L
inst_12 : IsIntegralClosure B A L
inst_13 : FiniteDimensional K L
inst_14 : IsIntegrallyClosed A
inst_15 : IsDomain A
inst_16 : IsDomain B
inst_17 : IsIntegrallyClosed B
inst_18 : Algebra.IsIntegral A B
inst_19 : IsTorsionFree A B
x : B
⊢ Eq.{u_2 + 1} (α := K) ((algebraMap A K : (a : A) → K) ((intNorm A B : (a : B) → A) x : A) : K)
    ((norm K : (a : L) → K) ((algebraMap B L : (a : B) → L) x : L) : K)
have this : IsFractionRing B L
Tactic: haveI := IsIntegralClosure.isFractionRing_of_finite_extension A K L B
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
K : Type u_2
L : Type u_3
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : Field K
inst_4 : Field L
inst_5 : Algebra A K
inst_6 : IsFractionRing A K
inst_7 : Algebra K L
inst_8 : Algebra A L
inst_9 : IsScalarTower A K L
inst_10 : Algebra B L
inst_11 : IsScalarTower A B L
inst_12 : IsIntegralClosure B A L
inst_13 : FiniteDimensional K L
inst_14 : IsIntegrallyClosed A
inst_15 : IsDomain A
inst_16 : IsDomain B
inst_17 : IsIntegrallyClosed B
inst_18 : Algebra.IsIntegral A B
inst_19 : IsTorsionFree A B
x : B
this : IsFractionRing B L
⊢ Eq.{u_2 + 1} (α := K) ((algebraMap A K : (a : A) → K) ((intNorm A B : (a : B) → A) x : A) : K)
    ((norm K : (a : L) → K) ((algebraMap B L : (a : B) → L) x : L) : K)
have a : Eq.{u_1 + 1} (α := FractionRing A)
  (((AlgEquiv.symm (FractionRing.algEquiv A K) : K ≃ₐ[A] FractionRing A) : (a : K) → FractionRing A)
      ((algebraMap A K : (a : A) → K) ((intNorm A B : (a : B) → A) x : A)) :
    FractionRing A)
  (((AlgEquiv.symm (FractionRing.algEquiv A K) : K ≃ₐ[A] FractionRing A) : (a : K) → FractionRing A)
      ((norm K : (a : L) → K) ((algebraMap B L : (a : B) → L) x : L)) :
    FractionRing A)
Tactic: apply (FractionRing.algEquiv A K).symm.injective
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
K : Type u_2
L : Type u_3
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : Field K
inst_4 : Field L
inst_5 : Algebra A K
inst_6 : IsFractionRing A K
inst_7 : Algebra K L
inst_8 : Algebra A L
inst_9 : IsScalarTower A K L
inst_10 : Algebra B L
inst_11 : IsScalarTower A B L
inst_12 : IsIntegralClosure B A L
inst_13 : FiniteDimensional K L
inst_14 : IsIntegrallyClosed A
inst_15 : IsDomain A
inst_16 : IsDomain B
inst_17 : IsIntegrallyClosed B
inst_18 : Algebra.IsIntegral A B
inst_19 : IsTorsionFree A B
x : B
this : IsFractionRing B L
⊢ Eq.{u_1 + 1} (α := FractionRing A)
    (((AlgEquiv.symm (FractionRing.algEquiv A K) : K ≃ₐ[A] FractionRing A) : (a : K) → FractionRing A)
        ((algebraMap A K : (a : A) → K) ((intNorm A B : (a : B) → A) x : A)) :
      FractionRing A)
    (((AlgEquiv.symm (FractionRing.algEquiv A K) : K ≃ₐ[A] FractionRing A) : (a : K) → FractionRing A)
        ((norm K : (a : L) → K) ((algebraMap B L : (a : B) → L) x : L)) :
      FractionRing A)
have a : Eq.{u_1 + 1} (α := FractionRing A)
  ((norm (FractionRing A) : (a : FractionRing B) → FractionRing A)
      ((algebraMap B (FractionRing B) : (a : B) → FractionRing B) x) :
    FractionRing A)
  (((AlgEquiv.symm (FractionRing.algEquiv A K) : K ≃ₐ[A] FractionRing A) : (a : K) → FractionRing A)
      ((norm K : (a : L) → K)
        ((FractionRing.algEquiv B L : (a : FractionRing B) → L)
            ((algebraMap B (FractionRing B) : (a : B) → FractionRing B) x : FractionRing B) :
          L)) :
    FractionRing A)
Tactic: rw [AlgEquiv.commutes, Algebra.intNorm, Algebra.map_intNormAux,
    ← AlgEquiv.commutes (FractionRing.algEquiv B L)]
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
K : Type u_2
L : Type u_3
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : Field K
inst_4 : Field L
inst_5 : Algebra A K
inst_6 : IsFractionRing A K
inst_7 : Algebra K L
inst_8 : Algebra A L
inst_9 : IsScalarTower A K L
inst_10 : Algebra B L
inst_11 : IsScalarTower A B L
inst_12 : IsIntegralClosure B A L
inst_13 : FiniteDimensional K L
inst_14 : IsIntegrallyClosed A
inst_15 : IsDomain A
inst_16 : IsDomain B
inst_17 : IsIntegrallyClosed B
inst_18 : Algebra.IsIntegral A B
inst_19 : IsTorsionFree A B
x : B
this : IsFractionRing B L
⊢ Eq.{u_1 + 1} (α := FractionRing A)
    ((norm (FractionRing A) : (a : FractionRing B) → FractionRing A)
        ((algebraMap B (FractionRing B) : (a : B) → FractionRing B) x) :
      FractionRing A)
    (((AlgEquiv.symm (FractionRing.algEquiv A K) : K ≃ₐ[A] FractionRing A) : (a : K) → FractionRing A)
        ((norm K : (a : L) → K)
          ((FractionRing.algEquiv B L : (a : FractionRing B) → L)
              ((algebraMap B (FractionRing B) : (a : B) → FractionRing B) x : FractionRing B) :
            L)) :
      FractionRing A)
have a : Eq (α := RingHom.{u_1, u_3} (FractionRing A) L)
  (@RingHom.comp _ _ _ _ Semiring.toNonAssocSemiring _ (algebraMap K L)
    (↑(AlgEquiv.toRingEquiv (FractionRing.algEquiv A K)) : FractionRing A →+* K))
  (@RingHom.comp _ _ _ _ Semiring.toNonAssocSemiring _
    (↑(AlgEquiv.toRingEquiv (FractionRing.algEquiv B L)) : FractionRing B →+* L)
    (algebraMap (FractionRing A) (FractionRing B)))
Tactic: apply Algebra.norm_eq_of_equiv_equiv (FractionRing.algEquiv A K).toRingEquiv
    (FractionRing.algEquiv B L).toRingEquiv
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
K : Type u_2
L : Type u_3
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : Field K
inst_4 : Field L
inst_5 : Algebra A K
inst_6 : IsFractionRing A K
inst_7 : Algebra K L
inst_8 : Algebra A L
inst_9 : IsScalarTower A K L
inst_10 : Algebra B L
inst_11 : IsScalarTower A B L
inst_12 : IsIntegralClosure B A L
inst_13 : FiniteDimensional K L
inst_14 : IsIntegrallyClosed A
inst_15 : IsDomain A
inst_16 : IsDomain B
inst_17 : IsIntegrallyClosed B
inst_18 : Algebra.IsIntegral A B
inst_19 : IsTorsionFree A B
x : B
this : IsFractionRing B L
⊢ Eq (α := RingHom.{u_1, u_3} (FractionRing A) L)
    (@RingHom.comp _ _ _ _ Semiring.toNonAssocSemiring _ (algebraMap K L)
      (↑(AlgEquiv.toRingEquiv (FractionRing.algEquiv A K)) : FractionRing A →+* K))
    (@RingHom.comp _ _ _ _ Semiring.toNonAssocSemiring _
      (↑(AlgEquiv.toRingEquiv (FractionRing.algEquiv B L)) : FractionRing B →+* L)
      (algebraMap (FractionRing A) (FractionRing B)))
have a : ∀ (x : FractionRing A),
  Eq.{u_3 + 1} (α := L)
    ((@RingHom.comp _ _ _ _ Semiring.toNonAssocSemiring _ (algebraMap K L)
            (↑(AlgEquiv.toRingEquiv (FractionRing.algEquiv A K)) : FractionRing A →+* K) :
          (a : FractionRing A) → L)
        x :
      L)
    ((@RingHom.comp _ _ _ _ Semiring.toNonAssocSemiring _
            (↑(AlgEquiv.toRingEquiv (FractionRing.algEquiv B L)) : FractionRing B →+* L)
            (algebraMap (FractionRing A) (FractionRing B)) :
          (a : FractionRing A) → L)
        x :
      L)
Tactic: ext
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : IsIntegrallyClosed A
inst_4 : IsDomain A
inst_5 : IsDomain B
inst_6 : IsIntegrallyClosed B
inst_7 : Algebra.IsIntegral A B
inst_8 : IsTorsionFree A B
C : Type u_9
inst_9 : CommRing C
inst_10 : IsDomain C
inst_11 : IsIntegrallyClosed C
inst_12 : Algebra A C
inst_13 : Algebra B C
inst_14 : IsScalarTower A B C
inst_15 : Algebra.IsIntegral A C
inst_16 : Algebra.IsIntegral B C
inst_17 : IsTorsionFree A C
inst_18 : IsTorsionFree B C
x : C
⊢ Eq.{u_1 + 1} (α := A) ((intNorm A B : (a : B) → A) ((intNorm B C : (a : C) → B) x : B) : A)
    ((intNorm A C : (a : C) → A) x : A)
have a : Eq (α := FractionRing A)
  ((algebraMap A (FractionRing A) : (a : A) → FractionRing A)
      ((intNorm A B : (a : B) → A) ((intNorm B C : (a : C) → B) x : B)) :
    FractionRing A)
  ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A C : (a : C) → A) x) : FractionRing A)
Tactic: apply FaithfulSMul.algebraMap_injective A (FractionRing A)
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : IsIntegrallyClosed A
inst_4 : IsDomain A
inst_5 : IsDomain B
inst_6 : IsIntegrallyClosed B
inst_7 : Algebra.IsIntegral A B
inst_8 : IsTorsionFree A B
C : Type u_9
inst_9 : CommRing C
inst_10 : IsDomain C
inst_11 : IsIntegrallyClosed C
inst_12 : Algebra A C
inst_13 : Algebra B C
inst_14 : IsScalarTower A B C
inst_15 : Algebra.IsIntegral A C
inst_16 : Algebra.IsIntegral B C
inst_17 : IsTorsionFree A C
inst_18 : IsTorsionFree B C
x : C
⊢ Eq (α := FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A)
        ((intNorm A B : (a : B) → A) ((intNorm B C : (a : C) → B) x : B)) :
      FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A C : (a : C) → A) x) : FractionRing A)
have a : Eq.{u_1 + 1} (α := FractionRing A)
  ((norm (FractionRing A) : (a : FractionRing B) → FractionRing A)
      ((algebraMap B (FractionRing B) : (a : B) → FractionRing B) ((intNorm B C : (a : C) → B) x)) :
    FractionRing A)
  ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A C : (a : C) → A) x) : FractionRing A)
Tactic: rw [algebraMap_intNorm_fractionRing, algebraMap_intNorm_fractionRing,
    algebraMap_intNorm_fractionRing, Algebra.norm_norm]
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : IsIntegrallyClosed A
inst_4 : IsDomain A
inst_5 : IsDomain B
inst_6 : IsIntegrallyClosed B
inst_7 : Algebra.IsIntegral A B
inst_8 : IsTorsionFree A B
C : Type u_9
inst_9 : CommRing C
inst_10 : IsDomain C
inst_11 : IsIntegrallyClosed C
inst_12 : Algebra A C
inst_13 : Algebra B C
inst_14 : IsScalarTower A B C
inst_15 : Algebra.IsIntegral A C
inst_16 : Algebra.IsIntegral B C
inst_17 : IsTorsionFree A C
inst_18 : IsTorsionFree B C
x : C
a :
  Eq.{u_1 + 1} (α := FractionRing A)
    ((norm (FractionRing A) : (a : FractionRing B) → FractionRing A)
        ((algebraMap B (FractionRing B) : (a : B) → FractionRing B) ((intNorm B C : (a : C) → B) x)) :
      FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A C : (a : C) → A) x) : FractionRing A)
⊢ Eq (α := FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A)
        ((intNorm A B : (a : B) → A) ((intNorm B C : (a : C) → B) x : B)) :
      FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A C : (a : C) → A) x) : FractionRing A)
have a₁ : Eq.{u_1 + 1} (α := FractionRing A)
  ((norm (FractionRing A) : (a : FractionRing B) → FractionRing A)
      ((norm (FractionRing B) : (a : FractionRing C) → FractionRing B)
        ((algebraMap C (FractionRing C) : (a : C) → FractionRing C) x)) :
    FractionRing A)
  ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A C : (a : C) → A) x) : FractionRing A)
Tactic: rw [algebraMap_intNorm_fractionRing, algebraMap_intNorm_fractionRing,
    algebraMap_intNorm_fractionRing, Algebra.norm_norm]
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : IsIntegrallyClosed A
inst_4 : IsDomain A
inst_5 : IsDomain B
inst_6 : IsIntegrallyClosed B
inst_7 : Algebra.IsIntegral A B
inst_8 : IsTorsionFree A B
C : Type u_9
inst_9 : CommRing C
inst_10 : IsDomain C
inst_11 : IsIntegrallyClosed C
inst_12 : Algebra A C
inst_13 : Algebra B C
inst_14 : IsScalarTower A B C
inst_15 : Algebra.IsIntegral A C
inst_16 : Algebra.IsIntegral B C
inst_17 : IsTorsionFree A C
inst_18 : IsTorsionFree B C
x : C
a :
  Eq.{u_1 + 1} (α := FractionRing A)
    ((norm (FractionRing A) : (a : FractionRing B) → FractionRing A)
        ((algebraMap B (FractionRing B) : (a : B) → FractionRing B) ((intNorm B C : (a : C) → B) x)) :
      FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A C : (a : C) → A) x) : FractionRing A)
a₁ :
  Eq.{u_1 + 1} (α := FractionRing A)
    ((norm (FractionRing A) : (a : FractionRing B) → FractionRing A)
        ((norm (FractionRing B) : (a : FractionRing C) → FractionRing B)
          ((algebraMap C (FractionRing C) : (a : C) → FractionRing C) x)) :
      FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A C : (a : C) → A) x) : FractionRing A)
⊢ Eq (α := FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A)
        ((intNorm A B : (a : B) → A) ((intNorm B C : (a : C) → B) x : B)) :
      FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A C : (a : C) → A) x) : FractionRing A)
have a₂ : Eq.{u_1 + 1} (α := FractionRing A)
  ((norm (FractionRing A) : (a : FractionRing B) → FractionRing A)
      ((norm (FractionRing B) : (a : FractionRing C) → FractionRing B)
        ((algebraMap C (FractionRing C) : (a : C) → FractionRing C) x)) :
    FractionRing A)
  ((norm (FractionRing A) : (a : FractionRing C) → FractionRing A)
      ((algebraMap C (FractionRing C) : (a : C) → FractionRing C) x) :
    FractionRing A)
Tactic: rw [algebraMap_intNorm_fractionRing, algebraMap_intNorm_fractionRing,
    algebraMap_intNorm_fractionRing, Algebra.norm_norm]
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : IsIntegrallyClosed A
inst_4 : IsDomain A
inst_5 : IsDomain B
inst_6 : IsIntegrallyClosed B
inst_7 : Algebra.IsIntegral A B
inst_8 : IsTorsionFree A B
C : Type u_9
inst_9 : CommRing C
inst_10 : IsDomain C
inst_11 : IsIntegrallyClosed C
inst_12 : Algebra A C
inst_13 : Algebra B C
inst_14 : IsScalarTower A B C
inst_15 : Algebra.IsIntegral A C
inst_16 : Algebra.IsIntegral B C
inst_17 : IsTorsionFree A C
inst_18 : IsTorsionFree B C
x : C
a :
  Eq.{u_1 + 1} (α := FractionRing A)
    ((norm (FractionRing A) : (a : FractionRing B) → FractionRing A)
        ((algebraMap B (FractionRing B) : (a : B) → FractionRing B) ((intNorm B C : (a : C) → B) x)) :
      FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A C : (a : C) → A) x) : FractionRing A)
a₁ :
  Eq.{u_1 + 1} (α := FractionRing A)
    ((norm (FractionRing A) : (a : FractionRing B) → FractionRing A)
        ((norm (FractionRing B) : (a : FractionRing C) → FractionRing B)
          ((algebraMap C (FractionRing C) : (a : C) → FractionRing C) x)) :
      FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A C : (a : C) → A) x) : FractionRing A)
a₂ :
  Eq.{u_1 + 1} (α := FractionRing A)
    ((norm (FractionRing A) : (a : FractionRing B) → FractionRing A)
        ((norm (FractionRing B) : (a : FractionRing C) → FractionRing B)
          ((algebraMap C (FractionRing C) : (a : C) → FractionRing C) x)) :
      FractionRing A)
    ((norm (FractionRing A) : (a : FractionRing C) → FractionRing A)
        ((algebraMap C (FractionRing C) : (a : C) → FractionRing C) x) :
      FractionRing A)
⊢ Eq (α := FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A)
        ((intNorm A B : (a : B) → A) ((intNorm B C : (a : C) → B) x : B)) :
      FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A C : (a : C) → A) x) : FractionRing A)
have a₃ : Eq.{u_1 + 1} (α := FractionRing A)
  ((norm (FractionRing A) : (a : FractionRing C) → FractionRing A)
      ((algebraMap C (FractionRing C) : (a : C) → FractionRing C) x) :
    FractionRing A)
  ((norm (FractionRing A) : (a : FractionRing C) → FractionRing A)
      ((algebraMap C (FractionRing C) : (a : C) → FractionRing C) x) :
    FractionRing A)
Tactic: rw [algebraMap_intNorm_fractionRing, algebraMap_intNorm_fractionRing,
    algebraMap_intNorm_fractionRing, Algebra.norm_norm]
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : IsIntegrallyClosed A
inst_4 : IsDomain A
inst_5 : IsDomain B
inst_6 : IsIntegrallyClosed B
inst_7 : Algebra.IsIntegral A B
inst_8 : IsTorsionFree A B
inst_9 : Free A B
inst_10 : Module.Finite A B
⊢ Eq (α := B →* A) (intNorm A B) (norm A)
have h : ∀ (x : B), Eq.{u_1 + 1} (α := A) ((intNorm A B : (a : B) → A) x : A) ((norm A : (a : B) → A) x : A)
Tactic: ext x
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (hypothesis)
Goal:
A : Type u_1
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : IsIntegrallyClosed A
inst_4 : IsDomain A
inst_5 : IsDomain B
inst_6 : IsIntegrallyClosed B
inst_7 : Algebra.IsIntegral A B
inst_8 : IsTorsionFree A B
inst_9 : Free A B
inst_10 : Module.Finite A B
x : B
⊢ Eq.{u_1 + 1} (α := A) ((intNorm A B : (a : B) → A) x : A) ((norm A : (a : B) → A) x : A)
have this : IsIntegralClosure B A (FractionRing B)
Tactic: haveI : IsIntegralClosure B A (FractionRing B) :=
    IsIntegralClosure.of_isIntegrallyClosed _ _ _
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : IsIntegrallyClosed A
inst_4 : IsDomain A
inst_5 : IsDomain B
inst_6 : IsIntegrallyClosed B
inst_7 : Algebra.IsIntegral A B
inst_8 : IsTorsionFree A B
inst_9 : Free A B
inst_10 : Module.Finite A B
x : B
this : IsIntegralClosure B A (FractionRing B)
⊢ Eq.{u_1 + 1} (α := A) ((intNorm A B : (a : B) → A) x : A) ((norm A : (a : B) → A) x : A)
have h : Eq (α := FractionRing A)
  ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A B : (a : B) → A) x) : FractionRing A)
  ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((norm A : (a : B) → A) x) : FractionRing A)
Tactic: apply IsFractionRing.injective A (FractionRing A)
-- Lean 4 proof step from Mathlib.RingTheory.IntegralClosure.IntegralRestrict (goal)
Goal:
A : Type u_1
B : Type u_6
inst : CommRing A
inst_1 : CommRing B
inst_2 : Algebra A B
inst_3 : IsIntegrallyClosed A
inst_4 : IsDomain A
inst_5 : IsDomain B
inst_6 : IsIntegrallyClosed B
inst_7 : Algebra.IsIntegral A B
inst_8 : IsTorsionFree A B
inst_9 : Free A B
inst_10 : Module.Finite A B
x : B
this : IsIntegralClosure B A (FractionRing B)
⊢ Eq (α := FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((intNorm A B : (a : B) → A) x) : FractionRing A)
    ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((norm A : (a : B) → A) x) : FractionRing A)
have h : Eq.{u_1 + 1} (α := FractionRing A)
  ((norm (FractionRing A) : (a : FractionRing B) → FractionRing A)
      ((algebraMap B (FractionRing B) : (a : B) → FractionRing B) x) :
    FractionRing A)
  ((algebraMap A (FractionRing A) : (a : A) → FractionRing A) ((norm A : (a : B) → A) x) : FractionRing A)
Tactic: rw [Algebra.algebraMap_intNorm_fractionRing, Algebra.norm_localization A A⁰]