Dashboard/Models/Contests.lean

GitHub source file

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.

Imports (3)
Imported by 6 files
  1. abbrev ContestIndex Index for identifying individual problems within a contest line 18 source

    Source documentation

    Index for identifying individual problems within a contest. Currently Nat × Nat covers (year, problemNum) and (day, problemNum).

    abbrev ContestIndex := Nat × Nat
  2. structure WriteupLink A link to an external resource (solution writeup, official site, etc.) line 21 source

    Source documentation

    A link to an external resource (solution writeup, official site, etc.).

    structure WriteupLink where
    …
  3. structure Contest line 26 source
  4. def Contest.filterProblemCount line 46 source
  5. def Contest.problemCount All problems listed (including not yet formalized ones) line 52 source

    Source documentation

    All problems listed (including not yet formalized ones)

    def problemCount (c : Contest idx subIdx) : Nat := c.filterProblemCount fun _ _ => true

    Mentions: Contest

  6. def Contest.hasProblemName line 54 source
  7. def Contest.mergeNeighbors line 57 source
  8. def fromCounts line 72 source