{"provider_url":"https://hatena.blog","title":"cases\u306e\u30b1\u30fc\u30b9\u306e\u9806\u5e8f","height":"190","blog_url":"https://m-hiyama-memo.hatenablog.com/","type":"rich","blog_title":"(\u65b0) \u6a9c\u5c71\u6b63\u5e78\u306e\u30ad\u30de\u30a4\u30e9\u98fc\u80b2\u8a18 \u30e1\u30e2\u7de8","author_url":"https://blog.hatena.ne.jp/m-hiyama/","version":"1.0","description":"def toNum (b : Bool) : Nat := by cases b with | true => exact 1 | false => exact 0 #print toNum #print Bool.casesOn #eval toNum true --> 1 def toNum' (b : Bool) : Nat := by cases b exact 1 exact 0 #eval toNum' true --> 0 def toNum'' (b : Bool) : Nat := by cases b \u00b7 exact 1 \u00b7 exact 0 #eval toNum'' tr\u2026","published":"2023-02-27 13:56:36","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fm-hiyama-memo.hatenablog.com%2Fentry%2F2023%2F02%2F27%2F135636\" title=\"cases\u306e\u30b1\u30fc\u30b9\u306e\u9806\u5e8f - (\u65b0) \u6a9c\u5c71\u6b63\u5e78\u306e\u30ad\u30de\u30a4\u30e9\u98fc\u80b2\u8a18 \u30e1\u30e2\u7de8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"m-hiyama","image_url":null,"provider_name":"Hatena Blog","categories":["Lean","\u30cf\u30de\u30ea\u6240"],"url":"https://m-hiyama-memo.hatenablog.com/entry/2023/02/27/135636","width":"100%"}