Skip to content

Commit

Permalink
Merge pull request #692 from lean-ja/Seasawher/issue687
Browse files Browse the repository at this point in the history
Diaconescu の定理の証明の修正
  • Loading branch information
Seasawher authored Aug 25, 2024
2 parents 067fa20 + ff37505 commit 0820091
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Examples/Command/Declarative/Axiom.lean
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,11 @@ theorem em (P : Prop) : P ∨ ¬ P := by

-- 関数外延性によってゴールを書き換える
ext x
show x = True ∨ P ↔ x = False ∨ P

-- あとは命題論理の問題になる
-- 仮定に P があるので自明
show x = True ∨ P ↔ x = False ∨ P
constructor <;> intro _h
all_goals (right; exact hP)
simp [hP]

case hor =>
show (u ≠ v) ∨ P
Expand All @@ -349,10 +348,6 @@ theorem em (P : Prop) : P ∨ ¬ P := by
all_goals (try right; assumption)

-- 残りの1つでは `u ≠ v` が成り立つ。
-- ここから示すべきことが従う。
left
intro h
rw [h] at hu
contradiction
simp [hu, hv]

end Axiom --#

0 comments on commit 0820091

Please sign in to comment.