draft: gsimp tactic#35591
Conversation
|
This pull request is now in draft mode. No active bors state needed cleanup. While this PR remains draft, bors will ignore commands on this PR. Mark it ready for review before using commands like |
🚨 PR Title Needs FormattingPlease update the title to match our commit style conventions. Errors from script: Details on the required title formatThe title should fit the following format:
|
PR summary 2640ebcdb4
|
| Files | Import difference |
|---|---|
Mathlib.Tactic.GSimp.GSimpTheorems (new file) |
81 |
Mathlib.Tactic.GSimp.Types (new file) |
82 |
Mathlib.Tactic.GSimp.Rewrite (new file) |
83 |
Mathlib.Tactic.GSimp.Core (new file) |
84 |
Mathlib.Tactic.GSimp.Elab (new file) |
85 |
Declarations diff
+ Cache
+ Cache.find?
+ Cache.findIdx?
+ Cache.insert
+ CacheEntry
+ CacheEntry.insert
+ CacheIndex
+ Config
+ Context
+ Discharge
+ DischargeWrapper
+ DischargeWrapper.with
+ GSimpM
+ GSimpM.run
+ GSimpTheorem
+ GSimpTheorem.getValue
+ GSimpTheoremKey
+ GSimpTheoremTree
+ GSimpTheorems
+ GSimpTheorems.addGSimpTheorem
+ GSimpTheorems.unerase
+ GSimproc
+ Methods
+ MethodsRef
+ Result
+ Result.getProof
+ Result.mkTrans
+ State
+ Step
+ _root_.Lean.MVarId.replaceTargetImp
+ applyGSimpResult
+ applyGSimpResultToTarget
+ defaultDischarger
+ elabGSimpArg
+ elabGSimpArgs
+ elabGSimpTheorem
+ eraseFwdIfBwd
+ eraseIfExists
+ evalGSimp
+ getCacheIdx
+ getConfig
+ getContext
+ getGCongrTheorems
+ getMethods
+ getRfl
+ getTrans
+ grewrite?
+ gsimpCore
+ gsimpGoal
+ gsimpLocation
+ gsimpTarget
+ gsimpTargetCore
+ imp_rfl
+ imp_trans
+ instance : BEq GSimpTheorem
+ instance : Nonempty MethodsRef
+ isInv
+ mainCore
+ mkDischargeWrapper
+ mkGSimpContext
+ mkGSimpTheoremCore
+ mkGSimpTheoremFromConst
+ mkGSimpTheoremFromExpr
+ mkGSimpTheoremKeys
+ mkMethods
+ mkSymm
+ post
+ ppGSimpTheorem
+ pre
+ resolveGSimpIdTheorem?
+ rewritePost
+ rewritePre
+ synthesizeArgs
+ tacticToDischarge
+ tryTheorem?
+ tryTheoremCore
+ withContra
+ withFreshCache
You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for scripts/declarations_diff.sh contains some details about this script.
No changes to technical debt.
You can run this locally as
./scripts/technical-debt-metrics.sh pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
This is a draft PR for exploring a potential
gsimptactic. It would be able to do some things that the currentgrwtactic cannot do.