The small certificate method #
Looks up a pre-existing PrimeCert.prime_<n> declaration (from SmallPrimes.lean),
e.g. PrimeCert.prime_31. Used as a base case in certificate ladders.
Syntax for the small method: just a numeric literal n.
Looks up the declaration PrimeCert.prime_<n> in the environment.
-- In a prime_cert% call:
prime_cert% [small {2; 3; 5; 7}, ...]
-- Each number must have a corresponding `PrimeCert.prime_<n>` theorem.
Equations
- PrimeCert.Meta.small_spec = Lean.ParserDescr.nodeWithAntiquot "small_spec" `PrimeCert.Meta.small_spec (Lean.ParserDescr.const `num)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- PrimeCert.Meta.PrimeCertExt.small = { syntaxName := `PrimeCert.Meta.small_spec, methodName := `PrimeCert.Meta.mkSmallProof }
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- step_groupSmall_ = Lean.ParserDescr.node `step_groupSmall_ 1022 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "small") PrimeCert.Meta.small_spec)