Skip to content

Comparator generates different instance names for problem and solution files #58

Description

@eric-wieser

With this challenge in challenge.lean:

instance : Inhabited Nat := ⟨37theorem target : default = 37 := sorry

and this solution.lean

instance : Inhabited Nat := ⟨37theorem target : default = 37 := rfl

comparator fails with

Exporting #[target, propext, Quot.sound, Classical.choice, Nat.add, Nat.sub, Nat.mul, Nat.pow, Nat.gcd, Nat.div, Nat.mod, Nat.beq, Nat.ble, Nat.land, Nat.lor, Nat.xor, Nat.shiftLeft, Nat.shiftRight, String.ofList] from Challenge
Building Solution
Build completed successfully (3 jobs).
Exporting #[target, propext, Quot.sound, Classical.choice, Nat.add, Nat.sub, Nat.mul, Nat.pow, Nat.gcd, Nat.div, Nat.mod, Nat.beq, Nat.ble, Nat.land, Nat.lor, Nat.xor, Nat.shiftLeft, Nat.shiftRight, String.ofList] from Solution
uncaught exception: Challenge and solution theorem statement do not match: 'target'

presumably because one has type

@default _ instInhabitedNat_challenge = 37

and the other has type

@default _ instInhabitedNat_solution = 37

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions