proposition: Theorem match_ex2''' : True /\ True.
proof: Proof. Fail match goal with | [ |- _ ] => idtac "branch 1"; apply I | [ |- _ ] => idtac "branch 2"; apply I end. Abort. Theorem match_ex3 : forall (P : Prop), P -> P. Proof. intros P HP. match goal with | [ H : _ |- _ ] => apply H end. Qed.
imports: Coq(Arith List) LF(IndProp) Coq(Lia)