Skip to content

Conversation

augustepoiroux
Copy link
Contributor

@augustepoiroux augustepoiroux commented Jul 9, 2025

Extract various information about declarations in commands through the "declarations": true attribute:

  • Kind: definition, theorem, inductive, ...
  • Modifiers: docstring, visibility (private, protected, ...), computeKind ("meta", "noncomputable", ...), recKind ("partial", "nonrec", ...), isUnsafe, and attributes
  • Type (= conclusion for theorems)
  • Binders (= variables/hypotheses for theorems)
  • Signature (= binder + type)
  • Value (= proof for theorems)
  • Scope information: current namespace, declared variables, ...

TODO:

  • Improving the extraction of used constants.
  • Improving the extraction of declaration full names (they should match the ones in the environment).

Contributions and feedback are welcome!

Notes:

@augustepoiroux augustepoiroux force-pushed the declaration-extraction branch from e743bce to 9734b35 Compare July 24, 2025 07:41
@augustepoiroux augustepoiroux force-pushed the declaration-extraction branch 2 times, most recently from 494cc23 to 8e5cc95 Compare August 15, 2025 11:43
@augustepoiroux augustepoiroux mentioned this pull request Sep 25, 2025
@augustepoiroux augustepoiroux marked this pull request as ready for review September 25, 2025 15:57
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