【Lean4】constructor

constructor

目標が「かつ」や、複数の欄を持つ構造の場合に、目標を分割する

Plaintext
example (P Q : Prop) (hP : P) (hQ : Q) : P ∧ Q := by
  constructor
  · exact hP
  · exact hQ

Lean4の関連記事

タイトルとURLをコピーしました