Buckets:
| import OAI.Geometry.Zonotope.Support | |
| import OAI.Geometry.Zonotope.Determinant | |
| import Mathlib.LinearAlgebra.Determinant | |
| namespace OAI | |
| noncomputable section | |
| open Set | |
| namespace DiagonalZonotope | |
| variable {ι : Type*} [Fintype ι] [DecidableEq ι] | |
| /-- The determinant-one shear that supplies the linear part of a facet extrusion. -/ | |
| def shear (i : ι) : (ι → ℝ) →ₗ[ℝ] (ι → ℝ) where | |
| toFun s j := if j = i then s i else s j + s i | |
| map_add' x y := by | |
| funext j | |
| by_cases h : j = i | |
| · simp [h] | |
| · simp [h, add_left_comm, add_comm] | |
| map_smul' c x := by | |
| funext j | |
| by_cases h : j = i | |
| · simp [h] | |
| · simp [h, mul_add] | |
| lemma shear_matrix (i : ι) : | |
| LinearMap.toMatrix' (shear i) = | |
| (1 : Matrix ι ι ℝ).updateCol i (fun _ => 1) := by | |
| ext k j | |
| by_cases hji : j = i | |
| · subst j | |
| by_cases hki : k = i <;> | |
| simp [LinearMap.toMatrix'_apply, shear, Matrix.updateCol, hki] | |
| · by_cases hki : k = i | |
| · subst k | |
| simp [LinearMap.toMatrix'_apply, shear, Matrix.updateCol, hji, Ne.symm hji] | |
| · simp [LinearMap.toMatrix'_apply, shear, Matrix.updateCol, hji, hki, | |
| Ne.symm hji, Pi.single_apply, Matrix.one_apply] | |
| /-- No absolute determinant factor is lost in the extrusion parameterization. -/ | |
| theorem shear_det (i : ι) : LinearMap.det (shear i) = 1 := by | |
| rw [← LinearMap.det_toMatrix', shear_matrix, det_identity_updateCol_ones] | |
| omit [Fintype ι] in | |
| lemma extrusionMap_eq (i : ι) (s : ι → ℝ) : | |
| extrusionMap i s = Pi.single i 1 + shear i s := by | |
| funext j | |
| by_cases hji : j = i | |
| · subst j | |
| simp [extrusionMap, shear] | |
| · simp [extrusionMap, shear, hji] | |
| end DiagonalZonotope | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 1.68 kB
- Xet hash:
- d2bc27739bdcae6ff40af0b70e4a32cfde893fdd38b039ad723e6f61539a0290
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.