lean4-htt/tests/lean/run/1436.lean
Leonardo de Moura 4167b2466a fix: improve heuristic for issue #1419
The fix #1419 generated two regressions on Mathlib.

Fixes #1435
Fixes #1436
2022-08-06 09:00:16 -07:00

16 lines
548 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Lean
open List Lean
example (l : List α) (h : length l = length l) : length (a::l) = length (a::l) :=
congrArg (·+1) h
elab:max "(" tm:term ":)" : term => Elab.Term.elabTerm tm none
example (l : List α) (h : length l = length l) : length (a::l) = length (a::l) :=
(congrArg (·+1) h :)
example (l : List α) (h : length l = length l) : length (a::l) = length (a::l) :=
have := congrArg (·+1) h; this
example (l : List α) (h : length l = length l) : length (a::l) = length (a::l) := by
have := congrArg (·+1) h; exact this