-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Merged by Bors] - feat(AlgebraicGeometry): Pushforward of algebraic cycles #26304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Raph-DG
wants to merge
14
commits into
leanprover-community:master
from
Raph-DG:Raph-DG-AlgebraicCycle
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d5f980c
Copy stuff from pushforward PR
Raph-DG 4bea9a0
Update Mathlib.lean
Raph-DG 3e9eed1
Update Mathlib/Topology/LocallyFinsupp/Pushforward.lean
Raph-DG 1d0a262
Update Mathlib/Topology/LocallyFinsupp/Pushforward.lean
Raph-DG 6fef185
Update Mathlib/Topology/LocallyFinsupp/Pushforward.lean
Raph-DG 84e453d
Update Mathlib/Topology/LocallyFinsupp/Pushforward.lean
Raph-DG ea7732c
Update Mathlib/Topology/LocallyFinsupp/Pushforward.lean
Raph-DG ec44b16
Update Mathlib/Topology/LocallyFinsupp/Pushforward.lean
Raph-DG fb36aec
Update Mathlib/Topology/LocallyFinsupp/Pushforward.lean
Raph-DG 1839d2f
Update Mathlib/Topology/LocallyFinsupp/Pushforward.lean
Raph-DG 449761e
Fixed lines which were too long
Raph-DG a72423e
Merge remote-tracking branch 'upstream/master' into Raph-DG-Algebraic…
Raph-DG 3c7052a
Triggering CI
Raph-DG 4b3db16
Update Mathlib/Topology/LocallyFinsupp/Pushforward.lean
Raph-DG File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| /- | ||
| Copyright (c) 2026 Raphael Douglas Giles. All rights reserved. | ||
| Released under Apache 2.0 license as described in the file LICENSE. | ||
| Authors: Raphael Douglas Giles | ||
| -/ | ||
| module | ||
|
|
||
| public import Mathlib.Topology.LocallyFinsupp | ||
| public import Mathlib.Topology.Spectral.Basic | ||
|
|
||
| /-! | ||
| # Pushforward of functions with locally finite support | ||
|
|
||
| In this file we define the notion of the pushforward of a function with locally finite support | ||
| between prespectral spaces along a spectral map. This is used for defining the (proper) pushforward | ||
| of algebraic cycles in algebraic geometry. | ||
|
|
||
| ## Main declarations | ||
|
|
||
| - `Function.locallyFinsupp.map`: If `f : X → Y` is a spectral map between spectral spaces and | ||
| `c : X → R` is locally of finite support, the pushforward of `c` along `f` at `y : Y` is | ||
| `∑ᶠ x ∈ f ⁻¹' {y}, c x * w x`, where `w : X → R` is a weight function. | ||
|
|
||
| ## Notes | ||
|
|
||
| In the case of algebraic cycles, the weight function used in `Function.locallyFinsupp.map` will be | ||
| specialized to the degree of the residue field extension | ||
| (see https://stacks.math.columbia.edu/tag/02R4). | ||
| -/ | ||
|
|
||
| @[expose] public section | ||
|
|
||
| open Set Order Topology TopologicalSpace | ||
|
|
||
| variable {X Y R : Type*} [TopologicalSpace X] [TopologicalSpace Y] | ||
| {f : X → Y} (hf : IsSpectralMap f) (w : X → R) | ||
|
|
||
| namespace Function.locallyFinsupp | ||
|
|
||
| variable [Semiring R] {W : Set Y} (hW : IsOpen W) (c : Function.locallyFinsupp X R) | ||
| [PrespectralSpace Y] | ||
|
|
||
| variable (f) in | ||
| /-- | ||
| The pushforward of a function `c` of locally finite support by a spectral map with respect to a | ||
| weight function `w`. | ||
| -/ | ||
| noncomputable | ||
| def map (hf : IsSpectralMap f) (c : locallyFinsupp X R) : Function.locallyFinsupp Y R where | ||
| toFun z := ∑ᶠ x ∈ f ⁻¹' {z}, c x * w x | ||
| supportWithinDomain' := by simp | ||
| supportLocallyFiniteWithinDomain' y _ := by | ||
| obtain ⟨U, hU⟩ := (PrespectralSpace.isTopologicalBasis (X := Y)).exists_subset_of_mem_open | ||
| (by simp : y ∈ ⊤) (by simp) | ||
| refine ⟨U, IsOpen.mem_nhds hU.1.1 hU.2.1, ?_⟩ | ||
| suffices h : (U ∩ {z | (f ⁻¹' {z} ∩ support ⇑c).Nonempty}).Finite by | ||
| refine h.subset (inter_subset_inter_right U fun y hy ↦ ?_) | ||
| obtain ⟨x, (hx : f x = y), h'⟩ := exists_ne_zero_of_finsum_mem_ne_zero hy | ||
| use x | ||
| grind [mem_support] | ||
| suffices (f ⁻¹' (U ∩ {z | (f ⁻¹' {z} ∩ c.support).Nonempty}) ∩ c.support).Finite from | ||
| (this.image f).subset (fun a ha ↦ by grind [Set.Nonempty]) | ||
| exact (c.locallyFiniteSupport.finite_inter_support_of_isCompact <| hf.2 hU.1.1 hU.1.2).subset | ||
| (by simp; grind) | ||
|
|
||
| @[simp] | ||
| lemma map_apply (hf : IsSpectralMap f) (c : locallyFinsupp X R) (y : Y) : | ||
| map f w hf c y = ∑ᶠ x ∈ f ⁻¹' {y}, c x * w x := rfl | ||
|
|
||
| lemma support_map_subset_of_forall_mem (s : Set X) (t : Set Y) (hc : c.support ⊆ s) | ||
| (h : ∀ x : X, x ∈ s → w x ≠ 0 → f x ∈ t) : (map f w hf c).support ⊆ t := by | ||
| intro y hy | ||
| obtain ⟨x, (rfl : f x = y), h'⟩ := exists_ne_zero_of_finsum_mem_ne_zero hy | ||
| grind [mem_support] | ||
|
|
||
| @[simp] | ||
| lemma map_id [PrespectralSpace X] (hw : ∀ z : X, w z = 1) : | ||
| map id w isSpectralMap_id c = c := by | ||
| ext | ||
| simp [map, hw] | ||
|
|
||
| end Function.locallyFinsupp | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.