lean-ja / lean-ja/lean-by-example
`UInt32` の誤差が現れる例
Open
Nobody has claimed this yet.
コード例
データ型
メモ
- Dominant language
- Lean
- Stars
- 188
- Forks
- 15
- Avg merge
- 9h 8m
- Merged PRs (30d)
- 6
Description
#eval show IO Unit from do
let x : UInt32 := 139
let y : UInt32 := 954
let z : UInt32 := 2115
if x * x * x + y * y * y = z * z * z then
IO.println "Counter example of Fermat's last theorem"
IO.println s!"(x, y, z) = ({x}, {y}, {z})"
この例は、Juliaで精度保証付き数値計算を学ぶ教材から引用した。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Lean code snippet in issue #929 and inspect how examples are organized in this repository. Compare the UInt32 behavior with the cited Julia teaching material; done should be a clearly scoped repository change that explains or presents this example appropriately.
Written by the indexing model from the issue text.
Assessment
- Domain
- content, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100