leanprover-community / mathport

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

DECapitalize #222

Open jcommelin opened 1 year ago

jcommelin commented 1 year ago

We should have a function that decapitalizes initial clusters of uppercase letters, as that's how the naming convention works.

See also: https://github.com/leanprover-community/mathport/pull/219/files/c1690c803df3b33db0fae93d1e911245a78444fd#r1081895321

rwbarton commented 1 year ago

I think the actual algorithm here should be:

rwbarton commented 1 year ago

Note that hAdd etc. from core do not follow this convention.