Repository navigation
draft: gsimp tactic - #35591
draft: gsimp tactic#35591JovanGerb wants to merge 9 commits into
gsimp tactic#35591Conversation
|
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 5a2fd49571
|
| Files | Import difference |
|---|---|
Mathlib.Tactic.GSimp.GSimpTheorems (new file) |
82 |
Mathlib.Tactic.GSimp.Types (new file) |
83 |
Mathlib.Tactic.GSimp.Rewrite (new file) |
84 |
Mathlib.Tactic.GSimp.Core (new file) |
85 |
Mathlib.Tactic.GSimp.Elab (new file) |
86 |
Declarations diff
+ Cache
+ Cache.insert
+ CacheEntry
+ CacheEntry.find?
+ 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
+ biSup_inf_le
+ defaultDischarger
+ double
+ elabGSimpArg
+ elabGSimpArgs
+ elabGSimpTheorem
+ eraseFwdIfBwd
+ eraseIfExists
+ evalGSimp
+ getCacheEntry
+ getConfig
+ getContext
+ getGCongrTheorems
+ getMethods
+ getRel
+ getRelName
+ getRelType
+ 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
+ modifyCacheEntry
+ post
+ ppGSimpTheorem
+ pre
+ resolveGSimpIdTheorem?
+ rewritePost
+ rewritePre
+ synthesizeArgs
+ tacticToDischarge
+ tryTheorem?
+ tryTheoremCore
+ withContra
+ withFreshCache
+ withRel
You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.
No changes to technical debt.
You can run this locally as
./scripts/reporting/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).
…ates Relation predicates used to be `def`s over a `forall`, which was optimal for usability in fields of other structures. This changed in leanprover-community#35591 and leanprover-community#35192 as a byproduct of reducing apparent code duplication. Unfortunately, the usability issue was overlooked. This PR restores usability by dropping the use of those relation classes that are `structure`s, ie `Std.Irrefl` and `Std.Transitive`. It also uses more widely the `simp` auto-param on `SimpleGraph.loopless`.
…ates Relation predicates used to be `def`s over a `forall`, which was optimal for usability in fields of other structures. This changed in leanprover-community#35591 and leanprover-community#35192 as a byproduct of reducing apparent code duplication. Unfortunately, the usability issue was overlooked. This PR restores usability by dropping the use of those relation classes that are `structure`s, ie `Std.Irrefl` and `Std.Transitive`. It also uses more widely the `simp` auto-param on `SimpleGraph.loopless`.
…ates Relation predicates used to be `def`s over a `forall`, which was optimal for usability in fields of other structures. This changed in leanprover-community#35591 and leanprover-community#35192 as a byproduct of reducing apparent code duplication. Unfortunately, the usability issue was overlooked. This PR restores usability by dropping the use of those relation classes that are `structure`s, ie `Std.Irrefl` and `Std.Transitive`. It also uses more widely the `simp` auto-param on `SimpleGraph.loopless`.
|
Since the |
This is a draft PR for exploring a potential
gsimptactic. It would be able to do some things that the currentgrwtactic cannot do.