Answers are grounded in this paper and cite their sources.
Duality transformations, i.e., rotations of electric and magnetic fields into each other, are implementable by a time-local generator for source-free Maxwell theory in an arbitrary spacetime metric. The Maxwell action ∫(E²-B²) as well as the stress tensor components, e.g., E²+B², are duality invariant and the generator is conserved. In the formally analogous Yang-Mills case, duality transformations cannot even be consistently implemented.
No takes yet. Share an insight, caveat, or question.
Deser et al. (1976) studied this question.
Synapse has enriched 5 related papers. Consider them for comparative context: