Isomorphisms are back! (short talk)
summary
A library search tool called dowsing finds functions up to type isomorphism (tuples commutative/associative, unit neutral, currying) and keeps soundness and completeness while avoiding expensive full unification by precomputing lightweight heads and other shortcut features and combining them in tries. Matching is NP‑complete and unification is costly, so the system benchmarks on real data: local Open source install with 250 packages, 31,000 functions and a 10k‑function subset with many queries returning results in under 1 ms; polymorphic queries remain the slowest cases to optimize.
AI-written summary · about
