src/Pure/term_xml.scala
changeset 70533 031620901fcd
parent 43779 47bec02c6762
child 70536 fe4d545f12e3
     1.1 --- a/src/Pure/term_xml.scala	Wed Aug 14 19:50:23 2019 +0200
     1.2 +++ b/src/Pure/term_xml.scala	Thu Aug 15 16:02:47 2019 +0200
     1.3 @@ -53,5 +53,19 @@
     1.4          { case (List(a), Nil) => Bound(int_atom(a)) },
     1.5          { case (List(a), b) => val (c, d) = pair(typ, term)(b); Abs(a, c, d) },
     1.6          { case (Nil, a) => val (b, c) = pair(term, term)(a); App(b, c) }))
     1.7 +
     1.8 +    def proof: T[Proof] =
     1.9 +      variant[Proof](List(
    1.10 +        { case (Nil, Nil) => MinProof },
    1.11 +        { case (List(a), Nil) => PBound(int_atom(a)) },
    1.12 +        { case (List(a), b) => val (c, d) = pair(typ, proof)(b); Abst(a, c, d) },
    1.13 +        { case (List(a), b) => val (c, d) = pair(term, proof)(b); AbsP(a, c, d) },
    1.14 +        { case (Nil, a) => val (b, c) = pair(proof, term)(a); Appt(b, c) },
    1.15 +        { case (Nil, a) => val (b, c) = pair(proof, proof)(a); AppP(b, c) },
    1.16 +        { case (Nil, a) => Hyp(term(a)) },
    1.17 +        { case (List(a), b) => PAxm(a, list(typ)(b)) },
    1.18 +        { case (List(a), b) => OfClass(typ(b), a) },
    1.19 +        { case (List(a), b) => val (c, d) = pair(term, list(typ))(b); Oracle(a, c, d) },
    1.20 +        { case (List(a, b), c) => PThm(long_atom(a), b, list(typ)(c)) }))
    1.21    }
    1.22  }