add let_intros for better experience with levels about functions

This commit is contained in:
Jon Eugster
2024-03-15 17:06:43 +01:00
parent 6cdbfbd9cb
commit 9bc0a3de46
6 changed files with 123 additions and 11 deletions
+17
View File
@@ -0,0 +1,17 @@
import GameServer.Tactic.LetIntros
set_option linter.unusedVariables false in
example (f : Nat) :
let f := fun x ↦ x + 1
let g : Nat → Nat := fun y ↦ y
∀ x : Nat, x ≤ f x := by
let_intros
/-
f✝ : Nat
f : Nat → Nat := fun x => x + 1
g : Nat → Nat := fun y => y
⊢ ∀ (x : Nat), x ≤ f x
-/
intro x
exact Nat.le_succ x