Page MenuHomePhabricator

Respect the `Z3K4` Field instead of ad hoc Treatment of Identity Keys
Closed, ResolvedPublic

Description

Description

When eagerly evaluating, the logic depends on a bespoke list of keys like Z40K1, Z8K5, etc. which are known to be identities. This is not scalable to user-defined types.

Likewise, when inferring the identity of a function, Z8K5 is directly consulted.

In both cases, the upcoming Z3K4 key will standardize the usage of identities and scale them to user-defined types.

Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • eagerlyEvaluate respects the Z3K4 IsIdentity field (by ceasing to expand)
  • findIdentity in function-schemata respects the fact that Z8K5 is now an identity

Completion checklist

Event Timeline

DVrandecic lowered the priority of this task from High to Medium.Apr 24 2024, 8:02 PM

Change #1028806 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] tests: Updated expected "Invoke the Map function" Z4K4 value now that type identities aren't eagrely resolved

https://gerrit.wikimedia.org/r/1028806

Change #1028806 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] tests: Updated expected "Invoke the Map function" Z4K4 value now that type identities aren't eagrely resolved

https://gerrit.wikimedia.org/r/1028806

Change #1031004 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2024-04-17-163312 to 2024-05-13-145903

https://gerrit.wikimedia.org/r/1031004

Change #1031004 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2024-04-17-163312 to 2024-05-13-145903

https://gerrit.wikimedia.org/r/1031004