lean-ja / lean-ja/lean-by-example

実際には axiom コマンドで公理を追加しているのに、追加していないように見せることができる

Open
#1,801 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

メモ
Dominant language
Lean
Stars
188
Forks
15
Avg merge
9h 8m
Merged PRs (30d)
6

Description

def one := 1
def bad_one := 2

axiom cheating : False

@[csimp] theorem oops : one = bad_one := cheating.elim

theorem ohno : one = 2 := by native_decide

/-- info: 'ohno' depends on axioms: [Lean.ofReduceBool] -/
#guard_msgs in
#print axioms ohno

Contributor guide

Open the contributing guide

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.

Research direction

Run the supplied Lean snippet and inspect the interaction between axiom cheating, the [csimp] theorem oops, native_decide, and #print axioms ohno. Determine whether the reported output can hide the axiom dependency; done means the expected behavior and scope of any correction are established.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.