A Modern Compiler for the French Tax Code - Archive ouverte HAL
Communication Dans Un Congrès Année : 2021

A Modern Compiler for the French Tax Code

Denis Merigoux
Raphaël Monat
  • Fonction : Auteur
  • PersonId : 1081464
Jonathan Protzenko
  • Fonction : Auteur
  • PersonId : 1081465

Résumé

In France, income tax is computed from taxpayers' individual returns, using an algorithm that is authored, designed and maintained by the French Public Finances Directorate (DGFiP). This algorithm relies on a legacy custom language and compiler originally designed in 1990, which unlike French wine, did not age well with time. Owing to the shortcomings of the input language and the technical limitations of the compiler, the algorithm is proving harder and harder to maintain, relying on ad-hoc behaviors and workarounds to implement the most recent changes in tax law. Competence loss and aging code also mean that the system does not benefit from any modern compiler techniques that would increase confidence in the implementation. We overhaul this infrastructure and present Mlang, an open-source compiler toolchain whose goal is to replace the existing infrastructure. Mlang is based on a reverse-engineered formalization of the DGFiP's system, and has been thoroughly validated against the private DGFiP test suite. As such, Mlang has a formal semantics; eliminates previous handwritten workarounds in C; compiles to modern languages (Python); and enables a variety of instrumentations, providing deep insights about the essence of French income tax computation. The DGFiP is now officially transitioning to Mlang for their production system.
Fichier principal
Vignette du fichier
paper.pdf (692.32 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03002266 , version 1 (16-11-2020)
hal-03002266 , version 2 (25-11-2020)
hal-03002266 , version 3 (25-01-2021)

Identifiants

Citer

Denis Merigoux, Raphaël Monat, Jonathan Protzenko. A Modern Compiler for the French Tax Code. CC '21: 30th ACM SIGPLAN International Conference on Compiler Construction, Mar 2021, Virtual, South Korea. pp.71-82, ⟨10.1145/3446804.3446850⟩. ⟨hal-03002266v3⟩
1942 Consultations
1384 Téléchargements

Altmetric

Partager

More