lean4-htt/tests/lean/holeErrors.lean.expected.out
Leonardo de Moura eabde77d84
fix: improve type-as-hole error message (#8262)
This PR improves the type-as-hole error message. Type-as-hole error for
theorem declarations should not admit the possibility of omitting the
type entirely.

---------

Co-authored-by: Joachim Breitner <mail@joachim-breitner.de>
2025-05-09 22:49:37 +00:00

25 lines
1.2 KiB
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.

holeErrors.lean:3:14-3:20: error: don't know how to synthesize implicit argument 'α'
@id ?m
context:
⊢ Sort u
holeErrors.lean:3:11-3:20: error: failed to infer type of `f1.{u}`
holeErrors.lean:5:9-5:10: error: failed to infer type of `f2`
Note: When the resulting type of a declaration is explicitly provided, all holes (e.g., `_`) in the header are resolved before the declaration body is processed
holeErrors.lean:8:9-8:15: error: don't know how to synthesize implicit argument 'α'
@id ?m
context:
⊢ Sort u
holeErrors.lean:8:4-8:5: error: failed to infer 'let' declaration type
holeErrors.lean:7:11-9:1: error: failed to infer type of `f3.{u}`
holeErrors.lean:11:11-11:15: error: failed to infer type of `f4`
holeErrors.lean:11:8-11:9: error: failed to infer binder type
holeErrors.lean:13:15-13:19: error: failed to infer type of `f5`
holeErrors.lean:13:12-13:13: error: failed to infer binder type
holeErrors.lean:16:4-16:5: error: failed to infer binder type
holeErrors.lean:15:7-16:10: error: failed to infer type of `f6`
holeErrors.lean:19:13-19:19: error: don't know how to synthesize implicit argument 'α'
@id ?m
context:
⊢ Sort u
holeErrors.lean:19:8-19:9: error: failed to infer 'let rec' declaration type