-
Notifications
You must be signed in to change notification settings - Fork 216
RFC: command names #1432
Comments
+1 I also would remove What about |
I would be happy to remove them too :)
Good point! |
I like these changes. I think distinguishing the transient commands is good. Alternative names are sometimes nice but often confusing. I often use We also use I'd even be willing to give up |
Yes, there is no difference between
I don't know. It is also weird that the current
I like to use So, we would have only
|
We also have In analogy to Still, |
Yes, I forgot to list it.
I considered |
I think it's a good idea to reduce the number of keywords in general. At first, the synonymous keywords ( |
Somewhat related, I'd love it if transient commands could be used inside of (tactic) proofs. |
You are right.
After this change, we will be able to implement begin
...
check t,
reduce t,
eval t,
...
end |
We still have many more to remove and rename. See issue leanprover#1432
I have already made of the changes discussed above.
We still have
|
Wrt |
@johoelzl Is there a particular reason you want to remove I'm also slightly inclined to keep |
@rlewis1988 |
It is quite unfortunate that
print
,exit
andeval
cannot be used as identifiers because they are commands.Moreover, they are "temporary/transient" commands that we only use while we are developing a library/project. I think we should rename them to:
1-
#print
2-
#exit
3-
#eval
(for the currentvm_eval
)4-
#reduce
(for the currenteval
)5-
#run
(short forrun_command
) Should we keeprun_command
?6-
#help
We also replace the following command with meta functions we execute using
#run
.1-
init_quotient
becomes#run quot.init
2-
declare_trace id
becomes#run trace.declare id
3-
add_key_equivalence id1 id2
becomes#run keyed_matching.add_equiv id1 id2
It would also be nice to remove command aliases that nobody uses:
1-
definition
(alias fordef
)2-
proposition
(alias fortheorem
)3-
corollary
(alias fortheorem
)4-
conjecture
(alias forparameter
)5-
record
(alias forstructure
)AFAIK, the following ones are used
1-
lemma
(alias fortheorem
)2-
premise
(alias forvariable
)3-
hypothesis
(alias forparameter
)The text was updated successfully, but these errors were encountered: