Join Nostr
2025-12-02 12:28:57 UTC
in reply to

Amélia Liao 🍊😈 on Nostr: nprofile1q…4rrqe have not thought about it as much. (i've only really thought about ...

have not thought about it as much. (i've only really thought about this problem for PCAs, where that would be a very strange thing to ask for).

from a code reuse perspective, i think it'd make the most sense to allow fields to concretely specify an implementation of the inverse operation, constrained so the extent is equivalent to apartness from zero (or whatever). then in the case of a discrete field we can simply have the extent compute by cases on the denominator to either the unit or empty types.

tbh, even in the discrete case, i think it's somewhat strange to make inverses a total operation, since you still need to prove things are actually invertible when it comes to reasoning about them. i think keeping it as a "self-deciding" partial operation strikes a good balance between "i have to be honest when reasoning in context" and "i can ask the proof assistant to just normalise a number in anger", since if you're not normalising a stupid number the extent of any combination of field operations will have computed to a big tuple of unit values.