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

12 declarations, 0 contain sorry, 0 declared as axioms

Imports (1)
  1. def AMSLinter.foo line 29 source

    no axioms what this means

    Statement uses: Nat

    Proof uses: OfNat.ofNat

    1 instances, coercions and auxiliary constants left out.

  2. theorem AMSLinter.test_theorem A highly non-trivial theorem line 38 source

    Source documentation

    A highly non-trivial theorem

    no axioms what this means

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

    Proof uses: Eq.refl

    6 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

    theorem test_theorem : 1 + 1 = 2 := by
    …
  3. theorem AMSLinter.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

    no axioms what this means

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

    Proof uses: Eq.refl

    6 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

    theorem test_theorem_with_hypothesis (_ : True) : 1 + 1 = 2 := by
    …
  4. theorem AMSLinter.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

    no axioms what this means

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

    Proof uses: Eq.refl

    6 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

    theorem test_theorem_with_hypotheses (_ : True) (_ : False): 1 + 1 = 2 := by
    …
  5. lemma AMSLinter.test_lemma line 68 source

    no axioms what this means

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

    Proof uses: Eq.refl

    6 instances, coercions and auxiliary constants left out.

    Tactic trace: 2 steps

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

  6. example AMSLinter.(example at line 77) line 77 source
  7. theorem AMSLinter.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

    no axioms what this means

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

    Proof uses: Eq.refl

    6 instances, coercions and auxiliary constants left out.

    Tactic trace: 2 steps

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

    theorem test_theorem_with_docstring : 1 + 1 = 2 := by
    …
  8. example AMSLinter.(example at line 94) line 94 source

    Source documentation

    A highly non-trivial theorem with a helpful hypothesis

    example: 1 + 1 = 2 := by
    …
  9. theorem AMSLinter.test_1 line 100 source

    no axioms what this means

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

    Proof uses: Eq.refl

    6 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

  10. theorem AMSLinter.test_3 line 106 source

    no axioms what this means

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

    Proof uses: Eq.refl

    6 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

  11. theorem AMSLinter.test_out_of_order line 116 source

    no axioms what this means

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

    Proof uses: Eq.refl

    6 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

  12. theorem AMSLinter.test_dup line 126 source

    no axioms what this means

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

    Proof uses: Eq.refl

    6 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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