You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p ≤ᵇ 0ℚ in the definition of truncate, when strictly-less-than would make more sense (because/and avoid needless fumbling at 0ℚ...)
the lack of sharing between truncate and fracPart in definitions where both operations are deployed, as here
Such concerns are, strictly speaking, out of scope for this PR, but I think we should bear them in mind when implementing (internal) computations intended to be used 'in anger', such as show functions...?
working constructively, it has never made sense to me to work with weaker observations, when stronger/more positive would be 'better': but here, we don't have (the obviously analogous) definition of p <ᵇ 0ℚ... so perhaps we should!?
I'm definitely perturbed by
p ≤ᵇ 0ℚin the definition oftruncate, when strictly-less-than would make more sense (because/and avoid needless fumbling at0ℚ...)truncateandfracPartin definitions where both operations are deployed, as hereSuch concerns are, strictly speaking, out of scope for this PR, but I think we should bear them in mind when implementing (internal) computations intended to be used 'in anger', such as show functions...?
Originally posted by @jamesmckinna in #2945 (comment)
I reasoned as follows:
p <ᵇ 0ℚ... so perhaps we should!?fracPartusestruncate, so as with analogous operations such as division-with-remainder [ add ] a 'better' division with remainder forData.Integer.Base#2878 , it might make sense to bundle them as a pair, and then project?