cfahlgren1/math / lean /OAI /Geometry /Zonotope /Determinant.lean
cfahlgren1's picture
download
raw
722 Bytes
import Mathlib.LinearAlgebra.Matrix.Determinant.Basic
namespace OAI
noncomputable section
open scoped BigOperators
namespace DiagonalZonotope
variable {ι : Type*} [Fintype ι] [DecidableEq ι] {R : Type*} [CommRing R]
/-- Replacing one identity column by the all-ones vector leaves determinant one. -/
theorem det_identity_updateCol_ones (i : ι) :
((1 : Matrix ι ι R).updateCol i (fun _ => 1)).det = 1 := by
have h := Matrix.det_updateCol_sum (1 : Matrix ι ι R) i (fun _ => (1 : R))
have hc : (fun k : ι => ∑ j : ι, (1 : R) • (1 : Matrix ι ι R) k j) =
(fun _ : ι => (1 : R)) := by
funext k
simp [Matrix.one_apply]
rw [hc] at h
simpa using h
end DiagonalZonotope
end
end OAI

Xet Storage Details

Size:
722 Bytes
·
Xet hash:
85fd95eda80f360c87e85b1e910c0a5e9fbefe44354a0214030bfa21fa75835c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.