leanprover-community / mathport

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

feat: add support for block transforms #201

Closed digama0 closed 1 year ago

digama0 commented 1 year ago

This allows for tactics like recover and classical that have been transformed from regular tactics into block tactics to be able to capture the list of subsequent tactics into the block. (We can't use Mathport.Syntax.Transform for this because it's not an adjacent tactic transformation. It's also a mandatory transformation - the result is not well formed if the transformation is not applied - unlike most syntax transforms which are optional.)