leanprover / leanprover/comparator

"uncaught exception: Challenge and solution constant kind don't match" is both unhelpful and untrue

Open
#3 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lean
Stars
203
Forks
36
Avg merge
1h 40m
Merged PRs (30d)
7

Description

I have identical files for challenge and solution:

def placeholder := @Eq.refl

I get

Building Challenge
Build completed successfully (3 jobs).
Exporting #[placeholder] from Challenge
Building Solution
Build completed successfully (3 jobs).
Exporting #[placeholder] from Solution
uncaught exception: Challenge and solution constant kind don't match: 'placeholder'

This error message doesn't actually tell me what is going wrong. But it seems like it should succeed in any case.

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

The issue names no source files, tests, or entry points. First reproduce the identical Challenge and Solution builds, then locate the code that compares their exported constants. Done means either the example succeeds or the diagnostic accurately explains the mismatch, with a regression test for the reproduced case.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.