IsCompact (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f ⁻¹' (L : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints Y))) :=
(M:=ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) (2 * p) n hp (Scheme.AbsoluteCycleClass.BundleCycles.schemeAbsoluteCycleClass XZ p hZ)
⟨ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f ⁻¹' (L : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints Y)), finiteSupport_compactPreimage f L⟩ n
(A:= (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f ⁻¹' (L : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints Y)))ᶜ)
(B:= (L : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints Y))ᶜ) (fun _ hx => hx) n b)) =
(M:=ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints Y) (2 * q) n hq (Scheme.AbsoluteCycleClass.BundleCycles.schemeAbsoluteCycleClass Y (CycleClass.Thom.Scheme.ProperSupport.Constructions.imageSupport f Z) q hB)
(AlgebraicTopology.Duality.Poincare.CompactSupportCohomology.compactSupportCohomologyι (ModuleCat.of ℚℚ) (TopCat.of (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints Y)) L n b) :=by
let d :=Betti.AffineDimension.Realization.functionFieldDifferentialDimension (Cover.BundleCycles.finiteSupportSourceOver f Z).hom
let e :=Betti.AffineDimension.Realization.functionFieldDifferentialDimension (Cover.BundleCycles.finiteSupportTargetOver f Z).hom
letjA : TopCat.of (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Cover.BundleCycles.finiteSupportSourceOver f Z)) ⟶
(Scheme.SupportRegularImmersion.BundleCycles.schemeSupportRegularImmersion XZ p hZ).regularAnalyticSpace :=
ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPointsFunctor.map (Cover.BundleCycles.finiteSupportSourceToRegular f Z)
letjB : TopCat.of (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Cover.BundleCycles.finiteSupportTargetOver f Z)) ⟶
(Scheme.SupportRegularImmersion.BundleCycles.schemeSupportRegularImmersion Y (CycleClass.Thom.Scheme.ProperSupport.Constructions.imageSupport f Z) q hB).regularAnalyticSpace :=
ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPointsFunctor.map (Cover.BundleCycles.finiteSupportTargetToRegular f Z)
havehTA : SchemeCycle.CompactTrace.BundleCycles.schemeCycleTraceDegree XZ = n :=by
have h :=SchemeCycle.FundamentalTrace.BundleCycles.schemeCycle_trace_degree XZ p hZ
change 2 * p + SchemeCycle.CompactTrace.BundleCycles.schemeCycleTraceDegree XZ = _ at h
omega
havehTB : SchemeCycle.CompactTrace.BundleCycles.schemeCycleTraceDegree Y (CycleClass.Thom.Scheme.ProperSupport.Constructions.imageSupport f Z) = n :=by
have h :=SchemeCycle.FundamentalTrace.BundleCycles.schemeCycle_trace_degree Y (CycleClass.Thom.Scheme.ProperSupport.Constructions.imageSupport f Z) q hB
change 2 * q + SchemeCycle.CompactTrace.BundleCycles.schemeCycleTraceDegree Y (CycleClass.Thom.Scheme.ProperSupport.Constructions.imageSupport f Z) = _ at h
omega
havehd : 2 * d = n := (congrArg (fun k =>2 * k) (Cover.BundleCycles.finiteSupportSourceOver_dimension f Z)).trans hTA
havehe : 2 * e = n := (congrArg (fun k =>2 * k) (Cover.BundleCycles.finiteSupportTargetOver_dimension f Z)).trans hTB
havehsquare : (jA ≫ SchemeCycle.CompactTrace.BundleCycles.schemeCycleRegularAmbientMap XZ p hZ) ≫ ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPointsFunctor.map f =
ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPointsFunctor.map (Cover.BundleCycles.finiteSupportCoverMap f Z) ≫
(jB ≫ SchemeCycle.CompactTrace.BundleCycles.schemeCycleRegularAmbientMap Y (CycleClass.Thom.Scheme.ProperSupport.Constructions.imageSupport f Z) q hB) :=by
ext x
change ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map (CycleClass.Thom.Scheme.RegularSupport.Constructions.regularToAmbient XZ)
(ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map (Cover.BundleCycles.finiteSupportSourceToRegular f Z) x)) =
ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map (CycleClass.Thom.Scheme.RegularSupport.Constructions.regularToAmbient Y (CycleClass.Thom.Scheme.ProperSupport.Constructions.imageSupport f Z))
(ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map (Cover.BundleCycles.finiteSupportTargetToRegular f Z)
(ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map (Cover.BundleCycles.finiteSupportCoverMap f Z) x))
have h := congrArg (funk : Cover.BundleCycles.finiteSupportSourceOver f Z⟶Y=>ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map k x)
(Cover.BundleCycles.finiteSupportRegularCover_ambient_square f Z)
simpa only [ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map_comp] using h
exact SchemeCycle.CoveringTrace.BundleCycles.schemeCycle_compact_covering_trace Z p hZ (CycleClass.Thom.Scheme.ProperSupport.Constructions.imageSupport f Z) q hB f d e jA jB
(ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_map_of_isOpenImmersion (Cover.BundleCycles.finiteSupportSourceToRegular f Z))
(ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_map_of_isOpenImmersion (Cover.BundleCycles.finiteSupportTargetToRegular f Z))
(CycleClass.Thom.ProperImage.Open.Constructions.Construction.isLocalDiffeomorph_nativeScheme_openImmersion (Cover.BundleCycles.finiteSupportSourceToRegular f Z))
(CycleClass.Thom.ProperImage.Open.Constructions.Construction.isLocalDiffeomorph_nativeScheme_openImmersion (Cover.BundleCycles.finiteSupportTargetToRegular f Z))
(ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPointsFunctor.map (Cover.BundleCycles.finiteSupportCoverMap f Z)) (Cover.BundleCycles.finiteSupportCoverMap_analytic_proper f Z)
(Cover.BundleCycles.finiteSupportCover_localDiffeomorph f Z) hsquare (f.left.residueDegree (irreducibleSetEquivPoints Z))
(Cover.BundleCycles.finiteSupportCover_fiber_degree f Z) n hd he hTA hTB hp hq L (finiteSupport_compactPreimage f L)
((Set.preimage_mono hL).trans (Cover.BundleCycles.finiteSupportRetainedOpen_source_regular f Z))
(hL.trans (Cover.BundleCycles.finiteSupportRetainedOpen_target_regular f Z))
(Range.BundleCycles.finiteSupportSourceRegular_range f Z _ hL) (Range.BundleCycles.finiteSupportTargetRegular_range f Z _ hL) b