Module

AlgebraTraceInvMulDerivationEqInvNormMulDerivationNorm.lean

Nyll.AlgebraicCurves.Differentials.Kaehler.AlgebraTraceInvMulDerivationEqInvNormMulDerivationNorm
9 declarations indexed from sourceView source ↗

Algebra trace inv mul derivation eq inv norm mul derivation norm

Imports5
  • Mathlib.RingTheory.Norm.Basic
  • Mathlib.RingTheory.Trace.Basic
  • Mathlib.RingTheory.Derivation.Basic
  • Mathlib.LinearAlgebra.Matrix.Adjugate
  • Mathlib.LinearAlgebra.Matrix.NonsingularInverse
Imported by2

Declarations

AlgebraicCurves.Differentials.Kaehler.Proofs.Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm.O3aJacobi.Derivation.leibniz_finsetProd
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Differentials.Kaehler.Proofs
namespace Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm
namespace O3aJacobi
open _root_.Matrix
open _root_.Finset
open _root_.Algebra
open _root_.Module
section LeibnizProd
variable {R A : Type*} [CommRing R] [CommRing A] [Algebra R A]
theorem Derivation.leibniz_finsetProd (D : Derivation R A A) {ι : Type*} [DecidableEq ι]
    (s : Finset ι) (f : ι → A) :
    D (∏ i ∈ s, f i) = ∑ j ∈ s, (∏ i ∈ s.erase j, f i) * D (f j)
AlgebraicCurves.Differentials.Kaehler.Proofs.Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm.O3aJacobi.dMat

Entrywise application of a derivation to a matrix.

Source context 12 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Differentials.Kaehler.Proofs
namespace Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm
namespace O3aJacobi
open _root_.Matrix
open _root_.Finset
open _root_.Algebra
open _root_.Module
section Jacobi
variable {R F : Type*} [CommRing R] [Field F] [Algebra R F]
variable {n : Type*} [DecidableEq n] [Fintype n]
abbrev dMat (d : Derivation R F F) (M : Matrix n n F) : Matrix n n F
AlgebraicCurves.Differentials.Kaehler.Proofs.Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm.O3aJacobi.Derivation.det_eq_sum_updateCol
Source context 12 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Differentials.Kaehler.Proofs
namespace Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm
namespace O3aJacobi
open _root_.Matrix
open _root_.Finset
open _root_.Algebra
open _root_.Module
section Jacobi
variable {R F : Type*} [CommRing R] [Field F] [Algebra R F]
variable {n : Type*} [DecidableEq n] [Fintype n]
theorem Derivation.det_eq_sum_updateCol (d : Derivation R F F) (M : Matrix n n F) :
    d M.det = ∑ j, (M.updateCol j (fun i => d (M i j))).det := by
  simp only [Matrix.det_apply']
  rw [_root_.map_sum, Finset.sum_comm]
  refine Finset.sum_congr rfl fun σ _ => ?_
  rw [d.leibniz, smul_eq_mul, smul_eq_mul, d.map_intCast, mul_zero, add_zero,
    Derivation.leibniz_finsetProd d Finset.univ (fun i => M (σ i) i), Finset.mul_sum]
  refine Finset.sum_congr rfl fun j _ => ?_
  rw [show (∏ i, (M.updateCol j (fun k => d (M k j))) (σ i) i)
      = d (M (σ j) j) * ∏ i ∈ Finset.univ.erase j, M (σ i) i from ?_]
  · ring
  · rw [← Finset.mul_prod_erase _ _ (Finset.mem_univ j), Matrix.updateCol_self]
    congr 1
    exact Finset.prod_congr rfl fun i hi =>
      Matrix.updateCol_ne (Finset.mem_erase.mp hi).1
AlgebraicCurves.Differentials.Kaehler.Proofs.Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm.O3aJacobi.Derivation.det_eq_trace_adjugate_mul
Source context 12 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Differentials.Kaehler.Proofs
namespace Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm
namespace O3aJacobi
open _root_.Matrix
open _root_.Finset
open _root_.Algebra
open _root_.Module
section Jacobi
variable {R F : Type*} [CommRing R] [Field F] [Algebra R F]
variable {n : Type*} [DecidableEq n] [Fintype n]
theorem Derivation.det_eq_trace_adjugate_mul (d : Derivation R F F) (M : Matrix n n F) :
    d M.det = Matrix.trace (M.adjugate * dMat d M)
AlgebraicCurves.Differentials.Kaehler.Proofs.Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm.O3aJacobi.basisDerivMatrix

The matrix of the derivatives of the basis vectors in the given basis.

Source context 12 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Differentials.Kaehler.Proofs
namespace Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm
namespace O3aJacobi
open _root_.Matrix
open _root_.Finset
open _root_.Algebra
open _root_.Module
section MatrixDecomp
variable {R F F' : Type*} [CommRing R] [Field F] [Field F'] [Algebra R F] [Algebra R F']
  [Algebra F F'] [IsScalarTower R F F']
variable {ι : Type*} [DecidableEq ι] [Fintype ι]
def basisDerivMatrix (b : Basis ι F F') (d' : Derivation R F' F') :
    Matrix ι ι F
AlgebraicCurves.Differentials.Kaehler.Proofs.Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm.O3aJacobi.deriv_F_smul
Source context 13 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Differentials.Kaehler.Proofs
namespace Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm
namespace O3aJacobi
open _root_.Matrix
open _root_.Finset
open _root_.Algebra
open _root_.Module
section MatrixDecomp
variable {R F F' : Type*} [CommRing R] [Field F] [Field F'] [Algebra R F] [Algebra R F']
  [Algebra F F'] [IsScalarTower R F F']
variable {ι : Type*} [DecidableEq ι] [Fintype ι]
omit [IsScalarTower R F F'] in
theorem deriv_F_smul (d : Derivation R F F) (d' : Derivation R F' F')
    (hd : ∀ x : F, d' (algebraMap F F' x) = algebraMap F F' (d x))
    (c : F) (x : F') : d' (c • x) = c • d' x + (d c) • x
AlgebraicCurves.Differentials.Kaehler.Proofs.Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm.O3aJacobi.leftMulMatrix_deriv
Source context 13 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Differentials.Kaehler.Proofs
namespace Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm
namespace O3aJacobi
open _root_.Matrix
open _root_.Finset
open _root_.Algebra
open _root_.Module
section MatrixDecomp
variable {R F F' : Type*} [CommRing R] [Field F] [Field F'] [Algebra R F] [Algebra R F']
  [Algebra F F'] [IsScalarTower R F F']
variable {ι : Type*} [DecidableEq ι] [Fintype ι]
omit [IsScalarTower R F F'] in
theorem leftMulMatrix_deriv (b : Basis ι F F')
    (d : Derivation R F F) (d' : Derivation R F' F')
    (hd : ∀ x : F, d' (algebraMap F F' x) = algebraMap F F' (d x)) (h : F') :
    leftMulMatrix b (d' h) = dMat d (leftMulMatrix b h)
      + basisDerivMatrix b d' * leftMulMatrix b h
      - leftMulMatrix b h * basisDerivMatrix b d'
AlgebraicCurves.Differentials.Kaehler.Proofs.Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm.O3aJacobi.trace_inv_mul_deriv_eq_inv_norm_mul_deriv_norm
Source context 12 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Differentials.Kaehler.Proofs
namespace Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm
namespace O3aJacobi
open _root_.Matrix
open _root_.Finset
open _root_.Algebra
open _root_.Module
section Core
variable {R F F' : Type*} [CommRing R] [Field F] [Field F'] [Algebra R F] [Algebra R F']
  [Algebra F F'] [IsScalarTower R F F']
omit [IsScalarTower R F F'] in
theorem trace_inv_mul_deriv_eq_inv_norm_mul_deriv_norm
    (d : Derivation R F F) (d' : Derivation R F' F')
    (hd : ∀ x : F, d' (algebraMap F F' x) = algebraMap F F' (d x)) (h : F') :
    Algebra.trace F F' (h⁻¹ * d' h) = (Algebra.norm F h)⁻¹ * d (Algebra.norm F h)
Algebra.trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm
Source context 4 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Differentials.Kaehler.Proofs
namespace Algebra_trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm
theorem _root_.Algebra.trace_inv_mul_derivation_eq_inv_norm_mul_derivation_norm {R F F' : Type*}
  [CommRing R] [Field F] [Field F'] [Algebra R F] [Algebra R F'] [Algebra F F'] (d : Derivation R F
  F) (d' : Derivation R F' F') (hd : ∀ x : F, d' (algebraMap F F' x) = algebraMap F F' (d x)) (h :
  F') : Algebra.trace F F' (h⁻¹ * d' h) = (Algebra.norm F h)⁻¹ * d (Algebra.norm F h)