lean4-htt/tests
Leonardo de Moura 34dc2572f3 fix: make sure OfScientific Float instance is never unfolded during type class resolution
This commit fixes issue reported at
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/deterministic.20timeout/near/287654818

Type class resolution was diverging when trying to synthesize
```lean
 HSub (optParam Float 0.0) (optParam Float 1.0) ?m.472
```
and Lean was diverging while unfolding
```lean
 instance : OfScientific Float where
   ofScientific m s e :=
     if s then
       let s := 64 - m.log2 -- ensure we have 64 bits of mantissa left after division
       let m := (m <<< (3 * e + s)) / 5^e
       Float.ofBinaryScientific m (-4 * e - s)
     else
       Float.ofBinaryScientific (m * 5^e) e
```
was being unfolded.

Anothe potential solution for the problem above is to erase the
`optParam` annotations before performing type class resolution.
2022-06-27 17:40:34 -07:00
..
bench chore: update benchmark suite 2022-05-25 18:26:36 +02:00
compiler chore: fix tests 2022-06-14 17:27:13 -07:00
elabissues chore: style use · instead of . for lambda dot notation 2022-03-11 07:49:03 -08:00
ir
lean fix: make sure OfScientific Float instance is never unfolded during type class resolution 2022-06-27 17:40:34 -07:00
pkg fix: make sure register_simp_attr declares an simp-like attribute parser for user simp attributes 2022-05-26 19:49:33 -07:00
playground feat: sum of monomials normal form by reflection 2022-04-22 18:51:48 -07:00
plugin fix: unused variables linter review comments 2022-06-03 13:03:52 +02:00
simpperf
.gitignore
common.sh chore: fix Nix test output filter 2022-06-23 14:05:53 +02:00