YukonModule.ProximityPrize.SubmissionLower.BoundaryTailIdentity.part0
DefinitionYukon_8e36628a28757c81c2b971d7better-codes
Source module ProximityPrize.SubmissionLower.BoundaryTailIdentity.
Definition code
import Definitions.Def_Yukon_c5963d87513e7df48d813483
set_option backward.isDefEq.respectTransparency.types false
namespace ProximityPrize.SubmissionLower.BoundaryTailIdentity
open scoped Classical BigOperators
open RCN146
open RCN135 RCN136 RCN231 RCN319 RCN313 RCN174 RCN238 RCN065 RCN243 RCN264 RCN159 RCN095 RCN275 RCN198 RCN203 RCN287 RCN049 RCN144 RCN063 RCN145 RCN087 RCN046 RCN265 RCN295 RCN344 RCN002
noncomputable section
set_option maxHeartbeats 4000000
set_option maxRecDepth 45000
set_option synthInstance.maxHeartbeats 300000
variable {K I:Type} [Field K]
local instance _root_.ProximityPrize.SubmissionLower.BoundaryTailIdentity.instDecidableEq_proximityPrize :DecidableEq K:=Classical.decEq K
local instance _root_.ProximityPrize.SubmissionLower.BoundaryTailIdentity.instDecidableEq_proximityPrize_1 :DecidableEq I:=Classical.decEq I
variable {Γ:Finset K} {x:I → K} {p e a b s:ℕ} [CharP (GenericField K) p]
{flag:FlagDegree} {w:ℕ}
theorem actual_identityCurveCountProvider
(S:ResidualStage (polynomialEmbedding K) Γ x p e flag w (support a b s))
(agreements:ℕ) (hnodes:S.nodes.card=agreements+e)
(hagreement:∀ γ∈Γ,agreements≤(S.agreementFiber γ).card)
(hwa:w<agreements)
(hTail:S.G∣surfaceMap (polynomialEmbedding K) (numerator K S.F (w+1)))
(bound seedCap slopeCap:ℕ) (hw:1≤w)
(hshort:w+1≤bound) (hchar:bound<p)
(hbox:S.F∈globalCoefficientBox K bound w seedCap slopeCap)
(hflagChar:flag.yz+flag.all<p∧flag.all<p∧
flag.zOnly+flag.yz+flag.all<p)
(hmixed:flagMixed flag (sharpResidualAgreementFlag (support a b s) w) unitZFlag < p):
IdentityCurveCountProvider S (identityCurveDegree flag a b s w):=by
classical
unfold IdentityCurveCountProvider
intro i hi
dsimp only
intro hproper
let T:=agreementPolynomial (polynomialEmbedding K) S.F w
(x i) (S.u0 i) (S.u1 i)
let Gi:=Γ.filter (fun γ => S.Agrees γ i)
obtain ⟨base,⟨U⟩⟩:=BoundaryTailProjection.exists_agreement_projection_of_caps S
(x i) (S.u0 i) (S.u1 i) hproper hflagChar hmixed
let cost:RegularComponent (GenericField K) S.G T (regularitySurface (polynomialEmbedding K) S.F)→ℕ:=
fun C => U.family.toPrimeFlagBudgetFamily.zCost C+
U.family.toPrimeFlagBudgetFamily.yzCost C
refine ⟨cost,?_,?_⟩
· intro C
let Gc:=componentSeeds (GenericField K) S.G T
(regularitySurface (polynomialEmbedding K) S.F) Gi
(selectedPoint (polynomialEmbedding K) S.selected) C
have hGcGi:Gc⊆Gi:=componentSeeds_subset (GenericField K) S.G T _ Gi _ C
have hGiΓ:Gi⊆Γ:=Finset.filter_subset _ _
have hGcΓ:Gc⊆Γ:=hGcGi.trans hGiΓ
have hyzC:∀ W:Finset (RCN346.Place (GenericField K)
(CoordinateField (GenericField K) C.1)),
(∑ v∈W,exponentSetPoleWeight v.val (coordinate (GenericField K) C.1)
(flagSupport unitYZFlag))≤
(U.family.toPrimeFlagBudgetFamily.yzCost C:ℤ):=by
intro W
change (∑ v∈W,exponentSetPoleWeight v.val (coordinate (GenericField K) C.1)
(flagSupport unitYZFlag))≤
(coordinateDegree (GenericField K) (CoordinateField (GenericField K) C.1)
(U.family.yzProjection C):ℤ)
calc
_=∑ v∈W,RCN346.poleOrder (GenericField K)
(CoordinateField (GenericField K) C.1) v
(coordinateValue (GenericField K) (CoordinateField (GenericField K) C.1)
(U.family.yzProjection C)):=by
apply Finset.sum_congr rfl
intro v _
exact U.family.yzPole_eq C v
_ ≤ _:=finite_sum_coordinate_pole_le_degree (GenericField K)
(CoordinateField (GenericField K) C.1) (U.family.yzProjection C) W
have hprofileYZ:=coefficientPoleProfile_of_regular_agreement_curve
S hTail (x i) (S.u0 i) (S.u1 i) hproper C
bound seedCap slopeCap (U.family.toPrimeFlagBudgetFamily.yzCost C)
hw hshort hchar hbox hyzC
have hprofile:CoefficientPoleProfile (polynomialEmbedding K) C.1 S.F
(stage_surface_mem S (x i) (S.u0 i) (S.u1 i) C)
(stage_regularity_not_mem S (x i) (S.u0 i) (S.u1 i) C) w (cost C):=by
intro W
exact (hprofileYZ W).trans (by
change (U.family.toPrimeFlagBudgetFamily.yzCost C:ℤ) ≤
((U.family.toPrimeFlagBudgetFamily.zCost C+
U.family.toPrimeFlagBudgetFamily.yzCost C:ℕ):ℤ)
exact_mod_cast Nat.le_add_left _ _)
have hcost:1≤cost C:=
U.one_le_zCost_add_yzCost (polynomialEmbedding K) S.F rfl S.G_dvd_surface C
apply prime_curve_card_le_of_coefficientPoleProfile
(polynomialEmbedding K) C.1 S.F
(stage_surface_mem S (x i) (S.u0 i) (S.u1 i) C)
(stage_regularity_not_mem S (x i) (S.u0 i) (S.u1 i) C)
(base C) p w agreements e (cost C) S.characteristic_bound hwa hcost hprofile
S.selected Gc S.nodes x S.u0 S.u1 S.x_injective hnodes
· intro γ hγ
exact S.degree_le γ (hGcΓ hγ)
· intro γ hγ
exact S.solution γ (hGcΓ hγ)
· intro γ hγ
exact S.regular γ (hGcΓ hγ)
· intro γ hγ
exact componentSeeds_on_prime (GenericField K) S.G T
(regularitySurface (polynomialEmbedding K) S.F) Gi
(selectedPoint (polynomialEmbedding K) S.selected) C γ hγ
· intro γ hγ
have hΓ:=hGcΓ hγ
simpa only [ResidualStage.agreementFiber,ResidualStage.Agrees] using
hagreement γ hΓ
· exact noLargeSelectedPencil_mono S.selected Γ Gc w e hGcΓ S.no_large_pencil
· have hz:=U.family.sum_zDegree_le
have hyz:=U.family.sum_yzDegree_le
change (∑ C,U.family.toPrimeFlagBudgetFamily.zCost C)≤
flagMixed flag (sharpResidualAgreementFlag (support a b s) w) unitZFlag at hz
change (∑ C,U.family.toPrimeFlagBudgetFamily.yzCost C)≤
flagMixed flag (sharpResidualAgreementFlag (support a b s) w) unitYZFlag at hyz
have hz':=hz.trans (mixed_sharp_le_padded a b s w flag unitZFlag)
have hyz':=hyz.trans (mixed_sharp_le_padded a b s w flag unitYZFlag)
have hz'':=hz'.trans (mixed_padded_le_succ flag a b s w unitZFlag)
have hyz'':=hyz'.trans (mixed_padded_le_succ flag a b s w unitYZFlag)
change (∑ C,(U.family.toPrimeFlagBudgetFamily.zCost C+
U.family.toPrimeFlagBudgetFamily.yzCost C)) ≤ identityCurveDegree flag a b s w
rw [Finset.sum_add_distrib]
exact Nat.add_le_add hz'' hyz''
end
end ProximityPrize.SubmissionLower.BoundaryTailIdentity
Source