FormalConjecturesTest/Util/Linters/CategoryLinter.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

15 declarations, 3 contain sorry, 0 declared as axioms

Imports (1)
  1. def CategoryLinter.foo line 29 source
  2. theorem CategoryLinter.test_theorem A highly non-trivial theorem line 38 source

    Source documentation

    A highly non-trivial theorem

    theorem test_theorem : 1 + 1 = 2 := by
    …
  3. theorem CategoryLinter.test_theorem_with_hypothesis A highly non-trivial theorem with a helpful hypothesis line 48 source

    Source documentation

    A highly non-trivial theorem with a helpful hypothesis

    theorem test_theorem_with_hypothesis (_ : True) : 1 + 1 = 2 := by
    …
  4. theorem CategoryLinter.test_theorem_with_hypotheses A highly non-trivial theorem with two helpful hypotheses line 58 source

    Source documentation

    A highly non-trivial theorem with two helpful hypotheses

    theorem test_theorem_with_hypotheses (_ : True) (_ : False): 1 + 1 = 2 := by
    …
  5. lemma CategoryLinter.test_lemma line 68 source
  6. example CategoryLinter.(example at line 77) line 77 source
  7. theorem CategoryLinter.test_theorem_with_docstring A highly non-trivial theorem with a helpful hypothesis line 88 source

    Source documentation

    A highly non-trivial theorem with a helpful hypothesis

    theorem test_theorem_with_docstring : 1 + 1 = 2 := by
    …
  8. lemma CategoryLinter.test_lemma_sorry_free line 98 source
  9. example CategoryLinter.(example at line 106) line 106 source
  10. theorem CategoryLinter.test_private_sorry_free line 116 source
  11. theorem CategoryLinter.test_theorem_match A highly non-trivial theorem proved by cases line 127 source

    Source documentation

    A highly non-trivial theorem proved by cases

    theorem test_theorem_match : ∀ l : List Nat, l = l
      | [] => rfl
      | _ :: _ => rfl
    
    #guard_msgs in
    @[category research open]
  12. theorem CategoryLinter.test_2 sorry line 133 source

    depends on sorry (Lean reported 3 error(s) in this file) what this means

    Statement uses: Eq, Nat, HAdd.hAdd, OfNat.ofNat

    Proof uses: sorryAx, Lean.Name, Bool.false, Lean.Name.num, Lean.Name.str, Lean.Name.anonymous

    6 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

  13. theorem CategoryLinter.test_1 sorry line 139 source

    depends on sorry (Lean reported 3 error(s) in this file) what this means

    Statement uses: Eq, Nat, HAdd.hAdd, OfNat.ofNat

    Proof uses: sorryAx, Lean.Name, Bool.false, Lean.Name.num, Lean.Name.str, Lean.Name.anonymous

    6 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

  14. theorem CategoryLinter.test_3 sorry line 145 source

    depends on sorry (Lean reported 3 error(s) in this file) what this means

    Statement uses: Eq, Nat, HAdd.hAdd, OfNat.ofNat

    Proof uses: sorryAx, Lean.Name, Bool.false, Lean.Name.num, Lean.Name.str, Lean.Name.anonymous

    6 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

  15. theorem CategoryLinter.test_duplicate_category line 155 source