math-comp / hierarchy-builder

High level commands to declare a hierarchy based on packed classes
MIT License
95 stars 20 forks source link

FTR: A scenario where `HB.instance` is too eager to infer #435

Open affeldt-aist opened 1 month ago

affeldt-aist commented 1 month ago

The following PR to MathComp-Analysis (https://github.com/math-comp/analysis/pull/1256, this is actually wip) seems to illustrate a potential improvement to HB. Concretely, we tried to generalize the structure of measurable functions (from a realType codomain to any measurableType) and then equipping the constant function with both the type of measurable functions and the type of simple functions (i.e., with codomain realType) caused HB to complain that constant functions aren't all simple functions; we avoided the problem so far by restricting ourselves to real-valued functions. We found a kludge that we are in the process of experimenting.

@t6s @hoheinzollern