-
Notifications
You must be signed in to change notification settings - Fork 122
feat(SUSY/N1): add chiral scalar configuration space and coordinate CLMs #1113
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
Merged
jstoobysmith
merged 2 commits into
leanprover-community:master
from
pariandrea:susy-n1-basic
Jun 4, 2026
+89
−0
Merged
Changes from all commits
Commits
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| /- | ||
| Copyright (c) 2026 Andrea Pari. All rights reserved. | ||
| Released under Apache 2.0 license as described in the file LICENSE. | ||
| Authors: Andrea Pari | ||
| -/ | ||
| module | ||
|
|
||
| public import Mathlib.Data.Fintype.Defs | ||
| public import Mathlib.Analysis.Complex.Basic | ||
| public import Mathlib.Logic.Equiv.Basic | ||
|
|
||
| /-! | ||
|
|
||
| # SUSY N=1 chiral sector — basic indexing data | ||
|
|
||
| ## i. Overview | ||
|
|
||
| The minimal label and configuration data for the N=1 chiral sector. | ||
|
|
||
| A `Model` packages two finite index types — `ChiralIndexingType` (written `C` | ||
| below) indexing the chiral scalars and `AntiChiralIndexingType` (written `A`) | ||
| the anti-chiral (barred) slots — with an equivalence `equiv : C ≃ A`, kept | ||
| distinct so the two slots of a contraction `g_{IJ̄}` cannot be confused. The | ||
| physical configuration is `ChiralScalarConfiguration C = C → ℂ`, carrying | ||
| `2 · Fintype.card C` real degrees of freedom — the only field data; the | ||
| anti-chiral scalars are its complex conjugates, never an independent | ||
| configuration. | ||
|
|
||
| Doubling — adding an independent `A → ℂ` configuration — is the wrong choice: | ||
| the physical identities would then hold only where anti-chiral is the conjugate | ||
| of chiral, so every theorem carries that subspace as a hypothesis (e.g. the | ||
| Kähler potential is real only there, making hermiticity of `g_{IJ̄}` | ||
| conditional). Building the conjugate in keeps them unconditional — `K` is real | ||
| by construction — and leaves `A` an index type only. | ||
|
|
||
| This file carries only the index/configuration data; the chiral and anti-chiral | ||
| derivatives `∂_I` / `∂_J̄` (the `Model` methods `M.dChiralScalar` / | ||
| `M.dAntiChiralScalar`) are built on top of it in `Derivative.lean`. | ||
|
|
||
| The files of this `Particles/SuperSymmetry/N1/` folder: | ||
|
|
||
| * `Basic.lean` (this file) — the `Model` indexing data and the chiral | ||
| configuration type. | ||
| * `Derivative.lean` — the chiral / anti-chiral derivative wrappers | ||
| `M.dChiralScalar` / `M.dAntiChiralScalar` over the Wirtinger calculus. | ||
| * `SuperPotential.lean` — the abstract holomorphic superpotential `W` and its | ||
| conjugate `W̄`. | ||
| * `KahlerPotential.lean` — the abstract Kähler potential `K`. | ||
| * `KahlerMetric.lean` — the Kähler metric `g_{IJ̄} = ∂_I ∂_J̄ K` and its | ||
| hermiticity. | ||
| * `LogKahlerHn.lean` — worked example: the `Hⁿ` log Kähler potential (the | ||
| reusable upper-half-plane calculus lives in | ||
| `Mathematics/Calculus/Wirtinger/UpperHalfPlane.lean`). | ||
|
|
||
| ## ii. Key results | ||
|
|
||
| - `SUSY.N1.Model` : the indexing data of an N=1 sector — a chiral index type, | ||
| an anti-chiral (barred) index type, and an equivalence `equiv` between them. | ||
| - `SUSY.N1.ChiralScalarConfiguration` : the physical scalar configuration space | ||
| `C → ℂ`, where `C` is the finite type indexing the chiral scalars — the only | ||
| field data in the sector. | ||
|
|
||
| -/ | ||
|
|
||
| @[expose] public section | ||
|
|
||
| noncomputable section | ||
|
|
||
| namespace SUSY.N1 | ||
|
|
||
| /-- The indexing data of an N=1 sector: a chiral index type `ChiralIndexingType`, | ||
| an anti-chiral (barred) index type `AntiChiralIndexingType`, and a bijection | ||
| `equiv` between them. -/ | ||
| structure Model (ChiralIndexingType : Type*) [Fintype ChiralIndexingType] | ||
| (AntiChiralIndexingType : Type*) [Fintype AntiChiralIndexingType] where | ||
| /-- The correspondence between chiral and anti-chiral (barred) labels. -/ | ||
| equiv : ChiralIndexingType ≃ AntiChiralIndexingType | ||
|
|
||
| /-- The chiral scalar configuration: an assignment of complex values to each | ||
| chiral label. An `abbrev` so unification applies Mathlib's `α → ℂ` calculus | ||
| lemmas directly. -/ | ||
| abbrev ChiralScalarConfiguration (ChiralIndexingType : Type*) := ChiralIndexingType → ℂ | ||
|
|
||
| end SUSY.N1 | ||
|
|
||
| end | ||
|
|
||
| end | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change this to the following. It means you end up carrying around 'unused' variables, but I think it will help with the overall consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion. I tried but it did not turn out easy to do.
ChiralScalarConfiguration is really just C → ℂ, so it only depends on the index type, not on a whole Model. Making it a Model method means the KahlerPotential/SuperPotential structures have to carry a model term they never use, and for concrete examples Lean then can't infer the index type on its own.
The concrete example is in the larger PR:
def K : KahlerPotential C -- current
def K : KahlerPotential model -- C hidden in
model→ Lean can't find itI think this would be resolved by manual type annotations all over the place to compensate.
It is entirely possible that I am implementing the change naively and there is a cleaner way.
So I'd keep it as it is currently, and use the M. dot-notation for the operations that genuinely use the model (dChiralScalar, dAntiChiralScalar, metric). I am open to suggestions and happy to revisit this.