You're right, we're starting to go around in circles. So we should wrap this up. I'll just address what seems to be the main point.
I find it obvious that there is a huge, important aspect of what it is to be in pain that [your definition] completely misses.
This is the crux of our disagreement, and is unlikely to change. But you still seem to misunderstand me slightly, so maybe we can still make progress.
You have decided that pain is a certain kind of behaviour displayed by entities other than yourself and seen from the outside, and you have coded that up.
No, I have decided that pain is any stimulus - that is, a feeling - that causes a certain kind of behavior. This is not splitting hairs. It is relevant, because you keep telling me that my view doesn't account for feelings, when it is all about feelings! What you really mean is that my view doesn't account for qualia, which really just means I'm being consistent, because I don't believe in qualia.
you can't prefer to personally have certain experiences if there is no such thing as subjective experience.
Here for example, you seem to be equivocating between "experience" and "subjective experience". If "subjective experience" means the same thing as "experience", then I don't think there is no such thing as subjective experience. But if "subjective experience" means something different, like "qualia", then this statement doesn't follow at all.
P.S. This may be off-point, but I just have to say, this:
I inspect the code, and find nothing that relates in any way to how I introspect pain or any other feeling.
...is because the code has no capacity for introspection - not because it has no capacity for pain.
Edit: maybe this last point presents room for common ground, like: "Qualia is awareness of ones own feelings, and therefore is possessed by anything that can accurately report on how it is responding to stimuli."?
No, I have decided that pain is any stimulus - that is, a feeling
I don't accept that all stimuli are feelings. A thermostat is stimulated by changes in temperature, but I don't think it feels the cold.
- that causes a certain kind of behavior. This is not splitting hairs. It is relevant, because you keep telling me that my view doesn't account for feelings, when it is all about feelings!
It is about "feelings" as you define the word, which is not general usage.
...What you really mean is that my view doesn't account for qualia, which really
[Cross-posted.]
1. Defining the problem: The inverted spectrum
A. Attempted solutions to the inverted spectrum.
B. The “substitution bias” of solving the “easy problem of consciousness” instead of the “hard problem.”
2. The false intuition of direct awareness
A. Our sense that the existence of raw experience is self-evident doesn’t show that it is true.
B. Experience can’t reveal the error in the intuition that raw experience exists.
C. We can’t capture the ineffable core of raw experience with language because there’s really nothing there.
D. We believe raw experience exists without detecting it.
3. The conceptual economy of qualia nihilism pays off in philosophical progress
4. Relying on the brute force of an intuition is rationally specious.
Against these considerations, the only argument for retaining raw experience in our ontology is the sheer strength of everyone’s belief in its existence. How much weight should we attach to a strong belief whose validity we can't check? None. Beliefs ordinarily earn a presumption of truth from the absence of empirical challenge, but when empirical challenge is impossible in principle, the belief deserves no confidence.