File: concrete-conformances.tex

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (68 lines) | stat: -rw-r--r-- 2,281 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
\documentclass[../generics]{subfiles}

\begin{document}

\chapter{Concrete Conformances}\label{concrete conformances}

\ifWIP
TODO:
\begin{itemize}
\item Concrete conformance rule, property-like
\item Virtual rule that introduces it
\item Idea: it should eliminate the conformance rule but not the concrete type rule
\item Doesn't actually appear in signature so should not impact minimization
\item Conditional requirement inference, only in generic signatures and not protocols, because we can't merge connected components during completion. for a generic signature this actually has to import new components in the general case
\end{itemize}
\fi

\section{Type Witnesses}\label{rqm type witnesses}

\IndexTwoFlag{debug-requirement-machine}{concretize-nested-types}

\ifWIP
TODO:
\begin{itemize}
\item Concrete type witness
\item Abstract type witness
\item Virtual rules
\item Algorithm for building a ``relative'' concrete type symbol from substituting another symbol's pattern type
\end{itemize}
\fi

\section{Recursive Conformances}

\ifWIP
TODO:
\begin{itemize}
\item Free conformances
\item Can a protocol have a free conformance
\item Can a conformance be made free by changing the protocol
\item Conformance evaluation graph
\item Heuristic to find same-type requirements from a conformance; just the parent type thing
\item The problem with opaque archetypes
\item Open question: can we encode a conformance more directly without evaluating it; \verb|G<G<G<T>>>| example
\end{itemize}
\fi

\IndexFlag{enable-requirement-machine-opaque-archetypes}

\section{Concrete Contraction}\label{concrete contraction}

\IndexFlag{disable-requirement-machine-concrete-contraction}
\IndexTwoFlag{debug-requirement-machine}{concrete-contraction}

\ifWIP
TODO:
\begin{itemize}
\item Doesn't actually appear in signature so should not impact minimization
\item The problem: it might give you a smaller anchor
\item Invariant violation without concrete contraction
\item Concrete contraction substitutes superclass and concrete types
\item Also GSB compatibility: T.A, T == C, C.A is a concrete typealias that's not an associated type. this doesn't add a rule
\item Open question: can we do this in a more principled way
\end{itemize}
\fi

\section{Source Code Reference}

\end{document}