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).
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.
m = ([a1, b1], [a2, b2], ..., [ak, bk])
AD("gl", m)
# or simply:
AD(m)Each segment [a, b] satisfies:
a ≤ bb - a ∈ Z- all
a_ilie on the same affine line:a_i - a_j ∈ Z
m = ([a1, b1], ..., [ak, bk])
T = ([x1, ε1], ..., [xr, εr]) # where εi ∈ {+1, -1}
AD("good", m, T)Conditions:
- All
a,b, andx ∈ Tare in Z or (1/2)Z-Z. - All segments satisfy
a + b < 0. - Each sign
εiis either+1or-1. - If
(xi, εi)and(xj, εj)are inTwithxi = xjthenεi = εj
m = ([a1, b1], ..., [ak, bk])
T = (x1, x2, ..., xr)
AD("bad", m, T)Conditions:
- All
a,b, andx ∈ Tare in Z or (1/2)Z-Z. - Each
x ∈ Tappears an even number of times. - All segments satisfy
a + b < 0.
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 < 0andc + d < 0. - All the coefficients are in the same (Zρ u Zρᵛ) - line.
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.
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: ()
This project is compatible with both Python and SageMath. To use it:
from aubert_dual import ADBy 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.
You can disable validation either permanently during a session, or temporarily using a context manager.
from aubert_dual import set_validation
set_validation(False) # disables validation
result = AD("good", m, T)
set_validation(True) # re-enables validationfrom aubert_dual import disable_validation
with disable_validation():
result = AD("ugly", m, m_contr, T)The implementation is based on:
- T. Lanard and A. Mínguez, An algorithm for Aubert-Zelevinsky duality à la Mœglin-Waldspurger.
aubert_dual.py– main implementation of the algorithmsdocumentation.pdf– documentation (coming soon)