leanprover-community / mathport

Mathport is a tool for porting Lean3 projects to Lean4
Apache License 2.0
43 stars 15 forks source link

feat: add "oneshot" configuration #191

Closed digama0 closed 2 years ago

digama0 commented 2 years ago

This allows users to much more easily test the behavior of mathport on small examples without having to go through the whole PR pipeline first or recompiling many things. The idea is that you can directly modify Oneshot/lean3-in/main.lean with some test code you would like to have mathported, and Oneshot/lean4-in/Oneshot.lean can contain additional #align directives not included in mathlib4. Running make oneshot will produce output in Outputs/src/oneshot/Oneshot/Main.lean.