代码之家  ›  专栏  ›  技术社区  ›  Qinshi Wang

有什么策略可以在“和”的前提下工作吗?

  •  1
  • Qinshi Wang  · 技术社区  · 6 年前

    Goal forall A (x : A) P Q,
      (forall y, P y /\ Q y) ->
      Q x.
    Proof.
      intros. intuition. auto.
    Abort.
    
    (* a more complex version *)
    Goal forall A (x : A) P Q R,
      (forall y, R -> P y /\ Q y) ->
      R ->
      Q x.
    Proof.
      intros. intuition. auto.
    Abort.
    
    1 回复  |  直到 6 年前
        1
  •  1
  •   Yves    6 年前

    战术 intuition 不起作用,因为该策略是为命题逻辑设计的(即,它不使用 forall y, R -> ... firstorder . 试试看!