chrisflav / chrisflav/mathlib-staging

Generalize `have` tactic

Open
#13 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lean
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Write a tactic that generalizes a local have or let statement: Given some context and a have or let with a certain type signature, generate a new have / let declaration with all free variables in the context of the have / let introduced as parameters.

  • Provide a way to restrict the generalization by explicitly listing the variable that should be generalized.
  • Write useful test cases.

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 by locating the existing tactic entry point and its test conventions in the repository. Define the behavior for generalizing free variables from a local have or let, including explicit variable restriction, then add useful tests that demonstrate both forms and verify the generated declaration.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.