Library Waterproof.Util.Hypothesis
get_value_of_hyp_id
Given an constr that is the reference of a hypothesis (i.e. the LHS in the proof context, e.g. the h in h: 1 + 1 = 2), return the unnormalized value of the hypothesis.
Arguments:
Returns:
- hyp: constr, LHS of the hypothsis.
- constr: unnormalized type of the hypothesis (i.e. the RHS).
get_value_of_hyp_id
- hyp_id: ident, name of hypothesis.
- constr: unnormalized type of the hypothesis.
Ltac2 get_value_of_hyp_id (hyp_id: ident) :=
let h := Control.hyp hyp_id in
get_value_of_hyp h.
let h := Control.hyp hyp_id in
get_value_of_hyp h.