analysis icon indicating copy to clipboard operation
analysis copied to clipboard

Near message error

Open mkerjean opened this issue 1 year ago • 2 comments

While trying to solve e <= M for e : numFieldtype and M \is_near (nbhs +oo), one gets the error message no applicable tactic. A message including the necessity for e to be real (is this what's happening ?), or to try with normr e, would help a lot, would it be hard to implement?

mkerjean avatar Sep 16 '24 09:09 mkerjean

While trying to solve e <= M for e : numFieldtype and M \is_near (nbhs +oo), one gets the error message no applicable tactic. A message including the necessity for e to be real (is this what's happening ?),

I guess so, since nbhs_pinfty_ge is registered as a Hint but requires e to verify \is Num.real for which e : R : numFieldType is not sufficient.

or to try with normr e, would help a lot, would it be hard to implement?

Do you mean by using as an intermediate step the lemma ler_norm? But the latter requires a realDomainType so numFieldType is anyway not enough. (I might be missing the point.)

affeldt-aist avatar Sep 30 '24 15:09 affeldt-aist

While trying to solve e <= M for e : numFieldtype and M \is_near (nbhs +oo), one gets the error message no applicable tactic. A message including the necessity for e to be real (is this what's happening ?),

I guess so, since nbhs_pinfty_ge is registered as a Hint but requires e to verify \is Num.real for which e : R : numFieldType is not sufficient.

or to try with normr e, would help a lot, would it be hard to implement?

Do you mean by using as an intermediate step the lemma ler_norm? But the latter requires a realDomainType so numFieldType is anyway not enough. (I might be missing the point.)

I was suggesting that the error message might say "try using normr e instead of e" or something like that, but I wasn't sure how nbhs_pinfty_ge and similar lemmas were used. As this is with an Hint, can the error message be more precise ? How can we do that ?

mkerjean avatar Oct 01 '24 07:10 mkerjean