mathlib4
mathlib4 copied to clipboard
The math library of Lean 4
This PR implements the `push_neg` tactic. This code is based on https://github.com/leanprover-community/mathlib4/pull/193/ and on the original Lean 3 `push_neg` code. It notably implements a new feature: if `set_option push_neg.use_distrib true`...
Following a suggestion of @digama0 `recover` is implemented as wrapping tactics so that if goals are closed incorrectly they are reopened. Below are examples (test suggested by @gebner). Some code...
Lean 3 version: https://github.com/leanprover-community/mathlib/blob/master/src/topology/unit_interval.lean#L148
This PR adds the `mfld_set_tac` tactic. This tactic relies on a custom simp set which mostly contain lemmas about advanced math that is not yet in mathlib4. In the test...
A port of some of https://hackage.haskell.org/package/profunctor-optics-0.0.2/docs/Data-Profunctor-Optic-Traversal.html Just for fun. ## How should composition work? If anyone has a good idea for how to get optic composition to work smoothly I'd...
Adding a nix flake to enable builds and dependency fetching with nix. This has several opinionated choices about structure which can be negotiated.
This generalizes the `on_goal` tactic to allow targeting multiple goals at once, and it focuses on each of them when calling the given tactic sequence, like `all_goals` but for a...
Lean 3 version: https://github.com/leanprover-community/lean/blob/master/library/init/meta/interactive.lean#L1664