Skip to content

Commit

Permalink
doc: include: currently applies to theorems only (#5206)
Browse files Browse the repository at this point in the history
Fixes #5184
  • Loading branch information
Kha authored Aug 30, 2024
1 parent 648239c commit e04a40d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Lean/Parser/Command.lean
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,10 @@ list, so it should be brief.

/--
`include eeny meeny` instructs Lean to include the section `variable`s `eeny` and `meeny` in all
declarations in the remainder of the current section, differing from the default behavior of
conditionally including variables based on use in the declaration header. `include` is usually
followed by the `in` combinator to limit the inclusion to the subsequent declaration.
theorems in the remainder of the current section, differing from the default behavior of
conditionally including variables based on use in the theorem header. Other commands are
not affected. `include` is usually followed by `in theorem ...` to limit the inclusion
to the subsequent declaration.
-/
@[builtin_command_parser] def «include» := leading_parser "include " >> many1 ident

Expand Down

0 comments on commit e04a40d

Please sign in to comment.