File size: 2,390 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | import OAI.Geometry.HeilbronnTriangle.AuxiliarySupport
import OAI.Geometry.HeilbronnTriangle.PrimitiveNormal
namespace OAI
namespace Problem355.AuxiliarySet
open scoped BigOperators
theorem coordinate_abs_le_of_euclidean_norm_le
{x : PrimitiveNormal.Vector} {H : β}
(hx : βPrimitiveNormal.toEuclidean xβ β€ (H : β)) :
β i, |x i| β€ (H : β€) := by
intro i
have hi := (PiLp.norm_apply_le (PrimitiveNormal.toEuclidean x) i).trans hx
have hi' : |(x i : β)| β€ (H : β) := by
simpa [PrimitiveNormal.toEuclidean, Real.norm_eq_abs] using hi
exact_mod_cast hi'
theorem cast_mulVec_eq_zero {q : β}
{A : Matrix (Fin 3) (Fin 3) β€} {x : Fin 3 β β€}
(hx : A.mulVec x = 0) :
(A.map (Int.castRingHom (ZMod q))).mulVec (fun i => (x i : ZMod q)) = 0 := by
funext i
have hi := congrArg (fun z : β€ => (z : ZMod q)) (congrFun hx i)
simpa [Matrix.mulVec, dotProduct, Matrix.map_apply] using hi
theorem kernel_norm_gt_of_positive_auxiliary_inclusion
{q H w : β} [Fact q.Prime] (hH : 1 β€ H) (hHq : H < q)
{S : Finset (Fin 3 β ZMod q)}
(hS : AuxiliaryCap.IsCap (S : Set (Fin 3 β ZMod q)))
(hbox : β v β S, (v 0).val < w)
{Ξ : Type*} (T : Finset Ξ) (ΞΌ : Ξ β β)
(a : Ξ β Fin 3 β ZMod q)
(G : Ξ β ((Fin 3 β ZMod q) ββ[ZMod q] (Fin 3 β ZMod q)))
(ha : β ΞΈ β T, β n : β, 1 β€ n β n β€ 3 * H β
(n : ZMod q) * a ΞΈ 0 β Auxiliary.integerWindow q (3 * H * w))
(A : Matrix (Fin 3) (Fin 3) β€)
[DecidablePred (fun ΞΈ =>
β j, (fun i => (A i j : ZMod q)) β transformed S (a ΞΈ) (G ΞΈ))]
(hpositive : 0 < β ΞΈ β T,
if β j, (fun i => (A i j : ZMod q)) β transformed S (a ΞΈ) (G ΞΈ)
then ΞΌ ΞΈ else 0)
(hAI : AffineIndependent (ZMod q) (fun j => fun i => (A i j : ZMod q)))
{x : PrimitiveNormal.Vector} (hne : x β 0) (hkernel : A.mulVec x = 0) :
(H : β) < βPrimitiveNormal.toEuclidean xβ := by
classical
by_contra hnot
have hnorm : βPrimitiveNormal.toEuclidean xβ β€ (H : β) := le_of_not_gt hnot
have hsupport := matrix_support_of_inclusion_sum_pos hH hHq hS hbox T ΞΌ a G ha
(fun i j => (A i j : ZMod q)) hpositive
have hno := hsupport.2.2 hAI x (coordinate_abs_le_of_euclidean_norm_le hnorm) hne
exact hno (cast_mulVec_eq_zero hkernel)
end Problem355.AuxiliarySet
end OAI
|