FormalConjecturesUtil/Linters/LatexDocstringLinterTest.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 project documentation, Formal Conjectures paper, arXiv v1

5 declarations, 0 contain sorry, 0 declared as axioms

Tests for the LaTeX docstring linter

This file contains test cases for the LatexDocstringLinter, verifying that docstrings with backslash-bracket, backslash-parenthesis, or legacy URL links are flagged.

Imports (1)
  1. theorem LatexDocstringLinter.flagged_with_bracket_math This is a bad docstring with \[ math \] line 39 source

    Source documentation

    This is a bad docstring with \[ math \].

    no axioms what this means

    Statement uses: True

    Proof uses: True.intro

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

    theorem flagged_with_bracket_math : True := by
    …
  2. theorem LatexDocstringLinter.flagged_with_paren_math This is a bad docstring with \( math \) line 49 source

    Source documentation

    This is a bad docstring with \( math \).

    no axioms what this means

    Statement uses: True

    Proof uses: True.intro

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

    theorem flagged_with_paren_math : True := by
    …
  3. theorem LatexDocstringLinter.not_flagged_with_good_math This is a good docstring with $$ math $$ line 54 source

    Source documentation

    This is a good docstring with $$ math $$.

    no axioms what this means

    Statement uses: True

    Proof uses: True.intro

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

    theorem not_flagged_with_good_math : True := by
    …
  4. theorem LatexDocstringLinter.flagged_with_legacy_url_link This is a bad link: [example][https://example.com] line 64 source

    Source documentation

    This is a bad link: [example][https://example.com].

    no axioms what this means

    Statement uses: True

    Proof uses: True.intro

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

    theorem flagged_with_legacy_url_link : True := by
    …
  5. theorem LatexDocstringLinter.not_flagged_with_inline_url_link This is a good link: example line 69 source

    Source documentation

    This is a good link: example.

    L4DEL explanation

    This is a good link: example.

    Sources and attribution: Pinned Lean source (1646ca16afd6)

    no axioms what this means

    Statement uses: True

    Proof uses: True.intro

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

    theorem not_flagged_with_inline_url_link : True := by
    …