Skip to content

About

A Python/SageMath implementation of the Aubert–Zelevinsky duality for GL(n) and classical groups.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Aubert–Zelevinsky Duality Algorithms

This repository provides a unified implementation of the Aubert–Zelevinsky involution for representations of GL(n) and the classical groups Sp(2n),SO(2n+1).

🔁 Unified Interface: AD

AD(case=None, *args, verbose=False)

A function for computing the dual Langlands data, supporting the following cases:

  • "gl" – for GL(n) (Mœglin–Waldspurger algorithm)
  • "good" – classical group with ρ of good parity
  • "bad" – classical group with ρ of bad parity
  • "ugly" – classical group with ρ ugly (use ρ and ρᵛ (the contragredient))

If case is omitted, it is automatically inferred from the arguments when possible.


💡 Input Formats

▶️ GL(n)

m = ([a1, b1], [a2, b2], ..., [ak, bk])
AD("gl", m)
# or simply:
AD(m)

Each segment [a, b] satisfies:

  • a ≤ b
  • b - a ∈ Z
  • all a_i lie on the same affine line: a_i - a_j ∈ Z

▶️ Classical groups - Good Parity

m = ([a1, b1], ..., [ak, bk])
T = ([x1, ε1], ..., [xr, εr])  # where εi ∈ {+1, -1}
AD("good", m, T)

Conditions:

  • All a, b, and x ∈ T are in Z or (1/2)Z-Z.
  • All segments satisfy a + b < 0.
  • Each sign εi is either +1 or -1.
  • If (xi, εi) and (xj, εj) are in T with xi = xj then εi = εj

▶️ Classical groups - Bad Parity

m = ([a1, b1], ..., [ak, bk])
T = (x1, x2, ..., xr)
AD("bad", m, T)

Conditions:

  • All a, b, and x ∈ T are in Z or (1/2)Z-Z.
  • Each x ∈ T appears an even number of times.
  • All segments satisfy a + b < 0.

▶️ Classical groups - case Ugly

m = ([a1, b1], ..., [ak, bk]) # multisegment supported in ℤρ
mcontr = ([c1, d1], ..., [cl, dl]) # multisegment supported in ℤρᵛ
T = (x1, x2, ..., xr)
AD("ugly", m, mcontr, T)

Conditions:

  • All segments satisfy a + b < 0 and c + d < 0 .
  • All the coefficients are in the same (Zρ u Zρᵛ) - line.

🧠 Case Inference

The case "gl", "bad", "good" or "ugly" can be omitted and inferred from the number and type of arguments:

AD(m)                 # → inferred as "gl"
AD(m, T)              # → "bad" or "good" depending on structure of T (if T is not empty)
AD(m, mcontr, T)      # → "ugly"

If verbose=True, the inferred case will be printed before execution.


📢 Verbose Mode

Use verbose=True to print step-by-step output during the computation. Example:

m=([-3, -3], [-2, -1]) 
T=([1, 1],)
AD("good",m,T,verbose=True)

Output:

Good Case — Step 0
  Symmetrisation
  Remaining: ([-3, -3], [-2, -1], [-1, 1], [3, 3], [1, 2])
  Sign updates: ε([-1, 1]) = 1

Good Case — Step 1
  Labeled segments: ([3, 3, 1], [1, 2, 1], [-1, 1, 0], [-2, -1, -1], [-3, -3, -1])
  Dual: ([1, 3], [-3, -1])
  Remaining: ([1, 1], [0, 0], [-1, -1])
  Sign updates: ε([0, 0]) = 1

Good Case — Step 2
  Labeled segments: ([1, 1, 1], [0, 0, 0], [-1, -1, -1])
  Dual: ([-1, 1],)
  Sign dual: ε([-1, 1]) = 1
  Remaining: ()

🐍 Python / Sage Usage

This project is compatible with both Python and SageMath. To use it:

from aubert_dual import AD

🔍 Input Validation

By default, the Aubert–Zelevinsky duality function performs input validation to check that segments, Langlands parameters, and signs satisfy the expected mathematical conditions.

Disabling validation can help improve performance when inputs are known to be valid.

✅ Disable validation globally

You can disable validation either permanently during a session, or temporarily using a context manager.

Option 1 — Programmatic control

from aubert_dual import set_validation

set_validation(False)  # disables validation
result = AD("good", m, T)
set_validation(True)   # re-enables validation

Option 2 — Context manager (temporary)

from aubert_dual import disable_validation

with disable_validation():
    result = AD("ugly", m, m_contr, T)

📚 Bibliography

The implementation is based on:

  • T. Lanard and A. Mínguez, An algorithm for Aubert-Zelevinsky duality à la Mœglin-Waldspurger.

📁 Files

  • aubert_dual.py – main implementation of the algorithms
  • documentation.pdf – documentation (coming soon)

About

A Python/SageMath implementation of the Aubert–Zelevinsky duality for GL(n) and classical groups.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages