haskell: Phase 13 — Ord default verification (myMax/myMin) (+5 tests, 10/10)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 59s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 59s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -232,7 +232,7 @@ No OCaml changes are needed. The view type is fully representable as an SX dict.
|
||||
explicit `/=` in every Eq instance. _Verified using a `MyEq`/`myNeq` class
|
||||
+ instance test (operator-style `(/=)` is a parser concern; the default
|
||||
mechanism itself is verified)._
|
||||
- [ ] `Ord` defaults: `max a b = if a >= b then a else b`, `min a b = if a <=
|
||||
- [x] `Ord` defaults: `max a b = if a >= b then a else b`, `min a b = if a <=
|
||||
b then a else b`. Verify.
|
||||
- [ ] `Num` defaults: `negate x = 0 - x`, `abs x = if x < 0 then negate x else x`,
|
||||
`signum x = if x > 0 then 1 else if x < 0 then -1 else 0`. Verify.
|
||||
@@ -309,6 +309,11 @@ No OCaml changes are needed. The view type is fully representable as an SX dict.
|
||||
|
||||
_Newest first._
|
||||
|
||||
**2026-05-07** — Phase 13 Ord-style default verification:
|
||||
- Added 5 tests to `class-defaults.sx` for myMax/myMin defined as defaults
|
||||
in terms of `myCmp` (≥). Verified myMax/myMin on (3,5), (8,2), (4,4).
|
||||
Suite is now 10/10.
|
||||
|
||||
**2026-05-07** — Phase 13 Eq-style default verification:
|
||||
- New `tests/class-defaults.sx` (5 tests) seeds the class-defaults test file.
|
||||
Covers a 2-arg default method (`myNeq x y = not (myEq x y)`) where the
|
||||
|
||||
Reference in New Issue
Block a user