Macaulay2 / Macaulay2/M2

equality of raw rings

Open
#1,086 28 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Core Engine
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

I couldn't track down where `===` is defined for arbitrary objects. Is it using `equalmethod` in `actors3.d`? I don't understand what `lookupBinaryMethod` and `lookup1` are doing.
```m2
debug Core
hash raw ZZ -- 13
hash rawZZ() -- 13
assert(raw ZZ === rawZZ()) -- stdio:4:1:(3): error: assertion failed
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with actors3.d and inspect equalmethod, lookupBinaryMethod, and lookup1 to trace how === is resolved for arbitrary objects. Reproduce the supplied Core session and determine why raw ZZ and rawZZ() fail the equality assertion; done means the behavior is understood and the intended equality result is established.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.