math / data /lean /OAI /MathematicalPhysics /DefocusingNLS /Profile /ProfileStateInterpretation.lean
Download data/lean/OAI/MathematicalPhysics/DefocusingNLS/Profile/ProfileStateInterpretation.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.72 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/DefocusingNLS/Profile/ProfileStateInterpretation.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MathematicalPhysics/DefocusingNLS/Profile/ProfileStateInterpretation.lean
-
curl -L -o ProfileStateInterpretation.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/DefocusingNLS/Profile/ProfileStateInterpretation.lean
3.72 kB
| import OAI.MathematicalPhysics.DefocusingNLS.Profile.ProfileTaylorStep | |
| namespace OAI | |
| /-! Interpretation of every field in the exact profile-certificate recurrence. -/ | |
| open Matrix | |
| namespace DefocusingNLS.ProfileCertificate | |
| @[simp] theorem complexMatrix_add (A B : QMatrix) : | |
| complexMatrix (Matrix2.add A B) = complexMatrix A+complexMatrix B := by | |
| ext i j | |
| simp only [complexMatrix, Matrix2.toMatrix_add, Matrix.map_apply, Matrix.add_apply, map_add] | |
| @[simp] theorem rationalMatrix_add (E F : RMatrix) : | |
| rationalMatrix (Matrix2.add E F) = rationalMatrix E+rationalMatrix F := by | |
| ext i j | |
| simp only [rationalMatrix, Matrix2.toMatrix_add, Matrix.map_apply, Matrix.add_apply, map_add] | |
| @[simp] theorem rationalMatrix_mul (E F : RMatrix) : | |
| rationalMatrix (Matrix2.mul E F) = rationalMatrix E*rationalMatrix F := by | |
| simp only [rationalMatrix, Matrix2.toMatrix_mul, Matrix.map_mul] | |
| @[simp] theorem rationalMatrix_scale (r : β) (E : RMatrix) : | |
| rationalMatrix (Matrix2.scale r E) = (r : β) β’ rationalMatrix E := by | |
| simp only [rationalMatrix, Matrix2.toMatrix_scale] | |
| exact Matrix.map_smul' _ _ _ (Rat.castHom β).map_mul | |
| @[simp] theorem complexMatrix_scale_real (r : β) (A : QMatrix) : | |
| complexMatrix (Matrix2.scale (β¨r,0β© : RationalComplex) A) = (r : β) β’ complexMatrix A := by | |
| rw [complexMatrix_scale] | |
| have he : RationalComplex.toComplex (β¨r,0β© : RationalComplex) = ((r : β) : β) := by | |
| apply Complex.ext <;> simp [RationalComplex.toComplex] | |
| rw [he] | |
| ext i j | |
| exact (Complex.real_smul).symm | |
| theorem state_value_step (n : β) (s : State) : | |
| complexMatrix (step n s).value = ((n : β)+1)β»ΒΉ β’ | |
| (complexMatrix (factor n)*complexMatrix s.value) := by | |
| simp only [step, complexMatrix_scale_real, complexMatrix_mul] | |
| simp only [Rat.cast_inv, Rat.cast_add, Rat.cast_natCast, Rat.cast_one] | |
| theorem state_derivB_step (n : β) (s : State) : | |
| complexMatrix (step n s).derivB = ((n : β)+1)β»ΒΉ β’ | |
| (complexMatrix parameterB*complexMatrix s.value+ | |
| complexMatrix (factor n)*complexMatrix s.derivB) := by | |
| simp only [step, complexMatrix_scale_real, complexMatrix_add, complexMatrix_mul] | |
| simp only [Rat.cast_inv, Rat.cast_add, Rat.cast_natCast, Rat.cast_one] | |
| theorem state_derivZ_step (n : β) (s : State) : | |
| complexMatrix (step n s).derivZ = ((n : β)+1)β»ΒΉ β’ | |
| (complexMatrix parameterZ*complexMatrix s.value+ | |
| complexMatrix (factor n)*complexMatrix s.derivZ) := by | |
| simp only [step, complexMatrix_scale_real, complexMatrix_add, complexMatrix_mul] | |
| simp only [Rat.cast_inv, Rat.cast_add, Rat.cast_natCast, Rat.cast_one] | |
| theorem state_error_step (n : β) (s : State) : | |
| rationalMatrix (step n s).error = ((n : β)+1)β»ΒΉ β’ | |
| ((absoluteMatrix (factor n)+(radius : β) β’ | |
| (absoluteMatrix parameterB+absoluteMatrix parameterZ))*rationalMatrix s.error+ | |
| (absoluteMatrix parameterB+absoluteMatrix parameterZ)* | |
| (absoluteMatrix s.derivB+absoluteMatrix s.derivZ)) := by | |
| simp only [step, rationalMatrix_scale, rationalMatrix_add, rationalMatrix_mul, | |
| majorant, absoluteMatrix] | |
| simp only [Rat.cast_inv, Rat.cast_add, Rat.cast_natCast, Rat.cast_one] | |
| theorem profileFactor_affine (n : β) (b z : β) : | |
| profileFactor ((centerB : β)+b) ((centerZ : β)+z) n = ((n : β)+1)β»ΒΉ β’ | |
| (complexMatrix (factor n)+b β’ complexMatrix parameterB+z β’ complexMatrix parameterZ) := by | |
| ext i j | |
| fin_cases i <;> fin_cases j <;> | |
| simp [profileFactor, complexMatrix, factor, parameterB, parameterZ, | |
| Matrix2.toMatrix, backwardMatrix, RationalComplex.toComplex, Complex.real_smul, | |
| Complex.ext_iff] <;> ring | |
| end DefocusingNLS.ProfileCertificate | |
| end OAI | |