Dashboard/Models/Contests.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned compfiles documentation, Pinned compfiles corpus index
8 declarations, 0 contain sorry, 0 declared as axioms
Contest Metadata
Data and identification utilities for each contest (IMO, USAMO, etc.).
To add a new contest, define a new Contest instance and add it to allContests.
Imported by 6 files
- abbrev
ContestIndexIndex for identifying individual problems within a contest line 18 sourceSource documentation
Index for identifying individual problems within a contest. Currently
Nat × Natcovers (year, problemNum) and (day, problemNum).abbrev ContestIndex := Nat × Nat
- structure
WriteupLinkA link to an external resource (solution writeup, official site, etc.) line 21 sourceSource documentation
A link to an external resource (solution writeup, official site, etc.).
structure WriteupLink where …
- structure
Contestline 26 source - def
Contest.filterProblemCountline 46 source - def
Contest.problemCountAll problems listed (including not yet formalized ones) line 52 sourceSource documentation
All problems listed (including not yet formalized ones)
def problemCount (c : Contest idx subIdx) : Nat := c.filterProblemCount fun _ _ => true
Mentions: Contest
- def
Contest.hasProblemNameline 54 source - def
Contest.mergeNeighborsline 57 source - def
fromCountsline 72 source