In Coq, I made some record structure $I$ and also make a strict order and equality $<$ and $==$.
And I showed that $a < b$ or $a == b$ or $b < a$ for every $a, b \in I$.
forall a b : I, a < b \/ a == b \/ b < a
Since my construction is not decidable, I use an decidable axiom.
Axiom I_dec : forall a b : I, {a < b} + {a == b} + {b < a}.
I want to use this axiom in case analysis. However, I cannot deal with all three cases.
For example,
Example example :
forall a b : I, if (I_dec a b) then a < b else True.
Proof.
intros. destruct (I_dec a b) as [[H|H]|H].
{ simpl. exact H. }
{ simpl.
I want to reach only the most left case $a < b$, however it is impossible for me.
Is there a way to deal with all three cases respectively?