Skip to content

Option to run only the external kernels (skip the builtin replay) #102

Description

@dpwoodru

Comparator always runs the builtin Lean kernel replay after any external_kernels. In Main.lean, result := result <|> (← runBuiltinKernel solution) runs unconditionally.

So the README's trust assumption can be reduced to "at least one of the Lean kernel or the external_kernels is correct", but the run time can't. For very large solutions, the single-threaded builtin replay dominates.

Proposal. An opt-in config field, for example "builtin_kernel": false (default true). It would only be allowed together with a non-empty external_kernels, and it would skip runBuiltinKernel. The trust assumption would then read "at least one of the external_kernels is correct".

Motivation. Take https://github.com/dpwoodru/general-courtade-kumar-lean: a ~100 GB export with 22.1M constants.

As @nomeata noted on #99, there is currently no supported way to do this. Happy to send a PR if this sounds acceptable.

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