Commit 1a1a4e8
committed
style(Combinatorics/SimpleGraph): tidy two more namespace/order issues
* `InducedCopy.lean`: flatten the two-decl `namespace Copy` block around
`Copy.toEmbeddingOfIsInduced` / `Copy.toEmbeddingOfIsInduced_apply` to prefixed names.
Saves the `namespace`/`end` pair and one indentation level for two declarations.
* `Copy.lean`: move `Copy.toSubgraph_comp` up to sit between `toSubgraph_adj_iff` and
`mem_range_of_toSubgraph_eq`. The new order is basic-to-complex:
toSubgraph (def) → isoToSubgraph / range_toSubgraph / toSubgraph_surjOn (existing
image API) → verts_toSubgraph / toSubgraph_adj_iff / toSubgraph_comp (basic
"shape" facts) → mem_range_of_toSubgraph_eq / equivOfToSubgraphEq / _apply (multi-copy
facts using classical choice).
`toSubgraph_comp` is a one-line functoriality fact; pairing it with `verts_*` and
`*_adj_iff` rather than burying it after the equivOfToSubgraphEq classical-choice
scaffolding mirrors the order already used on the Embedding side in `InducedCopy.lean`.1 parent 0f5e45f commit 1a1a4e8
2 files changed
Lines changed: 8 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
| |||
233 | 239 | | |
234 | 240 | | |
235 | 241 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | 125 | | |
128 | 126 | | |
129 | | - | |
| 127 | + | |
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
| |||
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
139 | | - | |
| 137 | + | |
140 | 138 | | |
141 | 139 | | |
142 | | - | |
143 | | - | |
144 | 140 | | |
145 | 141 | | |
146 | 142 | | |
| |||
0 commit comments