Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 122

A tactic is a command or instruction for constructing a formal proof by applying a common proof technique. For questions about high-level techniques for constructing proofs, use the tag (strategy).

0 votes
Accepted

Question about the tactic "obtain"

Assuming you are on Lean 3, the best way to answer these sort of questions is via the mathlib tactic documentation (which also documents the built in tactics in core Lean). … of common tactics) Similarly, import tactic also works (which I think is the same as import tactic.basic but I could be mistaken). …
Jason Rute's user avatar
  • 9,195
4 votes
Accepted

Tactics for Array/List simplification in lean4

Further, to prove that two structures are equal, it is enough to use the congr tactic. (Note from a theorem-proving perspective Arrays are just defined as structures wrapping a list data. … I notice that the Array lemmas are often stated as <expression for an array>.data = ... and I think if you state your lemmas in that format then you would find that simp tactic works much of the time for …
Jason Rute's user avatar
  • 9,195
1 vote
Accepted

When is the lean 4 "by" required?

Without the by, then one would be giving a term proof instead of a tactic proof. example : True := by -- tactic mode have h0 : True ∨ False -> True := by -- this is a tactic proof inside a tactic … Still in tactic mode. simp How to know if you are in tactic mode or term mode? If you see a goal in the info view, you are likely in tactic mode. …
Jason Rute's user avatar
  • 9,195
1 vote
Accepted

Proving that applicative functors compose

The lemma proof are short, often mostly relying on the simp tactic and various rewrite lemmas. … For that library, I heard they developed the tidy tactic to do a lot of the tedious follow-your-nose sort of reasoning. …
Jason Rute's user avatar
  • 9,195
3 votes
Accepted

Doing case-by-case proofs about match statements in Lean4

So I just had to use the contradiction tactic to solve the subgoal. The second case was a bit more tricky, so I did cases on b to prove the hypotheses were inconsistent. …
Jason Rute's user avatar
  • 9,195
0 votes

Lean4: How to construct an HEq between dependent functions?

(Wrote this before you updated your question.) I'm not sure where that goal came up, either in a real situation or just something you want to prove, but here is my best approximation to your situation …
Jason Rute's user avatar
  • 9,195