決定可能とは、Bool 値にするような関数があるということ

Open
#2,658 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
Half a day
Newbie friendliness
55/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Domain
documentation

Research direction

The issue proposes adding a new example to the book: a Lean proof that a decidable predicate yields a Bool-valued function, using classical and grind. Start from the book's src/SUMMARY.md and find the chapter that discusses 決定可能性 / Decidable; that is where the example belongs. Read that chapter's existing examples to match their style, add the snippet with a short explanation, and check the build with mdbook build (and Lean if the chapter is checked). Done means the section renders and the proof compiles.

Written by the indexing model from the issue text.

Description

排中律を仮定するとすぐに作れるのである

variable {X : Type} (P : X → Prop)

example : ∃ f : X → Bool, ∀ x : X, f x = true ↔ P x := by 
  classical
  let f : X → Bool := fun x =>
    if P x then true else false
  exists f
  grind only
Dominant language
Lean
Stars
200
Forks
17
Avg merge
20m
Merged PRs (30d)
6

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lean-ja/lean-by-example

All issues in lean-ja/lean-by-example

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.