Zulip Chat Archive
Stream: lean4
Topic: Naming convention for predicates
Li Xuanji (Aug 09 2025 at 16:43):
I notice that there are predicates like Nat.isPowerOfTwo and Nat.isValidChar where I would expect it to be named Nat.IsPowerOfTwo and Nat.IsValidChar based on the naming convention and experience from Mathlib; is this intentional?
Eric Wieser (Aug 09 2025 at 16:51):
docs#Nat.isPowerOfTwo and docs#Nat.isValidChar are indeed misnamed according to the conventions.
Eric Wieser (Aug 09 2025 at 16:51):
They'd be correct if they were Bool-valued
Last updated: Dec 20 2025 at 21:32 UTC