法国税法的现代解释者
A Modern Compiler for the French Tax Code
摘要:
在法国,所得税是根据纳税人的个人申报表计算的,使用的算法由法国公共财政局(DGFiP)编写、设计和维护。这种算法依赖于一种传统的自定义语言和编译器,最初设计于1990年,与法国葡萄酒不同,它没有随着时间的推移而老化。由于输入语言的缺陷和编译器的技术限制,该算法越来越难以维护,依赖于临时行为和变通方法来实现税法的最新变化。能力丧失和老化的代码也意味着系统不能从任何现代编译器技术中获益,这些技术可以增加实现的信心。我们彻底改造了这个基础设施,并提出了Mlang,一个开源编译器工具链,其目标是取代现有的基础设施。Mlang基于DGFiP系统的反向工程形式化,并已通过专用DGFiP测试套件的彻底验证。因此,Mlang具有正式的语义;消除了以前C中的手写解决方案;编译为现代语言(Python);并支持各种工具,提供了对法国所得税计算本质的深刻见解。DGFiP现在正式将其生产系统过渡到Mlang。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。