RedPRL / cooltt

😎TT
http://www.redprl.org/
Apache License 2.0
217 stars 16 forks source link

🪄 New hcom syntax with inference #386

Closed ralsei closed 2 years ago

ralsei commented 2 years ago

[The title of this PR is pretty bad... I'm not sure exactly what to call this change still!]

This PR adds a new syntax for hcom, in which the type and cofibration are read off the goal type and its boundary (so, when the goal is a sub). A demo of this used wherever possible is given in the provided test file bruno.cooltt, a formalization of much of Cubical informal type theory: the higher groupoid structure by Bruno Bentzen.

The motivation for this is that leading into the graphical editor project, we want the user to have to enter as little information as possible when the computer writes an hcom for them.

This is currently very WIP. Namely, as discussed, the tactical hcom_chk needs to fix the "local soundness" property mentioned by Jon to qualify as a good Chk tactic. In addition, the near-identical hfill syntax is presently nonfunctional.

ralsei commented 2 years ago

Current things that need to be fixed:

ralsei commented 2 years ago

I think that the hcom et al as a Chk tactic can be worked with later, so I'm putting this up for review.

jonsterling commented 2 years ago

I will do my best to review this today.