Skip to content

Instantly share code, notes, and snippets.

@peterbb
Created October 8, 2013 21:47
Show Gist options
  • Save peterbb/6892368 to your computer and use it in GitHub Desktop.
Save peterbb/6892368 to your computer and use it in GitHub Desktop.
Using the tactic "dependent induction" inside a match goal seems not to work.
subtype_weaken_l < Show.
1 subgoal
C : constraints
AT : annotatedtype
AT' : annotatedtype
H : subtype C AT AT'
============================
forall C' : list ineq, subtype (C ++ C') AT AT'
subtype_weaken_l < (match goal with
subtype_weaken_l < | H : subtype _ _ _ |- _ => induction H
subtype_weaken_l < end).
4 subgoals
C : constraints
AT : annotatedtype
============================
forall C' : list ineq, subtype (C ++ C') AT AT
subgoal 2 is:
forall C' : list ineq, subtype (C ++ C') AT_1 AT_3
subgoal 3 is:
forall C' : list ineq, subtype (C ++ C') (at_Lock r_1) (at_Lock r_2)
subgoal 4 is:
forall C' : list ineq,
subtype (C ++ C') (at_Arrow AT_1 (EffectIntro D_1 D_2) AT_2)
(at_Arrow AT_1' (EffectIntro D_1' D_2') AT_2')
subtype_weaken_l < Undo.
1 subgoal
C : constraints
AT : annotatedtype
AT' : annotatedtype
H : subtype C AT AT'
============================
forall C' : list ineq, subtype (C ++ C') AT AT'
subtype_weaken_l < (match goal with
subtype_weaken_l < | H : subtype _ _ _ |- _ => dependent induction H
subtype_weaken_l < end).
Error: No matching clauses for match goal
(use "Set Ltac Debug" for more info).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment