Download data/lean/OAI/AlgebraicGeometry/PlaneCurves/FullTarget.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 12.9 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/PlaneCurves/FullTarget.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/PlaneCurves/FullTarget.lean
-
curl -L -o FullTarget.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/PlaneCurves/FullTarget.lean
12.9 kB
| import OAI.AlgebraicGeometry.PlaneCurves.BasisNoncancellation | |
| import OAI.AlgebraicGeometry.PlaneCurves.CubicEquations | |
| import OAI.AlgebraicGeometry.PlaneCurves.Incidence | |
| import OAI.AlgebraicGeometry.PlaneCurves.SquareReduction | |
| namespace OAI | |
| /-! | |
| # Coordinate and ordinary-multiplicity assemblies of the full target | |
| -/ | |
| section | |
| /-! | |
| # Equivalent full statements using numerical ordinary multiplicity | |
| Local ideal-power multiplicity bounds are equivalent to inequalities for | |
| the numerical ordinary multiplicity of a nonzero homogeneous equation. | |
| -/ | |
| noncomputable section | |
| namespace Nagata.W13 | |
| open ProjectiveGeometry | |
| open scoped BigOperators | |
| /-- The unchanged full baseline quantifier pattern, with each multiplicity | |
| lower bound written as an inequality between actual natural numbers. -/ | |
| def FullNagataOrdinary : Prop := | |
| β r : β, 10 β€ r β | |
| β E : β β Set (OrderedDistinctPoints r), | |
| (β n, IsConfigurationZariskiClosed (E n) β§ E n β Set.univ) β§ | |
| (β p : OrderedDistinctPoints r, β n, p β E n) β§ | |
| β p : OrderedDistinctPoints r, (β n, p β E n) β | |
| β (d : β), 1 β€ d β | |
| β (F : MvPolynomial (Fin 3) β) (hFne : F β 0) (hFhom : F.IsHomogeneous d), | |
| β m : Fin r β β, | |
| (β i, m i β€ formOrdinaryMultiplicity β¨F, hFhom, hFneβ© (p.val i)) β | |
| (β i, (m i : β)) < (d : β) * Real.sqrt (r : β) | |
| /-- Numerical ordinary multiplicity gives exactly the original lower-bound | |
| predicate at every point, hence exactly the full baseline proposition. -/ | |
| theorem fullNagata_iff_ordinary : Nagata.FullNagata β FullNagataOrdinary := by | |
| constructor | |
| Β· intro h r hr | |
| obtain β¨E, hEclosed, hEnonempty, hboundβ© := h r hr | |
| refine β¨E, hEclosed, hEnonempty, ?_β© | |
| intro p hp d hd F hFne hFhom m hm | |
| apply hbound p hp d hd F hFne hFhom m | |
| intro i | |
| exact (multiplicityAtLeast_iff_le_formOrdinaryMultiplicity | |
| β¨F, hFhom, hFneβ© (p.val i) (m i)).mpr (hm i) | |
| Β· intro h r hr | |
| obtain β¨E, hEclosed, hEnonempty, hboundβ© := h r hr | |
| refine β¨E, hEclosed, hEnonempty, ?_β© | |
| intro p hp d hd F hFne hFhom m hm | |
| apply hbound p hp d hd F hFne hFhom m | |
| intro i | |
| exact (multiplicityAtLeast_iff_le_formOrdinaryMultiplicity | |
| β¨F, hFhom, hFneβ© (p.val i) (m i)).mp (hm i) | |
| /-- The equivalent numerical formulation for projective classes of nonzero | |
| homogeneous equations. Classes identify only nonzero scalar multiples, not | |
| zero loci or radicals; reducible and nonreduced equations remain represented. -/ | |
| def FullNagataClassOrdinary : Prop := | |
| β r : β, 10 β€ r β | |
| β E : β β Set (OrderedDistinctPoints r), | |
| (β n, IsConfigurationZariskiClosed (E n) β§ E n β Set.univ) β§ | |
| (β p : OrderedDistinctPoints r, β n, p β E n) β§ | |
| β p : OrderedDistinctPoints r, (β n, p β E n) β | |
| β (d : β), 1 β€ d β | |
| β C : W16.PlaneEquationClass d, | |
| β m : Fin r β β, | |
| (β i, m i β€ classOrdinaryMultiplicity C (p.val i)) β | |
| (β i, (m i : β)) < (d : β) * Real.sqrt (r : β) | |
| /-- Passing between a nonzero equation and its scalar class preserves its | |
| numerical ordinary multiplicity and the very same exceptional sequence. -/ | |
| theorem ordinary_iff_classOrdinary : FullNagataOrdinary β FullNagataClassOrdinary := by | |
| constructor | |
| Β· intro h r hr | |
| obtain β¨E, hEclosed, hEnonempty, hboundβ© := h r hr | |
| refine β¨E, hEclosed, hEnonempty, ?_β© | |
| intro p hp d hd C m hm | |
| exact hbound p hp d hd (W16.classRepresentative C).polynomial | |
| (W16.classRepresentative C).nonzero (W16.classRepresentative C).homogeneous m hm | |
| Β· intro h r hr | |
| obtain β¨E, hEclosed, hEnonempty, hboundβ© := h r hr | |
| refine β¨E, hEclosed, hEnonempty, ?_β© | |
| intro p hp d hd F hFne hFhom m hm | |
| apply hbound p hp d hd (W16.classOfForm β¨F, hFhom, hFneβ©) m | |
| intro i | |
| rw [classOrdinaryMultiplicity_classOfForm] | |
| exact hm i | |
| theorem fullNagata_iff_classOrdinary : Nagata.FullNagata β FullNagataClassOrdinary := | |
| fullNagata_iff_ordinary.trans ordinary_iff_classOrdinary | |
| end Nagata.W13 | |
| end | |
| end | |
| section | |
| /-! | |
| # Strict very-general square case | |
| This is the square-point-count restriction of the original full target. The | |
| single exceptional sequence handles every positive degree and every nonnegative | |
| unequal multiplicity vector. The actual projective closedness, countable | |
| avoidance, and strict universal-system exclusion are all supplied by checked | |
| proofs; no `hno` or other geometric assumption remains in these statements. | |
| -/ | |
| noncomputable section | |
| namespace Nagata.W13 | |
| open ProjectiveGeometry | |
| open scoped BigOperators | |
| /-- For `kβ₯4`, one proper closed exceptional sequence with nonempty complement | |
| handles all curves and unequal multiplicity vectors at `kΒ²` projective points. | |
| This assembles the already-proved outside-union inequality without reproving it. -/ | |
| theorem square_veryGeneral (k : β) (hk : 4 β€ k) : | |
| β E : β β Set (OrderedDistinctPoints (k * k)), | |
| (β n, IsConfigurationZariskiClosed (E n) β§ E n β Set.univ) β§ | |
| (β p : OrderedDistinctPoints (k * k), β n, p β E n) β§ | |
| β p : OrderedDistinctPoints (k * k), (β n, p β E n) β | |
| β (d : β), 1 β€ d β | |
| β F : MvPolynomial (Fin 3) β, F β 0 β F.IsHomogeneous d β | |
| β m : Fin (k * k) β β, | |
| (β i, multiplicityAtLeast F (p.val i) (m i)) β | |
| (β i, (m i : β)) < (d : β) * Real.sqrt ((k * k : β) : β) := by | |
| obtain β¨E, hEclosed, hEnonempty, hEavoidβ© := | |
| Workers.W25.exists_closed_exceptional_sequence (supportLocus (k * k)) | |
| (supportLocus_isConfigurationZariskiClosed (k * k)) | |
| refine β¨E, hEclosed, hEnonempty, ?_β© | |
| intro p hp d hd F hFne hFhom m hm | |
| exact Workers.W24.square_strict_inequality_outside_supportExceptionalUnion | |
| k hk p ((hEavoid p).mp hp) d hd m F hFne hFhom hm | |
| /-- Exactly the original target's quantifiers, restricted explicitly to square | |
| `rβ₯10`; no restriction to uniform multiplicities or reduced equations appears. -/ | |
| theorem square_veryGeneral_of_isSquare (r : β) (hr : 10 β€ r) (hsquare : IsSquare r) : | |
| β E : β β Set (OrderedDistinctPoints r), | |
| (β n, IsConfigurationZariskiClosed (E n) β§ E n β Set.univ) β§ | |
| (β p : OrderedDistinctPoints r, β n, p β E n) β§ | |
| β p : OrderedDistinctPoints r, (β n, p β E n) β | |
| β (d : β), 1 β€ d β | |
| β F : MvPolynomial (Fin 3) β, F β 0 β F.IsHomogeneous d β | |
| β m : Fin r β β, | |
| (β i, multiplicityAtLeast F (p.val i) (m i)) β | |
| (β i, (m i : β)) < (d : β) * Real.sqrt (r : β) := by | |
| obtain β¨k, hkβ© := hsquare | |
| have hk4 := Workers.W14.square_root_ge_four hr hk | |
| subst r | |
| exact square_veryGeneral k hk4 | |
| /-- The same square result using actual natural-number ordinary multiplicities, | |
| while preserving every raw polynomial and multiplicity-vector quantifier. -/ | |
| theorem square_veryGeneral_ordinary (r : β) (hr : 10 β€ r) (hsquare : IsSquare r) : | |
| β E : β β Set (OrderedDistinctPoints r), | |
| (β n, IsConfigurationZariskiClosed (E n) β§ E n β Set.univ) β§ | |
| (β p : OrderedDistinctPoints r, β n, p β E n) β§ | |
| β p : OrderedDistinctPoints r, (β n, p β E n) β | |
| β (d : β), 1 β€ d β | |
| β (F : MvPolynomial (Fin 3) β) (hFne : F β 0) (hFhom : F.IsHomogeneous d), | |
| β m : Fin r β β, | |
| (β i, m i β€ formOrdinaryMultiplicity β¨F, hFhom, hFneβ© (p.val i)) β | |
| (β i, (m i : β)) < (d : β) * Real.sqrt (r : β) := by | |
| obtain β¨E, hEclosed, hEnonempty, hboundβ© := square_veryGeneral_of_isSquare r hr hsquare | |
| refine β¨E, hEclosed, hEnonempty, ?_β© | |
| intro p hp d hd F hFne hFhom m hm | |
| apply hbound p hp d hd F hFne hFhom m | |
| intro i | |
| exact (multiplicityAtLeast_iff_le_formOrdinaryMultiplicity | |
| β¨F, hFhom, hFneβ© (p.val i) (m i)).mpr (hm i) | |
| /-- The same strict square theorem for scalar classes of equations and numerical | |
| ordinary multiplicities. Classes identify scalar multiples, not radicals. -/ | |
| theorem square_veryGeneral_classOrdinary (r : β) (hr : 10 β€ r) (hsquare : IsSquare r) : | |
| β E : β β Set (OrderedDistinctPoints r), | |
| (β n, IsConfigurationZariskiClosed (E n) β§ E n β Set.univ) β§ | |
| (β p : OrderedDistinctPoints r, β n, p β E n) β§ | |
| β p : OrderedDistinctPoints r, (β n, p β E n) β | |
| β (d : β), 1 β€ d β | |
| β C : W16.PlaneEquationClass d, | |
| β m : Fin r β β, | |
| (β i, m i β€ classOrdinaryMultiplicity C (p.val i)) β | |
| (β i, (m i : β)) < (d : β) * Real.sqrt (r : β) := by | |
| obtain β¨E, hEclosed, hEnonempty, hboundβ© := square_veryGeneral_ordinary r hr hsquare | |
| refine β¨E, hEclosed, hEnonempty, ?_β© | |
| intro p hp d hd C m hm | |
| exact hbound p hp d hd (W16.classRepresentative C).polynomial | |
| (W16.classRepresentative C).nonzero (W16.classRepresentative C).homogeneous m hm | |
| end Nagata.W13 | |
| end | |
| end | |
| section | |
| /-! | |
| Projective closedness, countable avoidance, the strict square case and the cubic | |
| lower endpoint reduce the full inequality to exclusion of positive universal | |
| systems in the nonsquare open interval. | |
| -/ | |
| noncomputable section | |
| namespace Nagata.W13 | |
| /-- Once genuine universal systems in the nonsquare interior are excluded, | |
| the unchanged original full coordinate target follows. Every other branch and | |
| the single simultaneous exceptional sequence are supplied by checked proofs. -/ | |
| theorem fullNagata_of_nonsquare_interior_exclusion | |
| (hinterior : β r : β, 10 β€ r β Β¬ IsSquare r β β d m : β, | |
| 0 < d β 0 < m β 3 < (d : β) / m β (d : β) / m < Real.sqrt r β | |
| Β¬ UniversalSupport r d (fun _ => m)) : Nagata.FullNagata := by | |
| intro r hr | |
| by_cases hsquare : IsSquare r | |
| Β· exact square_veryGeneral_of_isSquare r hr hsquare | |
| Β· apply strict_bound_of_no_universal r hr | |
| intro d m hd hm hbound hU | |
| have hlow := Nagata.W03.LowDegree.cubic_low_degree r d m hr hd hm hU | |
| have hrange := Workers.W14.elliptic_ratio_range hsquare hm hlow hbound | |
| exact hinterior r hr hsquare d m hd hm hrange.1 hrange.2 hU | |
| /-- The same conditional assembly concludes the proved-equivalent formulation | |
| with numerical ordinary multiplicities and identical original quantifiers. -/ | |
| theorem fullNagataOrdinary_of_nonsquare_interior_exclusion | |
| (hinterior : β r : β, 10 β€ r β Β¬ IsSquare r β β d m : β, | |
| 0 < d β 0 < m β 3 < (d : β) / m β (d : β) / m < Real.sqrt r β | |
| Β¬ UniversalSupport r d (fun _ => m)) : FullNagataOrdinary := | |
| fullNagata_iff_ordinary.mp (fullNagata_of_nonsquare_interior_exclusion hinterior) | |
| end Nagata.W13 | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open Filter Topology | |
| open scoped BigOperators | |
| namespace Nagata.W13 | |
| open Nagata.Workers.W10 Nagata.Workers.W12 Nagata.W20 Nagata.FiniteExponents Nagata.W22 Nagata.CoefficientSpaces Nagata.W29 | |
| theorem fullNagata_of_genuine_source_construction | |
| (hconstruction : β r : β, 10 β€ r β Β¬ IsSquare r β β d m : β, | |
| 0 < d β 0 < m β 3 < (d : β) / m β (d : β) / m < Real.sqrt r β | |
| UniversalSupport r d (fun _ => m) β | |
| β (n : β) (delta : β) (x : Fin 9 β β), | |
| 0 < n β 0 < delta β delta < 1 / 2 β Function.Injective x β | |
| (β i, 0 < x i β§ x i < 1 / 2) β | |
| (β i : Fin 9, sourceOffsets x i) = delta β | |
| (β j : β€, 0 β€ j β j β€ ((n * m : β) : β€) β | |
| firstLower ((n * d : β) : β€) ((n * m : β) : β€) j | |
| (3 * (Real.sqrt r - 3)) delta β Set.range (Int.cast : β€ β β)) β | |
| (β j : β€, ((n * m : β) : β€) < j β j β€ ((n * d : β) : β€) / 3 β | |
| 0 < ((n * d : β) : β€) - 3 * j β | |
| secondLower ((n * d : β) : β€) j | |
| (3 * (Real.sqrt r - 3)) delta β Set.range (Int.cast : β€ β β)) β | |
| (exponentSet ((n * d : β) : β€) ((n * m : β) : β€) | |
| (3 * (Real.sqrt r - 3)) delta).Nonempty β | |
| βαΆ Ο : β in π[>] (0 : β), | |
| β (hΟ : 0 < Ο) (hΟone : Ο < 1) (U : Set β), | |
| IsOpen U β§ (0 : β) β U β§ | |
| (β p : Fin (r - 9) β β, Function.Injective p β (β i, p i β U) β | |
| β F : genuineSourceSections hΟ hΟone x (3 * (Real.sqrt r - 3)) | |
| ((n * d : β) : β€) (n * m), | |
| F β 0 β§ β i, Nagata.Workers.W28.HasAnalyticOrderAtLeast (π := β) | |
| (fun z : β Γ β => localScalar F (tauPower Ο (1 / 2)) z.1 z.2) | |
| (p i, 0) (n * m))) : Nagata.FullNagata := by | |
| apply fullNagata_of_nonsquare_interior_exclusion | |
| intro r hr hns d m hd hm hlow hupp hU | |
| exact Workers.W12.genuine_source_geometric_contradiction r d m hr hm hlow hupp | |
| (hconstruction r hr hns d m hd hm hlow hupp hU) | |
| end Nagata.W13 | |
| end | |
| end | |
| end OAI | |