math / data /lean /OAI /AlgebraicGeometry /AbelianModuli /ReferenceFamily /Integral /ReflectionFractions.lean
Download data/lean/OAI/AlgebraicGeometry/AbelianModuli/ReferenceFamily/Integral/ReflectionFractions.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 9.86 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/AbelianModuli/ReferenceFamily/Integral/ReflectionFractions.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/AbelianModuli/ReferenceFamily/Integral/ReflectionFractions.lean
-
curl -L -o ReflectionFractions.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/AbelianModuli/ReferenceFamily/Integral/ReflectionFractions.lean
9.86 kB
| import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.IntegralHermitianCoefficients | |
| import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ClearedReflectionPolynomials | |
| /-! # Reflection Fractions -/ | |
| namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Integral.ReflectionFractions | |
| noncomputable section | |
| /-! The actual forward and reverse reflection matrices have integral | |
| numerators over one integral denominator congruent to one modulo the | |
| level. All coefficients come from the given integral Hermitian matrix | |
| and the original localized perturbation vector. | |
| -/ | |
| variable (E : Type*) [Field E] [NumberField E] [NumberField.IsCMField E] | |
| theorem integral_two_reflections_common_fraction | |
| (β : β) | |
| (H : Matrix (Fin 3) (Fin 3) (NumberField.RingOfIntegers E)) | |
| (hHerm : β i j, (H i j : E) = NumberField.IsCMField.complexConj E (H j i : E)) | |
| (w : Fin 3 β NumberField.RingOfIntegers E) | |
| (z : NumberField.RingOfIntegers E) (c : Fin 3 β E) | |
| (hc : β i, c i β EmbeddedLocalizedVectors.localizedCoefficientRing (β + 1) (z : E)) | |
| (hw : IntegralHermitianCoefficients.integralMatrixReflectionForm E H (fun i => (w i : E)) (fun i => (w i : E)) β 0) | |
| (hv : IntegralHermitianCoefficients.integralMatrixReflectionForm E H | |
| ((fun i => (w i : E)) + ((β : E) * | |
| (IntegralHermitianCoefficients.integralMatrixReflectionForm E H (fun i => (w i : E)) (fun i => (w i : E))) ^ 2) β’ c) | |
| ((fun i => (w i : E)) + ((β : E) * | |
| (IntegralHermitianCoefficients.integralMatrixReflectionForm E H (fun i => (w i : E)) (fun i => (w i : E))) ^ 2) β’ c) β 0) : | |
| let Ο := (NumberField.IsCMField.complexConj E).toRingHom | |
| let B := IntegralHermitianCoefficients.integralMatrixReflectionForm E H | |
| let wβ := fun i => (w i : E) | |
| let v := wβ + ((β : E) * (B wβ wβ) ^ 2) β’ c | |
| β A : NumberField.RingOfIntegers E, (A : E) β 0 β§ | |
| (β t : NumberField.RingOfIntegers E, A = 1 + (β : NumberField.RingOfIntegers E) * t) β§ | |
| β F G : Matrix (Fin 3) (Fin 3) (NumberField.RingOfIntegers E), | |
| β i j, | |
| LinearMap.toMatrix' (ReflectionDeterminant.twoHermitianReflections Ο B v wβ hv hw).toLinearMap i j - | |
| (1 : Matrix (Fin 3) (Fin 3) E) i j = (β : E) * (F i j : E) / (A : E) β§ | |
| LinearMap.toMatrix' (ReflectionDeterminant.twoHermitianReflections Ο B wβ v hw hv).toLinearMap i j - | |
| (1 : Matrix (Fin 3) (Fin 3) E) i j = (β : E) * (G i j : E) / (A : E) := by | |
| classical | |
| dsimp only | |
| let Ο := (NumberField.IsCMField.complexConj E).toRingHom | |
| let B := IntegralHermitianCoefficients.integralMatrixReflectionForm E H | |
| let wβ := fun i => (w i : E) | |
| have hB : β x y, B x y = Ο (B y x) := | |
| MatrixReflectionEmbedding.matrixReflectionForm_symmetry Ο (NumberField.IsCMField.complexConj_apply_apply E) | |
| (H.map (algebraMap (NumberField.RingOfIntegers E) E)) hHerm | |
| have hβ : Ο (β : E) = (β : E) := map_natCast Ο β | |
| obtain β¨n, C, hCβ© := IntegralHermitianCoefficients.localized_vector_common_integral_denominator E (β + 1) | |
| (Nat.succ_pos β) z c hc | |
| let b : NumberField.RingOfIntegers E := ((β : NumberField.RingOfIntegers E) + 1) ^ n | |
| have hb : (b : E) = ((β + 1 : β) : E) ^ n := by | |
| simp only [b, map_pow, map_add, map_natCast, map_one, Nat.cast_add, Nat.cast_one] | |
| have hb0 : (b : E) β 0 := by | |
| rw [hb] | |
| exact pow_ne_zero n (Nat.cast_ne_zero.mpr (Nat.succ_ne_zero β)) | |
| have hbΟ : Ο (b : E) = (b : E) := by rw [hb, map_pow, map_natCast] | |
| have hCvec : (fun i => (C i : E)) = (b : E) β’ c := by | |
| ext i | |
| change (C i : E) = (b : E) * c i | |
| rw [hC i, hb] | |
| let q := IntegralHermitianCoefficients.integralHermitianPairing E H w w | |
| let s := IntegralHermitianCoefficients.integralHermitianPairing E H w C | |
| let t := IntegralHermitianCoefficients.integralHermitianPairing E H C w | |
| let r := IntegralHermitianCoefficients.integralHermitianPairing E H C C | |
| have hq : (q : E) = B wβ wβ := IntegralHermitianCoefficients.integralHermitianPairing_coe E H w w | |
| have hs : (s : E) = (b : E) * B wβ c := by | |
| rw [IntegralHermitianCoefficients.integralHermitianPairing_coe E H w C, hCvec] | |
| rw [(B wβ).map_smulββ (b : E) c] | |
| change Ο (b : E) * B wβ c = _ | |
| rw [hbΟ] | |
| have ht : (t : E) = (b : E) * B c wβ := by | |
| rw [IntegralHermitianCoefficients.integralHermitianPairing_coe E H C w, hCvec] | |
| simp only [map_smul, LinearMap.smul_apply, smul_eq_mul] | |
| rfl | |
| have hr : (r : E) = (b : E) ^ 2 * B c c := by | |
| rw [IntegralHermitianCoefficients.integralHermitianPairing_coe E H C C, hCvec] | |
| rw [B.map_smul (b : E) c, LinearMap.smul_apply, (B c).map_smulββ (b : E) c] | |
| change (b : E) * (Ο (b : E) * B c c) = (b : E) ^ 2 * B c c | |
| rw [hbΟ] | |
| ring | |
| let A := ClearedReflectionPolynomials.clearedReflectionNormDenominator (β : NumberField.RingOfIntegers E) b q s t r | |
| have hA : (A : E) = (b : E) ^ 2 * | |
| ReflectionCongruenceCoefficients.reflectionNormDenominator (β : E) (B wβ wβ) (B wβ c) (B c wβ) (B c c) := by | |
| change algebraMap (NumberField.RingOfIntegers E) E | |
| (ClearedReflectionPolynomials.clearedReflectionNormDenominator (β : NumberField.RingOfIntegers E) b q s t r) = _ | |
| simp only [ClearedReflectionPolynomials.clearedReflectionNormDenominator, map_add, map_mul, map_pow, map_natCast] | |
| simp only [β NumberField.RingOfIntegers.coe_eq_algebraMap] | |
| rw [hq, hs, ht, hr] | |
| exact (ClearedReflectionPolynomials.reflectionNormDenominator_clear (β : E) (b : E) | |
| (B wβ wβ) (B wβ c) (B c wβ) (B c c)).symm | |
| have hD0 : ReflectionCongruenceCoefficients.reflectionNormDenominator (β : E) (B wβ wβ) (B wβ c) (B c wβ) (B c c) β 0 := by | |
| intro h | |
| apply hv | |
| rw [Hermitian.ReflectionCoefficients.hermitian_level_perturbation_norm_factor Ο B hB (β : E) hβ wβ c, h, mul_zero] | |
| have hA0 : (A : E) β 0 := by rw [hA]; exact mul_ne_zero (pow_ne_zero 2 hb0) hD0 | |
| obtain β¨u, huβ© := ClearedReflectionPolynomials.clearedReflectionNormDenominator_eq_one_add_level | |
| (β : NumberField.RingOfIntegers E) q s t r n | |
| let p (j : Fin 3) := IntegralHermitianCoefficients.integralHermitianPairing E H (Pi.single j 1) w | |
| let d (j : Fin 3) := IntegralHermitianCoefficients.integralHermitianPairing E H (Pi.single j 1) C | |
| have he (j : Fin 3) : | |
| (fun i : Fin 3 => ((Pi.single j 1 : Fin 3 β NumberField.RingOfIntegers E) i : E)) = | |
| (Pi.single j 1 : Fin 3 β E) := by | |
| ext i | |
| by_cases h : i = j <;> simp [h] | |
| have hp (j : Fin 3) : (p j : E) = B (Pi.single j 1) wβ := by | |
| rw [IntegralHermitianCoefficients.integralHermitianPairing_coe E H (Pi.single j 1) w, he j] | |
| have hd (j : Fin 3) : (d j : E) = (b : E) * B (Pi.single j 1) c := by | |
| rw [IntegralHermitianCoefficients.integralHermitianPairing_coe E H (Pi.single j 1) C, he j, hCvec] | |
| rw [(B (Pi.single j 1)).map_smulββ (b : E) c] | |
| change Ο (b : E) * B (Pi.single j 1) c = _ | |
| rw [hbΟ] | |
| let m : NumberField.RingOfIntegers E := (β : NumberField.RingOfIntegers E) * q ^ 2 | |
| let F : Matrix (Fin 3) (Fin 3) (NumberField.RingOfIntegers E) := | |
| fun i j => ClearedReflectionPolynomials.clearedForwardReflectionPolynomial b q m (w i) (C i) (p j) (d j) s t r | |
| let G : Matrix (Fin 3) (Fin 3) (NumberField.RingOfIntegers E) := | |
| fun i j => ClearedReflectionPolynomials.clearedReverseReflectionPolynomial b q m (w i) (C i) (p j) (d j) s t r | |
| have hF (i j : Fin 3) : (F i j : E) = (b : E) ^ 2 * | |
| ReflectionCongruenceCoefficients.forwardReflectionDifferencePolynomial (B wβ wβ) ((β : E) * (B wβ wβ) ^ 2) | |
| (wβ i) (c i) (B (Pi.single j 1) wβ) (B (Pi.single j 1) c) | |
| (B wβ c) (B c wβ) (B c c) := by | |
| change algebraMap (NumberField.RingOfIntegers E) E | |
| (ClearedReflectionPolynomials.clearedForwardReflectionPolynomial b q m (w i) (C i) (p j) (d j) s t r) = _ | |
| simp only [ClearedReflectionPolynomials.clearedForwardReflectionPolynomial, m, map_mul, map_add, map_sub, map_neg, | |
| map_pow, map_ofNat, map_natCast] | |
| simp only [β NumberField.RingOfIntegers.coe_eq_algebraMap] | |
| rw [hq, hs, ht, hr, hp j, hd j, hC i, β hb] | |
| exact (ClearedReflectionPolynomials.forwardReflectionPolynomial_clear (b : E) (B wβ wβ) | |
| ((β : E) * (B wβ wβ) ^ 2) (wβ i) (c i) (B (Pi.single j 1) wβ) | |
| (B (Pi.single j 1) c) (B wβ c) (B c wβ) (B c c)).symm | |
| have hG (i j : Fin 3) : (G i j : E) = (b : E) ^ 2 * | |
| ReflectionCongruenceCoefficients.reverseReflectionDifferencePolynomial (B wβ wβ) ((β : E) * (B wβ wβ) ^ 2) | |
| (wβ i) (c i) (B (Pi.single j 1) wβ) (B (Pi.single j 1) c) | |
| (B wβ c) (B c wβ) (B c c) := by | |
| change algebraMap (NumberField.RingOfIntegers E) E | |
| (ClearedReflectionPolynomials.clearedReverseReflectionPolynomial b q m (w i) (C i) (p j) (d j) s t r) = _ | |
| simp only [ClearedReflectionPolynomials.clearedReverseReflectionPolynomial, m, map_mul, map_add, map_sub, map_neg, | |
| map_pow, map_ofNat, map_natCast] | |
| simp only [β NumberField.RingOfIntegers.coe_eq_algebraMap] | |
| rw [hq, hs, ht, hr, hp j, hd j, hC i, β hb] | |
| exact (ClearedReflectionPolynomials.reverseReflectionPolynomial_clear (b : E) (B wβ wβ) | |
| ((β : E) * (B wβ wβ) ^ 2) (wβ i) (c i) (B (Pi.single j 1) wβ) | |
| (B (Pi.single j 1) c) (B wβ c) (B c wβ) (B c c)).symm | |
| refine β¨A, hA0, β¨u, huβ©, F, G, ?_β© | |
| intro i j | |
| constructor | |
| Β· rw [Hermitian.ReflectionCoefficients.twoHermitianReflections_level_coefficient Ο B hB (β : E) hβ wβ c hw hv, | |
| hF i j, hA] | |
| field_simp [hb0, hD0] | |
| Β· rw [Hermitian.ReflectionCoefficients.reverseTwoHermitianReflections_level_coefficient Ο B hB (β : E) hβ wβ c hw hv, | |
| hG i j, hA] | |
| field_simp [hb0, hD0] | |
| end | |
| end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Integral.ReflectionFractions | |