Learning path
Each declaration appears after its prerequisites.
- Hidden.UProd.mem_swap auxiliary lemma for proving mem_respects
- whatever Avoid warnings
- five Example that fails: a numeral at a type that merely unfolds to Nat
- TPiL.exampleSubversoRev The SubVerso revision recorded in the example project's Lake manifest
- TPiL.extractFile Extracts the highlighted contents of an example
- TPiL.allInfo Extracts all messages from the given code
- TPiL.trailingText Splits the trailing text off some code
- TPiL.messageComment? Splits the marker that introduces a message off a comment's text, along with the severity it names, if any
- TPiL.ExpectedMessage A comment that describes the message a command produces
- TPiL.commentContents Extracts the text of a comment, which may span several lines
- TPiL.expectedComment The comment that describes a message
- TPiL.messageSeverityName The name of a message's severity
- TPiL.lastLineIndent The indentation of the last line of some code
- TPiL.trailingComment Extracts a trailing comment from code, if present
- TPiL.commentColumn The column at which the comment on a line begins, if it has one
- TPiL.isMessageCommentLine Whether a line is a comment that introduces a message
- TPiL.isCommentLine Whether a line consists of a comment, along with any surrounding whitespace
- TPiL.fixupAnchorComments Leading anchor comments are always incorrect
- TPiL.logCommentMismatch Reports a comment that doesn't describe the message its command produced
- TPiL.checkSeverity Reports a comment that names a severity other than the one its command produced
- TPiL.leanFirst Elaborates Lean blocks first, maintaining the order of blocks
- TPiL.suggest Internal detail of suggestion mechanism
- Weekday.next_previous next undoes previous, by cases on the constructors
- Weekday.Weekday.add_comm First attempt at commutativity of Nat addition (contains sorry)
- f' Alternative syntax:
- foo@book/TPiL/InteractingWithLean.lean a user-defined function
- {lit}`Nat`.Ex2.id2 In this example, implicit lambda introduction has been disabled because we use
@before {kw}fun - {lit}`Nat`.Ex2.id5 In this example, implicit lambda introduction has been disabled because we used the binder annotation
{...} - and_commut An axiom: and is commutative, in a toy proof system
- modus_ponens Modus ponens as an inference rule on Proof
- ex Everything follows from false
- divides_trans Divisibility is transitive, so calc can chain it
- swap_pair Tactics can define data: swapping a pair
- swap_sum Swapping the two sides of a sum type