Skip to content

post-translation mappings#199

Draft
agontard wants to merge 57 commits intoDeducteam:mainfrom
agontard:to-classes
Draft

post-translation mappings#199
agontard wants to merge 57 commits intoDeducteam:mainfrom
agontard:to-classes

Conversation

@agontard
Copy link
Copy Markdown
Contributor

@agontard agontard commented Apr 2, 2026

Some working but not cleaned up code translating hol-light developments to theorems in a context of a Rocq module type for mappings, but where proofs are translated in a context of a Rocq record, along with compatibility proofs to go from one representation to another.

The main command is hol2dk translate-with classes. It is not yet added in the main hol2dk documentation but some explanations are provided if it is run without arguments (this does not describe the conversion to module types yet).

@agontard
Copy link
Copy Markdown
Contributor Author

agontard commented Apr 2, 2026

commit history before 0a67ff5 is garbage

@agontard
Copy link
Copy Markdown
Contributor Author

agontard commented Apr 2, 2026

Note that transformations would be difficult with sed: there needs to be a distinction between defined object and local bound variables.
For example λ f, Π x y, eq (f x) (f x) needs to be translated to fun f => forall x y, eq Ctx (f x) (f y) instead of fun f => forall x y, eq Ctx (f Ctx (x Ctx)) (f Ctx (y Ctx)), where Ctx is an instance of the mappings record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant